Setting up a production server

1. Create directories: /home/ftp/pub/vncroot and /home/ftp/pub/tftpboot

2. Link these directories to /tftpboot and /vncroot

3. Copy the kernel to /tftpboot, and rename (or link) as vmlinux_vnc.rev4
NOTE: To ensure that older nettroms (ie, 1.3pl3) will boot, the kernel must be in a.out format.
3.1 To set up the tftp server, uncomment the tftp line in /etc/inetd.conf, and at the end, add /tftpboot .
3.2 /usr/sbin/in.tftpd might be broken, in which case you should get an older version

4. Copy /lib /usr /root /var /bin /sbin /dev /etc to /vncroot, and create directories: /vncroot/proc, /vncroot/mnt, /vncroot/mnt/hda1, /mnt/hda2, /mnt/hda3, /mnt/hda4, and /vncroot/tmp

5. Get build tarballs and firmware from a server, and move them to /home/ftp/pub. nw-firmware-version-*.tar.gz is linked to firmware.tar.gz

6. Also, from a server, get the install scripts and related files, and move them to /vncroot/root

(NOTE: If you want to enable the eth100 and parallel checks, you can uncomment, near the end of the install script, in the do_everything sub, the two lines that call the parallel_check and eth100_check. Also, make sure, in the sub menu, that the call to shutdown has a -r. I don't know how stable this is yet though, in this version of the scripts.)

7. In /vncroot/etc/inittab, replace the 1st getty with:
1:12345:respawn:/root/install

and remove the line for the 2nd getty, as it is used by the install script.

8. In /vncroot/etc/rc.d/rc3.d, remove all unnecessary network services:
smb, portmap, snmpd, nfs, httpd, nfsfs, named, network, inet

9. In /vncroot/etc/fstab:
192.168.1.254:/vncroot / nfs defaults 1 1
none /proc proc defaults 0 0
/dev/hda1 /mnt/hda1 ext2 defaults,noauto 1 1
/dev/hda2 /mnt/hda2 ext2 defaults,noauto 1 1
/dev/hda3 /mnt/hda3 ext2 defaults,noauto 1 1
/dev/hda4 /mnt/hda4 ext2 defaults,noauto 1 1

10. /vncroot/etc/hosts contains one entry for the localhost:
127.0.0.1 localhost.netwinder.org localhost

It also contains one entry for every possible ip address on the subnet. You can use this perl script to do the job for you :)

11. In /vncroot/etc/rc.d/rc.sysinit, comment out the fsck line.

12. Get from a production server /etc/dhcpd.conf, /etc/exports, and /etc/hosts (modify hosts as necessary).

13. Reconfigure the network (with nwconfig) to match IP addresses, on eth0:
Domain name server: 192.168.1.254
Gateway: 192.168.1.254
IP Address: 192.168.1.254
Netmask: 255.255.255.0

(eth1 is used to connect to the network, while eth0 is used for the diskless boots)

14. Copy dhcpd.conf, hosts, and exports to /etc

15. run 'chkconfig --level 3 dhcpd on'

16. In /etc/rc.d/init.d/dhcpd, add 'eth0' to the line that starts dhcpd (if you're using more than one network interface).

17. Create the /etc/sysconfig/static-routes file, containing: eth0 host 255.255.255.255

18. Reboot the server. It should now be ready.


Maintained by Patrice LaFlamme (patrix@netwinder.org)