Slimserver

Ask questions about Arch Linux ARM. Please search before making a new topic.

Slimserver

Postby Laurent » Tue Jul 20, 2010 1:27 am

From a completely novice Linux user (sorry), please help simply...
I installed Arch Linux ARM install on a USB drive as directed and it seems to be running. I can SSH into it and it created a new DHCP address.
Now, I'd like to install slimserver on it.
first command from the explanation and I get this
mkdir: cannot create directory `/opt': File exists

What I am supposed to do? How do you untar into /opt?

Sorry if it sounds so simple or naive but as stated before I have no idea about what I'm doing, although it would be cool to be able to run slimserver on my dockstar.
Another related question, is slimserver is running, can another drive connected to the dockstar stream video? or would another dockstar be dedicated to this?

Thanks
Laurent
 
Posts: 2
Joined: Tue Jul 20, 2010 1:21 am

Re: Slimserver

Postby jmonks » Tue Jul 20, 2010 7:30 am

Ignore the "file exists" error; it just means, well, that the directory is already there.

To untar into /opt, do:

cd /opt

tar xvf /path/to/some_tar_file.tar

Add the "z" option if the file is compressed (i.e., it has a .tar.gz or .tgz extension):

tar xvzf /path/to/some_compressed_tar_file.tar.gz

That will unpack the tar file into the current directory, which is /opt (after you do the "cd /opt" command, anyway).

As to your second question, it will depend on how much memory and CPU power the slimserver program uses. I would imagine you should be able to stream music with the slimserver app, and still share movie and other media files on a Dockstar without much difficulty. I assume you're not talking about true "streaming" of the movie, as in re-encoding the video into a streaming format on the fly, but just sharing the files across the network to be played on another device.
jmonks
 
Posts: 2
Joined: Sun Jul 18, 2010 4:01 pm

Re: Slimserver

Postby Laurent » Wed Jul 21, 2010 2:31 am

Jmonks,

Thanks for the help !!

I got that far:
NOTE: Class::XSAccessor 1.05+ not found, install it for better performance
[69-12-31 16:35:58.7034] main::init (323) Starting Squeezebox Server (v7.5.1, r30836, Tue Jun 1 07:00:59 MDT 2010) perl 5.010001

So I think that the server might be running but I can't access it through my browser.
from what I read I need to modify something in the server.prefs. I can't locate this file anywhere !! Any idea where it might be located or how to proceed ??

Thanks
Laurent
 
Posts: 2
Joined: Tue Jul 20, 2010 1:21 am

Re: Slimserver

Postby jmonks » Wed Jul 21, 2010 3:16 am

Check in /etc for the config file. You can search for it with this command:

find /etc -name "*slim*"

I think it's supposed to be called /etc/slimserver.conf, but I'm not that familiar with the Slim software.

To see if it's running, you can check for it in the process list with the command:

ps ax | grep slim

The "ps ax" command will list all the running processes and the " | grep slim" part filters the output to only show you the lines that contain the word "slim".
jmonks
 
Posts: 2
Joined: Sun Jul 18, 2010 4:01 pm

Re: Slimserver

Postby sm7 » Fri Apr 08, 2011 8:54 am

Hi,

I am facing the same problems and reach the same point as Laurent. I am using squeezeboxserver-7.5.4-32171-arm-linux, but cannot locate the server.prefs file. I note that server.prefs was not in the squeezebox tarfile. I have tried searching, but to no avail. Any pointers ? Thanks in advance.
sm7
 
Posts: 2
Joined: Fri Apr 08, 2011 8:45 am

Re: Slimserver

Postby pepedog » Fri Apr 08, 2011 10:11 am

I was only playing with squeezeboxserver yesterday.
Did you create a new unix user? Lets say you did and called it (and a new group) squeezebox
$this->bbcode_second_pass_code('', 'cd /opt
wget http://downloads.slimdevices.com/nightly/7.6/sc/32233/squeezeboxserver-7.6.0-32233-arm-linux.tgz
tar xzf squeezeboxserver-7.6.0-32233-arm-linux.tgz
mv squeezeboxserver-7.6.0-32233-arm-linux squeezeboxserver')
My install is now at /opt/squeezeboxserver
I had to install some perl modules, here is (only) one example
$this->bbcode_second_pass_code('', 'cpan Sub::Name')
Run it as root so it generates conf files (otherwise it complains about permissions)
$this->bbcode_second_pass_code('', '/opt/squeezeboxserver/slimserver.pl --user root --pidfile /var/run/squeezebox.pid
Ctrl C to exit, after leaving it a while to settle')
Now you can
$this->bbcode_second_pass_code('', 'chown -R squeezebox:squeezebox /opt/squeezeboxserver')
and edit /opt/squeezeboxserver/prefs/server.prefs to your needs.

To run
$this->bbcode_second_pass_code('', '/opt/squeezeboxserver/slimserver.pl --user squeezebox --pidfile /var/run/squeezebox.pid
or
/opt/squeezeboxserver/slimserver.pl --user squeezebox --pidfile /var/run/squeezebox.pid --daemon')
To stop
$this->bbcode_second_pass_code('', 'killall slimserver.pl')
I installed a player on Windows machine to test.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Slimserver

Postby theref » Sat Apr 09, 2011 7:08 am

I tried to install the latest build of Squeezebox server but when I run it it asks for perl modules$this->bbcode_second_pass_code('', ' Sub::Name').
However when I try to use the cpan to install it I get

$this->bbcode_second_pass_code('', ' cpan Sub::Name
Warning: Cannot install Sub::Name, don't know what it is.
')

how can I install that thanks
theref
 
Posts: 2
Joined: Sat Apr 09, 2011 7:04 am

Re: Slimserver

Postby pepedog » Sat Apr 09, 2011 8:53 am

It worked for me
$this->bbcode_second_pass_code('', '[root@PBLinux ~]# cpan Sub::Name
Going to read '/root/.cpan/Metadata'
Database was generated on Sat, 09 Apr 2011 01:42:55 GMT
Sub::Name is up to date (0.05).
[root@PBLinux ~]#')
Please try again while I look at something else
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Slimserver

Postby sm7 » Sat Apr 09, 2011 12:39 pm

Many thanks Pepedog. I followed the steps you outlined above, and everything is now working fine ! Thanks for taking the time to respond - I am most grateful.
sm7
 
Posts: 2
Joined: Fri Apr 08, 2011 8:45 am

Re: Slimserver

Postby pepedog » Sun Apr 10, 2011 10:54 am

I just experimented, and renamed /opt/squeezeboxserver/CPAN to /opt/squeezeboxserver/CPAN1 and got this output
$this->bbcode_second_pass_code('', '[root@PBLinux squeezeboxserver]# /opt/squeezeboxserver/slimserver.pl --user squeezebox --pidfile /var/run/squeezebox.pid --daemon
The following CPAN modules were found but cannot work with Squeezebox Server:
AnyEvent (loaded <not found>, need 5.202)
Audio::Scan (loaded <not found>, need 0.87)
Cache::Cache (loaded <not found>, need 1.04)
Class::Data::Inheritable (loaded <not found>, need 0.04)
Class::Inspector (loaded <not found>, need 1.16)
DBIx::Class (loaded <not found>, need 0.08112)
Data::URIEncode (loaded <not found>, need 0.11)
Date::Parse (loaded <not found>, need 2.27)
File::BOM (loaded <not found>, need 0.13)
File::Next (loaded <not found>, need 1.06)
File::Which (loaded <not found>, need 0.05)
IO::String (loaded <not found>, need 1.07)
Image::Scale (loaded <not found>, need 0.03)
JSON::XS::VersionOneAndTwo (loaded <not found>, need 0.31)
Log::Log4perl (loaded <not found>, need 1.23)
Path::Class (loaded <not found>, need 0.17)
Proc::Background (loaded <not found>, need 1.08)
SQL::Abstract (loaded <not found>, need 1.56)
Text::Unidecode (loaded <not found>, need 0.04)
Tie::Cache::LRU (loaded <not found>, need 0.21)
Tie::RegexpHash (loaded <not found>, need 0.13)
Time::Zone (loaded <not found>, need 2.22)

To fix this problem you have several options:
1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
2. Update the module's package using apt-get, yum, etc.
3. Run the .tar.gz version of Squeezebox Server which includes all required CPAN modules.')
It doesn't complain about Sub::Name as that is in the system, but it should have never complained as /opt/squeezeboxserver/CPAN/Sub/Name.pm exists.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to User Questions

Who is online

Users browsing this forum: Majestic-12 [Bot] and 15 guests