Debian Tutorials Copy/Paste tutorials for Debian based Linux distros

29Feb/082

Add a second hard disk

In this tutorial we will add a second hard drive to our machine running Debian linux.

If you have just added a virtual disk, make sure you restart the virtual machine before mounting the new disk.

First we'll have to find out what the device name is for this disk

17Feb/080

Request and install SSL using Apache2 and OpenSSL

First we'll need to create a certificate signing request (CSR) containing the certificate application info and a private key. Make sure you don't expose you're private key (test.com.key) to the public or the safety of the encrypted information could be compromised.

mkdir /etc/apache2/ssl
cd /etc/apache2/ssl
openssl req -new -nodes -keyout test.com.key -out test.com.csr

11Feb/080

Password protecting a directory with Apache and .htaccess

The Apache web server can read .htaccess files located anywhere in your document root to perform different tasks and control settings without changing the configuration files. This may be useful where you don't have access to change the configuration files or don't want to mangle with the configuration files to perform easy tasks. In this tutorial we're going to password protect a single directory on your web site.

First we'll need to create a file containing users and passwords:

htpasswd -c /etc/apache2/.htpasswd user1
htpasswd /etc/apache2/.htpasswd user2

You can store the password file anywhere you like but I chose to store it where the Apache configuration files are located.

5Feb/0810

Pure-FTPd with MySQL backend

Pure-FTPd is a free, secure, production-quality and standard-conformant FTP server. It doesn't provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers.

In this tutorial we'll install Pure-FTPd with MySQL backend.

Install Pure-FTPd with mysql backend
apt-get install pure-ftpd-mysql

3Feb/080

Install VMware tools

This has been tested on Debian etch running on VMware ESX and VMware server 2.0 hosts.

Install kernel headers and some tools used to install VMware tools
apt-get install binutils cpp gcc make psmisc linux-headers-$(uname -r)

Mount the cdrom drive. Make sure you have mounted the VMware tools virtual cd from the host before moving on.
mount /dev/cdrom /mnt/

3Feb/080

Install Lighttpd web server with PHP5 support using MySQL backend

Lighttpd is a web server which is designed to be secure, fast, standards-compliant, and flexible while being optimized for speed-critical environments. Its low memory footprint (compared to other web servers), light CPU load and its speed goals make lighttpd suitable for servers that are suffering load problems, or for serving static media separately from dynamic content. lighttpd is free software / open source, and is distributed under the BSD license.

In this tutorial you will be guided through the installation process and to configure the web server to use MySQL backend.