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

Friday, May 21, 2010

Adding USB wireless adapter

If you have a Belkin USB wireless adapter you can follow this to make it work.

lsusb listed my adapter as

USB: 050D:705A Belkin Components F5D7050A Wireless Adapter

Then add a "non-free" component to /etc/apt/sources.list for your Debian version.

deb lenny main contrib non-free

Update the list of available packages, then install the firmware-ralink and wireless-tools packages:

aptitude update
aptitude install firmware-ralink wireless-tools

Necessary module is rt73usb, check if it is loaded with lsmod. If it is not loaded you can load it by writing modprobe rt73usb.

Verify your device has an available interface:


Raise the interface to activate the radio, for example:

ifconfig wlan0 up

You can check the nearby wireless routers by writing

iwlist wlan0 scan

Good Luck

Tuesday, April 27, 2010

Selling my NSLU2...

Hi all,

I decided to sell my NSLU2 for a more powerful new gadget. Asking for $50.
It is underclocked and has 5 usb ports (3 more added by me)
Everything works great, and comes with adapter and ethernet cable.
If interested, leave a comment :)

(Only USA shipping)