Posted in Debian/Ubuntu Hardware Linux NSLU2

Installing Debian on a Linksys NSLU2

January 10, 2008 - 1 comment

1. Grab firmware : http://www.slug-firmware.net/d-dls.php

2. (optional) Install UpSlug2 on your computer : http://www.nslu2-linux.org/wiki/Main/UpSlug2

UpSlug2 is a tool to flash your NSLU2 from a computer on the same network.

This is required if you are reinstalling an already Debianized NSLU2, otherwise you can use the web management on a new unit.

3. Install Debian : http://www.cyrius.com/debian/nslu2/

In order for the install to complete as fast as possible, unselect any package group (even base).. took less than 1 hour to complete that way.

When done (optional) :

4. Reducing memory usage : http://www.cyrius.com/debian/nslu2/reducing-memory.html

/etc/inittab and comment "T0:23:respawn:/sbin/getty -L ttyS0 115200 linux"

5. Follow the useful hints from (scroll halfway down) : http://svn.debian.org/wsvn/pkg-nslu2-utils/trunk/debian/README.Debian?op=file

/etc/default/rcS and set FSCKFIX=yes
/etc/default/bootlogd and enable bootlog

6. In case you’re running the OS from a USB drive (limited write cycles) : http://www.nslu2-linux.org/wiki/HowTo/UseAMemoryStickAsMainDrive

disable MARK logs : /etc/defaults/syslogd and set SYSLOGD="-m 0"
mount / with noatime : /etc/fstab and add option noatime for the / mount point

7. In case the NSLU2 uses a static IP

apt-get remove dhcp*

8. Generate UTF-8 locales

Accents in the filesystem are not displayed correctly (while OK when accessing files remotely)

apt-get install locales
dpkg-reconfigure locales

Select an UTF-8 locales to fix the problem (had to reboot for changes to be taken in account, not sure if there’s a way to avoid rebooting)

9. Emit 3 beeps when NSLU2 has started

apt-get install beep

Edit /etc/rc.local and add :
/usr/bin/leds beep; sleep 1; /usr/bin/leds beep; sleep 1; /usr/bin/leds beep

Comments

Sébastien Wains » Asterisk on the Linksys NSLU2 running Debian

March 17, 2008 - 23:09

[...] My NSLU2 is running Debian Etch. I’ve installed Asterisk from the Debian repositories (apt-get install asterisk), however it’s a memory hog out of the box. When (re)starting Asterisk, the load average would go up to 10. [...]

Leave Comment

Please consider visiting the partners below if you enjoyed this article :

If this post saved you time and money, please consider checking my Amazon wishlist.

Before submitting, some rules :
- Is your comment related to the article ?
- You're having a problem ? Have you checked Google, other howtos, docs, manpages ?
- You're still having the problem ? Have you raised log verbosity, checked traces, ran tcpdump ?
- Have you checked your configuratoin for typo ?
Unless your comment is providing additional info or respect the rules above, DON'T comment.
If you don't understand what you are doing, I urge you to read the documentation, I'm not your free Level 1 helpdesk guy.