All right so here we are in minecraft uh today we’re gonna do another video just covering how to create a minecraft server a modded minecraft server we’re gonna cover everything from installation settings uh ports and stuff like that how to get the mods on both for the server and the client The main whole main reason why i did this originally a couple of months back was to just pretty much get a better understanding of managing a linux server and i thought what better way to do that um Then creating a minecraft server from me and my friends and family so with that being said let’s get right into the first step is going to be checking the java version uh so minecraft server for 1.8 or 1.18.1 does require java 17. as you can see here here’s the reference So to easily do that you’re just going to go ahead to your terminal and check what is currently installed so as you can see here we have open jdk 17 but if you didn’t have that one installed and you had another one installed you would go to the website Install it and then in order to change it you would just run this command this is going to tell you what oh sorry it’s going to tell you what is installed currently on your system and then you’re going to take this path for java 17 and then you’re going to run This command with sudo and then just put the path i already have it so i can do it again but that’s how you would set the current version um and then you have java 17 version running so the next step is going to be to download the actual minecraft forge Server so it’s going to go ahead to the website minecraft4s.net the whole reason why i went with minecraft 1.1 8.1 is because of that most recent vulnerability for the log 4j uh so with this client or with this server it does patch that so we don’t have to worry about that as much So go to the website download the installer all right now that we have downloaded the minecraft server i’m going to go ahead and move it from the downloads folder into our folder or directory that we’re gonna run this server so we’ll just go check it out see where It’s at so we’re just gonna move that or copy it from downloads directory to the current directory all right so now we have it in our current directory and then we’re just going to run the java command so after running that command it’s going to pop up the the gui to For the mod system installer i’m going to go ahead and go to install server we’re going to change the directory to our current directory to install that server inside of okay and just let it run easy enough so after the installer runs and does this thing Go ahead and check out the directory as you can see we have a few things here we have a log for that uh install some libraries about script and a bash script along with this text file so the first thing you’re going to want to do is edit the run Script so we’re going to go ahead and use vim and as you can see here it says that we could add custom jvm arguments to the user saving arguments or you could also just pass them directly to the script which we’ll go ahead and just do that now So adding those two arguments will do a set a minimum for the ram for four gigs and then the same thing for max for six gigs go ahead and save that now when we go ahead and run that script we will notice that it um it stops Running the script because it says you need to agree to the agreements or the um the other agreements so we’ll just go ahead and go ahead and see that it creates that file so let’s go into them again i’m just going to set this to true And then we’re just going to run that script again it’s also going to create a few more things or we could go ahead and just do the mods now all right so after setting that to true and saying that we agree we’re going to go ahead and run that script one more Time it should create a few more files such as the server properties and a few other things that we’ll cover in a minute all right so after running the script a second time as you can see it pops up the minecraft server it’s gonna be the Gui which we could get rid of if we wanted to i just left it as a default and let it open up um but in order to join the server we have to change the server properties files which was now created after running that script the last time So it’s going to go ahead we’re going to end the server by pressing ctrl c it’s going to save the chunks generated a world which which we’re going to delete anyway so we’re going to list out the contents of this directory as you can see it had created the server.properties file So let’s go ahead and we’re going to go in there with vim alright so a few things that we look out for there’s a bunch of different options you can go ahead and play around with uh the biggest thing that we want to play around or to change is going to be the Ip address and the uh server port so the server ip for now we’re just going to leave it at our local ip address so it’s going to hit i for insert and then we’re just going to change it to 192.168.1.52 which is what i have set up for this Virtual machine and then the port that’s the default port i always just change the default reports and stuff like that so i’m just going to change this to 66622 all right then we’re going to go ahead and save and exit and you could also see that it had Created this world directory so that is the everything all the chunks and everything like that put into the world so we want to go ahead and remove that before we load our mods because some of those mods are going to have um some generating features and stuff like That so obviously we want to get rid of that so all those mods get into the new world all right so after to go ahead and get into our mods folder as you can see it’s currently blank there’s nothing in here there’s a few ways to go about this uh For me personally i downloaded everything on my windows machine because i have to obviously load it on the client side which would not be covering this video and then from there i created a python server http or http server which would look like something like this You load the module http dot server and then the port number i don’t even know if i have uh okay there it is i mean i just did a crazy report there there we go so 8 000 uh so really if we were in um our downloads folder or whatever folder We want they had like a zip file of all the mods we could just go ahead on our linux machine or on our windows machine download that file and extract it into our mods folder that’s the easiest way to go about that i already have all the mods installed From my actual minecraft server so i’m going to go ahead and copy that over to this folder all right so i went ahead and i downloaded all of the or copied all the mods from my actual minecraft server and just put it into this server now so as you Can see these are all the mods that i’m going to be running so at this point all we have to really do is we’re going to go back to the home directory of this server which has all these files in it we already edited the server properties so We have an ip address and a port number for this server we added the mods we got rid of the um world folder so it is going to be a new world and then all we have to do at the very minimum is just run that script again It will load all the mods it will generate everything that we need and then the server will be up and running as you can see it’s going through here it’s finding those all those mods in that mod folder that we just had and it’s going to just do its thing Automatically not much that we have to do here it does take a little bit especially for the first uh iteration of creating this world and loading all these mods um thereafter it does get a little bit slower or a little bit faster i should say but yeah so we’ll just wait until this Is done and then we’ll just go see if we can join the server all right so for whatever reason that took a little longer than anticipated i think it is because of the beta version of the launcher and server and stuff like that it had a few glitches all i Had to do was just restart it and it seemed to work all right so the world has been created the server is up um one thing i had to do is the i didn’t realize that i put the a port number higher than the max port So for instance if we go back into the server properties i had this at like 66 000 obviously that’s not going to work because the max port that you can use like 65 535 or something like that so i change it to six two two two And then uh yeah so now we should be able to join the server so let’s pull up the minecraft client all right so at this point we have the client open i have already added the mods previously uh for the client side it is already added from my previous server so all the Mods already in there it’s also in my server so all we have to do now is just go into multiplayer we’re going to create or add a server i’m going to put in our local ip address for my virtual machine and then we’re going to add the port Number which was six two two two two and there we go uh one thing i did want to mention that i had messed up i totally did not think of the ufw or the firewall that i had running on my server i did not allow the port for this video So i had trouble getting into the server at first so i just want to go through this real quick to maybe help you if you run into this in the future um so just to show you you’d run the sudo ufw allow and you allow the port so it’ll be six Two two two uh we’ll just make a brand new so i can show you the actual when we allow it so we’ll just do two or three three three three three all right so now saying that the rule was added and then if you want to see That rule and just go to sudo ufw status ports that are open on this server okay this is a virtual machine so none of this matters here that you can see today um it did not connect to the internet or anything like that so also what we could do is see if that Port is open so we were to go ahead and ufw deny and we’ll do uh that port we just put on there so now that is no longer there as you can see it is denied or is blocked so if we were to run nmob for that port To see if it’s open on this server sorry it should stay closed there you go and if we were to do it on the port that we’re on now for the actual minecraft server you see that it’s open and that’s what you want to see All right but as you can see that we have the server running or the minecraft server running we are on there on the client and it looks great as you can see we’re obviously on top of a tree right now not sure how that happened it’s pretty Crazy but this is one point one eight point one and it’s just running flawlessly now we have all those mods in there as well all right well that’s going to conclude today’s video today we covered how to install the minecraft 1.1 8.1 server on ubuntu and we also covered uh the Various settings configuration files and how to get mods on there and some tips on how i moved mods from one from the windows to the linux machine in the future i do plan to do at least one or two more videos covering some scripts that i had created Both are written in best to just perform a status check pretty much making sure that the server’s up and running and if it is not up and running to get it up and running and then another script that would restart it every night at one o’clock in the morning And create a backup so this way um at the end of the day there’s a backup being created and so all right so that concludes today’s video we’ll just kill a zombie and we will end it with that as always never stop learning Video Information
This video, titled ‘How to setup modded Minecraft Server 1.18.1 in Ubuntu’, was uploaded by CyberMe on 2022-01-18 10:18:55. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
While learning Linux I figured a few months ago why not create and maintain a Minecraft server to help teach me the ins and outs …