Personal tools
You are here: Home Members gillesgigan Sensor Gateway Setup from scratch with Debian 4.0
Document Actions

Setup from scratch with Debian 4.0

by Gilles Gigan last modified 2007-11-23 16:40

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 with
SCREEN_FONT=lat9w-08
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
Edit /boot/grub/menu.lst and replace
# 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 g
Edit /etc/default/halt and set:
NETDOWN="no"

Add sensor_user

useradd -m sensor_user
passwd sensor_user
optional: add sensor_user to sudoers with visudo and add "sensor_user ALL=(ALL) NOPASSWD: ALL"

Install CCACHE

apt-get install ccache
echo 'export PATH="/usr/lib/ccache:$PATH" '>>/etc/profile
exit

Re-compile the kernel


Follow these steps.



Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: