Hi !
I have set up my SB installation, and wanted to share for those who (like me) aren’t familiar with Linux process and everything. Cause if you’re trying to do the same configuration without appropriate knowledge, I know for sure that it can be pretty bitchy !
So what is it about ? I already have Logitech players (actually a radio, a touch and an ipad recognized as a player). I’m using a pi3 and wanted OSMC OS to use the pi as a video player, but also wanted to have a squeezebox server hosted by the raspberry.
Also, my local music is stored in a nas, and wanted the OMSC to mount the nas folder and boot it at start up.
Considering that OSMC OS doesn’t have a GUI, it s not that easy for noobs like me. Know that i’m done with it and it s very stable and reliable, so i’m sharing the process :
First get OSMC image : http://download.osmc.tv/installers/d...0160621.img.gz
or if you’re reading this post a while after i wrote it, it’s probably outdated so go there to find the last one : https://osmc.tv/download/
Burn it on micro sd, boot, let it get installed. Once you’re done, you might want to go in the player options, to MyOSMC, Network, and set a static ip.
Once you’re ready, open putty, login in your OSMC IP with user/ password osmc/ osmc (unless you’ve changed it ofc…)
Now let’s get LMS installed ! Firstly we need to install perl.
Here are the commands :
Code:sudo apt-get install aptitudeNow, go to http://downloads.slimdevices.com/nightly/?ver=7.9 and look for the logitechmediaserver_7.9.*_all.debCode:sudo aptitude install perl
(If my post is really old when you read it, it migh be LMS 8 or even higher. It should be exactly the same process tho) Right click on the all.deb file and copy the url.
As for today, it makes: http://downloads.slimdevices.com/nig...729831_all.deb
So each time you see that url in my commands, just replace it with the up-to-date one you got from slimdevices.
So now, go for :
Code:wget http://downloads.slimdevices.com/nightly/7.9/sc/5d05bcb/logitechmediaserver_7.9.0~1467729831_all.debAfter a while (it can take some time), LMS is now installed, web page interface available in your web browser @ : your.osmc.IP :9000Code:sudo dpkg -i logitechmediaserver_7.9.0~1467729831_all.deb
Now let’s get the nas mounted for the LMS to find your local tracks !
First we need the cifsutils to be able to mount it.
Here we go :
Now let’s make a new directory in /mnt, (but the path is up to you tho) :Code:sudo apt-get install cifs-utils
now let’s mount it right away ! Of course use your own NAS credentials instead of yourlogin and yourpassword and also use your nas ip and share folder corrrect path instead of 192.168.1.1/Share…Code:sudo mkdir /mnt/mounted
Let’s check if it worked :Code:sudo mount –t cifs –o username=yourlogin,password=yourpassword //192.168.1.1/Share /mnt/mounted/
Code:systemctl status mnt-mounted.mount
The files should now be available in the LMS to add the path at first setup page. Just choose /mnt/mounted in LMS web page for the library location’s page to find it.
Finally, we want the NAS to get mounted automatically after the reboot of the pi. In that purpose we have to modify the fstab config, like this :
Leave the two first lines and type a new third line containing :Code:sudo nano /etc/fstab
Press F3, then enter and finally F2Code://192.168.1.1/Share /mnt/mounted cifs username=yourlogin,password=yourpassword,_netdev,noauto,x-systemd.automount,uid=1000,gid=1000,iocharset=utf8,rw,auto,user 0 0
Check it with
if it’s working it should say nothing. If there is any error it should say something.Code:sudo mount -a
Everything should be working perfectly from here. If you need to restart the LMS, enter :
You can also replace restart by stop or start.Code:sudo service logitechmediaserver restart
Good luck !
Results 1 to 10 of 10
-
2016-07-15, 10:25 #1
Tuto : Install LMS and mount NAS in OSMC
Last edited by mugen808; 2016-07-15 at 10:30.
-
2016-07-15, 12:21 #2
- Join Date
- Sep 2005
- Posts
- 2,853
Hi there is one step missing and i believe thats the reason where your other failure (see your other Thread) started.
You should add some group like lms and put your username, root and squeezeboxserver in it.
Your fstab should be altered eg. uid=1000,gid=the id from your created group
-
2016-07-15, 13:04 #3
- Join Date
- Sep 2005
- Posts
- 2,853
see here
To get the gid of your created group use something like eg your group is named lms:
Code:grep lms /etc/group|cut -f 3 -d ':'
-
2016-07-16, 05:57 #4
- Join Date
- Sep 2005
- Posts
- 2,853
-
2020-12-19, 08:34 #5
- Join Date
- Dec 2020
- Posts
- 3
Problems with installing LMS on OSMC
Hi All...am encountering some problems with this and wondered if anyone could help? I have OSMC installed on a Raspberry Pi 3b+ and am a newbie to linux.
First issue I encoutnered is that I'm not allowed to create the 'sources' folder indicated...says mkdir: cannot create directory '/sources': Permission denied. Could anyone let me know how I change the permissions in OSMC to allow the creation of directories?
I carried on anyway, and sucessfully installed aptitude and perl (was version 5.28). Downloaded LMS fine (used the url for the current stable v8, rather than the nightly build for 7.9), however when I try to unpack it I get the following error:
osmc@osmc:~$ sudo dpkg -i logitechmediaserver_8.0.0_all.deb
Selecting previously unselected package logitechmediaserver.
(Reading database ... 29903 files and directories currently installed.)
Preparing to unpack logitechmediaserver_8.0.0_all.deb ...
Unpacking logitechmediaserver (8.0.0) ...
dpkg: dependency problems prevent configuration of logitechmediaserver:
logitechmediaserver depends on libio-socket-ssl-perl; however:
Package libio-socket-ssl-perl is not installed.
dpkg: error processing package logitechmediaserver (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u5) ...
Errors were encountered while processing:
logitechmediaserver
I didn't get any errors when installing perl, so I tried installing the old 7.9 version of LMS in case that was the problem, but had the same issue. Would anyone know what the issue is here regarding the missing package libio-socket-ssl-perl that's preventing LMS from unpacking?
Many thanks for your help.
-
2020-12-19, 08:39 #6
- Join Date
- Jan 2011
- Location
- Staffordshire. UK
- Posts
- 4,126
Try (in a terminal)
Code:sudo apt install libnet-ssleay-perl libio-socket-ssl-perl libcrypt-openssl-rsa-perl lame -y
-
2020-12-19, 08:44 #7
- Join Date
- Jan 2011
- Location
- Staffordshire. UK
- Posts
- 4,126
Normally at the end of the install one would run
Code:sudo apt install -f
One can also install with
Code:sudo apt ./ogitechmediaserver_8.0.0_all.deb
libcrypt-openssl-rsa-perl
for one of philippe-44's Plugins and it also nice to have lame (just in case)Last edited by Man in a van; 2020-12-19 at 08:47.
-
2020-12-19, 08:54 #8
- Join Date
- Dec 2020
- Posts
- 3
Hi there, and thanks for your reply...I tried running that and got the following:
osmc@osmc:~$ sudo apt install libnet-ssleay-perl libio-socket-ssl-perl libcrypt-openssl-rsa-perl lame -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
lame : Depends: libmp3lame0 (>= 3.100) but it is not going to be installed
Depends: libsndfile1 (>= 1.0.20) but it is not going to be installed
libcrypt-openssl-rsa-perl : Depends: perl-openssl-abi-1.1
Depends: libcrypt-openssl-bignum-perl but it is not going to be installed
Depends: libcrypt-openssl-random-perl but it is not going to be installed
libnet-ssleay-perl : Depends: perl-openssl-abi-1.1
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Any ideas? Cheers.
-
2020-12-19, 09:01 #9
- Join Date
- Dec 2020
- Posts
- 3
-
2020-12-19, 09:32 #10
- Join Date
- Jan 2011
- Location
- Staffordshire. UK
- Posts
- 4,126