To succesfully setup a cross compilation environment, you should install Debian on a server. I used the free VMware player, using a real server should also work. Download the latest ISO Lenny image and install it.

I allocated a single disc of 40 GB for the OS and the generated executables, used an online mirror to use the latest packages available and specified lenny as the name of the server and hfp as the login of the new user. When asked for the software to install, I used the following default:

[X] Desktop environment
[X] Standard system

VMware settings

Make sure the hfp user has sudo rights:

lenny:/home/hfp# echo "hfp ALL=(ALL) ALL" >> /etc/sudoers

When using VMware, don’t forget to install the VMware tools (select Virtual Machine -> Install VMware tools), then open a root terminal and issue the following commands:

lenny:/home/hfp# cd /usr/local
lenny:/usr/local# tar zxf /cdrom/VMwareTools-8.4.5-324285.tar.gz
lenny:/usr/local# cd vmware-tools-distrib
lenny:/usr/local/vmware-tools-distrib# ./ < /dev/null > /dev/null
lenny:/usr/local/vmware-tools-distrib# reboot

Next: Install packages