Home › Forums › Operating Systems › Linux › PeppermintOS › PeppermintOS NAS+Plex Server
- This topic has 0 replies, 1 voice, and was last updated 9 months, 3 weeks ago by
Voodoo.
-
AuthorPosts
-
April 1, 2020 at 3:44 AM #619
Voodoo
KeymasterInstall PeppermintOS:
1) If you are using UEFI, make sure the hard drive is set as a GPT instead of an MBR. Then create a 500MB partition at the very front of the drive and format it as EFI.
2) Create a SWAP partition at the end of the first drive. It is advised to be the same size as your RAM.
3) Then create a 30GB ext4 partition and mount it as / (aka root) at the front of the drive (either at the very beginning or the second partition if your first partition is your EFI partition)
4) Format the rest of the drive as your /home drive.Make sure that your username is “plex” in order to make things easier with permissions later on.
After install, open up terminal and run the following:
sudo apt-get update
followed by
sudo apt-get upgrade
Now bond the network cards together as an “adaptive load balancing” using the gui
Firefox “Wildvine”.
1) In the address bar of your Firefox, paste and go toabout:config
2) Search formedia.gmp-widevinecdm.
and “toggle” bothmedia.gmp-widevinecdm.visible
andmedia.gmp-widevinecdm.enabled
arefalse
. You double click the items to toggle them.
3) Close the browser and you are done.Install OpenSSH Server:
This can be done using the Software ManagerInstall Timeshift:
This can be done using the Software Manager
NOTE: When you set a location, make sure it has space for multiple backups. I create a 100GB XFS partition on one of my other hard drives and set it aside for Timeshift. I then set it to 2 monthly backups and 5 scheduled.Linux Software Raid (Mdadm) and Samba
Mdadm – https://www.tecmint.com/create-raid0-in-linux/
Mounting and sharing with Samba – https://www.youtube.com/watch?v=cSi-NOlomLc&t=1522s (at 8:11 and 14:36)NOTES for Mdadm and Samba:
sudo su
blkid | grep "/dev/md0" | tee -a /etc/fstab
nano /etc/fstab
# Raid0 using MDADM
UUID=5d7ea623-2329-476b-aab9-7baaaa5c7444 /srv/raid0 xfs noatime,rw 0 0
sudo mkdir /media/plex/ramdisk sudo chmod 777 /media/plex/ramdisk sudo mount -t tmpfs -o size=4G RamDisk /media/plex/ramdisk mount | tail -n 1 sudo nano /etc/fstab RamDisk /media/plex/ramdisk tmpfs defaults,size=4G,x-gvfs-show 0 0 # Raid0 using MDADM UUID=5d7ea623-2329-476b-aab9-7baaaa5c7444 /media/plex/raid0 xfs noatime,rw,x-gvfs-show 0 0 blkid | grep "/dev/sdb" | tee -a /etc/fstab blkid | grep "/dev/sdc" | tee -a /etc/fstab blkid | grep "/dev/md0" | tee -a /etc/fstab
Network Share: (14:36) in the video above:
sudo apt-get install samba
cd /etc/samba
sudo nano smb.conf
[Share] path = /srv/raid0/ force group = plex force user = plex browsable = yes writeable = yes guest ok = yes [Raid0] path = /media/plex/raid0/ force group = plex force user = plex browsable = yes writeable = yes guest ok = yes [Movies] path = /media/plex/6TB-HDD/Movies force group = plex force user = plex browsable = yes writeable = no guest ok = yes [Movies3D] path = /media/plex/5TB-HDD/Movies3D force group = plex force user = plex browsable = yes writeable = no guest ok = yes [TVShows] path = /media/plex/5TB-HDD/TVShows force group = plex force user = plex browsable = yes writeable = no guest ok = yes [VideoShorts] path = /media/plex/5TB-HDD/VideoShorts force group = plex force user = plex browsable = yes writeable = no guest ok = yes
sudo chown -R plex:plex /srv
sudo chown -R plex:plex /media/plex
sudo systemctl restart smbd
Setup RamDisk for Plex Transcoding (I used 4GB)
https://www.linuxbabe.com/command-line/create-ramdisk-linuxInstall Cockpit:
sudo apt-get install cockpit
Then head over to http://localhost:9090 to continue (localhost can be replaced with the pc name or IP)
Install Plex Server:
Install Conky:
http://vworld.us/forums/topic/conky-for-linux-mint-19-3/Install Stacer:
http://vworld.us/forums/topic/stacer/-
This topic was modified 9 months, 3 weeks ago by
Voodoo.
-
This topic was modified 9 months, 3 weeks ago by
Voodoo.
-
This topic was modified 9 months, 3 weeks ago by
Voodoo.
-
This topic was modified 9 months, 3 weeks ago by
Voodoo.
-
This topic was modified 9 months, 3 weeks ago by
Voodoo.
-
This topic was modified 9 months, 3 weeks ago by
Voodoo.
-
This topic was modified 9 months, 3 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.