LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2013, 02:32 AM   #1
buntubadger
LQ Newbie
 
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
Multi room audio via softsqueeze.jar


Hello,

I am trying to set up a multi room audio solution which I have successfully completed using this guide: Running multiple Softsqueeze streams from one PC

Quote:
Detailed instructions:



1. Install Squeezebox server and Softsqueeze. It helps to install both in a non-protected directory in Windows 7. This prevents requiring admin rights to do everything.



2. Install Java JDK. This is required to run Softsqueeze from the command prompt.



3. Run Softsqueeze from the command window and turn on the Configuration debugging options.

- If you are getting an error trying to run from the command line, make sure .jar is associated with the Java JRE by following instructions here.

- Open a command window to the Softsqueeze install directory and enter the following command to run it: java -jar SoftSqueeze.jar

- Softsqueeze will run in two windows - the command (DOS) window and the GUI. In the GUI hit the Preferences button and go to the Debug tab. Tick the Configuration box. Now any changes you make in preferences will be logged to the command window.

- Again in preferences, go to the Audio tab and change the Audio Mixer. This lists your sound devices. Select each one in turn and the details of each will be logged in the command window. The EXACT text describing each device is used in the next step.


4. Create a batch file that launches a "headless" (i.e. no GUI) Softsqueeze instance with your configuration options. A separate batch file is created for each audio device/zone. Copy the below text into notepad, edit and save as .bat.
Code:

@echo off
start /min "PC Speakers" java -Dserver=localhost:9000 -Dskins=headless -Daudio.mixer="Speakers (High Definition Audio Device)" -Dmacaddress=f7:25:9d:78:9f:66 -jar Softsqueeze.jar
exit

A batch file needs to be created for each sound device you want to use, and put in the Softsqueeze directory. From the above example, change PC Speakers to the device name (e.g. a soundcard connected to an amp powering the kitchen speakers could be called Kitchen), the audio device name to what you got from step 3 and choose a random MAC address (each device needs a different virtual MAC).

4. Configure the device names in Squeezebox server. Run the Squeezebox server and then all the batch files to launch the players. Then, from a web browser, go to localhost:9000 and click on Settings (lower right corner). Under the Player tab, select each Softsqueeze from the drop down and re-name to match the zone. This name will be permanent as it will be associated with the zone's unique MAC address as set above.

5. From now on, just launch the batch files from shortcuts or Startup folder along with Squeezebox server and all the audio devices will be running and configured
(sorry to add entire post but I can't paste links)

however it uses windows as the guide, I want to use ubuntu as the server for reliability but when the guide gives examples of creating batch files, I understand that ubuntu would not be able to understand these.

Here is a copy of the example batch file:

@echo off
start /min "PC Speakers" java -Dserver=localhost:9000 -Dskins=headless -Daudio.mixer="Speakers (High Definition Audio Device)" -Dmacaddress=f7:25:9d:78:9f:66 -jar Softsqueeze.jar
exit


how would I convert this so ubuntu would understand which softsqueeze instance to map to which soundcard?

Is it possible, the guide mentions that it is but without much guidance,

I tried to follow someones advice and create a shell script with these contents:

#!/bin/bash
java -Dserver=localhost:9000 -Dskins=headless -Daudio.mixer="Speakers (High Definition Audio Device)" -Dmacaddress=f7:25:9d:78:9f:66 -jar Softsqueeze.jar

But when I try to start the script from within the same folder as the softsqueeze.jar I get failed to execute child process no such file or directory, although I am running this from within the same directory.

Would anyone have an idea how to get this working so that I can use the 5 different soundcards as I really need it up and running. It works with no issues under windows, I know that java runtime is installed correctly because I can start the softsqueeze.jar from command line with no problems.

Looking forward to an answer,

Thanks in advance,

Buntubagder
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set mail.jar(JavaMail) and mysql-connector-java.jar in Linux class path Terry56 Linux - Software 3 01-19-2010 09:06 AM
Want to take a Backup as jar and upload jar to other server LearnUnix Linux - Newbie 4 10-30-2009 04:48 AM
I got error with this command 'java -jar NodeView-v1.1.jar' mohdismiaswaly Linux - Software 3 04-23-2009 06:24 AM
Fedora Core 1 Associating .jar files with java -jar command pymehta Fedora 0 01-13-2005 05:26 AM
Multi-room Multimedia Project engnet Linux - Software 0 08-13-2004 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration