While working on a custom packet injector for Linux, I had to calculate the network and broadcast IP addresses given an IP address and a netmask. After searching on Google I found that the calculations are some very simple bitwise operations. To get the network address perform a bitwise AND on the IP address and [...]
How to Compress a VMWare Image File
Recently I had to create a vmware image with Debian GNU/Linux that had to be as small as possible because people would have to download it. I started installing Debian “sid” by using debootstrap according to the following instructions: http://www.debian.org/releases/stable/i386/apds03.html.en#id2550848. When I completed the installation and after I removed all the unnecessery packages I had [...]
Debian Package List Backup and Restore
Update: Debian Lenny 5.0 now has support for the option autoremove of apt-get that is able to clean all unused dependencies Curiosity and laziness are the two most important reasons that my system ends up with lots of useless software after a couple months of usage. Many times I want to test drive a program [...]
Debian Minimal Installation for Desktop use
Note: This post was written back when I used to have a Debian GNU/Linux machine as my desktop computer. The Debian version at that time was etch 4.0. Nowadays I have a new shiny MacBook Pro with Mac OS X Leopard that I use as my main work machine so some of the information in [...]