Plex Server Pi2 B project .

Discussion for non Joggler hardware / software including software for devices that share similarities with the O2 Joggler Hardware. This section has been opened for discussion of things like the settings up the EMGD drivers on other hardware using Ubuntu, as discussion of this has been banned at the official Ubuntu Forums.
Post Reply
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Plex Server Pi2 B project .

Post by hawsey »

@Castalla Happy New Year and big thanks for you previous big help in sorting my Joggler Plex Server earlier last year .

I decided to use my Pi 2 as a Plex server separate to the one I have running in my Joggler with SqPlayOs .
I bought a case with a couple of heat sinks and set up the server on top of Raspbian Jessie with Pixel using a tutorial but when I plugged in my HDD I hit problems with the drive not recognised .
I remembered Catallas top talk / walk through getting drives mounted etc so looked back up his help and used that .
I left the HDD in the back of my BT Home Hub 5 and edited the Fstab in Jessie Pi then mounted the drive .
All working great , I must have learnt something despite how it seemed .
Now I am happy the Pi has useful employment so I think I'll order the Pi3 for Retro Pi ( thx BuZz) now as there are a couple of 128 GB pimped images floating around that might be worth investigating :-)
IMG_20170101_105112706.jpg
IMG_20170101_231640509_BURST000_COVER_TOP.jpg
Image

Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

Image

Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
dwl99
Posts: 765
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Plex Server Pi2 B project .

Post by dwl99 »

Happy new year Gary!

The Pi2 is a fantastic Plex server. I also have mine running Kodi and am just about to have a go at setting it up as an Apache web server so I can hack my new Amazon Echo Dot to operate my cheapo Orvibo wifi plug.
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

Happy New Year David ,sounds like a plan , let us know how you get on :-)
I'm having teething problems at the minute with the Pi / Plex , it is all up and running but I've downloaded stuff that won't scan in to Plex that is definitely there :-( two episodes of a TV show went in no problem , next 3 no dice , they are there in the HDD as I can see them from another device but they are not scanning .
I suspect my wanting the HDD attached to my HH5 has complicated things ha ha

Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

It all seemed to go so well :-( it looks like the drive has become un mounted in Raspbian Jessie as I can't see the contents of the folders anymore and I could before .

Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
dwl99
Posts: 765
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Plex Server Pi2 B project .

Post by dwl99 »

hawsey wrote:It all seemed to go so well :-( it looks like the drive has become un mounted in Raspbian Jessie as I can't see the contents of the folders anymore and I could before .

Sent from my Moto G (4) using Tapatalk
Here's the cribsheet I used:

https://www.raspberrypi.org/forums/view ... 63&t=22957

I am assuming you only have 1 external hard drive connected to the Pi. If so then it should be attached to /dev/sda1 – additional drives will use /dev/sdb1 and /dev/sdc1 etc. If you have multiple external hard drives you will need separate mount points for each drive (e.g. /mnt/usbstorage1 and /mnt/usbstorage2).

sudo fdisk -l
^ should show you what drives are there
sudo mount /dev/sda1 /mnt
should mount the 1st drive's 1st partition to /mnt the output from fdisk should show you the partition names

If you want the drive to mount at boot, you are going to have to edit the /etc/fstab file. First you'll need to create a folder for the mount.

mkdir /home/pi/data

Test it by trying to mount the drive

sudo mount /dev/sda1 /home/pi/data

You should then be able to access the drive via /home/pi/data. If so, then edit the /etc/fstab file

sudo nano /etc/fstab

and add a line

/dev/sda1 /home/pi/data ntfs-3g rw,default 0 0

Ctrl + o then crtl + x

You need to do the editing as root. This should work so long as the drive is the only external drive you have. If you swap drives in and out, you may need to replace "/dev/sda1" with the UUID of the drive.
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

Wow that looks complicated but then it always does to me :-|
It's a drive on the network but not attached to the Pi so it's on 192.168.1.254/usb2/Video which is on the BT Home Hub 5 , it did work ok or so it seemed , I'll look through what you posted above see if I can make sense of it .
I used mostly the instructions I got from Castalla to mount the drive I probably need to clear what I have done and start again but not sure even how to do that .

I logged in as root then
Changed the Fstab as in the photo above then in a terminal

sudo su -
mount -a
sudo mkdir /mnt/Video
mount -a

That's all I did and then I re booted , the Plex server picked up the few files I had in the folder no problem , I then tried to download some episodes of a TV show and the first two scanned no problem then I tried 3 more and it broke , now the drive looks like it's not mounted any more ,
I don't have a clue do I ? He heh


Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
dwl99
Posts: 765
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Plex Server Pi2 B project .

Post by dwl99 »

I would probably connect the HDD to the Pi rather than the home hub :-)
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

I know , I know Ha , that's what will happen in the end , it's just that it's set up attached to the Hub for the Squeeze play Plex Music server which I would like to keep , it would mean altering the paths on that as well .
Initially I did try the drive in the Pi but it didn't automatically show up or anything , not sure if it should have just shown up in Jessie Pi or not , also it's an unpowered hub and I read people's saying they were no good for Pi unless they were powered .
Anyway I just tried the above code again and it has mounted and scanning again .
Maybe I have missed some code out to get it to stay mounted .
Thanks for the help :-)
Any tricks on the Echo yet ? My wife is using the Echo more than me , I got a dot for the bedroom but the audio from the 3.5 jack isn't working right in my Technics in there , have you tried it ? Maybe I need a special lead .

Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

