Thank you so much for this, I've been trying to install LMS on a
Raspberry Pi Zero for the last 12 hours, trying several raspbian
packages but all failed miserably UNTIL I saw your instructions.

Went like a breeze with Rasbian Stretch and LMS v7.9.1 !

My setup is:
Raspberry Pi Zero (not Zero W)
Using as LMS Server only (I have a Squeezebox Classic)
Pi Zero is connected to 2.5" HDD via a USB hub (not a powered hub)
Pi Zero connected via Ethernet to my router (tomorrow I will be
unpluging it from the router and pluging it in directly to the
Squeezebox so it won't have to go through my router at all - completely
unattached to network, so unhackable)

dizzysnakepilot wrote: 
> 
> With an external USB drive, be aware LMS runs as user
> 'squeezeboxserver', and so won't by default be able to see the USB drive
> files in the "select the folder with your music' setup step. I'm not
> sure the best way to fix this (I chown'd them for the LMS user just for
> now) 
> 

Instead of having a LMS user and using chown, I have permanently mounted
a 2.5" HDD (yes, the Pi Zero has enough power from the USB port to run
it!) using the instructions below...

USB stick or HDD mounting

1.First create a usb directory under /mnt:

cd /mnt
sudo mkdir usb

2. Put some MP3’s on a USB stick (my audio files are .wma) and plug it
into the raspberry via the hub.

3. Now, find the uuid of the USB stick using the following command:

sudo blkid
This was my result:

/dev/mmcblk0: PTUUID="efa3f64e" PTTYPE="dos"
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="22E0-C711"
TYPE="vfat" PARTUUID="efa3f64e-01"
/dev/mmcblk0p2: UUID="202638e1-4ce4-45df-9a00-ad725c2537bb" TYPE="ext4"
PARTUUID="efa3f64e-02"
/dev/sda1: LABEL="Music" UUID="18C6F806C6F96502" TYPE="ntfs"
Search for the line that starts with “/dev/sda1“, that’s the USB stick.
Now copy the hex number thats behind “UUID=“, and also note the value
behind “TYPE=“.

4. Now edit this file:

sudo nano /etc/fstab

5. And add this line to the end of it:

UUID=copied_code /mnt/usb copied_type
defaults,nofail,dmask=000,fmask=111 0 2
And change “copied_code” and “copied_type” to the values taken from the
previous command. In my case it was: UUID=18C6F806C6F96502 /mnt/usb ntfs
defaults 0 2

6. Save the file and do a reboot:

sudo reboot

**************************
All credit goes to Gerrelt for these instructions which were pasted from
the excellent page at
http://www.gerrelt.nl/RaspberryPi/wordpress/tutorial-stand-alone-squeezebox-server-and-player-for-bbq/#Setup_the_LMS_server
(On this page, there are also instructions for installing a played on
the Pi as well if you need that, and also a WiFi connection to control
from a mobile phone)

Hope this helps someone.


------------------------------------------------------------------------
shaunm's Profile: http://forums.slimdevices.com/member.php?userid=11987
View this thread: http://forums.slimdevices.com/showthread.php?t=108602

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to