ARM9, Buffalo LinkStation Live, Buffalo Network-Attached Storage Series, Java (programming language), LinkStation, Logitech, Logitech Squeezebox Server, Open Source Software, Operating System, Personal Computer, Shared Resource, Squeezebox (network music player), Squeezebox Server, SqueezeCenter, User Interface
How to Install SqueezeCenter on a Buffalo LinkStation Live, part 2
I’ve been running SlimServer/ SqueezeCenter/ Logitech Squeezebox Server for a number of years now on an old Pentium 4 box running Linux. Recently, I decided to simplify things and reduce my carbon footprint by putting SqueezeCenter on a Buffalo LinkStation Live V2. This is the second of a two-part tutorial that explains in some detail the steps taken to achieve this goal.
It should be noted that this isn’t for the faint-hearted because you can “brick” (that is, render your LinkStation useless) if you do the wrong thing. However, with the steps outlined below you should be able to revive your LinkStation since the original bootloader isn’t replaced with a non-standard firmware. Nonetheless, it is your decision to try this and your responsibility if things don’t go according to plan. Before you proceed, do your research thoroughly by reading everything here and visiting the reference sites listed.
In summary, the following needs to be done to get SqueezeCenter working on you LinkStation:
- Update the stock firmware to the most recent version;
- Unlock the stock firmware using a Java utility;
- Set-up ssh, optional files and fixes;
- Install Optware for the ARM9 processor, set-up ssh and add some start-up scripts;
- Install SqueezeCenter.
The first two steps are addressed in part 1. The remaining steps are done using a couple of simple scripts.
It’s worth noting that performance is not as good as that of a PC, which isn’t really surprising given the processor and memory of the LinkStation, but it is satisfactory with some 500 or so albums (around 6,000) songs. Control through a Squeezebox is responsive with only a brief delay before entering the Music Library, Artists etc. The Web interface is a little slow but quite acceptable (I suspect this has more to do with the SqueezeCenter software that the performance of the LinkStation.)
Set-up ssh and install SqueezeCenter
The following steps are based in part from a instructions on NAS-Central.
What’s required:
- A script that will make all the necessary changes to your LinkStation. Download this and save it to your LinkStation’s shared folder, e.g. \\192.168.1.150\share (wget should be available if you installed the addons package with acp_commander.) Note: See my Projects Files page for all the files.
Step 9. Using your open telnet session type:
$ cd /mnt/disk1/share $ wget http://dl.dropbox.com/u/21798916/linkstation.sh $ sh linkstation.sh
Check the output for any errors. You should see something along the lines of:
<abridged> Successfully terminated. Creating /opt/etc/ipkg/cross-feed.conf... Setup complete.
If the script terminated correctly proceed to the next step. Note: next time you access BASH you’ll need to use ssh.
Step 10. Install SqueezeCenter:
$ wget http://dl.dropbox.com/u/21798916/squeezecenter.sh $ sh squeezecenter.sh
Downloading and installing SqueezeCenter takes a while (around 10 minutes) so be patient. Check for errors and then proceed to the last step.
Step 11. Open your favourite Web browser and set-up SqueezeCenter:
http://192.168.1.150:9000/
Follow the start-up wizard and set-up SqueezeCenter, i.e. load your music library and playlists. That’s it!
I’ve not tested this part as fully as I’d like (ideally I’d restore the LinkStation to its factory state and start over) but reckon it works just fine. If you have any problems let me know and I’ll help out. Tested on a LinkStation Live V2 HS-DH500GL.
From → Open Source Software, Other Ramblings

