Squeezebox Server

Make the filesystem writeable

remountrw

Install the software

apt-get update
apt-get install logitechmediaserver

Make a swap file

dd if=/dev/zero of=/media/music/swap bs=1024 count=131072
mkswap -f /media/music/swap
swapon /media/music/swap

http://www.tldp.org/HOWTO/Partition/setting_up_swap.html

root@voyage:/var/lib/squeezeboxserver# cat /etc/fstab
#/dev/hda1       /       ext2    defaults,noatime,rw     0       0
proc            /proc   proc    defaults                0       0
tmpfs                   /tmp    tmpfs   nosuid,nodev                    0               0
#tmpfs           /rw     tmpfs   defaults,size=32M        0       0

### internal hard disk 320GB ###
/dev/hdb1 /media/internal ext3 defaults 1 1

### swap directory for squeezebox ###
/media/internal/swap swap swap defaults 0 0

Move the squeezebox cache and prefs files to the hard disk and create symbolic links to them. Otherwise changes to the database or preferences won’t be saved in the compact flash readonly filesystem.

ln -s /media/internal/squeezeboxserver/cache /var/lib/squeezeboxserver/cache
ln -s /media/internal/squeezeboxserver/Plugins /var/lib/squeezeboxserver/Plugins
ln -s /media/internal/squeezeboxserver/prefs /var/lib/squeezeboxserver/prefs

Three symbolic links. Make sure user:group is squeezeboxserver:nogroup for all squeezebox files.

root@voyage:/var/lib/squeezeboxserver# ls -al
total 8
drwxr-xr-x  2 squeezeboxserver nogroup 4096 Dec  6 10:24 .
drwxr-xr-x 22 root             root    4096 Dec  5 18:44 ..
lrwxrwxrwx  1 squeezeboxserver nogroup   38 Jan 11  2001 cache -> /media/internal/squeezeboxserver/cache
lrwxrwxrwx  1 squeezeboxserver nogroup   40 Dec  6 10:24 Plugins -> /media/internal/squeezeboxserver/Plugins
lrwxrwxrwx  1 squeezeboxserver nogroup   38 Jan 11  2001 prefs -> /media/internal/squeezeboxserver/prefs

Configure Youtube plugin (12/11/2015)

Get YouTube API access key from https://console.developers.google.com

Add repository to SB Plugins http://sourceforge.net/projects/lms-youtube/files/dev/repo-sf.xml

Add https line to /usr/share/perl5/Slim/Player/ProtocolHandlers.pm (https://github.com/hechtus/squeezebox-googlemusic/issues/43)
my %protocolHandlers = ( 
    file     => qw(Slim::Player::Protocols::File),
    http     => qw(Slim::Player::Protocols::HTTP),
    https    => qw(Slim::Player::Protocols::HTTP),
    icy      => qw(Slim::Player::Protocols::HTTP),
    mms      => qw(Slim::Player::Protocols::MMS),
    spdr     => qw(Slim::Player::Protocols::SqueezePlayDirect),
    playlist => 0,
    db       => 1,
);
Advertisements