How-To: Prevent SPAM with Apache’s mod security
WordPress is a great piece of software to run a blog, it is flexible, has tons of plugins are developed for it and updates are really easy to do. To fight sp...
WordPress is a great piece of software to run a blog, it is flexible, has tons of plugins are developed for it and updates are really easy to do. To fight sp...
Spam, spam everywhere! If you are hosting your own mail server, fighting spam can become tricky. Antispam solutions do catch a fair amount of them, but still...
A nice thing about Python is that there is tons of modules available out there. Not all those modules are readily available for your distro and even if there...
It can be useful to have a bash session automatically closing after some time. One of the obvious reason you might want this to happen is to make sure that n...
There might be time when you want to make sure that a file will be protected from accidental/automated change/deletion. While one can protect a file/director...
Many times you will end up tailing multiple files simultaneously. There is a sweet linux utility called multitail that will let you tail multiple files at th...
Ever had your linux box getting Out of Memory (OOM)? Cleaning up after the OOM killer kicked in to find out that even though OOM killer did a decent job at t...
Last time we saw how bash can help us in handling default values out of the box using parameter expansion. This time we will see how basic string operations ...
Bash is a sh-compatible command language interpreter that executes commands read from the standard input or from a file. There is much more to bash than run...
top is most likely one of the most known Linux command and also one of the most used one, however most people do not take full advantage of its capabilities.
OpenVPN is a SSL based VPN software that runs on most OS. It is simple to install and run.
Munin 2.0 has been released and a .deb package has even been backported to Debian Squeeze!.
Linux start up behaviour is driven by the so-called runlevels. It will use the default value provided in /etc/inittab for some systems (Debian…), or /etc/ini...
As a sysadmin, most of my time is spent working on remote machines and different task. tmux is a terminal multiplexer, meaning it allows you to run multiple ...
When enabling logs with HAProxy on a busy web site, hard disk space can quickly become a scarce resource.
In the previous part, we have configured XL2TP
We have now configured IPSec, let’s carry on with the next step.
Even though I pretty like OpenVPN, there is still some devices that might not support the TUN/TAP driver needed by OpenVPN.
If like me you use MPD as a service daemon to listen to music, you might be annoyed anytime GDM start a pulseaudio process which prevents MPD from accessing ...
When working in a chrooted environment, there is a few special file systems that needs to be mounted so all programs behave properly.
When you hotplug a hard drive in a virtual machine, the drive do not show in fdisk -l output until you reboot your VM.
In the first part, we have set up our database, let now add some user to authenticate.
this tutorial will explain how to use a MySQL backend in order to authentication users against your Apache website.
We have set up our network, now let’s get BGP rolling.
Now that we have defined what we will be setting up, let’s build this up.
Vyatta is a Linux based distro that ease the set up of VPN, Routers, antivirus…. It has a really small footprint on your system as it only requires something...
Bazaar (bzr) is a distributed version control system (VCS) sponsored by Canonical and thus bzr is widely used by the Ubuntu community.
4. Installing the system
3. Encrypting the partitions
Even though new distros installers tend to support filesystem encryption out of the box, most of the time, it might be interesting to actually understand how...
syslogd is the Linux system logging utility that take care of filling up your files in /var/log when it is asked to.
We now provide IPs to the hosts in our LAN with our newly installed DHCP server. Now we need to pass their network packets around.
Now that we have configured our DNS server, we need to distribute IPs to the machines in our LAN.
1. DNS server
Linux is a perfect platform to act as a router/gateway.
When copying files over the network, the files informations can be modified.
The Intel wireless card 4965 AGN does not work properly on ad-hoc networks since hardy and kernel 2.6.24 or around, network-manager can’t get it to use the m...
In the 2 previous articles, I explained how to set up a serial console on Ubuntu and Debian.
This tutorial will go over the steps to go through in order to set up a serial console on Debian Linux.
This tutorial will go over the steps to go through in order to set up a serial console on Ubuntu Linux.
This tutorial will show how you can export and import a set of GPG keys from one computer to another. This way, you can sign/encrypt the same way one differ...
SSH is great. There is so many thing you can do with it other than just a remote secure shell like X forwarding, port forwarding, authenticate using a privat...
Chainloading an operating system allows grub to boot an opearating system’s boot loader. This is commonly used to boot Windows for instance.
cron-apt is a tool run by a cron job at regular interval that will check for package updates and optionally do some actions.
A standard Linux system has an incredible amount of files installed. Looking for a file location can be a painful task to do though a file browser.
apt-file is a command line tool for searching packages in Debian/Ubuntu repositories. Unlike apt-cache search, apt-file can find files in uninstalled or can...
Filesystems are usually created on a partition. When all your hard drive is already partitioned, creating a new partition can become a pain and creating a ne...
This tutorial will explain how to create a self-signed certificate that you will be able to use with apache in order to provide ssl support.
LVM (Logical Volume Manager) is a great piece of software which allow you to deal with Logical Volumes. Using LVM along with ext3 filesystem, you are allowed...
Linux services can be started, stopped and reloaded with the use of scripts stocked in /etc/init.d/.
5. Preseed: Installation automation:
For the purpose of this tutorial, I decided to choose dnsmasq to act as a DNS/DHCP server. The reason behind this is that dnsmasq is simple to configure and ...
there is many ways of installing Linux. Nowadays, the most common one is probably by using a CD. Download the CD, stick it in your CDRom drive and let’s roll...
If you have ever worked on multiple workstations you know the headache associated with keeping your bookmarks, cookies and passwords synchronized across all ...
3. Adding new devices to cacti
Now that we have our snmp server up and running, we are going to install cacti to manage the snmp server in our network.
SNMP (Simple Network Management Protocol) is a protocol for managing networks. Each managed entity in the network will run an snmp server (snmpd) which is go...
4. Configure ProFTPd
Using ProFTPD and its SQL module for MySQL, it is possible to give FTP access to non system users.
MySQL is a widely spread SQL database management system mainly used on LAMP (Linux/Apache/MySQL/PHP) projects.
Since Ubuntu 7.04, Feisty Fawn, Ubuntu is using a standard kernel 2.6.20. Because of a few changes in the API, VMware-server and VMware-workstation 5.5 fail ...
After an upgrade from Debian 3.1 (sarge) to Debian 4.0 (etch), awstats stopped automatically updating.
It happens sometime that you can’t remember root password. On Linux, recovering root password can be done by booting Linux under a specific mode: single user...
3. Installing Ubuntu on the USB stick
This tutorial will show how-to install Ubuntu on a usb stick. Even though this tutorial uses Ubuntu as its base distribution, you could virtually use any typ...
2. Configuring the clients
LDAP (Lightweight Directory Access Protocol) allows central user, group, domain….. authentication, information storage …
Linux offers a great tool: Tab Completion. With tab completion, you can easily navigate through your filesystem, find command names you forgot the exact name...
You might have wondered how comes that your mp3 player is automatically mounted under a nice name like JUKEBOX for instance, while you usb stick simply get a...
AIDE is an Intrusion Detection System (IDS). Which means that AIDE is not a tool to prevent an intrusion but is actually here to report that an intrusion mig...
2. Setting up apache
Munin is a simple to configure tool that make real nice graph about your server status. It can actually deal with almost any aspect of your server (load aver...
3. Setting up the Clients and Server sources.list
When running multiple machine with the same distribution, it is interesting to set up a repository cache on your network so that once a package is downloaded...
High loaded website can get slow to respond when a lot of different visitors visit sites querying the same mysql database server, making it slow to respond.
I lately updated my dapper box to edgy eft. As edgy eft is unstable and had just been started up, it happens to get surprise.
5. How to use the advanced feature of your Touchpad
4. Explanation on those directives
3. Configuring Xorg:
2. Synaptics installation
Every laptop comes with a usefull thing when you don’t want to carry your mouse around: a Touchpad, most of the time, touchpads do work out of the box but no...
This tutorial will bring you through dpkg, the debian package manager. As I introduce apt, I will now introduce dpkg and show how to search which files are i...
There is many options out there to encrypt datas on a hard drive. You could either encrypt a whole partition using kernel filesystem or simply encrypt specif...
Burning DVD’s from the command line can seem quite geeky, but it happens to be really usefull mainly when you want to back up datas or simply don’t want to b...
Quite often, when using program such as smb4k, I encountered the following error:
##5. Install and Configure Xorg
3. Installing utils package and Configuring your new system
This How To will show how you can install Debian Etch and basically any Debian based distribution from a chroot environment. This way you don’t need to downl...
Apt is the debian tool to install, remove and search packages. It is a front-end to the dpkg package manager and offer easy searching, installing …, by using...
I really love Debian based distribution, namely, Debian itself and Ubuntu, but there is something wrong… The weakest part is located in /var/lib/dpkg/.
Today, when I wanted to start my mldonkey-server from command line, the service reported
Even though I’m a console fan, I like to have bleeding edge softwares install on my computer. In case I run into troubles, my knowledge of linux is enough to...
A lot of laptop computers using Centrino processor use the Intel Pro Wireless 2200 BG wireless interface, also known as ipw2200.
It happens sometimes that you get more than one connection to the internet. Also it might not be usefull in most of the cases, there are few cases when it ge...