Page 1 of 1

Learn Linux with me.

Posted: Wed Oct 30, 2019 5:55 pm
by Dazbobaby
Install Plex Media Server on Debian Linux

Plex is so ubiquitous that installation today is trivial, but you'll need to add the repo so you can auto-update in future, and install a security key that authorises the system to fetch the update.

Step one, enable the repository to download plex and updates

Code: Select all

echo deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
Step two, add the public key. This tells the operating system that this source and apps are safe.

Code: Select all

curl | sudo apt-key add -
Step three. Install plex media server.

Code: Select all

sudo apt-get install plexmediaserver
Job done, now you'll need to visit the server and add some media
mine is on

http:// this sets up your browser for visiting a web page. this is an internal IP address on my home network, variations include or or though the last 2 ranges are generally used for business networks.
:32400 is the default port that plex uses. Ports range from 0 to 35565. Some are reserved, :80 is the default port for websites, 443 is the default port for SSL certificates... the padlock next to a web address.

Re: How to install Plex Media Server on Debian linux

Posted: Wed Oct 30, 2019 6:06 pm
by Dazbobaby
And it's done
Screenshot_2019-10-30 Plex.jpg

Re: Learn Linux with me.

Posted: Mon Nov 04, 2019 9:31 pm
by Dazbobaby
Linux Data Recovery
A few years ago I bought a Western Digital EX4100 4 bay SATA NAS.
I also bought 4 x 4TB HDD's to install. I set them up as JBOD (just a bunch of disks), one drive at a time.
1. Movies / TV Shows / Other
2. Music
3. Data Backups, drive images, VM's etc.
4. 4K movies
Well today I had an isue with #1, I could read but not write on one of my PC's. So I logged into the NAS and removed the share, then just re-added it. Only one problem. Removing the share formatted the drive. WHY THE FUCK IT SHOULD FORMAT THE FUCKING DRIVE IS BEYOND ME. If I changed from JBOD to raid 0,1,5,10 then I could understand, but I didn't, I just removed the share and re-added it.
Strangely enough, it did actually work, so there was definitely a little problem with the share script and remaking it worked.

So now I have to let my spare PC sit there for 48 hours recovering the data. The only USB adapter I could find will only work at USB 2 speeds. So around 40MBs. VERY VERY SLOOOOOoooooow!

Code: Select all

sudo apt-get install testdisk

Code: Select all

sudo photorec /dev/sdc3
The location dev/sdc3 is applicable to my install, you may very well differ.

/sdc3 is disk c, third partition.

I guess my next video will be setting up a new FUCKING NAS!

Code: Select all

PhotoRec 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <>

Disk /dev/sdc - 4000 GB / 3726 GiB (RO) - WDC WD40 EZRX-00SPEB0
     Partition                  Start        End    Size in sectors
 2 P MS Data                391 191 57 486270 170 44 7805644800 [Microsoft basic data]

Destination /mnt/1TB/recup_dir

Pass 1 - Reading sector   95408656/7805644800, 248 files found
Elapsed time 0h31m55s - Estimated time to completion 42h59m16
png: 90 recovered
txt: 61 recovered
tar: 53 recovered
jpg: 12 recovered
mov: 7 recovered
gif: 5 recovered
mpg: 5 recovered
mkv: 4 recovered
woff: 4 recovered
others: 7 recovered

Re: Learn Linux with me.

Posted: Tue Nov 05, 2019 6:58 pm
by Dazbobaby
So after trying to get the data back and failing, I reinstalled the drive, only to find that the FUCKING GARBAGE Western Digital EX4100 doesn't just want to add this one drive into the JBOD, it want's to format ALL the fucking drives at once.

Do you think this is enough FUCK YOU's?
Should I add more? ... er-review/

Re: Learn Linux with me.

Posted: Tue Nov 05, 2019 7:12 pm
by Dazbobaby