This is an awesome description. Just did it with nothing else than downloading and executing the scripts (Linkstation was SSH’ed before). No problem, but it took about half an hour (slow download speed) to install squeezebox. So be patient.
Thanks Martin!
One thing I stumbled across after installation succeeded:
I couldn’t call /bin/ps anymore. When I called ps sth like “sh: /bin/ps: cannot execute binary file” was returned. I have had the busybox version of ps installed. As I searched a bit along I found that there’s also a full version of ps available. I installed it and everything is fine again.
Here’s the link to the full version of ps:
http://buffalo.nas-central.org/index.php/Open_Stock_Firmware#Full_version_of_ps
Same here. I’ve amended linkstation.tar to include the correct version of ps.
Thanks.
Do you guys think this has a chance to work on a LinkStation Pro Duo or am I having wishful thinking?
Thanks for the instructions!
Hi, been in Haute Vienne for a couple of weeks…
The LinkStation Pro Duo is an ARM9 processor (see http://buffalo.nas-central.org/wiki/Category:LS-WTGL/R1) and you can get SSH access using acp_commander (see http://cpradio.org/personal/linkstation-pro-duo-enabling-ssh/) so it’s quite possible that you can install Optware and subsequently SqueezeCenter. However, you would have to work things out for yourself as my guide is for the LinkStation Live version 2 only. I’ll help if I can. Send me a PM via the contact page.
So I confirmed that it does not work. Acp_Commander can be install without any problem. But if you install the Optware, everything seems to be working until the LinkStation restarts. The array somehow gets damage and cannot be repair unless you forcefully reinstall the original firmware and recreate the partitions (even formatting the disk will not suffice) – Yes, that means good bye data… –
I did many install scenari, use Raid0 instead of Raid1, installing one piece of software at the time and rebooting the machine and finally trying to restore the array with some professional software. For some reason, none of the super blocks survive the install of the optware. I think it might be due to the size of the application installed (although this is just a gut feeling, not a truly verify assertion) that may create some problem on the may partition…
in conclusion… Don’t do that on the Buffalo Pro! Especially (like I did) without backing up the data thinking that the raid will protect them!
Good instruction.
I couldn’t start “Rescan Music Library”.
So, I needed some posttreatment.
Brian Zhou’s comment
Thank you.
Thanks Martin for your work in helping me to get Squeeze set up. I got as far as the telnet command to download your first script “linkstation” but that was not “discovered”. I have managed to install wget and other addons, so the process worked smoothly til then. I have now set up the Buffalo with a IP address relevant to our router, your settings arent available to us, 192.168.0.
Could this have affected the script?
Regards
Patricia
It sounds like you’re having problems connecting to the Internet via the LinkStation. Once you’ve opened the stock firmware and can use ssh the LinkStation should be rebooted to pick up your original network settings (as defined on the Network -> IP Address Properties page of the LinkStation Web interface.) Your default gateway is probably 192.168.0.1 and the LinkStation something like 192.168.0.2.
Once rebooted use ssh (or PuttY) and issue ifconfig on the command line. You should now see output similar to the following:
$ ifconfigeth0 Link encap:Ethernet HWaddr 00:16:01:C5:F5:C0
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29001366 errors:0 dropped:0 overruns:0 frame:0
TX packets:19708154 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:512
RX bytes:1302370670 (1.2 GiB) TX bytes:2778392338 (2.5 GiB)
Interrupt:21
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:69380 errors:0 dropped:0 overruns:0 frame:0
TX packets:69380 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17200583 (16.4 MiB) TX bytes:17200583 (16.4 MiB)
If the IP addresses match what you expect try wget once again. Please let me know how you get on by post here or sending me a PM.
…and for the default route:
$ route -nKernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth
Hi, this might be a stupid question, but I just want to check before I shell out for one…
If I install SqueezeCenter on the Linkstation do all the other services still work at the same time – DLNA Server, BitTorrent, Print Server etc?
I’d like to use it as a media server for my PS3 too you see…
Thanks for any info you can give.
N.
I don’t see any reason for them not to work as the stock firmware is intact. I can’t give absolute assurance here as I don’t use print, DNLA or BitTorrent.
If you buy, make sure you get the LinkStation Live V2 (or visit NASCentral for advice on other versions.
Amazing outline and many thanks for putting this out there. I think I am almost there, but get an error during the optware installation part of the process which I think I have traced to the linkstation,sh line “wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-5_arm.xsh“. This returns a broken link when I run the script and when I manually try to link to the file. Any ideas on how I can correct this?
Use wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-7_arm.xsh.
Hi,
Thanks for the guide, managed to get this installed on my LinkStation.
However I have just brought a Squeezebox Radio that requires version 7.4 of the squeezebox server.
Any ideas how I would go about upgrading this?
Thanks
Presently version 7.4 isn’t available for ARM9 (see http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/.)
I’m frustrated with neither 7.4 nor 7.5 still not being available for the Buffalo NAS. Any idea if this will happen? Otherwise, I’ll buy a Netgear NAS next weekend!
Thanks
SqueezeCenter isn’t officially supported on the Buffalo LinkStation. SqueezeCenter 7.3.3 is available because of community contributions. The 7.3.3. terminal release is stable and (as far as I can see) differs from 7.4 and 7.5 in a few areas only. Most notably it doesn’t support Squeezebox Touch and Squeezebox Radio. Check the Release Notes and see if you really need 7.5 and a new NAS.
Hi,
I installed Squeezecenter following your guide. It was working perfect last months up to yesterday. What ever went wrong the slimserver stopped and cannot be started again: return value 2. I did not change anything at the linkstation. What can I do? Re-installation did not work.
Thanks, Seb.
How did you do the re-installation? If you used my script that won’t work. First you need to remove the SqueezeCenter package:
$ /opt/bin/ipkg remove squeezecenterExcellent detailed post however I have a query
Is it possible to install Squeezecenter on a modified firmware like the StevieWonder modified firmware?
Any clues where I need to start.
I don’t know anything about this firmware. If it’s based on the stock version then you may be able to install optware and then SqueezeCenter. However, you’ll have to do that from scratch; I wouldn’t recommend using my scripts.
Thanks for that, worked pretty well on my linkstation pro duo, although it has an ‘array1′ rather than a ‘disk1′ which required a minor change at an early stage.
best,
antoin.
Please post the exact model number. It may help others install this on the LinkStation Pro Duo. Thanks.
Hi Martin,
thanks for your instructions. I followed it with my LinkStation Live (300GB) running firmware 2.11
Everything seemed to work fine, except for the fact that starting the slimserver failed with error “2″
I could read in the slimserver.log that Slim/Music/Import.pm was missing and renamed an existing Import.pm.old into Import.pm. After that Slimserver started with a happy “SlimServer deamon started ok. PID is 14271″
Unfortunately I am unable to set-up Squeezecenter since I cannot log on. I always get a “404 Not found” at port 9000
Any guess what went wrong?
Thanks
Check you have the correct URL, e.g. http://192.168.0.2:9000.
Also, note that the installation wasn’t completely successful; Import.pm (plus other files) should be replaced during the installation.
Hi Martin,
first of all a great thanks for your very good installtion guide, which worked properly good.
But now I have the same problem Andy told, some days ago. My squeezecenter log says the following to me:
[09-12-23 00:10:47.1409] main::init (270) Starting SqueezeCenter (v7.3.3, r27044, Mon Jun 15 15:04:06 PDT 2009)
[09-12-23 00:10:47.1377] main::init (270) Starting SqueezeCenter (v7.3.3, r27044, Mon Jun 15 15:04:06 PDT 2009)
091223 0:10:48 [Warning] Can’t create test file /opt/share/squeezecenter/MySQL/music/cache/MySQL/FAM_DUCHOW.lower-test
091223 0:10:48 [Warning] Can’t create test file /opt/share/squeezecenter/MySQL/music/cache/MySQL/FAM_DUCHOW.lower-test
/opt/share/squeezecenter/Bin/mysqld: Can’t change dir to ‘/opt/share/squeezecenter/MySQL/music/cache/MySQL/’ (Errcode: 2)
091223 0:10:48 [ERROR] Aborting
091223 0:10:48 [Note] /opt/share/squeezecenter/Bin/mysqld: Shutdown complete
[09-12-23 00:11:21.7648] Slim::Utils::MySQLHelper::createSystemTables (442) FATAL: Couldn’t connect to database: [Can't connect to local MySQL server through socket 'music/cache/squeezecenter-mysql.sock' (2)]
The problem is, that I don’t know how to solve this problem. I had no errors while installing the squeezeserver and at the end it says “Starting SqueezeCenter…
Starting SlimServerSlimserver daemon started OK. PID is 22589.
That all folks”
But i’m not able to connect to the webinterface browsing to http://192.168.2.104:9000 – I got the error-message “site is unavailable”
Kind Regards
Daniel
This is usually a permissions issue. The MySQL server cannot create the temporary file and therefore SqueezeCenter won’t start. Check that the folders are present (“Can’t change to dir…”) and permissions correct.
root@SAIMIRI:~# cd /opt/share/squeezecenter/MySQL/
root@SAIMIRI:/opt/share/squeezecenter/MySQL# ls -Flai
393124511 drwxr-xr-x 2 root root 96 Jul 23 22:31 ./
1124073600 drwxr-xr-x 14 root root 4096 Jul 23 22:36 ../
393124512 -rw-r--r-- 1 root root 19423 Jun 15 2009 COPYING
393124513 -rw-r--r-- 1 root root 582 Jun 15 2009 README
393124514 -rw-r--r-- 1 root root 25829 Jun 15 2009 errmsg.sys
393124527 -rw-r--r-- 1 root root 343517 Jun 15 2009 errmsg.txt
393124528 -rw-r--r-- 1 root root 970 Jun 23 2009 my.tt
393124529 -rw-r--r-- 1 root root 12388 Jun 15 2009 system.sql
Hi Martin,
i have tested the command you wrote, but the result of the list-command was equal to yours. Here is the output of the list-command:
root@FAM_DUCHOW:/opt/share/squeezecenter/MySQL# ls -Flai
587210402 drwxr-xr-x 2 root root 96 Dec 23 00:08 ./
1325400208 drwxr-xr-x 14 root root 4096 Dec 23 00:10 ../
587210403 -rw-r–r– 1 root root 19423 Jun 16 2009 COPYING
587210404 -rw-r–r– 1 root root 582 Jun 16 2009 README
587210405 -rw-r–r– 1 root root 25829 Jun 16 2009 errmsg.sys
587210406 -rw-r–r– 1 root root 343517 Jun 16 2009 errmsg.txt
587210407 -rw-r–r– 1 root root 970 Jun 23 2009 my.tt
587210408 -rw-r–r– 1 root root 12388 Jun 16 2009 system.sql
What else can I do, to get SqueezeboxCenter running on my NAS.
Thanks in advance
Daniel
Again, this looks like a permissions problem. SqueezeCenter aborts because it “Can’t create test file…”, “Can’t change dir…” etc.
SqueezeCenter aborts because /opt/share/squeezecenter/MySQL/music/cache/MySQL/ does not exist. So it looks like something went awry when installing. Or, have you previously installed/ tried to install SqueezeCenter?
Also, make sure you followed step 10. To check, see if you have the following two files in /opt/share/squeezecenter:
scanner.pl
scanner.pl.old
scanner.pl should include the following line (with comment.)
# Slim::Schema->storage->dbh->{‘AutoCommit’} = 0;
Hi Martin,
thankyou for putting together such an excellant description of how to install squeezecentre on a Buffalo Linkstation Live! I followed your instructions a few months ago and it worked without a hitch. I was so pleased to be able to access my music library directly from the NAS. Unfortunately, a few weeks later I had a problem where I had to re-flash the firmware in order to get out of the EM mode. After this, Squeezecentre did not work.
Following the posts on this page, I followed your suggestion of first removing the squeezecenter package using the command
$ /opt/bin/ipkg remove squeezecenter
Followed by
$ wget http://martinwebster.eu/projects/squeezecenter.sh
$ sh squeezecenter.sh
This seems to install ok but I also get the same error message as Sebastian…return value 2
Do you have any idea or suggestions on how I can clean up a previous installation before running your scripts again. I would really like to get Squeezecenter running but I don’t know enough about linux to identify the problem
p.s. I also had to edit the linkstation.sh script to replace
wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-5_arm.xsh
with
wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-7_arm.xsh
Subsequent references to spro-bootstrap_1.2-5_arm.xsh were also updated to spro-bootstrap_1.2-7_arm.xsh and this seemed to solve the error about a missing file
You most probably have a permissions problem. Try removing SqueezeCenter again and then manually remove the folders in /opt/share before trying to install again using /opt/bin/ipkg install squeezecenter (you don’t need to run the whole script.) Make sure you have a copy of squeezecenter.tar and then do the following:
mv /opt/share/squeezecenter/Slim/Music/Import.pm /opt/share/squeezecenter/Slim/Music/Import.pm.old
mv /opt/share/squeezecenter/scanner.pl /opt/share/squeezecenter/scanner.pl.old
mv /opt/share/squeezecenter/CPAN/DBI.pm /opt/share/squeezecenter/CPAN/DBI.pm.old
tar -xv -f squeezecenter.tar -C /
Finally:
/opt/etc/init.d/S99squeezecenter start
HTH
Hi Martin,
thank you for replying so soon. I understand your instructions but before I continue, can you tell me where I should get the squeezecenter.tar from. Is it already downloaded when I run
$ /opt/bin/ipkg install squeezecenter
or is it something I need to download manually? Sorry if this is a silly question.
Best regards,
Nick
Hi Martin,
sorry, please ignore my previous question. I realised the location is:
$wget http://martinwebster.eu/projects/squeezecenter.tar
After working through your suggestion, I am pleased to report that the installation seemed to work o.k. When I ran the final command;
$ /opt/etc/init.d/S99squeezecenter start
I was rewarded with the following message
Starting SlimServerSlimserver daemon started ok. PID is 13787
I can also confirm that Squeezecenter starts in my browser.
Thank you for your help and advice with this. I couldn’t have done it without your suggestions.
Cheers,
I have installed SqueezeCenter on my Buffalo NAS and it appeared to start OK but when I followed the instructions “Follow the start-up wizard and set-up SqueezeCenter” the musuc is in a share called “share” in two directories “flac” and “mp3″ But I didn’t see any sub-drectories to select, but I can see them through windows explores any ideas?
I’m not sure I understand your question. Could you see the some folders or none?
I could see the top level folders, e.g. share, where the was also a + but clicking on the + you could not see the subdirectories. It is one of thes subdirectories that contains the music files. Also asking the squeeze center to search for music if finds nothing.
Is there a way of setting the default share and directory path post installation?
Hi Martin,
Many thanks for the work you have put into this… I have 5 Linkstations all running different software for different purposes
One of which is running Slimserver – I really wish I hah your simple install a couple of years back! I had to plod through manually – It took me best part of 2 days solid to get it working satisfactorily!
One question though – Do you not advise increasing the default Linux partition sizes?
From experience I would certainly recommend increasing the swap partition size as when Slimserver is running it is very memory hungry – I used to have MySQL problems indexing a large music collection relating to a lack of memory…
Anyway just thought I would drop a line to say thanks!
All the best
Melvyn
Under Basic Settings, clicking on Browse should launch a pop-up windows with the entire file system listed. If you can’t browse subdirectories check your browser (JavaScript required.) Alternatively, type the full path in the box and test using one or two albums to test.
Thanks for your feedback; it’s appreciated.
You raise a good point. I agree it’s probably a good idea. My original objective was to install SqueezeCenter without changing the stock firmware/ file system.
However, I may try this when I get a second drive and/ or LinkStation. I recently installed Twonky Media and the HS-DHGL doesn’t perform well when building the database.
Following up on my question, I have managed to install Squeezecenter on my Bufflao NAS, the problem is pointing at my library of music.
When I select settings, bottom right of screen I see a number of tabs, one is called basic, where I see
Misic Folder: /share
Playlists Folder: /share
Rescan Music library:
The music is actually stored in two places, for diagnostic, on the Buffalo NAS; a share called Music case 1, and in a directory off of share called Misic, case 2.
Case1: Setting the Music Folder to \\HS-DHGL583\Music or \\192.168.0.5\Music (both locations fine via any PC on network) I hit Apply and get =
Invalid value ” \\192.168.0.5\Music” for audiodir
and it defaults back to /share
Case2: There is a browse option for setting the Music Folder but I only see folders bin, boot, dev, etc, home, lib, mnt ‘share’, and so on. No other shares, and clicking on the + share does not show any sub-directories
So it the same again, setting the Music Folder to /share/Music I and hitting Apply I get:
Invalid value “/share/Music” for audiodir
and it defaults back to /share
Performing a Rescan music library finds no music.
I’m sure the solution in both cases is very simple becasue installing squeezecenter on a PC I can set the Music Folder to any of the following and the music is found: \\HS-DHGL583\Music or \\192.168.0.5\Music or \\HS-DHGL583\share\Music or \\192.168.0.5\share\Music and scan for music and its all found.
Any ideas?
Hi Nigel,
Firstly as the Squeezecentre software is now running on the Linkstation the same machine as the music library – the music directory will be local to that machine and should not be addressed with a hostnme or IP address…
So you could try a complete pathname (depending upon your specific setup)… e.g
/mnt/disk1/share/Music/ etc… Be careful the pathname will be case sensitive…
Hope this helps!
Melvyn
Sorry update Nigel:-
/mnt/disk1/Share/Music – will probably do the trick – note the capital ‘S’ in Share! I suspect /share lowercase is probably looking for an undefined path…
Melvyn
Mervyn, Thanks for the adavice; problem solved…
I tried on a fresh Linkstation carrying out the install of Squeezecenter using your scripts – but I get this error in the log:-
[10-02-06 14:19:30.8804] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Commands::wipecacheCommand]: [Can't call method "scanningProcess" without a package or object reference at /opt/share/squeezecenter/Slim/Music/Import.pm line 153.
]
This occurs after creating the PID and getting “thats all folks!”… ‘Top’ shows the PID is there until it quits with the error above… There is never a httpd on 9000…
Is this one you have come across? I have tried ipkg remove and removing the directories under /opt/share – even removed all dependencies and re-installed – but always the same result…!
Regs Melvyn
P.S The new files with ‘auto commit’ commented out are in place also…
Any ideas Martin?
Regs Melvyn
I reckon it’s related to AutoCommit. Not sure if sqeezecenter.tar includes changes to DBI.pm. Unfortunately, I’m not going to get a chance to look at this until tomorrow. Check for the following line and comment out:
$dbh->STORE('AutoCommit', 0); # will croak if driver doesn't support itFile in /opt/share/squeezecenter/CPAN and/ or /opt/lib/perl5/site_perl/5.8.8/arm-linux/.
Hi Martin,
You are right the DBI.pm file is renamed as .old but no new file is in the TAR file.. So I commented out the line above in the .old file and renamed it to DBI.pm – I also checked the version within the Perl directory – this had a version that was uncommented on the autocommit line – so commented this out also… But alas the problem is still the same… There must be something I have done differently somewhere back down the line as many here seemed to have got it installed and running fine! Am a little reluctant to start from scratch now as I have just Rsync’d my music across to this one! Will just have to persevere!
Melvyn
Have you also managed to configure the linkstation to get m4a/aac files working?
I’ve installed the ipkg packages for lean and faap2, changed the customconfig.config file but still no luck
Hi Martin,
I have resolved the problem and it is currently scanning my music library.. For the benefit of the others all I did to make it work was:- I edited /prefs/server.prefs manually and changed the audiodir from ‘ ‘ – to point to my audio directory and changed language from ‘C’ to ‘EN’… I also found a server-prefs (note the -) in the same directory – I deleted this… Suddenly now it all starts up fine without the previous error! I am not altogethr convinced that the changes I made would have corrected the previous error – but it is now working and I can browse to it on port 9000!
Hello Melvyn,
Pleased to read that you resolved your problem. Thanks for posting the solution.
M
Hi Martin,
Had my Link Station Live for a few years now and could never get media server to work. Thought I’d try your installation of squeezeserver and got most of the way before encountering broken / wrong ARM 5/7 link which I noted from the installation questions.
Tried again using reference to 1.2-7 but still seemed to pick up a broken link :
Try `wget –help’ for more options.
–21:18:28– http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-7_arm.xsh.
=> `lspro-bootstrap_1.2-7_arm.xsh.’
Resolving ipkg.nslu2-linux.org… 140.211.169.169
Connecting to ipkg.nslu2-linux.org|140.211.169.169|:80… connected.
HTTP request sent, awaiting response… 404 Not Found
21:18:28 ERROR 404: Not Found.
Could you advise, please.
Kind regards
Hello,
I checked today and the file is indeed present: http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-7_arm.xsh. Perhaps there was a network issue that is now resolved?
Hi there,
I installed SqueezeCenter on my Link Station DUO but the Harddisk ist constantly in action. I guess the harddrives won’t live a long time whith that high utilization. Is this normal? Anything I can check?
Apart from that, everything works fine!
Regards
Martin
This isn’t normal. Do you have any symbolic links in your music folder? If present these could cause SqueezeCenter to scan continuously. Also, from ssh type top. In an idle state slimserver.pl is using about 1.1-1.3% CPU resources, e.g.
1806 slimserv S 52M 1 1.3 42.5 slimserver.plHi there! Thanks for your how-to, but by now the links don’t quite work, will you be uploading any updates?
-> linkstation.sh tries to download linkstation.tar but doesn’t find it…
Thanks.
Please use the links in the sidebar.
… found a way to download the files myself and redirect the script so that it finds them.
But the server version is still 7.3, and my players have 7.5 and refuse to work with 7.3. Is there a way to upgrade the slimserver on the linkstation to 7.5?
Maybe I could use this one:
squeezeboxserver-7.5.2-30889-arm-linux
from here:
http://downloads.slimdevices.com/nightly/?ver=7.5
Thanks!
wenkman
This may work. However, it isn’t available through optware so you’ll have to do a manual install and resolve any dependencies. Please let me know how you get on.
PS. You’ll probably need to turn of database auto-commit mode. See squeezecenter.tar and search for something along the lines of:
# Take the db out of autocommit mode - this makes for a much faster scan.# Slim::Schema->storage->dbh->{'AutoCommit'} = 0;
Hi Martin,
Would really appreciate your help!
I am a complete novice, but have managed to alter the linkstation.sh file to accomodate new *.tar locations,
But just cant get wget to work.
Error message: An error occured, return value: 1.
I have tried opening up my firewall completely, same error.
Any pointers would be great
Thanks
Dan
I suggest you download the .tar files using a Web browser and copy these to the LinkStation (/tmp folder.) Comment out the wget lines and re-run the script.
If I get a moment I’ll upload the files to an alternative Web site.
Thanks, but im now on stuck on the squeezebox.sh, the first line
“/opt/bin/ipkg update” uses the wget command to get the packages.gz, but where if i manually place packages.gz in the temp folder it dont work!, what location should i put packages.gz.
Thanks for you help
Dan
Can you post the output of /opt/bin/ipkg update. Thanks
After searching Hi and Lo, your write up helped me get up and running! Much appreciated. I’ll be clicking on all your banner ads. In a jaded world, it’s nice to see a random act of kindness.
Below is a copy & Paste from after I run squeezecenter.sh
root@LINKSTATION:/mnt/disk1/share# sh squeezecenter.sh
Updating Optware…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/P
ackages.gz
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 4: `wget –passive-ftp
-q -P /opt/ipkg-0mn6HA http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cr
oss/stable/Packages.gz’
Done!
Installing SqueezeCenter…
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package squeezecenter.
Check the spelling or perhaps run ‘ipkg update’
mv: unable to rename `/opt/share/squeezecenter/CPAN/DBI.pm’: No such file or dir
ectory
tar: squeezecenter.tar: No such file or directory
Done!
Starting SqueezeCenter…
squeezecenter.sh: line 15: /opt/etc/init.d/S99squeezecenter: No such file or dir
ectory
That all folks!
root@LINKSTATION:/mnt/disk1/share#
Thanks again for you help.
Dan
It looks like your LinkStation can’t access the Internet. To confirm, try the following:
root@SAIMIRI:~# ping google.comPING google.com (173.194.37.104): 56 data bytes
72 bytes from 173.194.37.104: icmp_seq=0 ttl=52 time=31.6 ms
72 bytes from 173.194.37.104: icmp_seq=1 ttl=51 time=31.6 ms
72 bytes from 173.194.37.104: icmp_seq=2 ttl=52 time=31.4 ms
72 bytes from 173.194.37.104: icmp_seq=3 ttl=52 time=30.2 ms
--- google.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 30.2/36.8/80.1 ms
root@SAIMIRI:~#
BTW, the scripts and archive files are now available on http://www.martinwebster.eu/projects/ so you can use the scripts now without modification.
Thanks, from your info I managed to bridge my connection and away we go, wget now works.
But it failed right at the end, i have pasted the last part below.
Again, I really appreciate your help.
Installing perl-dbd-mysql (4.006-1) to root…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/p
erl-dbd-mysql_4.006-1_arm.ipk
Configuring adduser
update-alternatives: Linking //opt/bin/su to /opt/bin/adduser-su
Configuring bash
Configuring gdbm
Configuring libdb
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring perl
Configuring perl-compress-zlib
Configuring readline
Configuring zlib
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 4: `wget –passive-ftp
-q -P /opt/ipkg-Gv3sRH http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cr
oss/stable/perl-dbd-mysql_4.006-1_arm.ipk’
Failed to download perl-dbd-mysql. Perhaps you need to run ‘ipkg update’?
mv: unable to rename `/opt/share/squeezecenter/Slim/Music/Import.pm’: No such fi
le or directory
mv: unable to rename `/opt/share/squeezecenter/scanner.pl’: No such file or dire
ctory
mv: unable to rename `/opt/share/squeezecenter/CPAN/DBI.pm’: No such file or dir
ectory
tar: squeezecenter.tar: No such file or directory
Done!
Starting SqueezeCenter…
squeezecenter.sh: line 15: /opt/etc/init.d/S99squeezecenter: No such file or dir
ectory
That all folks!
root@LINKSTATION:
Try running ipkg update from the console (ssh session.) Also,the other errors relate to missing files. Re-run linkstation.sh.
Thanks again, all working now.
All working now. All my issues were user related, i.e. Me not understanding or reading correctly. Still, Thanks for your help, and congrats on a super guide.
Dan
Pleased to hear you got things working.
Hi Martin,
my Linkstation works almost perfect based on your instructions, but I need to find out how Squeezeserver is automatically started at booting. I have problems with an error “”Slim::Player::Song:: open (341) Error: Couldn’t create command line for flc playback for [file:///mnt/disk1/…” that occurs when the server is booted directly from zero but when I stop and start again the server using S99squeezecenter it works perfectly. So most probably there is a difference between both starting processes.
br, Dieter
I doubt that this message (from your log file) is directly related to stopping and starting SqueezeCenter. It’s more likely to do with flac to flac transcoding, which I believe requires Lame. Unfortunately, I don’t have a functioning LinkStation any more so I can only offer limited help. It’d be useful if you could post a few complete lines from the log file, confirm what sample rate you use for flac files, and the player you use.
Here is a full line:
[11-01-04 21:51:35.8120] Slim::Player::Song::open (341) Error: Couldn’t create command line for flc playback for [file:///mnt/disk1/Daten/Musik/ACDC/Let%20there%20be%20rock/Whole%20Lotta%20Rosie.flac]
I don’t have installed lame, only SOC. The custom-convert.conf file looks like that, transcoding in convert.conf is outmarked:
flc flc transcode *
# FT:{START=–skip=%t}U:{END=–until=%v}D:{RESAMPLE=-r %d}
[flac] -c –totally-silent –compression-level-0 $START$ $END$ $FILE$
The server processes running before and after re-starting looking the same, just the process numbers differs of course.
933 slimserv 47788 R /opt/bin/perl -w /opt/share/squeezecenter/slimserver.pl –daemon –pidfile=/home/slimserver/squeezecenter.pid –httpport=9000 –use
938 slimserv 4072 S /opt/share/squeezecenter/Bin/mysqld –defaults-file=/home/slimserver/cache/my.cnf
And, I need telnet into the system, typing S99squeezecenter stop and start and it works. Unbelievable, yes. But I don’t have an idea with Linux, and don’t know how to check if there is a change in environment for example.
What player are you using? Can you successfully play the flac file listed? What is the sample rate of the flac file? It’s possible that SqueezeCenter is downsampling for the player and this requires LAME, which is not installed on your system and could result in the error “…Couldn’t create command line for flc playback…”, i.e. no /usr/bin/lame.
I can reproduce the error with Squeezebox classic and Softsqueeze on PC both. Flacs are from CD, so 44,1kHz / 16 Bit, so transcoding should not be needed.
And, after stopping and restarting S99Squeezecenter, the flac files are streamed perfectly. I checked, there is no additional process running after restart. Lame is not needed.
Okay, lets try a different tack. I’m assuming SqueezeCenter starts after a reboot. When rebooting check to see if there is a PID file:/home/slimserver/squeezecenter.pid. Stop SqueezeCenter: /opt/etc/init.d/S99squeezecenter stop, delete /home/slimserver/squeezecenter.pid, and reboot.
Do you still have the same problem?
Dear Martin,
Firstly thank you for spending the time putting the scripts together to install Squeezecentre.
I installed SC on my NAS and it worked fine. When I reboot my NAS though it loses Telnet connectivity plus access to the main share. The only way I’ve found so far to fix it is reinstall the 1.37 modified firmware (basically go back to the beginning).
Have you heard about a similar problem yourself?
Best wishes,
Tim
Hello Martin,
Thank you very much for this nice description!
I successfully installed the acp_commander but i cannot get the connection via telnet. It always says the following:
tomsmacbook:desktop Tom$ telnet 169.254.245.253
Trying 169.254.245.253…
telnet: connect to address 169.254.245.253: Connection refused
telnet: Unable to connect to remote host
Do you have any idea what I did wrong? If I ping the NAS it works. I got LinkStation Live™
Thanks for your help
Tom
Hello Tom,
There could be a number of reasons for the problem you are experiencing. Did you follow the instructions verbatim? The IP address you use is not what I would expect to see as it’s not using private address space. Ideally, you should connect your PC directly to the LinkStation using a crossover cable or switch (with no other network devices connected.) It is necessary to reconfigure you PC: use 192.1.10.10 and 192.1.10.150 for the LinkStation. You’ll need to re-run acp_commander if you reboot the LinkStation.
Hello Martin,
Thanks for your immediate replay.
I’ve got a Mac, and Im using the terminal. I changed the IP addresses turned of all the other connection, but still it doesnt work. Here you can see what I get:
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.
WARNING: This is experimental software that might brick your linkstation!
Using random connID value = E3735F12F074
Using target: 192.1.10.150/192.1.10.150
Starting authentication procedure…
Sending Discover packet…
Found: LS-CHL-V2FB6 (/192.1.10.150) LS-CHL-V2(YURYAKU) (ID=00018) mac: xxxxx Firmware= 1.370 Key=66F9B18C
Trying to authenticate EnOneCmd… ACP_STATE_OK
Installing addons.tar …
creating directory… OK
Found local file
java.io.FileNotFoundException: /192.1.10.150/share/acp_commander/addons.tar (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:70)
at acpcommander.FileSystem.copyFile(FileSystem.java:29)
at acpcommander.acp_commander.main(acp_commander.java:1008)
start telnetd…
Reset root pwd…
You can now telnet to your box as user ‘root’ providing no / an empty password.
Tom-MacBook-Pro:desktop Tom$ telnet 192.1.10.150
Trying 192.1.10.150…
telnet: connect to address 192.1.10.150: Connection refused
telnet: Unable to connect to remote host
Tom-MacBook-Pro:desktop Tom$
It would be great if you could help me. I also tried it with a win7 pc but there i couldnt even start the java, it says it doesnt find the program, also i installed it.
Thanks for your help!
Tom
Try using the following IP addresses:
Mac: 192.168.1.10
LinkStation: 192.168.1.150
And for telnet use:
telnet 192.168.1.150 23.Hello Martin,
Thanks again for the reply. Unfortunately it doesn’t work as well.
Did you see the line “/192.168.1.150/share/acp_commander/addons.tar (No such file or directory)” What does that mean?
How can I check whether the telnet is working or not?
Thanks
Tom
I should have noticed earlier… you have a LS-CHL-V2FB6 (LinkStation Live V3.) These instructions only work with the LinkStation Live V2. Please see http://buffalo.nas-central.org/wiki/Category:LS-CHL.