Advertisement
KpasteG13

Plex Media Server and Static IP

Jul 8th, 2025 (edited)
3
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | Source Code | 0 0
  1. ** = Important
  2.  
  3. **Always put media in MP4 and subtitles in SRT because it is well understood everywhere
  4.  
  5. **Avoid AV1 Codec (not very well understood by many devices, will cause strain)
  6.  
  7. Set Static IP Address (with Network Tools)
  8.  
  9. ip route | grep default
  10. default via 192.168.1.1 dev eth0 proto dhcp src 192.168.1.149 metric 100
  11.  
  12. In this case 192.168.1.1 is our routers IP Address and 192.168.1.149 is our IP Address.
  13.  
  14. sudo nano /etc/resolv.conf
  15. # Generated by NetworkManager
  16. search lan
  17. nameserver 192.168.1.1 #This is our routers IP Address
  18. nameserver 2603:6081:ba00:7c::1
  19.  
  20. Ctrl+X To exit
  21. nmtui then press, "Edit a connection," then press desired network connection.
  22. Use arrow keys to navigate to IPv4 Configuration then select Manual, navigate to <Show> and press Enter.
  23. Navigate to Addresses and put in your desired vacant IP Address.
  24. Navigate to Gateway and put the IP Address of your router.
  25. Select DNS servers and put in your desired DNS server's IP or your router's IP.
  26. Navigate down to <OK> and press Enter.
  27. Select <Back> then select Quit.
  28. sudo systemctl restart NetworkManager
  29.  
  30. To check type hostname -I
  31. It should be the one you have set in the network manager tool.
  32.  
  33. Install Plex
  34. 1. Install Dependencies
  35.  
  36. sudo apt update
  37. sudo apt upgrade
  38. sudo apt install apt-transport-https
  39.  
  40. 2. Add Plex GPG keys
  41.  
  42. curl https://downloads.plex.tv/plex-keys/PlexSign.key | gpg --dearmor | sudo tee /usr/share/keyrings/plex-archive-keyring.gpg >/dev/null
  43.  
  44. 3. Add Plex Repository to our sources list
  45.  
  46. echo deb [signed-by=/usr/share/keyrings/plex-archive-keyring.gpg] https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
  47.  
  48. 4. Update our repos
  49.  
  50. sudo apt update
  51.  
  52. If you get the error "/usr/lib/apt/methods/https" could not be found. Then the https transport package hasn’t been installed. Double check that it has been installed correctly.
  53.  
  54. 5. Install Plex Media Server
  55.  
  56. sudo apt install plexmediaserver
  57.  
  58. All of the above content was made by Pi My Life Up and I have put them together in a simple guide for all.
  59. I have spent a bunch of time on this guide and I plan on using this myself to host a Plex Media Server on my own Raspberry Pi 4.
  60. Please do not repost this because neither I or Pi My Life Up would really appreciate that.
  61.  
  62. Thank you,
  63. KpasteG13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement