Setup from scratch with Debian 4.0
Step-by-step guide to setup a sensor gateway running Debian 4.0
Debian installation
Software installation
Change the console font
Edit /etc/console-tools/config and replace the bottom lines withSCREEN_FONT=lat9w-08Edit /boot/grub/menu.lst and replace
SCREEN_FONT_vc2=lat9w-08
SCREEN_FONT_vc3=lat9w-08
SCREEN_FONT_vc4=lat9w-08
SCREEN_FONT_vc5=lat9w-08
SCREEN_FONT_vc6=lat9w-08
# defoptions=with
# defoptions=vga=0x0F07
Disable unused services in runlevel 2
cd /etc/rc2.d
mv S18portmap K82portmap
mv S20exim4 K80exim4
mv S20openbsd-inetd K80openbsd-inetd
mv S21nfs-common K79nfs-common
mv S89atd K11atd
Check network settings
cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.XX
netmask 255.255.255.0
gateway 192.168.0.YY
cat /etc/resolv.conf
nameserver A.B.C.D
route -n
...
Add snmp tools, tcpdump, ssh server, ethtool, subversion
apt-get install snmp tcpdump openssh-server ethtool subversion ntp vim psmisc sudo bzip2
Setup NTP: add "server ntp.jcu.edu.au" to /etc/ntp.conf and run /etc/init.d/ntp restart
Turn on WakeOnLAN
Edit /etc/rc.local and add:
ethtool -s eth0 wol gEdit /etc/default/halt and set:
NETDOWN="no"
Add sensor_user
useradd -m sensor_useroptional: add sensor_user to sudoers with visudo and add "sensor_user ALL=(ALL) NOPASSWD: ALL"
passwd sensor_user
Install CCACHE
apt-get install ccache
echo 'export PATH="/usr/lib/ccache:$PATH" '>>/etc/profile
exit
Re-compile the kernel
Follow these steps.