Like every other website on the planet, SmallNetBuilder uses cookies. Our cookies track login status, but we only allow admins to log in anyway, so those don't apply to you. Any other cookies you pick up during your visit come from advertisers, which we don't control.
If you continue to use the site, you agree to tolerate our use of cookies. Thank you!

Router Charts

Click for Router Charts

Router Ranker

Click for Router Ranker

NAS Charts

Click for NAS Charts

NAS Ranker

Click for NAS Ranker

More Tools

Click for More Tools

NAS How To

Finishing Up

Next, we need a way to fire up the server at boot time. We'll make a new script in the normal location for Unslung startup scripts, /opt/etc/init.d/, and call it S99mediaserver. The S99 indicates that it will be one of the last servers to start up at boot time. Here's the content:

#!/bin/sh




# if the server is already running if [ -n "`pidof mediaserver`" ] ; then


# kill it killall mediaserver 2>/dev/null


# give the server time to shutdown sleep 2 fi


# this is all one line, watch for line wraps! ( cd /share/hdd/data/Media; /share/hdd/data/Media/mediaserver -D >/dev/null 2>&1 )

Then mark it as executable:

chmod +x /opt/etc/init.d/S99mediaserver

Next, we'll need to set up the NSLU2 to share our Media directory so that we can add content. For this we'll use the standard NSLU2 configuration screen accessed through the web interface. Go to the Administration/Advanced/Shares menu to add a new share that will point to our media directory.

In this menu, fill out the Properties section. The important item is Location. Use Disk1 and select the Specify radio button. Fill out the location as "/Media/" and hit the Save as new share button (Figure 2).

Setting up a Media share on the NSLU2
Figure 2: Setting up a Media share on the NSLU2

At this point we should have a new network filesystem share that equates to our directory that the media server will use to serve content. Network mount the directory and add some mp3 files, images or video to the appropriate sub folders. If you have any permission errors, consult the NSLU2 documentation to make sure that the appropriate network users have read/write permission.

More NAS

Wi-Fi System Tools
Check out our Wi-Fi System Charts, Ranker and Finder!

Support Us!

If you like what we do and want to thank us, just buy something on Amazon. We'll get a small commission on anything you buy. Thanks!

Over In The Forums

Hi,The 2.4 GHZ wifi is down even if I enable radio under Wireless/Professional.I tried factory resets, different ASUS stock firmware and different Mer...
I've got a question/topic for discussion that is interesting to/bothering me:Why does Entware co-opt the entire "/opt" folder, being that it is just a...
I have an ASUS RT-N66U with Merlin 380.70, the last version for this router. My Rogers package is 150Mbps. My old Dell laptop was getting ~80Mbps. I b...
Called the Philippines to get my router set up as I have a PPOE connection and VLAN 35 to setup VLAN TO WAN SUPPORT for my Bell Canada Home Hub 3000 1...
How can i get IKEV2 IPsec server up and running?I can see only IKEV1 under IPsec advancedThanks

Don't Miss These

  • 1
  • 2
  • 3