This is a rough recipe to install a clean Debian GNU/Linux system which includes NoCatAuth and all of the necessary software to turn a NewCloneArmyBox (or, actually, any spare machine with two network interfaces) into a powerful node.

This document was originally based on a set of rough notes taken by JeffWillard and DarrinEden during a couple of installations in a lab environment, directed by KeeganQuinn, and has since been heavily edited and updated by KeeganQuinn and others.

This process is now considered obsolete; see UsingBuilderHowTo for information on a more automated process based on these steps.

Debian Installation

To begin, you'll need to install the DebianLinux base system on your target box. See DebianLinuxInstallation for detailed information.

After the Base Installation

After working through base-config, you are left at a login: prompt. Log in with the root account you created, then install some basic system software:

apt-get install lynx ssh sudo ssmtp

You will want to add additional user accounts with the 'adduser' command, and give yourself or other users superuser access with the 'visudo' command.

At this point, it is safe to remove the console and CD-ROM drive from the machine, and continue the configuration "headless." This is often useful if you are configuring a batch of machines at one time.

Software installation

You'll want to get a couple of packages to get started.

apt-get install grub wget

Next, install a configuration file which will be recognized by the Debian kernel packages:

cd /etc

Until KeeganQuinn's NoCatAuth packages for Debian are available in the main tree, you'll need to use a secondary APT source, which is included in PTP's sources.list.

cd /etc/apt
rm -f sources.list
apt-get update

At this point, we're ready to install all of the necessary packages.

apt-get install kernel-image-2.4.18-1-k6 snmpd dhcp nocatauth-gateway aide less dnsmasq
apt-get clean

There, that wasn't so bad, was it?

Now, we can remove some unnecessary things. Of them, only lilo is potentially harmful if kept around.

dpkg -P lilo libpcre3 libident libldap2 libsasl7 setserial base-config \
manpages man-db groff-base modconf tasksel pppconfig pppoeconf pppoe \
ppp gettext-base syslinux nano ed info libpcap0

Last, but certainly not least, we need to GRUB set up, and clean out the remnants of LILO and the original installer kernel.

rm /vmlinuz /vmlinuz.old /boot/boot.* /boot/map /boot/*-bf2.4
rmdir /cdrom /initrd /lost+found /mnt /opt
rm -rf /lib/modules/2.4.18-bf2.4
grub-install /dev/hda # (sometimes this is required twice)
update-grub # (enter 'y' at the prompt)
vi /boot/grub/menu.list # (change hd0,0 to hd0,1 and hda1 to hda2)

System Configuration

Finally, you will need to configure any secondary network interfaces, the DHCP server, and NoCatAuth. The relevant configuration files are usually /etc/modules, /etc/network/interfaces, /etc/dhcpd.conf, /etc/nocatauth/gateway/nocat.conf, /etc/default/dhcp, and /etc/default/nocatauth-gateway.

The values you need to change vary between installations, but the relevant configuration files are fairly self-explanitory. Personal Telco also provides all of our working configuration files on the web as examples:

Good luck, and have fun!


[CategorySoftware] [CategoryNuCab] [CategoryDamnYouKeegan]

NewCloneArmyInstallMethodology (last edited 2007-11-23 18:01:02 by localhost)