this post was submitted on 11 Jan 2024
19 points (100.0% liked)

Selfhosted

40113 readers
795 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

My wife consumes whatever media I throw at our Plex server and I'd like to stick with it (The tv's + set top boxes/remote controls are all easy for her to use and stream Plex fine)

I'd grabbed an old work PC I replaced years ago, Windows 10, and tossed a Plex server on it and it's worked for a long time but recently despite being used for NOTHING but Plex, its bloated itself like most Windows machines and I found Cortana taking 90% CPU (despite being disabled via registry) and some updates failing over and over.

I'd like to replace it (the software) but really no idea where to start, even the most helpful sites are just "use your favorite Unix then install Plex" or "Here are 56 perfect versions of Unix to install for your Plex server"

Honestly I use it for nothing except Plex, is there something easy enough I could look at?

top 22 comments
sorted by: hot top controversial new old
[–] possiblylinux127@lemmy.zip 5 points 10 months ago (1 children)

The simplest solution would be to install Debian. The thing to note is that the Debian installer is designed to be multipurpose so it will default to installing a GUI.

Assuming you can boot off of a live USB with the Debian installer, you can follow the steps until you get to tasksel software selection from there uncheck gnome and check system utilities and ssh server. Also Debian defaults to separate root and user accounts. I would recommend disabling root (see steps below)

