- Thomas' Webjar full of joy -
| description: | Nothing interesting really, I should really clean this up |
|---|---|
| Author: | Thomas Langewouters |
My old server functioned as an internet gateway and DHCP and masquerading DNS server. The last two are not necessary, but it's always easy if you just have to plug you cable into the lan, and don't have to configure you network adapters. It also ran an apache web server, to provide an interface to some functions.
First I set up a base Debian system (didn't have to change much of the default configuration). Then I made some modifications.
mke2fs -j /dev/hda3 mv home home-tmp mkdir home fstab-update mount /home mv home-tmp/* home/
edit /etc/issue /etc/issue.net /etc/motd adduser thomas, simon, gift edit /etc/passwd, login shell for simon & gift=/bin/false
ipmasq ssh: enable sshd, use ssh2, PermitRootLogin no dnsmasq: /etc/default/dnsmasq; DNSMASQ_INTERFACE="eth1" uncomment #DHCP_LEASE dhcp cp oldetc/dhcpd.conf /etc/dhcpd.conf samba use encrypted passwords, create smbpasswd
maketools:(aptget them) gcc binutils build-essential make kernel: apt-get install kernel-package ncurses-dev wget bzip2 unpack tarball make menuconfig make dep make-kpkg clean && fakeroot make-kpkg --revision=custom.1.0 kernel_image dpkg -i kernel-??.deb
(Looking back this aide setup seems foolish?)
apt-get install aide (put blank floppy in fd0) mke2fs /dev/fd0 mount /floppy cp /var/lib/aide/aide.db.new /floppy/aide.db cp /usr/bin/aide /floppy cp /etc/aide/aide.conf /floppy #!/bin/bash /floppy/aide --config:/floppy/aide.conf -C -> /floppy/check.sh #!/bin/bash /floppy/aide --config=/floppy/aide.conf --update mv /floppy/aide.db.new /floppy/aide.db sync -> /floppy/update.sh umount /floppy (put write protect on) remove user,noauto from /floppy/ entry in fstab mount /floppy
note: When I tried to run ./configure, the compiling tools appeared not to be installed, if you have the same problem, run "apt-get install gcc binutils build-essential make"