Upgrade from etch to lenny
Debian has released a stable version of Debian 5.0 (lenny). If you're running previous version of Debian, you can easily upgrade.
1. Update all packages currently installed to the latest etch versions
apt-get update
apt-get upgrade
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.
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
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
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:
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
Installing VMware server on Debian etch
VMware Server installs on any existing server hardware and partitions a physical server into multiple virtual machines by abstracting processor, memory, storage and networking resources, giving you greater hardware utilization and flexibility. Streamline software development and testing and simplify server provisioning as you utilize the ability to "build once, deploy many times."
In this tutorial we'll install the free VMware server 1.x and VMware Management Interface to a Debian etch system.
First install required packages
apt-get install kernel-headers-`uname -r` psmisc libx11-6 libx11-dev xspecs libxtst6 libXt-dev libXrender-dev libxi6 lvm-common lvm2 xfsprogs
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.
Compile the Kernel on Debian etch
Compiling the kernel from source on Debian is actually pretty simple thing to do.
This guide has been tested on standard etch installation but will probably work on other versions and debian-like operating systems. The system is easy to break if not done right, compile and install the kernel at your own risk!
Install required packages
apt-get install kernel-package libncurses5-dev fakeroot wget build-essential
APT tips and tricks
Search installed packages:
apt-cache search package
Get details about a specific installed package:
apt-cache show package