FreelinkLinkstationPro
From SqueezeboxWiki
FreeLink for Linkstation Pro
Install FreeLink per instructions here: http://nas-central.org/index.php/FreeLink_for_the_Linkstation_Pro#Install Follow the steps through "Cleanup", and you do not need to make customized partitions.
ssh into FreeLink configured Linkstation PRO Free-up disk space as the standard / partition is not big enough for MySQL and Slimserver
cp -Rdp /usr /mnt/disk1/ rm -R /usr ln -s /mnt/disk1/usr /usr
Use apt-get to install the latest Debian updates:
apt-get update; apt-get upgrade reboot
Install MySQL:
apt-get update; apt-get install mysql-server-5.0 # Do not set a root password. # select 'No' when asked to support connections from older versions of Debian.
Upgrade MySQL (required for SlimServer on FreeLink, I used 5.0.45). Use apt-get to get the prerequisite packages installed:
apt-get install gcc make libncurses5-dev g++
Download and compile the mysql 5.0.45 source to /mnt/disk1:
cd /mnt/disk1/ wget http://www.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQL-5.0/mysql-5.0.45.tar.gz
untar the mysql file:
tar -zxvf mysql-5.0.45.tar.gz
compile and install mysql 5.0.45:
cd my*./configure make make install
NOTE: this set of commands takes >3 hrs to complete
Verify that mysql is running by invoking the following command
ps -ef|grep my
It should return several lines to the console. If not, you probably made a mistake, and you might want to completely start over with the LSPRO firmware and formatting the drive (http://www.nas-central.org/index.php?title=FreeLink_for_the_Linkstation_Pro#Restore_a_FreeLink_configured_Linkstation_Pro_back_to_original_firmware)
Run the following commands to further configure mysql:
mv /usr/sbin/mysqld /usr/sbin/mysqld.old cp /usr/local/libexec/mysqld /usr/sbin/mysqld mkdir /usr/local/etc cp /etc/mysql/my.cnf /usr/local/etc/my.cnf
Remove the mysql installation files:
rm /mnt/disk1/mysql-5.0.45.tar.gz rm -R /mnt/disk1/mysql-5.0.45 reboot
Once you log in again, run 'ps -ef|grep my' to confirm mysql is running (see previous note about starting over if it is not running!).
Download the SlimServer deb files:
cd /mnt/disk1 wget http://debian.slimdevices.com/pool/main/libf/libfile-bom-perl/libfile-bom-perl_0.11-1_all.deb wget http://debian.slimdevices.com/pool/main/libr/libreadonly-perl/libreadonly-perl_1.03-1_all.deb wget http://debian.slimdevices.com/pool/main/libe/libenum-perl/libenum-perl_1.016-1_all.deb wget http://debian.slimdevices.com/pool/main/libt/libtie-cache-lru-perl/libtie-cache-lru-perl_0.21-1_all.deb wget http://debian.slimdevices.com/pool/main/libt/libtie-llhash-perl/libtie-llhash-perl_1.003-1_all.deb wget http://debian.slimdevices.com/pool/main/libt/libtie-cache-lru-expires-perl/libtie-cache-lru-expires-perl_0.54-1_all.deb wget http://debian.slimdevices.com/pool/main/libd/libdata-vstring-perl/libdata-vstring-perl_0.000-003-1_all.deb wget http://debian.slimdevices.com/pool/main/libx/libxml-simple-perl/libxml-simple-perl_2.15-1_all.deb wget http://debian.slimdevices.com/pool/main/libx/libxml-xspf-perl/libxml-xspf-perl_0.5.1-1_all.deb wget http://debian.slimdevices.com/pool/main/libm/libmpeg-audio-frame-perl/libmpeg-audio-frame-perl_0.09-1_all.deb wget http://debian.slimdevices.com/pool/main/libn/libnet-upnp-perl/libnet-upnp-perl_1.2.1-1_all.deb wget http://debian.slimdevices.com/pool/main/libd/libdbix-migration-perl/libdbix-migration-perl_0.05-1_all.deb wget http://www.slimdevices.com/downloads/SlimServer_v6.5.1/slimserver_6.5.1_all.deb
Use dpkg to install the SlimServer and related deb files:
dpkg -i libdata-vstring-perl_0.000-003-1_all.deb libdbix-migration-perl_0.05-1_all.deb libenum-perl_1.016-1_all.deb libfile-bom-perl_0.11-1_all.deb libmpeg-audio-frame-perl_0.09-1_all.deb libnet-upnp-perl_1.2.1-1_all.deb libreadonly-perl_1.03-1_all.deb libtie-cache-lru-expires-perl_0.54-1_all.deb libtie-cache-lru-perl_0.21-1_all.deb libtie-llhash-perl_1.003-1_all.deb libxml-xspf-perl_0.5.1-1_all.deb libxml-simple-perl_2.15-1_all.deb slimserver_6.5.1_all.deb
Use apt-get to fix the slimserver dependencies:
apt-get -f install
Once this finishes...wait a ~3 minutes and try to access the webgui http://[linkstation-ip]:9000 from you PC's browser.
If it does not load, then something went wrong!
Remove the slimserver and related deb files:
rm /mnt/disk1/*.deb
Set-up Samba share for music files:
mkdir /mnt/disk1/share/ cd /mnt/disk1/share/ mkdir musiccd music
#make directory for whatever format you use
mkdir mp3mkdir playlists
Open file permissions for the music directories (there are other, more secure options, this is a basic configuration for samba, you can use webmin or swat for more details):
cd /mnt/disk1/share/ chmod -R 777 music
Edit the samba configuration '/etc/samba/smb.conf' (there are other, more secure options, this is the most 'open'). Backup the original file:
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
Then edit '/etc/samba/smb.conf' as follows (everything between <— SNIP —>):
<--- SNIP ---> [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = MSHOME # server string is the equivalent of the NT Description fieldser ver string = Samba Server # Security mode. Most people will want user level security. See # security_level.txt for details. security = share Shared path = /mnt/disk1/share writeable = yes browseable = yes guest ok = yes <--- SNIP --->
Save the file. Restart samba: '/etc/init.d/samba restart'
Install NTP:
apt-get install ntp ntp-simple ntpdate
edit '/etc/ntp.conf':
<-- SNIP --> #restrict default noquery notrust nomodify #restrict 127.0.0.1 #restrict 192.168.1.0 mask 255.255.255.0 #fudge 127.127.1.0 stratum 3 #server 127.127.1.0 driftfile /etc/ntp.drift logfile /var/log/ntp.log server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org <-- SNIP -->
Save the file. Restart ntp:
/etc/init.d/ntp restart'