Dedicated Debian Bullseye server for Plex and/or Jellyfin. Using Samba, SSH, and a USB Drive

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome back to the channel my name is Drew this is just a guy Linux on YouTube and before you get your panties in a bunch yes I'm using a Windows machine for another as long as the intro is let's put it that way um the reason why I'm going to use this machine is it's been sitting in a closet for I don't know a while year and a half maybe two um and what I'm going to do and the scope of this video is I'm going to create a Debian server for media and media serving so me I use Plex and I have since 2014. now I haven't always had a dedicated server fourplex it's only been the last two or three years maybe or so anyway I used to use a Nas that had a Plex plug-in so I was able to use it but I chose to kind of like move away from it just so that I had like kind of to break up if there was only one point of failure it wouldn't be the nas server so and this has been Rock Solid the Debian server with Plex working on it now the reason again the reason why I haven't used like jelly fin or something like that it wasn't there you know in 2014 so I've kind of have a lot of time and I've had a lifetime uh I've been a lifetime subscriber to Plex for like I said nine years plus so I'm going to talk a little bit about how I've set things up with live television as well that's just my workspace but here is my dedicated Plex server um it's I got a really good deal on this little um Dell and I connect to the media by way of this USB um and this five terabyte Drive so I mean I could probably get big I mean I think it's fine for what I have currently five terabytes is plenty um so in order to be able to connect to this server the only thing that's plugged into this is a network cable okay that's it it just sits over there and does nothing except serve media now I connect to it via SSH which we will show how to set that up and we will connect and and we'll also set up file sharing for this USB this isn't always straightforward and one of the reasons why I want to do this video is because I want to remember how to do this in the future I'm trying to Future proof myself a little bit and maybe this helps somebody else as well okay so um just a quick picture this is what I use this is a over-the-air receiver that transcodes uh the over-the-air picture into something that can be a uh you know I have this network cable so I'm able to watch live television on the network throughout the house you know I'm saying so I have a uh I think it's two terabytes two terabyte drive that's plugged into this um so that I'm able to record over the air as well um and then this is just my test area which is right next to my work area uh the top PC here is what we're going to be using and the bottom one is the one I normally use for um for all my videos so I am probably going to um pause the video here the reason why is because I lose um my every time I try to do a reboot here uh obs the connection fails so the next time so I'm gonna pause and start off with um basically ditching this OS and just putting Debian on okay okay this is a reboot and we are looking at a Debian install now uh you will notice that I am using a Debian Bullseye or Debian 11 and you might ask the question why don't you just wait two days when Debian Bookworm is released and you can do this with the latest and greatest you got a fair argument I don't know maybe you have do I need to is it going to be any different on the server level probably not and in fact I can make an argument that Debbie 11 is to the point where the stability is as good as it's going to get there will be much much fewer updates in the next year so why not just rock with the most stable server that we have for Debian my I mean again you can argue both ways I am going to go with the um Debian 11. that's that's it so I'm going to go down to the expert install like I normally do uh just to get things quickly through I [Music] um I'm going to hit the enter key a few times I will stop and I will put um time tags into the video so that if you don't need this then you're you're good I will say this uh there will be slightly slight changes to how I normally do it in one aspect I will be not using butter FS I'm just going to be using standard ext4 and but I am going to name it something that's easily to remember a lot of times Debian will pick like some random like machine name and generally I change that so I would recommend changing it for you as well we'll get there um and you'll see what I mean now this particular machine has an incredibly small hard drive it's like 128 gigabytes so if you were to use something this small you are going to need like a um external drive and I'm going to use just like a 32 gig external USB to demonstrate how to set that up now again I've created this um this machine with the hostname Bellagio I use sometimes um Hotel names from Vegas so Bellagio seems to be a good name for me and I'm going to hit continue and a couple times and yes and no like we normally do and if you want again I'm not going to put like a super complicated password because it's within my network yes [Music] and we're gonna do a manual again like I said there's 128 gig of uh nvme so let's let's put GPT here and let's go and create a ah it doesn't matter let's just go 500 megabytes or smaller it's fine so hit continue [Music] and then use this as EFI done and now the rest of it we're going to just partition using ext4 that's seems reasonable and let's finish and nope and yes to write the changes and let's go ahead and install the base system [Music] and try to do this as quickly as possible this is really not the most important aspect of it once we start once we start then we'll get into Saba sharing and and things like that and I don't yeah hmm if you want to be real super safe I'm just saying if you want to be super safe just pick one of these like FTP us or debian.org um that's fine I'm go I'm using this is not going to be a production I am going to just go ahead and for Speed because I know it's the fastest mirror [Music] and yes and no now I'm not going to change anything I don't think the back ports is going to be necessary for this so we're just going to hit continue foreign as far as software is concerned we're going to do the minimal software now there will be a slight I usually don't add open SSH or SSH serving I am this time so you'll see in a second no okay and we're gonna like I said we're gonna uh arrow down and turn these off by hitting the space bar but we are going to add SSH server here and then hit continue it only actually adds five packages to the installation now I this I will have to say that this particular machine um is super light in resources now if you're going to do this and you wanted to do you use like a um a dedicated GPU that I might actually have to redo this video using an Nvidia card because that might be something that's worthwhile but let's just get through this [Music] um using Intel video okay so I am rebooting and I probably shouldn't so what I'm going to do is I'm going to pause the video because at this point I actually don't need um I don't need to be on this machine I can just SSH into this machine so as long as you're good with at this point um I think that you'll be all right so what I'm going to do is pause and uh use my test machine to complete the rest of this video okay we are in the uh my test machine which is using Q tile right now um and I'm going to open up a terminal and let us SSH into using our username and the name of the machine that we just created was called Bellagio okay and it's like is asking if we want to connect and the answer is yes and our password was that awesome password so now what we're doing we've got um we are in the other machine and the the server okay now let's do some let's do some uh installation stuff that we might want to use and let's say install uh micro just in case we need a text editor Ranger just in case we want to use a file uh terminal file manager um and Samba um I want to install EXA and I think I want to install xdg [Music] user dirs [Music] and should be good like that [Music] Okay so excuse me goodness sake let me um I'm going to install get just so I can get my bash RC that's the only reason okay that's the only reason I can always uninstall it later but [Music] uh so git clone um [Music] I can this is probably the stupidest way to do this but I'm just going to do it anyway okay and now um and I'm going to move my DOT Bash see um to my there we go and so let's just oh I forgot Neo fetch design okay let's just do that real quick uh see apt install neofetch [Music] and doesn't matter [Music] make it nice and pretty when you log in to do whatever you need to do [Music] uh super unimportant but let me go ahead and clear the screen and so now if I do this is my this is Bellagio 460 packages memory is fine and I think what we need to do now is oh let me just do this real quick and xdg user 's update and that way we have all of our oh CD LS so now we have all of our like you know documents and all that stuff is it necessary no it's not I am going to be using the home directory for the USB drive though so um let's install uh zram tools and um Intel microcode micro code and migrated code there we go and okay let's uh pseudo micro [Music] um Etsy default cram swap and let's uncomment and then uncomment and say 25 and now we're good there and let's clear the screen so while I'm at it I think what we can do um is I can open thunar and browse Network now as you remember the name of the um [Music] the name of the machine that we created or the you know the hostname is Bellagio and I just want to see if that's something that we can just SFTP to since we installed since we installed Samba so if I click on that and yep there you go you might have to log in or authenticate I think I already did once and I can go to home and then my name so I have access to the user so if I want to start moving stuff over I can now the problem again is that um you don't have access to anything other than the drive the hard drive and that drive is only 128 megabytes so you're not or sorry 128 gigabytes so you're not you're not storing a whole lot on on this particular machine now if I go to um sorry my terminal and I say lsblk you'll notice that the zram swap is there this nvme is uh there and that is our um SSD and sda1 SDA and sda1 is a USB that I just stuck in there stuck in the USB slot about a second or two ago so this is what we need to find so that we can move um we can move media to that USB so what I'd like to do actually is remove this I don't even remember uh I don't even remember what's on this USB stick uh I know that it's 32 gig um so I'm going to remove it and then put it in the test machine that I'm using to record on okay so since now again I'm over I'm doing this command inside of the um Bellagio which is our are now our Debian server and you can see that I've removed and there is no more SDA so I am going to open up um Disk Utility so uh and let me go ahead and move that over to workspace two okay and you'll see that this is got oh it's just free space that's why all right and what I think I'd like to do is create a partition and I'll erase it and we'll just call this media files [Music] and I think I'd like to just create this internal xta4 um since we're just using this as a uh on the Debian server and I'm going to hit create now what I'm going to do is I'm going to go ahead and pause this for now until it um until it finishes oh and it takes 34 minutes wow that's that's a lot longer than I thought I was going to all right well I'll pause and uh and come back to you in a sec okay so it's finished uh it's formatting um and this uuid is important I just went ahead and copied it and pasted it into uh Genie my text editor now I'm going to go back over to uh workspace one again this is the uh Bellagio um this is the Bellagio server for media and PWD yeah I want to make sure that we're gonna we're gonna go ahead and actually put the USB stick in on in the server and I want to go ahead and create so I'm going to go make bir and then we're just going to call it USB okay and there you go so there's that USB right here now what I want to do is I'm going to do lsbok again and you'll see that the S the USB stick is now on SDA sda1 all right let's go ahead and let's clear the screen and we're going to let me just plug it let's be okay again real quick so what I'd like to do is say sudo uh block ID and we're going to look at Dev s d a s d a one okay and there's that that same number 293 so just make sure it's the same right two nine three yep so what we should what we can do which I think is a good idea since we've already created this uh USB directory is to mount it at boot so we can do that by saying sudo micro which I've already installed and then Etsy and Fs tab okay I'm going to go ahead and close this just so I have full screen okay and now what we want to do is we're going to um basically copy a we're going to copy a a line of this uh you know what we're going to do we're just gonna go like this it's just we're just going to add a line and say uuid equals okay now we need that number here so I'm just going to copy it and then back over here and we're going to paste it okay [Music] now let's just hit the tab and we're going to give it a mount point of home and then the username in this case Drew and USB okay and let's go ahead and hit tab again and we're going to give it an XT ext4 and then let's tab it and go defaults and then tab 0 space zero okay actually let's let's go ahead and and put a tab in and then hit zero and now let's just uh save this by hitting uh in since we're using micro it's Ctrl s and then control Q okay now just so that we know that it's going to um boot up with the correct um we're gonna we're just gonna reboot so that we can see that take into effect so I'm going to reboot and notice that it closed the remote and give it a second or two and then we'll um we'll we'll re-log into Bellagio okay so I don't know SSH and uh into uh Bellagio might take another minute or two but it'll it'll continue to try to connect um and then it will give us a a prompt for the password there we go okay finally and there's uh there's our server and we're logged in and I'm going to clear the screen all right so LS and there's that USB that we created and so if I CD into USB now there's there's the um the drive okay now the problem might be that it is root okay okay let's go ahead and and we're gonna go back and we're going to see sudo CH own and then we're going to say drew colon Drew and then home through oh and then also I need sorry Dash R there and then USB okay so now when we go back into [Music] USB oh sorry CD and USB there we go you'll see that the permissions are different okay so let's go ahead and test this I'm going to um I'm going to go and open up my theunar and again I'm going to log in to SFTP and uh Bellagio [Music] okay actually it's got me logged in and now if I go to home through USB I just want to create a folder that we're going to call movies okay and let's also create a folder called TV shows okay so now we're able to like start doing stuff okay which is great now and the one thing I like to do and this is just me maybe but I'm just going to go back one level and I'm gonna go to this USB directory and I'm going to send this to and create a shortcut so that I have an easy way to get to the server and what I like to do is is rename the shortcut and say it's um Bellagio or um and then let's just call it USB okay and that way I know like if I do click away you know I'm in my my documents or something like that and I click back to the USB Bellagio this Bellagio slash USB I know that I'm on the server okay that's just a easy way to do it okay so the I guess we need to install our uh whether it be jellyfin or um or Plex so I guess right here I've added I'm on the page where I think it's uh you're gonna add this particular line copy that oh you know we need though let me just do it real quick uh install curl [Music] okay let me just clear the screen and now I'm going to go ahead and put that line in good and let's go back here and we can do copy that [Music] and there you go so now when I say uh update or pseudo apt update there it is um I would I can easily now say sudo or just yeah I'm just gonna say pseudo apt install and Plex media server oh it's not called that oh it's just I think it's actually it's just there's no hyphen there I'm saying complex media server there you go and there you have it okay all right well I'm at it might as well install Jelly fin at the same time so I'm going to go over here and we can do this copy that and let's go and paste that in there [Music] a lot more stuff huh waiting 15 seconds okay so you can access this by going to this on your server um okay let's try that I don't know that that's right but I'm gonna go with copy and let's go back over here and open and paste and go is that even um yeah I'm gonna say no let's let's try this about and then let's actually call it Bellagio [Music] there you go all right so we're able to log into Bellagio and now we can set up stuff now let's also at the same time let's let's do this with Plex too so I think it's uh we have to get the IDP so if you're if you don't know what your IP is just kind of IP there and we need this particular uh IP and I'm going to go over here and we're going to say 192. and actually I have it already it's and then see this part here oh whoa whoa whoa I should have done let me go back sorry a 192 .168 and this with the word web is what you want okay so this is what you're going to need for setting up a Plex server all right and now when I hit enter it's going to take me to a login screen okay now now what I'd like to do since I'm I'm at the point where I can like uh use both jellyfin and Plex I think what I'm going to do is is uh stop the video now and do a second video on configuration so what we've done today is basically is create a Debian server for this media serving and um and it was pretty straightforward right okay so I'll talk to you soon about how to use both jellyfin and Plex
Info
Channel: JustAGuy Linux
Views: 2,814
Rating: undefined out of 5
Keywords: linux, linux installation guide, debian, bullseye, server, plex, jellyfin, ssh, samba, external drive, usb
Id: Z1x9JKl7LP0
Channel Id: undefined
Length: 35min 26sec (2126 seconds)
Published: Fri Jun 09 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.