Friday, October 19, 2012

Debian Squeeze on NSLU2

After a very long time, I am updating the system and installing everything all over again. Here is the list of commands from ground up for those interested and for me to reference in the future. Installation of Debian is unpack "style" from now on. You can read the steps here. IN fact it is much faster this way. Follow the easy steps in here
write 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/interfaces
# 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
change the root password:
passwd root
regenerate the SSH key (since the private key is included in the base system on my web page) by running:
rm /etc/ssh/ssh_host*
dpkg-reconfigure openssh-server
Change your timezone and make it permanent
dpkg-reconfigure tzdata
or you can do this for different users
then accordingly, for example
echo "TZ='America/New_York'; export TZ" >> /root/.profile
then keep on updating the clock and upgrade the system.
apt-get update
apt-get dist-upgrade
Upgrade your locales
dpkg-reconfigure locales
change the hostname.
change the hostname and domain in the second line.
And 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

Install cache for php. Give some breath space to slug
Project hosted on a new address:

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

Free some memory, reduce startup time etc.

Fine tune slug

Make slug communicate
instead of nail:
apt-get install heirloom-mailx

Protect your privacy

Take slug to another room changes:
deb squeeze main non-free


  1. "You can read the steps here."? I think tha one link is missing, maybe

  2. Yeah, I kind of hurried on this post. Most of the stuff from 2 years back works with a few changes though. I updated the link on the post. Thanks Carlos.