Hi
I think it should be:
update-rc.d squeezeslave default 50
update-rc.d itself knows to look in /etc/init.d for the <basename> which is squeezeslave.
So the last command should have installed the startup link OK.
br,
sambuca
I got it working, however, my intentions when starting this thread was two fold. Not only did I want to get my squeezeslave device working, but I also wanted to clarify the wiki page on this.
Too many times everyone is told when they ask questions on this forum, to look in the wiki, and many times the wiki is correct, however, being the live document that it is, it can also be incorrect, ambiguous or just plain out-of-date. Not many people update the wiki pages on a regular basis and I don't want to be guilty of not taking the time to help the next person. If the wiki can be corrected and updated, time wasted installing a new device and damage to the Core's installation because some of us simply do not know enough to reverse a mistake, and have to resort to reinstalling the Core, can be avoided by providing updated and corrected procedures.
On the subject of "
Squeezeslave On The Core", this is what worked for me and I'll also note what didn't work, while installing it on LinuxMCE 810-Alpha2.31.
First, I downloaded the latest squeezeslave build, maybe that was a mistake because it never worked. I downloaded "squeezeslave-0.9-65-lnx26-alsa-display-i686.tar.gz" only for it to never init, giving numerous alsa messages and errors.
Then I dropped back to "squeezeslave-0.8-12-lnx26-intel" which, when everything else was done correctly, worked. There are other squeezeslave builds in between these, but I haven't tried them because I'm flat worn out getting this finally working. Also, I believe in the old saying, "If it ain't broke, don't fix it!" Enough of that, here's how I got it to work.
- Installed 2nd. PCI sound card in the Core - Sound Blaster Live 5.1, Model # SB0100, rebooted Core - OK
- Used lspci form Konsole to check if new PCI sound card was listed - OK]
- Downloaded, extracted and placed the binary from "squeezeslave-0.8-12-lnx26-intel" into /usr/local/bin
- Added the following to /etc/rc.local, "/usr/local/bin/squeezeslave -m 00:00:00:00:00:01 -o 1 -s -r &"
- From Konsole, typed "alsamixer -c 1" to check 2nd. sound card properties - OK
Now, as per the wiki, you have to manually add the squeezeslave to LinuxMCE as a squeezebox
Select Device
* Select Device->A/V Equipment
* Select SqueezeBox Player from the dropdown options
* Assign it to a room and entertainment area.
* Regen your orbiters and reload the router.
It did not mention also adding the IP of the Core, "192.168.80.1" with the MAC address "00:00:00:00:00:01" assigned to the squeezeslave, but I did to make it work. Also, Why regen the Orbiters, even though it's working, I never saw any changes on any Orbiters, no new buttons, no computing entry to get to the squeezeslave player, if fact, for those of us never doing this before, we don't even have a clue where in LinuxMCE we will access the SqueezeCenter to control Squeezeslave if it installs correctly!
Well, I found it in
Admin-->Advanced-->Configuration-->SLIM Server totally by poking around. I then found that from any browser on my network, going to
"http://192.168.0.191:9000", (192.168.0.191 being my router's static assigned IP for my Core), I could get to the SqueezeCenter easily.
Should it appear anywhere else, like from an Orbiter? Do you always have to go to Admin on the Core or from any Media Director, or the above mentioned browser address to control SqueezeCenter? It's OK if you do. It's great, but I just want to know if I'm missing something on the Orbiters.
Continuing the Installation:
- Modifying the squeezeslave script - Here's the modified top of my script that worked
PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin
DESC="Squeezeslave dameon"
NAME=squeezeslave
DAEMON= /usr/local/bin/squeezeslave
DAEMON_ARGS="-o 1 -m 00:00:00:00:00:01 -r 3 -s 192.168.80.1"
PIDFILE=/var/run/squeezeslave.pid
SCRIPTNAME=/etc/init.d/squeezeslave
- The squeezeslave script - Created the modified text file, named it squeezeslave and placed it in "/etc/init.d/"
- Making the script executable, as per the wiki.
sudo chmod +x /etc/init.d/squeezeslave
Does it. - Next the following wiki instruction did not work on my LinuxMCE 810 Alpha2 Core
sudo default-rd.d /etc/init.d/squeezeslave default 50
nor did:
sudo default-rc.d /etc/init.d/squeezeslave default 50
Both errored out. I was told to use the following:
update-rc.d squeezeslave defaule 50
It worked but it said it was already done and needed to do nothing because the entry was already in the init file.
When was it done? What file is the command "update-rc.d" updating? Was ir rc.local or init.d or none of these? - The following two commands has never worked even though the squeezeslave is working upon Core reboots:
sudo /etc/init.d/squeezeslave start
sudo /etc/init.d/squeezeslave stop
- the wiki Check with ps if it is running: yields this for my system
dcerouter_1001088:/etc/init.d# ps aux | grep squeezeslave
root 14725 0.0 0.0 3236 792 pts/29 R+ 02:11 0:00 grep squeezeslave
root 17303 1.5 0.2 64368 5552 ? Sl 00:37 1:24 /usr/local/bin/squeezeslave -m 00:00:00:00:00:01 -o 1 -s -r
dcerouter_1001088:/etc/init.d#
Now the squeezeslave, squeezecenter and slim server all work and I have music out of my second sound card on the Core but it's time to update the wiki. I'll be more than happy to handle it but I want to update it correctly.
1. Is the information on the wiki correct for earlier LinuxMCE versions, such as, 710 and only a new section needs to be added for 810?
2. Did the commands "sudo default-rd.d /etc/init.d/squeezeslave default 50" or "sudo default-rc.d /etc/init.d/squeezeslave default 50" or "sudo /etc/init.d/squeezeslave start" and "sudo /etc/init.d/squeezeslave stop" all work in 710 but respond differently in 810 Alpha2?
3. Is there a need for the command "update-rc.d" or is it redundant because it was accomplished when editing /etc/rc.local?
4. Am I missing buttons on Orbiters for squeezeslave, squeezebox or squeezecenter, or is accessing it through Admin or a browser, as mentioned above the only way and is correct?
5. Is there a way to control other audio sources connected to the second sound card's inputs such as , external CD jukeboxes, external tuners and use them as a source for SqueezeCenter to output to the squeezeslave's 2nd. sound card?
After seeing SqueezeCenter and SqueezeSlave running, it has a lot to offer for LinuxMCE.
Maybe this seems like a lot to expect, but all I want is some confirmation on the above questions and I'll make sure the wiki is updated. I just want to do it correctly for those who follow.