OpenWrt Forum Archive

Topic: [Howto] Slimserver on Asus WL-500gP

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

After a day of messing around, I got Slimserver to run on OpenWRT! I present my notes here, I might possibly flesh them out some more in the following days.

My setup
* Asus WL-500gP
* Kamikaze 7.09
* External usb-drive (HDD)
* One partition of the usb-drive mounted at /opt
* 128 MB swap on usb-drive

Install optware
* See http://forum.openwrt.org/viewtopic.php?pid=59141#p59141

mtgstuber wrote:

I still needed OptWare, so here is what I found.

If you add "src optware http://ipkg.nslu2-linux.org/feeds/optwa … s/unstable "
to your /etc/ipkg.conf
and then ipkg update
and ipkg install ipkg-opt

You can then use ipkg-opt to install optware stuff.
You'll need to add: "src optware http://ipkg.nslu2-linux.org/feeds/optwa … s/unstable "
to you /opt/etc/ipkg.conf file.

You'll also want to remove it from the /etc/ipkg.conf file.

There are also so helpful instructions on this over here:  http://www.nslu2-linux.org/wiki/OpenWrt/HomePage, but please note they reference the wrong repository.

Good luck!

* Edit PATH in /etc/profile:

export PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin

* Create /etc/init.d/optware:

#!/bin/sh /etc/rc.common
START=99
sleep 5

start() {
  i=0
  while [ $i -le 30 ]
  do
    if [ -d /opt/etc/init.d ]; then
      for i in /opt/etc/init.d/S*; do
        $i start 2>&1
      done | logger -s -p 6 -t '' &
      break
    fi
    sleep 1
    i=`expr $i + 1`
  done
}
stop() {
  i=0
  while [ $i -le 30 ]
  do
    if [ -d /opt/etc/init.d ]; then
      for i in /opt/etc/init.d/K*; do
        $i stop 2>&1
      done | logger -s -p 6 -t '' &
      break
    fi
    sleep 1
    i=`expr $i + 1`
  done
}

* chmod 755 /etc/init.d/optware
* /etc/init.d/optware enable

Install MySQL
* ipkg-opt install libuclibc++
* ln -s /opt/lib/libuClibc\+\+-0.2.3.so /opt/lib/libstdc++.so.6
* ipkg-opt install mysql

Install SlimServer
* ipkg-opt install perl-compress-zlib
* mkdir -p /opt/home/slimserver
* ipkg-opt install slimserver
* chown -R slimserver:slimserver /opt/home/slimserver/
* ln -s /opt/init.d/S99slimserver /opt/init.d/K60slimserver
* Edit /opt/etc/slimserver.conf:

# Edit this to suit your setup
SLIMSERVER_USER="slimserver"
SLIMSERVER_GROUP="slimserver"
SLIMSERVER_HTTPPORT=9000
SLIMSERVER_HOME="/opt/home/slimserver"
SLIMSERVER_PREF="/opt/home/slimserver/slimserver.pref"
SLIMSERVER_LOG="/opt/var/log/slimserver.log"
SLIMSERVER_ARGS="  "
SLIMSERVER_EXTERN=yes
SLIMSERVER_START=yes
SLIMSERVER_PIDFILE=/opt/var/lib/slimserver.pid
SLIMSERVER_BIN=/opt/share/slimserver/slimserver.pl
SLIMSERVER_CACHEDIR=/opt/home/slimserver/cache

I hope I haven't forgotten anything. If anyone finds any errors in this howto, please reply in this thread.

Happy listening,
punkt

(Last edited by punkt on 13 Apr 2008, 22:41)

I always get an error:


root@OpenWrt:~# /opt/etc/init.d/S99slimserver start
Starting SlimServerSlimserver failed to run. Return value: 1.
root@OpenWrt:~# cat /hdd/slimserver/slimserver.log
/opt/bin/perl: can't resolve symbol 'gcvt'

Can anyone help?

(Last edited by neixian on 14 May 2009, 02:18)

I wouldn't use optware. Maybe you can test it with 8.09 as well.

Else, a nice howto in the right forum smile

The discussion might have continued from here.