NSLU2-Linux
view · edit · print · history

These are some tips to increase available memory under Unslung 6.x.

Disable UPnP

You can free up a small amount of RAM for use by other packages by disabling the UPnP functionality using the web configuration pages. Go to the Administration section for the web interface, and under the System tab, uncheck Enable UPnP Support.

by RobHam, June 2005

Disable support for Maxtor OneTouch USB drives

If, like me, you don't have Maxtor's OneTouch drives you can also disable the built in onetouch software to free even more ram.

You can kill the onetouch_detect software by issuing the command:

killall onetouch_detect

To make this change permanent, but also easy to revert, create a diversion script for rc.quickset. In the /unslung directory, create a file called rc.quickset containing these lines:

#!/bin/sh
/usr/sbin/QuickSet; check_status
/usr/sbin/USB_Detect; check_status
return 0

This script will run the original commands from /etc/rc.d/rc.quickset, except for the onetouch_detect utility.

by slebetman, August 2005

Disable xinetd and FTP support

If you do not use the built-in FTP server available from Unslung (actually, the original FTP server by Linksys) you can stop xinetd and prevent it from starting.

To stop xinted, run

killall inetd

To prevent it from starting at next boot, create a diversion script called /unslung/rc.xinetd with:

#!/bin/sh
return 0

~when I did this, it also disabled my telnet access, leaving me unable to log in and undo this change!

Disable Samba

If you have other uses for your slug and do not need the built-in Samba server, you can disable it using some diversion scripts.

Create a diversion script called rc.samba at /unslung with these two lines:

#!/bin/sh
return 0

Since you are not running Samba, you can also divert other scripts used for maintenance tasks related to it. Create two extra scripts at /unslung, with the same content as rc.samba, called rc.quota and rc.reset_usrgrpshare. This will also make the slug boot a little faster.

After creating these scripts, reboot the slug through the web interface or using the DO_Reboot script.

Disable the Built-in Web Server

You can disable the built-in web server if you comfortable with managing the slug using only a command line shell.

To stop the web server:

killall thttpd

To prevent it from starting at next boot, create a diversion script called /unslung/rc.thttpd with:

#!/bin/sh
return 0

It is worth mentioning that the watchdog script will restart the thttpd process on a regular basis if it is being called from crond, as is the default behaviour. This is documented in the BootSequencePage

view · edit · print · history · Last edited by Neil Ronketti.
Based on work by Neil Ronketti, Michael, fcarolo, betonpolatie, betonpoaltie, mrkzander, and slebetman.
Originally by tman.
Page last modified on June 10, 2009, at 11:44 AM