On a different machine, ssh into the server (I'm using debian.local but you should replace that with a hostname or IP)

ssh username@debian.local

Once you have access run the following commands to switch to root.

su - 

Install sudo and give yourself access

sudo apt update
sudo apt install sudo
sudo usermod -aG sudo username 

Now type exit twice to exit the shell entirely. Once that's done log back in.

ssh username@debian.local

Lock root

sudo passwd -l root

Now you have a system to set things up. I would start by enabling automatic updates and installing docker compose. (Docker compose allows you to deploy software very quickly in co trainers via a yaml spec)

#enable automatic updates
sudo apt install unattended-upgrades
sudo dpkg-reconfigure unattended-upgrades
sudo systemctl start unattended-upgrades #probably not needed

#install updates and install docker and docker-compose

sudo apt update
sudo apt upgrade 
sudo apt install docker.io docker-compose
sudo systemctl start docker
sudo usermod -aG docker username

You will need to log out and then back in to apply the docker permission.

I hope that gets you started.

[–] Fashtas@aussie.zone 1 points 10 months ago (1 children)

Thanks, I decided to see what happened with a Mint Install (Before I saw your reply) so as a Toe-in-water thing to learn more about the OS and see what stuff was like. I only Kitty into a Linux server for work and do some basic tasks on it occasionally so was interested.

An ... interesting experience... trivial install, easy enough to understand the UI, entirely failed to get a Plex server working though... Nothing on the network can see it (Local works fine) which doesn't make much difference because Plex has nothing to server since it can't see the folder with movies on it due to, I believe, ownership issues (The files are on a portable USB drive)

Still fiddling but most help documents descend into arcane command line arguments very quickly and are generally "wrong" in that they suggest editing files that don't exist in folders that aren't there.

Still.. a learning experience :) (Easy enough to kill it and tried Debian if I can't work out chown!

[–] Fashtas@aussie.zone 1 points 10 months ago (1 children)

Hah! Apparently in the long list of UFW commands I was running, the first one didn't run or I missed it, can see the server now at least, just need it to see the files!
Entertaining but the wife is getting impatient :/

[–] possiblylinux127@lemmy.zip 1 points 10 months ago (1 children)

Just a disclaimer I have never used Plex has I use Jellyfin.

For your firewall mint has a GUI for it. I'm not sure why your firewall is even turned on as it should be off by default.

[–] Fashtas@aussie.zone 1 points 10 months ago

Could be, dunno yet how to tell these things but the issue was a port was not open. Once opened the server was seen fine!

[–] tristan@aussie.zone 4 points 10 months ago (1 children)

If you're only using it for Plex and nothing else, it probably won't make a lot of difference which you use.

My old setup was Ubuntu running Plex as an install.. if you just run a server without a gui, it's like 3 lines to install Plex

I also have a pi as a portable setup running the docker version which works pretty well but I don't think it will handle hardware encoding very well, but I could be wrong

[–] Fashtas@aussie.zone 1 points 10 months ago (2 children)

Yeah Ubuntu came up in a few searches, I'll read more about that, Desktop was 25gb which was a bit excessive given the age of the PC, will look at server, ty

[–] tristan@aussie.zone 2 points 10 months ago

Minimised Ubuntu server I think only wants like 2.5gb of space and cuts out a lot of things you'll never use

[–] vegetaaaaaaa@lemmy.world 2 points 10 months ago* (last edited 10 months ago)

Debian is another popular choice for servers (Ubuntu is based on Debian, with a few things bolted on top which are in my opinion not worth it). The default Debian installation only consumes 1-2GB disk space (just deselect any desktop environment during the installation process)

[–] Bogusmcfakester@lemmy.world 3 points 10 months ago* (last edited 10 months ago)

I'm in a very similar situation, too many windows services running in the background. Casaos is supposed to be a user friendly way to set up a bunch of docker containers on linux for Plex and the arrs amongst other things. I can't speak for how easy it is as it's something I'm going to be exploring in the coming weeks.

[–] lumpy@lemmy.world 2 points 10 months ago (1 children)

I just got into self-hosting about a week ago and started by getting a small beelink s12 mini. Since you have an old pc you don't need to worry about hardware for now.

To get going with the software I followed this (https://lemmy.world/post/6542476) lemmy post in the beginning. It took me a couple of evenings to understand some basic concepts and after getting everything going I found the recommdation for https://yams.media/. So I wiped everything (because I decided to not encrypt the system and to go with Ubuntu 22.04.03 LTS instead of 23.10) and was supprised how quickly I had yams running again.

So just follow the guide and ask here or on the yams discord if you have any questions during the installation.

[–] Skotimusj@lemmy.ml 1 points 10 months ago

Check the compatibility with Linux but I also used Ubuntu with very little problem. It works flawlessly for me. I had no experience with Linux before this and was able to set it up with some googling and Asking ChatGPT for some useful commands. It was a fun project. The *arr suite is great.

[–] admin@lemmy.mohammadodeh.com 2 points 10 months ago (1 children)

I’ve got a RaspberryPi 4B running dietpi and hosting plex with a debrid service. The setup is very flawless and easy to maintain.

Also very minimal footprint

[–] AtariDump@lemmy.world 2 points 10 months ago

Seconded on DietPi with Plex for a small environment.

[–] nbafantest@lemmy.world 2 points 10 months ago (1 children)

I run Plex on a Raspberry Pi 3, it can support two simultaneous 1080p Streams on my local Wifi. Cant support 2k or 4k videos at all. And cant support video outside of the local network.

“use your favorite Unix then install Plex” or “Here are 56 perfect versions of Unix to install for your Plex server”

What part of this do you think is hard?

Each step can be scary at first but its not hard if you break it into pieces.

Booting Ubuntu or some linux OS is a fun first step if you actually have a spare computer handy

[–] Fashtas@aussie.zone 2 points 10 months ago (1 children)

What part of this do you think is hard?

Not hard... essentially worthless however....

The articles are saying "Here is a list of almost all known versions of Linux, these are good for you to use" when you query what the best option is.... Hardly narrowing down anything. Likewise saying "Use your favorite.. then install the product you want to use" is also useless information if you are asking the question I was.. I have no favorite obviously since I know nothing about it.. and OBVIOUSLY I am going to install the produce I just asked about installing...

The pages I was looking at answered the question "How do I install Linux?" by saying "First, Install Linux"

Not to say there aren't better sources, but all the first ones I found where along that theme

[–] nbafantest@lemmy.world 2 points 10 months ago (1 children)

Ah yeah, i know what you mean. That can be overwhelming. There are a loooooot of choices, and the differences might be things I've never even heard of before.

I think a lot of these articles are written with the expectation that you will try several different versions after you learn to flash/boot. I think i ended up with 4 different forks i could boot from.

When I started, i went with Ubuntu first just because it seemed pretty stable and had support from a large company, but once I leanred how to boot Ubuntu it was easy to do the same steps for the other versions to try them out.

[–] Fashtas@aussie.zone 1 points 10 months ago (1 children)

I actually went back and had a look at a few of the top results and I have a feeling a lot were AI written Sandtraps. Several were very similar "Install your favorite Linux then "

Makes it had for a newbie who doesn't know what they don't know so can't ask the right question.

The Mint install works fine now, I made a lot of mistakes and took a while to get head around the folder structure and permissions but once I am more comfortable next time I'll try something a little more headless I think, though playing around I reckon I'd be happy with Mint as a daily machine (if only my job wasn't coding Windows apps :/)

[–] nbafantest@lemmy.world 1 points 10 months ago

Thats great progress

[–] Decronym@lemmy.decronym.xyz 1 points 10 months ago* (last edited 10 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
IP Internet Protocol
LTS Long Term Support software version
LXC Linux Containers
Plex Brand of media server package

4 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

[Thread #426 for this sub, first seen 12th Jan 2024, 20:45] [FAQ] [Full list] [Contact] [Source code]

[–] jozza@lemmy.world 1 points 10 months ago

I recently migrated my Plex server to a box running Proxmox with Plex in an LXC container. Very little resource overhead, and it's been rock solid ever since. No ragrets.

[–] guyinachair@lemmy.world 1 points 10 months ago* (last edited 10 months ago)

Have you considered truenas scale? It's debian based and there's an official app for Plex. Not to mention a plethora of guides to get scale and Plex up and running.