Other Hardware

Wiki Resources

Sponsored Links

Debian/NSLU2 FAQ

This is a page of frequently asked questions for NSLU2. Please see the Troubleshooting page for troubleshooting tips. A few of the items that previously existed on this page have been moved to the Troubleshooting page.

If you are using Debian on you NSLU2, you should probaly use the Debian lists. For details see:

How do I get a copy of my currently flashed image ?

How can I reduce the memory footprint of my Debian install ?

Debian-Etch comes with two Network sharing protocol's enabled by default and if you then add SAMBA thats a total of three

Netatalk

NFS

If you are not planning on communicating with Apple shares/printers consider removing the netatalk package. You will free 4 Mb of RAM. Likewise if you are not planning on sharing out files via NFS, this service should be disabled. You can follow the procedure below, or use rcconf (apt-get install rcconf).

How do I change the function of the power button on the NSLU2 to shut the system down as opposed to rebooting it?

Replace the line the /etc/inittab

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

with

ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now

remember to run

telinit q

to reload the file

How do I know why my NSLU2 failed to boot when I have no console?

Attach the USB stick/drive to another computer and check the logs in <path-to-USB-drive>/var/log. You can also edit the configuration files to implement a fix.

Why isn't my real time clock keeping time?

The NSLU2 will not keep time with the Debian 2.6.17 kernel. The problem has been fixed in 2.6.18, which is the Linux kernel that is shipped with Debian GNU/Linux 4.0 (etch). If for some reason you can't upgrade your kernel, you can temporarily fix the problem without by using tickadj to set the kernel ticks to 10101. You need to do this every time the NSLU2 is turned on.

Note by titioft: I have the latest RC2 Debian kernel "2.6.18-5-ixp4xx #1 Sun Dec 23 05:17:39 UTC 2007 armv5tel GNU/Linux" the problem is not fixd. Adding tickadj parameter did not change the problem; I am gaining 10 minutes every 1 1/2 day. My NSLU is runnign realtime monitoring of my utility meter and manage my X10 Home automation system. Time is a critical feature in such an environment (like starting your coffee machine at 7am etc....). I have my ntp dameon running all the time. But it does not sync time that often.... When I shutdown restart the ntp dameon it syncs and put time back on. Any idea where i can find progress on this? -- Please use the mailing list to report problems and ask for help.

Why is apt-get returning a segmentation fault?

If apt-get quits with a 'Segmentation Fault', remove the APT cache files in /var/cache/apt.

rm -rf /var/cache/apt/*.bin

Then rerun apt-get again. This problem was caused by a bug in the Debian kernel and has been fixed in the kernel source version 2.6.18.dfsg.1-9. See Debian bug #401980 for more information.

How can I avoid swapping / beating up my flashdrive?

The default debian install doesn't know that you only have 32 MB of RAM, so to save memory, you can tweak what you're running by default. One place to do this is in inittab - comment out the getty running on the serial port, and comment out the virtual terminal gettys. Also, if you chose Fileserver as an install option, be aware that you're automatically running NFS, Samba AND Appletalk - surely you can disable some or all of them. I did this, and was able to run my Slug w/no swap enabled. Make sure you disable ipv6 if you don't need it, and check `lsmod` output to see if there's crud in there that you don't need.

If you install to flash, you'll want to spare it as many writes as you can, so mount it with the 'noatime' parameter. Set the syslog defaults in /etc/default to "-m 0" to disable periodic MARK entries to the file. Specifically, add "SYSLOGD="-m 0" to /etc/default/syslogd.

How do I get X applications to correctly forward over SSH to my X server with Debian/NSLU2 ?

To make X forwarding work, you need:

An X server on your local machine

Access to the X server from your ssh client (running it in an xterm works)

You need to connect to the NSLU2 with ssh -X (you must specify -X or it won't work; you may be able to get around this by changing one of ssh's configuration files)

You need xauth installed on the NSLU2 (it's in xbase-clients Debian package so do apt-get install xbase-clients as root)

Now, just ssh -X user@NSLU2_IP_ADDRESS should allow you to re-display Xwindows applications to your X server.