<?sphp $this->text('pagetitle') ?>
 
Home of the Squeezebox™ & Transporter® network music players.

Debian Package

From SqueezeboxWiki

(Difference between revisions)
Jump to: navigation, search
(installing 7.9.2)
 
(66 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Edit Needed]]
+
A Debian [[Logitech_Media_Server|Logitechmediaserver]] (formerly known as SlimServer) package distributed by Slim Devices now exists. This package also should work with most Debian-based Linux distributions such as [http://www.ubuntu.com Ubuntu], [https://www.raspbian.org/ Raspbian],[http://www.mepis.org Mepis] or [http://www.knoppix.net Knoppix]. See below for installation instructions for [[Logitech_Media_Server|Logitechmediaserver]].
[[Category:SqueezeCenter]]
+
A Debian [[SqueezeCenter]] (formerly knows as SlimServer) package distributed by Slim Devices now exists. This package also should work with most Debian-based Linux distributions such as [http://www.ubuntu.com Ubuntu], [http://www.mepis.com Mepis] or [http://www.knoppix.net Knoppix]. See below for installation instructions for [[SqueezeCenter]] 7.
+
  
To install the latest stable release ([[SqueezeCenter]] 7.0.1) update your /etc/apt/sources.list to include:
+
==Debian Version Info==
  
deb http://debian.slimdevices.com stable main
+
Please visit the [http://downloads.slimdevices.com/nightly/index.php Logitechmediaserver Download page] to learn about the latest stable version of Logitechmediaserver. 
  
To install the latest testing release ([[SqueezeCenter]] 7.1) update your /etc/apt/sources.list to include:
+
From there you can find direct downloads of the latest nightly builds of the various versions.
  
deb http://debian.slimdevices.com testing main
+
Even if the Header form the link above says Beta not all Versions are beta builds.
 +
[[http://downloads.slimdevices.com/LogitechMediaServer_v7.8.0/logitechmediaserver_7.8.0_all.deb 7.8]] is the community release.
 +
[[http://downloads.slimdevices.com/nightly/index.php?ver=7.9 7.9]] is the latest Version supplied by the community.
 +
[[http://downloads.slimdevices.com/nightly/index.php?ver=10.0 10.0]] is only for UE Radios.
 +
 +
The pre-release versions of the .deb files are [[Nightly_Builds|also available]].
  
If you want to install the development release (currently [[SqueezeCenter]] 7.2) update your /etc/apt/sources.list to include:
+
== Supported Perl Versions ==
  
  deb http://debian.slimdevices.com unstable main
+
You need to install the LMS Package fpr your OS and Perl Version.
 +
If you unsure about your installed Perl Version
 +
  perl -v|grep v5
 +
gives you an idea "This is perl 5, version 26, subversion 1 (v5.26.1)" means you only can install LMS 7.9.1/7.9.2
  
== Order of servers in sources.list: ==
+
=== 7.7.x ===
 +
5.8
 +
5.10
 +
5.12
 +
5.14
 +
5.16
 +
5.18
  
Servers listed first in sources.list have higher priority. Since our server only has [[SqueezeCenter]] on it, it is safe to place it before any other servers in the file to make sure you only download [[SqueezeCenter]] from Slim Devices.
+
=== 7.8.1 ===
 +
5.8
 +
5.10
 +
5.12
 +
5.14
 +
5.16
 +
5.18
 +
5.20
  
And then run:
+
=== 7.9.1 / 7.9.2 ===
 +
5.10
 +
5.12
 +
5.14
 +
5.16
 +
5.18
 +
5.20
 +
5.22
 +
5.24
 +
5.26
  
  apt-get update
 
  apt-get install squeezecenter
 
or for the testing release (currently SqueezeCenter 7.1)
 
  apt-get remove --purge slimserver
 
  apt-get update
 
  apt-get install squeezecenter
 
  
++ NOTE replace apt-get remove --purge slimserver with apt-get remove --purge squeezecenter after your first update ++
+
== Instructions for Debian /Ubuntu /Raspbian ==
  
or for the development release (currently SqueezeCenter 7.2):
+
To install the latest stable release please do the following tasks:
  apt-get remove --purge slimserver
+
  apt-get update
+
  apt-get install squeezecenter
+
++ NOTE replace apt-get remove --purge slimserver with apt-get remove --purge squeezecenter after your first update ++
+
  
Which will download [[SqueezeCenter]] and its dependencies.
+
* Make a new Folder e.g /sources
 +
* Download the Version via wget into this Folder - please notice the filename changes!
 +
* Install the downloaded package.
 +
* You can use the lines above in a script.
  
Ubuntu users may need to add Universe to their sources.list file. There will be two lines near the top of your existing sources.list ending in "universe" that will need to be uncommented. You will also need to run the previous two statements using the "sudo" command to gain root privileges.
+
=== installing 7.8 ===
 +
in 7.8.0 There are some bugs that only sorted in 7.8.1
 +
Please dont install 7.8.0 anymore
  
== Instructions for Ubuntu (Gutsy): ==
+
=== installing 7.8.1 ===
 +
sudo apt-get install libio-socket-ssl-perl
 +
os=$(dpkg --print-architecture)
 +
if [ "$os" = "armhf" ]; then os=arm; fi
 +
url="http://www.mysqueezebox.com/update/?version=7.8.1&revision=1&geturl=1&os=deb"
 +
latest_lms=$(wget -q -O - "$url")
 +
mkdir -p /sources
 +
cd /sources
 +
wget $latest_lms
 +
lms_deb=${latest_lms##*/}
 +
sudo dpkg -i $lms_deb
 +
sudo apt-get -f install
  
Editing the sources.list and installing the SqueezeCenter package on Ubuntu can also be achieved using the GUI. Go to System / Administration / Synaptic Package Manager (provide your password). In the Manager select Settings / Repositories and click the Third Party Software tab, click +Add and provide one of the "deb xxx" strings mentioned above. In the first tab Ubuntu software make sure that the Universe is selected as well. After clicking Reload the list of packages will show SqueezeCenter as additional package which will be downloaded and installed along with its dependencies.
+
=== installing 7.9.1 ===
 +
sudo apt-get install libio-socket-ssl-perl
 +
os=$(dpkg --print-architecture)
 +
if [ "$os" = "armhf" ]; then os=arm; fi
 +
url="http://www.mysqueezebox.com/update/?version=7.9.1&revision=1&geturl=1&os=deb"
 +
latest_lms=$(wget -q -O - "$url")
 +
mkdir -p /sources
 +
cd /sources
 +
wget $latest_lms
 +
lms_deb=${latest_lms##*/}
 +
sudo dpkg -i $lms_deb
 +
sudo apt-get -f install
  
====To run SqueezeCenter in Ubuntu: ====
+
=== installing 7.9.2 ===
 +
 +
sudo apt-get install libio-socket-ssl-perl
 +
os=$(dpkg --print-architecture)
 +
if [ "$os" = "armhf" ]; then os=arm; fi
 +
url="http://www.mysqueezebox.com/update/?version=7.9.2&revision=1&geturl=1&os=deb"
 +
latest_lms=$(wget -q -O - "$url")
 +
mkdir -p /sources
 +
cd /sources
 +
wget $latest_lms
 +
lms_deb=${latest_lms##*/}
 +
sudo dpkg -i $lms_deb
 +
sudo apt-get -f install
  
/etc/init.d/squeezecenter start
+
= To run Logitechmediaserver in Debian / Ubuntu: =
  
====To use the SqueezeCenter web interface: ====
+
Logitechmediaserver is started automatically by the installation script and every time you boot.
 +
 
 +
If you want to start/stop Logitechmediaserver manually you can run:
 +
 
 +
  sudo service logitechmediaserver start
 +
 
 +
and
 +
 
 +
  sudo service logitechmediaserver stop
 +
 
 +
= Updating your Logitechmediaserver =
 +
 
 +
The deb repository is gone see [http://forums.slimdevices.com/showthread.php?103885-Upcoming-changes-to-download-sites-bye-bye-Debian-and-yum-repos|]
 +
 
 +
== Settings for the WebGUI  (recommended) ==
 +
 
 +
Open Settings on your Logitechmediaserver Webgui (its in the lower right bottom)
 +
Klick on the Tab Advanced on the Top and select Software Updates on the drop down menue in the left.
 +
Select Automatic download ''notice the user that runs the logitechmediaserver service has no permissions to start and stop - ''thats a security feature not a bug'' - you have to do that yourself!''
  
Point your browser to [server ip address]:[port]. For example your server running SqueezeCenter's IP address is 192.168.1.100 so enter in your browser: http://192.168.1.100:9000.
 
  
 
== During the installation process: ==
 
== During the installation process: ==
  
If you don't have them already installed on your system, you may be asked about various [[SqueezeCenter]] dependencies. These are other software packages [[SqueezeCenter]] requires to run. Some of the dependencies may even have dependencies!
+
If you don't have them already installed on your system, you may be asked about various [[Logitech_Media_Server|Logitechmediaserver]] dependencies. These are other software packages [[Logitech_Media_Server|Logitechmediaserver]] requires to run. Some of the dependencies may even have dependencies!
  
Having [[SqueezeCenter]] be dependent on other packages helps make it more compatible with more systems, and reduces both the download size and number of problems.
+
Having [[Logitech_Media_Server|Logitechmediaserver]] be dependent on other packages helps make it more compatible with more systems, and reduces both the download size and number of problems.
  
However, dependencies can be confusing. If you have questions about the configuration of any of the packages [[SqueezeCenter]] depends on, there is much information available on the Internet for the specific packages. Additionally, members of our linux forum http://forums.slimdevices.com/forumdisplay.php?f=3 may be able to help.
+
However, dependencies can be confusing. If you have questions about the configuration of any of the packages [[Logitech_Media_Server|Logitechmediaserver]] depends on, there is much information available on the Internet for the specific packages. Additionally, members of our linux forum http://forums.slimdevices.com/forumdisplay.php?f=3 may be able to help.
  
Note that the information on this page will only be relevant until the current testing release ("Etch") becomes stable, but by that time many other things may have changed as well, probably including this wiki entry :)
+
== upgrading from 6.* to 7.* ==
  
=== /Size mismatch/ error with Ubuntu edgy ===
+
apt-get remove --purge slimserver
 +
apt-get update && apt-get upgrade
  
For Ubuntu edgy there might be a problem with some dependencies from the universe source-repository. If you get the error message /Size mismatch/ during installation you can temporarily fall back to dapper for those packages before trying to install [[SlimServer]] again.
+
You may need to Update your Distribution since 6.x is very old and can not run on actual Versions of Debian. Follow the steps described in installing 7.8.1
  
* Take note of what packages are listed with /Size mismatch/
 
* Edit /etc/apt/sources.list so that the lines ending with "edgy universe" ends with "dapper universe" instead.
 
* Then run
 
  
apt-get update
+
= After the installation process: =
  
* Install the size mismatched packages
+
== Users and Groups ==
  
apt-get install /package-name/
+
The installation adds a new user (squeezeboxserver) to your system - that runs all the tools/scripts from logitechmediaserver.
  
* Edit back /etc/apt/sources.list so that the lines ending with "dapper universe" ends with "edgy universe" again.
+
If you want to use the localplayer plugin you have to add the User squeezeboxserver to the group audio - otherwise the squeezelite session behind the localplayer couldnt play your files.
* Then run
+
  sudo usermod -aG audio squeezeboxserver
  
apt-get update
+
=== using local Mediafolders ===
apt-get install slimserver
+
  
== upgrading from 6.* to 7.0 ==
+
If your media files are hosted on the same System you runing Logitechmediaserver - you should use a group to give folder & file permissions to the path of your mediafiles.
 +
eg - (using a group called lms and ''your.username'' is ''your.username'')
  
apt-get remove --purge slimserver
+
  sudo addgroup lms
  apt-get update
+
  sudo usermod -aG lms squeezeboxserver
  apt-get install squeezecenter
+
  sudo usermod -aG audio ''your.username''
 +
 
 +
Then you need to set the folder permissions
 +
 
 +
  sudo chown -R ''your.username'':lms /<path/to/your/mediafiles>
 +
 
 +
=== using mediafolders from another source (eg a NAS) ===
 +
 
 +
If your mediafiles stored in another system like your NAS you have to do the same steps on your NAS - or mount the NAS under your username.
 +
 
 +
==== add a mountpoint ====
 +
 
 +
Add a Folder to act as mountpoint (eg NAS)
 +
  sudo mkdir /media/NAS
 +
  sudo chown ''your.username'':lms /media/NAS
 +
 
 +
Add the mountpoint to the file system table ''using a editor like vi''
 +
  vi /etc/fstab
 +
add some line like (192.168.9.9 is the IP from your NAS and music is the shared folder)
 +
 
 +
  //192.168.9.9/music /media/NAS cifs user=''your.username'',passwd=''your.password'', 0 0
 +
 
 +
save the changes and test with mount /media/NAS
 +
 
 +
==== Playlistfolder ====
 +
 
 +
Make sure your Playlistfolder is not in the homeroot of your library
 +
  Otherwise LMS would add the files in the playlist twice
 +
 
 +
Set the right Filepermissions
 +
eg my playlistfolder is /media/music/\[playlist\]/
 +
 
 +
sudo chown ''your.username'':lms -R /media/music/\[playlist\]/
 +
  sudo chmod -R 774 /media/music/\[playlist\]/
 +
 +
Verify the settings:
 +
ls -l /media/music/|grep playlist
 +
drwxrwxr--  2 jan lms      4096 Jan  8 22:01 [playlist]
 +
 
 +
The User squeezeboxserver is member of lms (be sure you followed my tips above) and needs rwx to the Playlistfolder.
 +
 
 +
= To use the Logitechmediaserver web interface: =
 +
 
 +
Point your browser to [server ip address]:[port]. For example your server running Logitechmediaserver's IP address is 192.168.1.100 so enter in your browser: http://192.168.1.100:9000.
 +
 
 +
= Uninstalling Logitechmediaserver from your system =
 +
  sudo apt-get remove --purge logitechmediaserver
 +
 
 +
http://downloads.slimdevices.com/nightly/index.php?ver=7.9
 +
 
 +
[[Category:Squeezebox Server]]
 +
[[Category:Linux]]
 +
[[Category:Installation Guide Pages]]
 +
[[User:Jan.Schmidt|Jan.Schmidt]] 23:46, 10 November 2015 (PST)

Latest revision as of 07:14, 2 November 2019

A Debian Logitechmediaserver (formerly known as SlimServer) package distributed by Slim Devices now exists. This package also should work with most Debian-based Linux distributions such as Ubuntu, Raspbian,Mepis or Knoppix. See below for installation instructions for Logitechmediaserver.

Contents

Debian Version Info

Please visit the Logitechmediaserver Download page to learn about the latest stable version of Logitechmediaserver.

From there you can find direct downloads of the latest nightly builds of the various versions.

Even if the Header form the link above says Beta not all Versions are beta builds. [7.8] is the community release. [7.9] is the latest Version supplied by the community. [10.0] is only for UE Radios.

The pre-release versions of the .deb files are also available.

Supported Perl Versions

You need to install the LMS Package fpr your OS and Perl Version. If you unsure about your installed Perl Version

perl -v|grep v5

gives you an idea "This is perl 5, version 26, subversion 1 (v5.26.1)" means you only can install LMS 7.9.1/7.9.2

7.7.x

5.8
5.10
5.12
5.14
5.16
5.18

7.8.1

5.8
5.10
5.12
5.14
5.16
5.18
5.20

7.9.1 / 7.9.2

5.10
5.12
5.14
5.16
5.18
5.20
5.22
5.24
5.26


Instructions for Debian /Ubuntu /Raspbian

To install the latest stable release please do the following tasks:

  • Make a new Folder e.g /sources
  • Download the Version via wget into this Folder - please notice the filename changes!
  • Install the downloaded package.
  • You can use the lines above in a script.

installing 7.8

in 7.8.0 There are some bugs that only sorted in 7.8.1
Please dont install 7.8.0 anymore

installing 7.8.1

sudo apt-get install libio-socket-ssl-perl
os=$(dpkg --print-architecture)
if [ "$os" = "armhf" ]; then os=arm; fi
url="http://www.mysqueezebox.com/update/?version=7.8.1&revision=1&geturl=1&os=deb"
latest_lms=$(wget -q -O - "$url")
mkdir -p /sources
cd /sources
wget $latest_lms
lms_deb=${latest_lms##*/}
sudo dpkg -i $lms_deb
sudo apt-get -f install

installing 7.9.1

sudo apt-get install libio-socket-ssl-perl
os=$(dpkg --print-architecture)
if [ "$os" = "armhf" ]; then os=arm; fi
url="http://www.mysqueezebox.com/update/?version=7.9.1&revision=1&geturl=1&os=deb"
latest_lms=$(wget -q -O - "$url")
mkdir -p /sources
cd /sources
wget $latest_lms
lms_deb=${latest_lms##*/}
sudo dpkg -i $lms_deb
sudo apt-get -f install

installing 7.9.2

sudo apt-get install libio-socket-ssl-perl
os=$(dpkg --print-architecture)
if [ "$os" = "armhf" ]; then os=arm; fi
url="http://www.mysqueezebox.com/update/?version=7.9.2&revision=1&geturl=1&os=deb"
latest_lms=$(wget -q -O - "$url")
mkdir -p /sources
cd /sources
wget $latest_lms
lms_deb=${latest_lms##*/}
sudo dpkg -i $lms_deb
sudo apt-get -f install

To run Logitechmediaserver in Debian / Ubuntu:

Logitechmediaserver is started automatically by the installation script and every time you boot.

If you want to start/stop Logitechmediaserver manually you can run:

 sudo service logitechmediaserver start

and

 sudo service logitechmediaserver stop

Updating your Logitechmediaserver

The deb repository is gone see [1]

Settings for the WebGUI (recommended)

Open Settings on your Logitechmediaserver Webgui (its in the lower right bottom) Klick on the Tab Advanced on the Top and select Software Updates on the drop down menue in the left. Select Automatic download notice the user that runs the logitechmediaserver service has no permissions to start and stop - thats a security feature not a bug - you have to do that yourself!


During the installation process:

If you don't have them already installed on your system, you may be asked about various Logitechmediaserver dependencies. These are other software packages Logitechmediaserver requires to run. Some of the dependencies may even have dependencies!

Having Logitechmediaserver be dependent on other packages helps make it more compatible with more systems, and reduces both the download size and number of problems.

However, dependencies can be confusing. If you have questions about the configuration of any of the packages Logitechmediaserver depends on, there is much information available on the Internet for the specific packages. Additionally, members of our linux forum http://forums.slimdevices.com/forumdisplay.php?f=3 may be able to help.

upgrading from 6.* to 7.*

apt-get remove --purge slimserver
apt-get update && apt-get upgrade

You may need to Update your Distribution since 6.x is very old and can not run on actual Versions of Debian. Follow the steps described in installing 7.8.1


After the installation process:

Users and Groups

The installation adds a new user (squeezeboxserver) to your system - that runs all the tools/scripts from logitechmediaserver.

If you want to use the localplayer plugin you have to add the User squeezeboxserver to the group audio - otherwise the squeezelite session behind the localplayer couldnt play your files.

 sudo usermod -aG audio squeezeboxserver

using local Mediafolders

If your media files are hosted on the same System you runing Logitechmediaserver - you should use a group to give folder & file permissions to the path of your mediafiles. eg - (using a group called lms and your.username is your.username)

  sudo addgroup lms
  sudo usermod -aG lms squeezeboxserver
  sudo usermod -aG audio your.username
  

Then you need to set the folder permissions

 sudo chown -R your.username:lms /<path/to/your/mediafiles>

using mediafolders from another source (eg a NAS)

If your mediafiles stored in another system like your NAS you have to do the same steps on your NAS - or mount the NAS under your username.

add a mountpoint

Add a Folder to act as mountpoint (eg NAS)

 sudo mkdir /media/NAS
 sudo chown your.username:lms /media/NAS

Add the mountpoint to the file system table using a editor like vi

 vi /etc/fstab

add some line like (192.168.9.9 is the IP from your NAS and music is the shared folder)

 //192.168.9.9/music /media/NAS cifs user=your.username,passwd=your.password, 0 0

save the changes and test with mount /media/NAS

Playlistfolder

Make sure your Playlistfolder is not in the homeroot of your library

Otherwise LMS would add the files in the playlist twice

Set the right Filepermissions eg my playlistfolder is /media/music/\[playlist\]/

sudo chown your.username:lms -R /media/music/\[playlist\]/
sudo chmod -R 774 /media/music/\[playlist\]/

Verify the settings:

ls -l /media/music/|grep playlist
drwxrwxr--   2 jan lms      4096 Jan  8 22:01 [playlist]

The User squeezeboxserver is member of lms (be sure you followed my tips above) and needs rwx to the Playlistfolder.

To use the Logitechmediaserver web interface:

Point your browser to [server ip address]:[port]. For example your server running Logitechmediaserver's IP address is 192.168.1.100 so enter in your browser: http://192.168.1.100:9000.

Uninstalling Logitechmediaserver from your system

 sudo apt-get remove --purge logitechmediaserver

http://downloads.slimdevices.com/nightly/index.php?ver=7.9Jan.Schmidt 23:46, 10 November 2015 (PST)