These are steps used to get my new NSLU2 runningÂ Debian/NSLU2Â then backing up my Fedora Core 7 (soon to be FC8) box.
- Unpack new NSLU2 (slug) and Seagate 250GB external drive. Plug in. Change networking on slug to static IP address on my network. (Much to my surprise, there is an issue with the Seagate FreeAgent external drive with Linux. See here for details about solution.)
- Make sure that I have redboot access in case it’s needed.
- Ready the drive following instructions here.
- Download and re-flash (using this tool) slug with Debian/NSLU2
This is done in a couple of steps, as shown here.
1. Move tar file of base to the drive and unpack.
2. Flash the “etch” binary firmware.
- Reboot, should now have working Debian on NSLU2.
- By default, networking uses DHCP to get its IP address.
edit /etc/hostname to rename the system
edit /etc/network/interfaces, adding:
iface eth0 inet static
Â address 192.168.0.4
Â netmask 255.255.255.0
Â broadcast 192.168.0.4
Â network 192.168.0.0
Â gateway 192.168.0.1
- Follow the “what to do now” section of the page here.
- Do some maintenance:
apt-get install ntp-simple ntpdate
- Enable login via ssh without password using instructions here.Â
- Install necessary packages for rsync and nfs:
apt-get install rsync nfs-kernel-server
- SetÂ rsync toÂ run in daemon mode by editing the appropriate line in
- Create /etc/rsyncd.conf,Â make it look something like this:
uid = root
gid = root
use chroot = yes
max connections = 1
pid file = /var/run/rsyncd.pid
read only = no
hosts allow = 192.168.0.10
hosts deny = *
dont compress *.tgz *.gz *.bz2 *.iso *.jpg *.jpeg *.tif *.tiff *.
- Edit /etc/exports to allow nfs sharing of backup destination directory (/home/backup) by adding a line like this:
Then make sure there is a corresponding line in /etc/fstab on the server to be backed up:
192.168.0.4:/homeÂ Â Â Â Â Â /mnt/snapshotÂ Â Â Â Â Â Â Â nfsÂ Â Â Â defaultsÂ Â Â Â Â Â Â 0 0
- Make sure copy of local_cpio.sh exists in backup destination directory of slug
- Run the snapshot-rotate and snapshot-make scripts from the machine to be backed up.