Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7

Threaded View

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    3

    Running Slimserver on Asus wl500g premium

    Given: Squeezebox 3, asus wl500g premium, 200Gb Toshiba harddisk + Vipower usb box
    Todo: install and run Slimserver on asus

    MiniFAQ.
    1. Slimserver is very heavy for asus wl500gp since it is php+mysql, but it works and is able to broadcast music continuously – only the reaction on commands is very slow. Now I'm trying to find minimalistic configuration.
    2. Asus setup steps are good described at http://wl500g.info/showthread.php?p=60933
    3. Don’t forget to do “flashfs save && flashfs commit && flashfs enable” or all new programs will be lost after you restart router
    4.The address of my router is 192.168.24.1

    Howto steps:
    1. Firmware. Install Oleg’s custom firmware from wl500g.dyndns.org (forum wl500g.info)
    2. Formatting. Format usb hdd drive using PQMagic (I’ve used PQMagic v.8). Make primary partition of type ext3 and linux swap partition (I’ve made 2Gb swap)
    3. HDD plugging. Connect usb hdd to asus using both usb plugs and make sure that is “started” and isn’t flicking
    4. Installing and configuring slimserver
    Connect to asus via telnet and enter your username/password (admin/admin)
    Code:
    telnet 192.168.24.1
    make sure that asus sees all ext3 and swap partitions:
    Code:
    fdisk -l
    output:
    Disk /dev/scsi/host0/bus0/target0/lun0/disc: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/scsi/host0/bus0/target0/lun0/part1 1 11918 95731303+ 83 Linux
    /dev/scsi/host0/bus0/target0/lun0/part2 11919 24321 99627097+ f W95 Ext'd (LBA)
    /dev/scsi/host0/bus0/target0/lun0/part5 11919 12180 2104483+ 82 Linux swap / Solaris
    /dev/scsi/host0/bus0/target0/lun0/part6 12181 24321 97522551 b W95 FAT32

    update package installer and install slimserver (it will install additional packages such as mysql automatically):
    Code:
    mkdir /tmp/harddisk/opt
    mount -obind /tmp/harddisk/opt /opt
    mkdir -p /opt/tmp/ipkg
    ipkg.sh update
    ipkg.sh install ipkg-opt
    ipkg update
    ipkg install slimserver
    I’ve used the /opt/share/slimserver dir as the slimserver user dir
    make swap
    Code:
    swapon /dev/scsi/host0/bus0/target0/lun0/part5
    create and configure startup file /usr/local/sbin/post-mount (that is automatically started during router booting after it detects usb drives) to bind hdd root to /opt and to make swap after each reboot:
    Code:
    echo "#!/bin/sh" >> /usr/local/sbin/post-mount
    echo "/bin/mount -o bind,sync,noatime,rw /tmp/harddisk/opt /opt" >> /usr/local/sbin/post-mount
    echo "swapon /dev/scsi/host0/bus0/target0/lun0/part5" >> /usr/local/sbin/post-mount
    chmod +x /usr/local/sbin/post-mount
    Save group and password of a new slimserver user
    Code:
    echo "/etc/passwd" >> /usr/local/.files 
    echo "/etc/group" >> /usr/local/.files
    save all installed programs
    Code:
    flashfs save && flashfs commit && flashfs enable
    Make the dir “music” on usb hdd and make it accessible:
    In asus interface:
    Code:
    USB Application | Samba: "Enable Samba Demo mode" and "Enable hidden read-write share". 
     IP Config | WAN & LAN: Host Name in LAN IP Setting “wl500g” 
    Finish (Save&Reboot)
    Primary partition will be available for reading using \\wl500g\share and for writing \\wl500g\share$
    Make dir music in \\wl500g\share$ and copy some mp3 files there (I recommend copy only one album at first since it will take a lot of time to scan a big collection)

    5. Starting slimserver:
    Run slimserver
    Code:
    /opt/etc/init.d/S99slimserver start
    After a while (about 2 minutes) you will see “Slimserver started” message
    Check that slimserver is listening at port 9000
    Code:
    netstat -l
    Slimserver is available at http://192.168.24.1:9000 (and http://wl500g:9000 also). Start it in your browser
    In “Settings” field choose “Server settings” and specify there “Music folder”: /tmp/harddisk/music
    6. Connect Squeezebox to slimserver :
    Choose “Connect to Slimserver” on your Squeezebox and enter it’s IP address (my is 192.168.24.1)
    Then you will see “Connecting to slimserver…” message on Squeezebox. It takes about 1.5 minutes to connect first time.
    Then choose to play some music.

    P.S.Praise to oleo who cross-compiled slimserver and made a package (my task was to configure and test it)
    Last edited by nashb; 2008-02-24 at 12:44.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •