Hey what’s going on youtube today’s video is going to cover the installation of minecraft server one version 1.19 i had created a video a few months back uh it was using the gui we had an interface i did have a few questions regarding if You were to run this on a server it was headless so it had no user interface how would they go about that but today’s video is going to cover exactly that we are going to cover the installation on an ubuntu server and then we are going To prove that it works and i’m also going to highlight how you would get mods from maybe your windows machine your linux machine all without using an interface and only using the command line all right before we get started i do want to point out that this video is Only going to focus on the minecraft server or the server side of it not the client side so we’re going to set up the server on an ubuntu server only using the command line if you had any questions in regards to the client i did explain some of that in the last video Maybe i could do another one in the future um but don’t waste your time if that’s what you’re looking for this video is strictly the server although i will pull up the client we will log into it and i’ll cover a few things there but as far as configuring the client and Installing it for you and your friends that is a entirely different video so the first step that we are going to do is we are going to update our system i already had that done but make sure you go ahead and do this so sudo apt-get this is going to update the repositories That you have loaded on your machine don’t worry about this last one i have to get rid of that that was from a previous uh example i was making but make sure you go ahead and do that so when you do run your installations that you’re updating from the most recent repository The next a very useful command is that we could search the repositories for different files that we may need so for example minecraft if you were to run an older or an outdated version of java you will get an error which i will highlight later um So if you were to use this search command you go ahead and search what is available for you to use and then you can go ahead and download it let’s go ahead and run app and then we’ll do openj k and here at the bottom as you can see here The different versions that are available so for the one that we are going to grab today which i already have gonna be version 17. um but if you scroll up you can see different versions um but like i said depending on the version that you were running and depending on The version that you have currently active may determine if you get an error or not so keep that in mind this is a useful command that you can use to find the correct version all right so let’s go ahead and copy and paste that but we wanted this one right here We’re going to run sudo apt install and then we’ll just paste it in there i already have it installed as you can see here and it is the newest version available so go ahead and clear that out and to show that it is the version that we are Using we could do the version command and as you can see this is the version that we had just downloaded and we could also see what versions we already have installed on our system we could just use sudo update alternate i can never spell this and there you go this is the different Versions that are available or already installed on our system later i will highlight exactly what you would need to do in order to switch between the two but for example if you were running this one but you need this one you will get an error they may throw you for a loop Which i will explain better later alright so let’s move on to downloading the server if we go ahead we can pull that up pull it up here um you go ahead and download your minecraft server from minecraft forge there’s a number of ways that you can go Ahead and download this server i’m using minecraft forge for this video on the left side go ahead and pick your version that you were looking for for this video we are looking for 1.19 uh and then over here in the middle is the install and the installer depending on what version you’re running You might get it recommended you may get the latest pins 1.19 is fairly new i guess they’re not showing they used to show the difference uh but maybe it’s only one latest now maybe i’m missing something but either way go ahead and then click on this link Right here it’s going to bring up an ad site up here at the top right is where the link is going to appear instead of clicking on this link we are going to right click and then copy link address and then we’re going to go back into our back into our show So here uh we’re gonna go ahead and use wget as our tool to download change directory inside of that and then we’ll go ahead and use wget we’ll post that link there or paste it i should say let’s go ahead and let that download all right now that the installer has Downloaded go ahead and list out the contents of this directory here’s the jar file that we need um before we go ahead and go any further let’s highlight the help file that is associated with this jar file if we use java jar to specify this jar file and then the help option You can see we have several options that are available to us the one that we are looking after today or looking for today is going to be the install server which is install the server to the current directory it will go ahead use the previous command delete the help And just run install server that’s it so it’s going to go ahead and install that to our current directory and we’ll let that run for a minute all right so the installation of that jar file is complete so go ahead again and list out the contents of our Directory as you can see here it says we could delete the installer if we wish we could just keep it here it’s always good to keep so in the future if you want to maybe delete everything and then run that again everything back to default you could do so Um so two things to look at first is we have a run.sh so if we were to run the ls-la we can see that it is executable by us and then we have this one down here so if we list out or cut user this is the file where you could specify Various arguments for the the jar file the java file we can specify how much ram we want to use whether it’s minimum or maximum these are the options here it also tells us here is a good default for a modded server four gigabytes you can uncomment this where they go You can uncomment the next line to set it um which is some reason disappeared if we wanted to go in here we could go ahead and use vim you could use nano there’s a number of uh text editor tools and we can just go ahead and comment that out and now That’s there but we’ll go ahead and just leave it default for now all right let’s go ahead and clear that out let’s go ahead and um execute the bash script so this run dot sh is a bash script which is going to execute the server or attempt to then You will first run into this error pretty much telling you that you have to agree to some terms if we ls the directory again we could see we now have this right here let’s go ahead and edit that i will highlight now now this time which is uh probably easier more like notepad For windows or others that are not familiar with vim they go ahead use nano command open that up and you just use your your uh your keys to get down to the false we’re gonna change that to true then you’re going to hit control x save modified buffer y and then hit enter Now if we look at that you can see that the change has been made set to true let’s go ahead and run it again so now we will let this do its full thing once it is done running we will essentially shut it down so we can edit some uh properties And then we will turn it back on and join the server alright so now we can see that the server has completed running its first run through i guess you could say you can see it’s 98 and then it says it’s done and it’s successful let’s go ahead And we’ll close it out using ctrl c it’ll say oh stop save player saving the worlds no one’s in there i just want to highlight the server.properties file in that file we’ll have the various options that are available to you that are running this server one thing in particular that you will be That you need to be mindful at the very beginning is the port the port is what you need to expose to your friends or through your router which is not going to be covered in this video but look up port forwarding and that will get you in the right direction Whatever port is listed here is essentially what you want to forward and that will allow that port to be accessible on the public internet all right so we had saved that out go ahead and list it out again now we can see server.properties so we go ahead and then that We could use the forward slash and then we could search so say port hit enter and these are the ports that are available are that are here um so server port right here is the one that we want to take a look at so two five Five six five so whatever is here is the one that you want to put on your router also the ip address which is going to be default to the machine that we are using so in this particular case um that’s the ip address of this machine although i do not think that is Necessary as i able to join this server without that ip address there um yeah so that’s it so keep this port is what you need in order to join the server and you need to expose that using your router but for today’s example we’re just going to join it on the client Just on our local area network without exposing it to the internet so go ahead we’ll close that out and then we’ll go ahead and run that again while that is running i will pull up the minecraft and we will join it when it is ready alright so it looks like our server is Up and running so if we go into multiplayer go ahead and add the server i already added it actually but this way you would do it here let’s say minecraft server you could put the app address here and again the port number will go here So it was a two i can’t remember exactly what it was we’ll just cancel that because i have it right here anyway so two five five six five we named it youtube server this ip address that we had listed again i did not save it and that is not needed apparently But just to prove that it works we’ll go ahead and hit join and there we go we are back in our minecraft server version 1.19 all right so the next uh part of this video is i’m going to quickly explain that error that i was talking about earlier between the different java Versions so we are going to do that next and then following that we will quickly describe a method used that you could use in order to transfer your mod files from your windows machine onto your server only using the command line all right so we are back at our terminal Um so the two commands that we are going to be using is the one that we used earlier so go ahead and paste that in there again so we want to list out the various java versions that are out on our system and then we are going to use that same Command but instead of list we’re going to use set and then let’s specify the path to that version and paste that in here now if we were to run the run.sh script we will get this error right here depending on what version you’re running you may get a different number here and You could google that and it’ll give you some kind of direction but more often than not you’ll be looking for a while so just go ahead make sure you get the right the right version of java so in this case make sure we get uh version 17 we go back into there List it out and then we’ll go ahead and set it again back to the 17. and run that run script one more time you can see that the server will start running that’s that all right so the last thing that i want to talk about today is going to be the Transfer of mods to our linux server only using the command line but let’s say we had some mods on our windows machine so let’s go ahead and go into the folder where we are holding these mods so as you can see here we have a mods Folder this is all made up none of this is actual real mods but it is a good example as to what you could use so let’s list out that mods folder as you can see we have a text or two mod folders mod one and mod two Sorry these are text files not folders and then we have an archive which stores these two in there that is my um um that is my method so go ahead grab all your mods download it from whatever website you would like and then go ahead and archive them into one file whether That be zip or whatever you want to use and then we will grab that one file and transfer it to the linux server so in order to do that we are just going to spin up a python server so if you do not have python installed run python3 Just by itself and it will tell you if it is not installed it will open up the store just go ahead and download that and you will be good to go let’s go ahead and run python3 this is a built-in module so we’re going to run m And then http server and we’re going to specify a port and we will put it on port 8000 go ahead and hit allow access now if we open up our web browser and we head over to this link first off let me make sure you run ipconfig this is the Ip address that you want to head over to so in this case it is 192.168.1.4 let’s go ahead open that up in the web browser and then we will download that file all right so let’s open up a new tab put this right here and we’ll specify the port It should open up that directory and it did not sorry because i do not have it running anymore and there we go so now we have this this is our file path our directory holding those mods um so you go ahead and we can just right click again we copy link address Now if we go into here we have a mods folder in there so we’ll go into our mods folder make it look nice and then we will go ahead and use wget and we will paste that link and now we have our mods that’s it all right so that is all for today’s Video i hope you were able to take something away for those that are need a little bit more information you can go ahead and check out my last video it will be in the description below in that video we covered a little bit more but in regards to using a an ubuntu Machine with an interface in this case this video was strictly focused on using a machine that only had command line allowing you to get the files that you need in order to spin up your server for you and your friends that is it for today again i hope you were able to take Something away as always never stop learning Video Information
This video, titled ‘Installing Minecraft Forge 1.19, a modded server on a headless ubuntu instance’, was uploaded by CyberMe on 2022-08-28 10:41:03. It has garnered 10476 views and 249 likes. The duration of the video is 00:17:32 or 1052 seconds.
In this video we will cover each step from downloading the files to connecting to your own modded Minecraft server on a headless Ubuntu instance. What this means is that we are connecting to a Ubuntu server through SSH without any user interface. We use built in Linux tools to download and install the necessary files. Along the way we also cover some errors you may run into and how to fix it.
If you are interested in how to perform this same action on a Ubuntu machine with a user interface check out my other video here…..
I had a lot of questions on the last video and tried to answer every question in a timely manner. So with that being feel free to ask any qustions here in this video as well and I will do my best to get back to you.
If you enjoyed this video show some love. As always, Never Stop Learning!
—————————————————————————————————————————
Music: – Artist(s) name – Khutoko, Blue Wednesday – Song – Walk Out – Provided by Lofi Girl – Listen: https://open.spotify.com/track/1TYPv1m4WCmSuoE48RIBAe?si=493e72a207d6412f