![]() |
If the Debian Installer does not support your device (as is the case for the Iomega NAS100d and Freecom FSG-3 currently), you can use debootstrap to install Debian instead. The following assumes that you are starting with some other compatible little-endian operating system on the device (this may be the vendor's firmware, or some other firmware distribution like SlugOS/LE). Partition the hard drive and create filesystemsPartition your hard disk if you haven't already, assuming you have a empty (unpartitioned) drive.
Adjust the partition size to fit your needs. You might have to reboot if fdisk gives you a warning message saying that the partition table could not be re-read. Setup the filesystem and swap:
Mount the hard drive(s) filesystem:
Get and run the bootstrap utility, debootstrapGrab the debootstrap .udeb from a Debian mirror (remember to look for a mirror close to you that carries the
Extract the debrootstrap udeb:
Run debootstrap with your choice of Debian distro and mirror:
Depending on your network connection, this will take at least 50 minutes (even with a broadband connection), because this downloads and installs many Debian packages. Important:
The bootstrap is not completed successfully until the last line is:
Final configurationCopy in some important configuration files:
Notice: you may only needed to copy Mount the proc filesystem:
Now chroot into your new Debian environment for the final steps:
Then select the correct timezone:
Set the date correctly here.
If hwclock doesn't work, then do the following first:
Then save the correct time into the hwclock:
Put a working fstab file into place (you may need to tweak this config and add extra partitions depending on your partition layout):
Edit the inittab file. Type:
For more detailed setup of the network, read man interfaces and edit /etc/network/interfaces. Update the Debian distro and install cron, nslu2-utils and popularity-contest. Popularity-contest reports what architecture and packages you are using back to the Debian community anonymously to help in deciding where to put developer effort. In order to promote nslu2 and arm you are kindly requested to say "yes" to enabling popularity-contest. Notice: you must set the current date before running apt-get update. Otherwise gpg signature checking will fail. To install these packages, type:
Install the latest kernel image:
Copy the kernel and initrd, and use whatever means is usual for your device to flash these files into the appropriate partitions. Now configure the
Now install openssh-server. This takes a couple of minutes, because it will generate the necessary host keys. Install will fail if /etc/shadow is missing. It will also fail if you don't install "adduser-ng" package before installing openssh-server.
To get rid of the annoying LC_ALL, LANG etc. errors when running perl and other apps, install
Finally, type ^D (control-D) or exit to drop out of the chroot done a lot earlier. Unmount your filesystems:
Additional docs
|