Hello folks, my name is George, and I've recently installed the Logitech Media Server v7.8.1 on a CentOS 7 machine. The purpose of this post is to share the process I used, step by step, to hopefully help those who aren't as familiar with this operating system.
A little background; I bought the original SliMP3 back in 2001, and have been using the Slim Devices / Logitech hardware and software to manage and play my music collection ever since. Today I've got two Booms and two Transporters in my home. One of the Transporters is a Modwright "Ultimate Truth" modified unit. So yeah, I'm a hi-fi geek :) but I'm also a Red Hat Enterprise Linux geek. In fact, that's my day job. I'm a RHEL 7 Certified Systems Administrator, which came in handy upon upgrading my trusty LMS server from CentOS 6 to CentOS 7. Here is how I went about it, step by step:
This guide assumes you have a freshly installed CentOS 7 machine, installed with the "minimal server" profile. The "minimal server" profile is pretty bare bones, which is what we want for a special purpose music server like this. Since these directions apply just the same to RHEL 7, CentOS 7, and Scientific Linux 7, I will refer to them collectively as "EL7".
1. Upon logging in as root to your newly created EL7 server, run the following commands to install all of the outstanding updates, and then reboot.
yum -y upgrade
shutdown -r now
2. Once the machine is back up, again log in as root, and we'll install the prerequisite software packages. These packages are required either to download and install LMS, or for it to start and run properly. Because the RPM file you will download isn't specific to EL7, it doesn't automatically pull them in as dependencies, we have to install them manually.
yum -y install perl-Time-HiRes perl-CGI perl-Digest-MD5 nfs-utils wget
3. Next we'll download the LMS server package. I used version 7.8.1 for my server, which was the most recent version in the 7.8 branch at the time I installed it. The software is available on this web site (http://downloads.slimdevices.com/nightly/?ver=7.8) Although we will retrieve it using wget.
wget http://downloads.slimdevices.com/nig...076.noarch.rpm
yum localinstall ./logitechmediaserver-7.8.1-0.1.1472561076.noarch.rpm
4. We have to create this symbolic link on the filesystem in order for the LMS server to start and run:
ln -s /usr/lib/perl5/vendor_perl/Slim /usr/lib64/perl5/Slim
5. Your EL7 server uses firewalld instead of plain old iptables like EL6 did. Here's the commands to open the required ports using firewalld:
firewall-cmd --zone=public --add-port=9000/tcp --permanent
firewall-cmd --zone=public --add-port=3483/tcp --permanent
firewall-cmd --zone=public --add-port=3483/udp --permanent
firewall-cmd --reload
6. Lets start the LMS server, and set it to auto-start during bootup. EL7 uses systemd instead of the old init system, so the commands are different than they were on EL6:
systemctl start squeezeboxserver
systemctl enable squeezeboxserver
7. Now you should be able to browse to http://yourserver:9000 and begin configuring the Logitech Media Server. Congrats, you're all finished!
Optional step: If you want to enable the transcoding feature in LMS, you'll have to install the LAME MP3 encoder. The LAME software is not available in the default EL7 repositories, so you'll have to add a 3rd party repository to install it.
cd /etc/yum.repos.d/
wget http://negativo17.org/repos/epel-handbrake.repo
yum -y install lame
Hopefully you've found this helpful, If you spot any errors or omissions, please let me know and I'll update these steps.
A little background; I bought the original SliMP3 back in 2001, and have been using the Slim Devices / Logitech hardware and software to manage and play my music collection ever since. Today I've got two Booms and two Transporters in my home. One of the Transporters is a Modwright "Ultimate Truth" modified unit. So yeah, I'm a hi-fi geek :) but I'm also a Red Hat Enterprise Linux geek. In fact, that's my day job. I'm a RHEL 7 Certified Systems Administrator, which came in handy upon upgrading my trusty LMS server from CentOS 6 to CentOS 7. Here is how I went about it, step by step:
This guide assumes you have a freshly installed CentOS 7 machine, installed with the "minimal server" profile. The "minimal server" profile is pretty bare bones, which is what we want for a special purpose music server like this. Since these directions apply just the same to RHEL 7, CentOS 7, and Scientific Linux 7, I will refer to them collectively as "EL7".
1. Upon logging in as root to your newly created EL7 server, run the following commands to install all of the outstanding updates, and then reboot.
yum -y upgrade
shutdown -r now
2. Once the machine is back up, again log in as root, and we'll install the prerequisite software packages. These packages are required either to download and install LMS, or for it to start and run properly. Because the RPM file you will download isn't specific to EL7, it doesn't automatically pull them in as dependencies, we have to install them manually.
yum -y install perl-Time-HiRes perl-CGI perl-Digest-MD5 nfs-utils wget
3. Next we'll download the LMS server package. I used version 7.8.1 for my server, which was the most recent version in the 7.8 branch at the time I installed it. The software is available on this web site (http://downloads.slimdevices.com/nightly/?ver=7.8) Although we will retrieve it using wget.
wget http://downloads.slimdevices.com/nig...076.noarch.rpm
yum localinstall ./logitechmediaserver-7.8.1-0.1.1472561076.noarch.rpm
4. We have to create this symbolic link on the filesystem in order for the LMS server to start and run:
ln -s /usr/lib/perl5/vendor_perl/Slim /usr/lib64/perl5/Slim
5. Your EL7 server uses firewalld instead of plain old iptables like EL6 did. Here's the commands to open the required ports using firewalld:
firewall-cmd --zone=public --add-port=9000/tcp --permanent
firewall-cmd --zone=public --add-port=3483/tcp --permanent
firewall-cmd --zone=public --add-port=3483/udp --permanent
firewall-cmd --reload
6. Lets start the LMS server, and set it to auto-start during bootup. EL7 uses systemd instead of the old init system, so the commands are different than they were on EL6:
systemctl start squeezeboxserver
systemctl enable squeezeboxserver
7. Now you should be able to browse to http://yourserver:9000 and begin configuring the Logitech Media Server. Congrats, you're all finished!
Optional step: If you want to enable the transcoding feature in LMS, you'll have to install the LAME MP3 encoder. The LAME software is not available in the default EL7 repositories, so you'll have to add a 3rd party repository to install it.
cd /etc/yum.repos.d/
wget http://negativo17.org/repos/epel-handbrake.repo
yum -y install lame
Hopefully you've found this helpful, If you spot any errors or omissions, please let me know and I'll update these steps.