This is how i install Debian lenny at the office on all computers
NOTE: (192.168.2.133) has apt-cacher, my PC 192.168.2.106 has a php script that responds with the caller’s IP
1- Put the Lenny Mini-CD into the computer
2- Follow instructions, when asked about a proxy, the address is http://192.168.2.133:3142/
3-Once done, run
apt-get update
apt-get install ssh openssh-server
4- Finding out our Network IP address, you can simply issue the command
ifconfig
The above will give us the IP address of this pc
5- Now we can go back to the Windows PC and start WinSCP and PUTTY to edit files and do stuff, i use sourceedit as the editor because i want to save any edited file as linux text (Line break is different)
6- connect via putty and WinSCP to the computer so we can edit some files…
7- Fix /etc/apt/sources.list to have the apt-cacher … and comment out the CD
so deb “http://ftp.us.debian.org/debian/ lenny main” becomes “deb http://192.168.2.133:3142/ftp.us.debian.org/debian/ lenny main”
The above lines save internet bandwidth by caching the files on the network
8- Now, we want the PC to request the same IP every time so that we always know how to connect to it.
edit /etc/network/interfaces,
——————————
initially it looks like this
——————————
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
——————————-
But we want it to look like this
——————————–
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.2.112
netmask 255.255.255.0
gateway 192.168.2.1
auto eth0
———————————–
—-DONE—
And now we are probably set to connect to this PC every time (Static Network IP), and to use aptitude without waiting for ages to download the packages from the internet