Thanks I've just re read your post so it looks like it ( my network HDD ) will un mount on a re boot unless I do the trickery you explained :-(
Cheers

Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
dwl99
Posts: 765
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Plex Server Pi2 B project .

Post by dwl99 »

The dot is good fun but makes my wife roll her eyes quite a lot! I use it with Bluetooth and have it paired with my Sony SRS-X55 speaker. It's good for Tunein Radio, news headlines, weather, kitchen timer, adjusting the Nest thermostat, playing music from my Amazon account, operating my Wemo switch and asking it general questions. I don't have Amazon Prime music but it happily plays all the auto-ripped CDs I've bought from Amazon and I've uploaded quite a few albums too (you're allowed 250 tracks for free!).
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

Still playing with the echo , so does it work ok without an Amazon Prime account ? I did wonder that , I think my Dad would like one :-)

Sent from my Moto G (4) using Tapatalk
Happy Joggling
Paul Webster
Posts: 155
Joined: Mon Jul 18, 2011 7:56 am

Re: Plex Server Pi2 B project .

Post by Paul Webster »

hawsey wrote:Still playing with the echo , so does it work ok without an Amazon Prime account ? I did wonder that , I think my Dad would like one :-)
Yes - don't need prime for Echo to work (including 3rd-party implementations using the Amazon Voice APIs).
User avatar
dwl99
Posts: 765
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Plex Server Pi2 B project .

Post by dwl99 »

hawsey wrote:Still playing with the echo , so does it work ok without an Amazon Prime account ? I did wonder that , I think my Dad would like one :-)

Sent from my Moto G (4) using Tapatalk
Download the Amazon Music desktop application for your PC https://www.amazon.co.uk/gp/dmusic/desk ... loadPlayer and have a look at what albums you previously bought from them that you can already stream. You can also upload 250 tracks and create playlists which the echo will recognise.
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

Will have a look at that , thanks :-) I do have Prime so I think that must help but I must say it's played most stuff I've asked of it including playlists I've created on the Amazon Music app .
One weird thing I've noticed at least twice , if I say Alexa , Play Music by Bat For Lashes it might say no music found by artist .... But I've played it before and I know it's there so I just say again Play music by .... And it plays it second ask ??

Sent from my Moto G (4) using Tapatalk
Happy Joggling
User avatar
dwl99
Posts: 765
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Plex Server Pi2 B project .

Post by dwl99 »

AI is still in its infancy, my echo often doesn't hear me calling it if there's loud music on even if I'm right next to it.
User avatar
hawsey
Posts: 2075
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Plex Server Pi2 B project .

Post by hawsey »

I know I'm digressing on the thread now but it's mine so hey ho :-)
Has anyone tried multiple accounts ? I wouldn't mind my wife having a separate one but I don't understand what I need to do , can she still use the Amazon Prime stuff logged in with my details ?
I did look but couldn't work it out , it would be handy as we have total different music tastes .

Sent from my Moto G (4) using Tapatalk
Happy Joggling
Post Reply