Goal: To take a working TC USB install and set it up to be netbooted.
From everything I can tell the following steps work, but am looking for some feedback from someone more experienced on if this method could cause any problems before I try and deploy in a larger context:
Absolute basic setup:
- Single network switch (no router) that the following are plugged into:
- One mothership box booted with a TinyCore 4.7.3 LiveCD and the USB flash drive (TC 4.7.3), whose configuration I want to use, plugged in after boot as /dev/sda1
- One client box setup to boot from LAN.
1) LOAD EXTENSIONS NEEDED FOR SETUP (that I put on the USB drive to make life simpler):
- tce-load -i /mnt/sda1/tce/optional/nano.tcz
- tce-load -i /mnt/sda1/tce/optional/advcomp.tcz
2) SET TERMINAL SERVER STATIC IP: sudo ifconfig eth0 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255
3) START BASIC TERMINAL SERVER:
- Click on Control Panel then Terminal Server
- Follow the prompts, using:
- Boot device? /dev/sda1
- First IP? 192.168.0.100
- Last IP? 192.168.0.200
- Netcard to use? eth0
- DNS servers to share?
- Subnet of shared IPs? 255.255.255.0
- Gateway to share? 192.168.0.1
- Any additional boot options? cron (Duplicate the boot options that the USB install has.)
At this point most people can probably boot the client box and it will boot correctly to a TC prompt, however, I needed one tweak to get it working on my hardware:
- Close the Terminal Server and: sudo nano /netboot/udhcpd.conf
- Change the line "option bootfile /pxelinux.0" to "boot_file /pxelinux.0"
4) REMASTER TC WITH USB CONFIG:
- Unpack the core:
- mkdir /tmp/extract
- cd /tmp/extract
- zcat /netboot/core.gz | sudo cpio -i -H newc -d
- Copy extensions and boot list into extract directory:
- mkdir /tmp/extract/tmp/builtin
- cp /mnt/sda1/tce/onboot.lst /tmp/extract/tmp/builtin
- cp -r /mnt/sda1/tce/optional /tmp/extract/tmp/builtin
- Unpack backup into extract directory:
- sudo tar -xvf /mnt/sda1/tce/mydata.tgz -C /tmp/extract/
- Pack up remastered core:
- sudo ldconfig -r /tmp/extract
- cd /tmp/extract
- sudo find | sudo cpio -o -H newc | gzip -2 > ../rmcore.gz
- cd /tmp
- advdef -z4 rmcore.gz
5) START SERVING REMASTERED TC:
- sudo cp rmcore.gz /netboot/core.gz
- Restart Terminal Server and select "n" to use existing config.
I am particularly wondering if mydata.tgz already being unpacked before the extensions are loaded (when a client boots) could cause problems?
Thanks for any thoughts and or points in the right direction.
fodder