Debian Tutorials Copy/Paste tutorials for Debian based Linux distros

17Feb/091

Remote backups using rsync

rsync is a software application for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction. rsync can copy or display directory contents and copy files, optionally using compression and recursion.

We're going to configure a machine to sync files from a specific folder to a remote machine every day using rsync in four easy steps. This is ideal solution to do automated backups for servers and workstations.

19Jan/090

Setup PostgreSQL database system

PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.

1. Install packages

apt-get install postgresql postgresql-client

27Oct/080

Setting up NFS client/server

Network File System (NFS) is a network file system protocol originally developed by Sun Microsystems in 1983, allowing a user on a client computer to access files over a network as easily as if the network devices were attached to its local disks.

Server

1. Install the server package

apt-get install nfs-kernel-server

1Sep/082

Loading iptables rules on startup

By default iptables is setup on Debian etch but there are no rules configured. In this tutorial we'll configure some rules and load them into iptables on startup.

1. Rules file

Create a new file that will contain a shell script to insert rules into iptables (pico /etc/firewall-rules.sh) and add this content as template:

30Aug/082

Monitoring PowerDNS with MRTG

Monitoring PowerDNS is easy with MRTG, just install these two packages and create a config file and you're good to go!

apt-get install libsnmp-session-perl mrtg

23Aug/082

Using more than 4 GB RAM on Debian etch 32bit

By default Debian etch 32bit allows a maximum of 4 GB RAM. The limit can be raised up to 64 GB with a single apt-get command / kerenl update:

apt-get install linux-image-2.6-686-bigmem

That's it, reboot your system and you will be able to install up to 64GB of RAM to your system.

Tagged as: , , 2 Comments
1Mar/080

APT tips and tricks

Search installed packages:

apt-cache search package

Get details about a specific installed package:

apt-cache show package

29Feb/083

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