http://www.cyrius.com/debian/nslu2/unpack.htmlwrite the firmware to the NSLU2, and unpack the new Debian to the usb drive. One change on the new untarred Debian before you boot though, instead of DHCP use a static ip so you know where to ssh.
nano /etc/network/interfaceschange the root password:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.77
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
passwd rootregenerate the SSH key (since the private key is included in the base system on my web page) by running:
rm /etc/ssh/ssh_host*Change your timezone and make it permanent
dpkg-reconfigure openssh-server
dpkg-reconfigure tzdataor you can do this for different users
tzdatathen accordingly, for example
echo "TZ='America/New_York'; export TZ" >> /root/.profilethen keep on updating the clock and upgrade the system.
ntpdate pool.ntp.orgUpgrade your locales
apt-get update
apt-get dist-upgrade
dpkg-reconfigure localeschange the hostname.
/etc/hostnamechange the hostname and domain in the second line.
/etc/hostsAnd some stuff from oldies, I just give the changes in here, if there is any. I guess I became lazy...
Reduce hammering on flash drive and install web server
http://nslu2guide.blogspot.com/2008/12/webserver-installation.html
Install cache for php. Give some breath space to slug
http://nslu2guide.blogspot.com/2008/12/lighttpd-eaccelerator-support.html
Project hosted on a new address:
http://eaccelerator.net/
and configure like
./configure --with-eaccelerator-shared-memory --with-php-config=/usr/bin/php-config --with-eaccelerator-userid=www-data --with-eaccelerator-content-caching
You may want to read-write ntfs drives
http://nslu2guide.blogspot.com/2009/01/using-ntfs-formatted-drives-in-debian.html
Free some memory, reduce startup time etc.
http://nslu2guide.blogspot.com/2009/01/free-more-memory.html
Fine tune slug
http://nslu2guide.blogspot.com/2009/01/fine-tuning-for-your-slug.html
Make slug communicate
http://nslu2guide.blogspot.com/2009/01/if-you-want-to-be-able-to-send-e-mails.html
instead of nail:
apt-get install heirloom-mailx
Protect your privacy
http://nslu2guide.blogspot.com/2009/04/lighttpd-password-protected-folders.html
Take slug to another room
http://nslu2guide.blogspot.com/2010/05/usb-wireless-adapter.html changes:
deb http://ftp.de.debian.org/debian squeeze main non-free