Ubuntu 22.04 | Install & Setup a Minecraft Server
HTML-код
- Опубликовано: 21 авг 2024
- In this tutorial, I walk you through installing and setting up your own Minecraft server on Ubuntu 22.04 LTS.
Minecraft Server Link: www.minecraft....
Please enjoy the video and if you have any questions, leave a comment below. My goal is to expand the Linux community.
Linux Operating System | Beginners Crash Course - 3 Hours
• Linux Operating System...
Rocky Linux by CIQ: ciq.co/rocky-l...
Remember to Like, Share, and Subscribe if you enjoyed the video! Also, if you are interested in more Linux content, please consider becoming a channel member so I can continue to produce great content!
✔️RECOMMENDED LINUX BOOKLIST
-------------------------------
Linux Pocket Guide: Essential Commands: amzn.to/3xGPvsK
CompTIA Linux+ Certification All-in-One Exam Guide: Exam XK0-004 amzn.to/3uQ3wmh
101 Labs - CompTIA Linux+ amzn.to/3vtj7rb
How Linux Works: What Every Superuser Should Know amzn.to/3vrLkOO
Linux Bible amzn.to/3rwEkPH
✔️SOCIAL NETWORKS
-------------------------------
KeepItTechie: keepittechie.com/
Facebook: / keepittechie
Twitter: / keepittechie
Instagram: / keepittechie
Discord: / discord
CashApp: cash.app/$Keep...
Patreon: / keepittechie
--------------------------------
#Ubuntu
#Minecraft
#Server
#KeepItTechie
#Linux
if anyone is wondering, this works perfectly even if you install the Paper MC jar instead of the default server jar, just replace the minecraft server file name with the paper server file name
is there a way to access the files for adding plugins etc?
Thank you soooo much I tried to follow a video showing how to use MineOS on Ubuntu from 2021 but it not longer works the way he laid out. Your video was a saving grace and got me going. Much appreciated. You did a very good job of laying it out for someone like me who has ZERO command prompt experience!
Glad I could help!
@@KeepItTechie So I tried all kinds of things to have friends be able to join with no success. I port forwarded on my router, made sure my ISP is not blocking ports and I have a unique public IP. I tried completely reinstalling Ubuntu 22.04 and following you tutorial again but still when anyone tries to join using my public IP it just says it timed out.
For anyone running into problems with the command " sudo ufw allow OpenSSH " where it says: Could not find a profile matching 'openssh'
Change it to " sudo ufw allow ssh ", or you can do " sudo ufw allow 22 " since SSH runs strictly on port 22
you are my saveior man
works perfectly, i used ubuntu desktop 22.04 with the gui, changed some of the settings in the properties file and now i have a vm that has a dedicated server for my son and I to play on. thanks for the help!
Thanks for this!! I have the same version and am planning on setting up a server this week
still running perfectly, have around 47 mods currently. hope it works for you as well!@@MaddyG080
Nice. I'm gonna try doing this on a Ubuntu vm. I have a minecraft server setup on unraid but I don't know how to put mods on it. 😢
Thank you Bro, i searched ages for a tutorial on the latest Minecraft Version. Keep up your work thanks man
Glad I could help
This is a fantastic tutorial. You're a terminal wizard. Thank you!
Great video man. I would just like to mention that Minecraft by default uses java 17 lts. I used java 19 with prism launcher and Minecraft crashed pretty often so I installed 17 and it worked. But that was on the actual game not server.
im so glad i found this. im trying to get a server for my child's birthday. will try to do this on an old pc, crossing fingers everything turns out good
That's wonderful to hear! Setting up a server on an old PC can be a great project, and it's a thoughtful gift for your child's birthday. Best of luck with the setup, and I'm sure it'll turn out great. If you have any questions along the way, feel free to ask. Happy birthday to your child, and happy server building!
Awesome walk through! Thank you for putting this up!
No Problem!
Thank you for creating this video. Very thorough and informative, stay dope man.
IT WORKS PERFECTLY i appreciate ur work man! Keep it up (also subscribed)
Thanks for the sub! Glad it worked for you!
Thanks so much for this awesome video! Helped me out a ton, I love your straightforward methods and how you explain each step of the way.
You're welcome, and thank you for the positive feedback! I'm thrilled to hear that the video was helpful and that you appreciated the straightforward approach and step-by-step explanations. If there's anything else you'd like to learn or any other topics you're interested in, feel free to let me know. Your support and interest motivate me to create more content. Happy learning!
Thanks a bunch. with the website and a guided explanation from you. The server practically self-installs
Yo this tutorial still really rocks! got me started up fast by just seeing what the newest versions of everything were! You might wanna mention next time how using ufw might restrict other things you have running on the server. I spent like 15 minutes googling how to make rules and find ports for everything lol
Super simple to follow! I appreciate the hell out of you! Thank you!! SUBBED
Thanks for the sub!
your tutorial is a life saver, thank you so much
Your welcome bro!
Could we get a video on how to update an already existing minecraft server via Linux?
How do you let people connect from the internet?
Log into your router and configure port forwarding. He explains the default port is 21565 when you allow that port on the server's firewall. Forward that port using TCP. The internal IP address option should be the IP of your server. That can be found by running 'ifconfig' or 'ip a'.
@@erikbiedrzycki3229does port forwarding need a static ip to work??
Port forward your router (port 25565 by default) with TCP and UDP. You can look up tutorials online for your specific router make and model. Now people can connect to it in game by using ":" or you can set up a name server which directs to that location (advanced by more secure).
Hi, Thanks a lot. That was the most transparent tutorial i found!
You're welcome, and I'm thrilled to hear that you found the tutorial transparent and helpful! If you have any more questions or need further guidance, feel free to ask. Happy to help!
Thank-you for this video. You helped a lot.
Glad it helped!
If you have a GUI running on your Linux server there is no need to use screen unless you prefer connecting via SSH
thank you for this tutorial, it was very helpful
@keepittechie we just had an update to the snapshot. I feel like we need a video on how to update your server to the latest minecraft version.
Thanks for the help, very thorough
You're welcome! Glad I could help and provide thorough information. If you have any more questions or need further assistance, just let me know. Happy to help!
Great Video! worked perfectly and well explained. thank you.
Great to hear!
Awesome tutorial.....Thank you!
Glad it was helpful!
thank you i got it up and running
this was a solid walk though. TY
Can you make a video tutorial on how to backup a self hosted Minecraft server? Would greatly appreciate it.
Love the video!! I was wondering if you could possibly make a guide to set up MineOS on a Ubuntu Server
Sure thing!
I made a minecraft server but it only works if I'm connected on the same WiFi network as the host
You need to port-forward the server.
Great video can we see a fivem grand theft auto server?
22:30 I prefer tmux over screen but all to your preference
I wish I were as cool as this guy
LOL. Thanks man!
Can someone explain to me why so many people use mineos? I had huge problems trying to set that up. Thank you so much for your tutorial I'm going to try it your way now for sure
I started using mineos to make it easier on me. It was taking me too much time trying to fugure out how to mod my sons server so I installed mineos so my son to set it up himself. The browser manager is easier for him to use and mod.
@@KeepItTechie did you ever have the issue that the mineOS webpage loaded, but all the content doesn't? It's like a skeleton website, but still reachable
@@max_sterni the mineos website is outdated bruh i swear
Hello mate thanks for your help but i got a question, how can i fix randomly killed problem even not out any log or error file.
I’m having trouble with opening the server it says that it’s unable to access the jarfile
does this somehow work on a rasperry pi?
🤔
confirmed still good
mine is only showing play demo, and delete demo.. i tried deleting demo and it only deleted my demo world
Great tutorial! I've got a PaperMC server (for plugins and optimization) working, now I need help installing Geyser so my bedrock friends can join it. How would I go about doing this?
Thank you soooooo much
Thank you :D
the command sudo apt install openjdk-19-jre-headless wget screen does not work
when i want to connect to the server it wont work reason cant make a connection to the server.. the ip also looks weird not like my normal network
It's still this old thing, OMG what a pain, just transferred all our accounts to MS accounts, but both Windows and java versions still function.
like it thanks
appreciate it
No Problem!
Hi man, I followed your tutorial and it's really great, I can connect without a problem. However, when my friend (who's in a different house) tries to connect he gets this error : "connection timeout get sockopt". I think his firewall is the problem (he uses norton which seems to block everything apparently), but do you have a solution for this ?
yes but how to have it on public like everywone can join
for some reason I am able to join my server but other people on other networks cant? Ive opened the port on my router and everything idk, but everything else works fine!
im getting an error that says no x11 display variable was set or no headful display library was found
i fixed it, installed the jdk not jre and it made me open a gui but it worked none the less.
Hey after I enabled the firewall as stated, it no longer allows me to connect to any part of the internet, is there a reason why? Thanks
Hi could you help me I’m trying to put one server but I can’t connect it
I allowed the same ports as you did in the video, but for some reason after a certain amount of time i get kicked out of the server and cant reconnect. I keep getting the error "kex_exchange_identification: read: Connection reset" Can anyone help? Would be much appreciated! I can only get around this, by resetting the whole server it seems like :( Id be happy for any advice
Once the PC has restarted, how do I restart the server?
How would I create a file that I use to start the server similar to the run.bat file I would use in windows?
Can somebody let me know if you have to change the port for the server? Or can you keep the default?
You can use the default port.
Hii, i just followed this Tutorial and Installed it in an Proxmox Container on a Server i rent, now im wondering how i can give people access to the Server,
I can only connect to the server using Wireguard, i would also consider to give people access to the wireguard connection but im not sure if you can connect all at the same time.
Do anyone know how i get a public ip for the container?
any reason my "ip a" is not displaying the IP address
great video! just wondering how to activate the server after system reboots
You rerun the java command, if you are using cinnamon or linux lite (those are the ones that I tested) you can set the command as a launcher, but make sure you turn on the "run in terminal" option
how can I change the server icon???
How do I set up a Bedrock server?
OMG thank you soooooooooooooooo much bro . How can I follow you and support you?
No problem
Please help me i am not able to get out of screen
UPDATE: flu kicking my butt... will update when i get a chance...
Linux newbie here... i have tried several other paths to get our family's MC server migrated over, without even being able to get one to start... (casaOS with mineOS, paper & crafty) all taking more resources than the dark powers at MS... i have run Vanilla, Fabric & Forge modded on windows for years, but wanted to give the lower overhead of linux a try. the command line stuff was a bit daunting, but your instruction video makes it seem possible. will comment the outcome. good or bad. wish me luck.
ok, first bump... i'm using a debian install that i already have (12.4.0) and the "double tab' function didn't work, at first... and the java file was not found (no installation candidate)... searched/found "17-jre-headless" "double tab" worked, just didn't like the "19" i guess... proceeding
sorry for the "blow by blow"... but now i see why people shy away from linux... installed java, but the OS can't find java [--version]... go to install it again and it says already there... [whatever]... then "mkdir" command says "cannot create directory 'minecraft' : no such file or directory". noticed the "/" at the end of your command, resubmitted, same error... put the "/" in from, now tells me it already exists... but i cannot "cd" to it [eyeroll], says doesn't exist... does not show up in "ls" command... searched for debian commands, to see if its a syntax error on my part [nope]. seems like it might be a permissions issue, but i'm root (no, not groot).
two things occur to me... one is i might as well reinstall ubuntu linux, finding a USB drive sized boot file to do a clean install... second is that i shouldn't attempting a new OS with the flu [but i was going stir crazy].
will check in the morning for any advice, if i see none, i'll start digging for a USB boot disk version.
ok... overnight i realized that i still had casaOS installed... uninstalled "sudo casaos-uninstall".
i am now able to cd to the Minecraft directory, tho it still doesn't show in the "ls" command...
now back to the video at about the 13:08 mark...
this would have been so much easier if i hadn't followed a different tutorial first [read, if you're following along with this thread, start over. reinstall linux, you'll be worlds ahead... oh, and don't do it with a raging illness :^P ]
I made this for people having trouble with the command line. I haven't tested it on debian but it definitely works on ubuntu which is based on debian. I'll test on debian server today and let you know the results. I'll also make a video on this script soon.
github.com/keepittechie/mcsli
How Do You Save The Eula.txt I dont know how to
you just have to exit the nano with ctrl+x and the it asks do you want to save the changes and then write Y and press enter :)
How do I change world on the server
Error: Unable to access jarfile minecraft_server.1.20.2.jar anyone know how to fix this? edit: nvm im a fool and type it incorrectly
awesome tutorial keep the work! but i got 2 questions
1.if ctrl+c on the server command will the server saves everything before closing?
2. i have a domain, how can i connect my mc server to that domain from my terminal ?
how do i find my ip address port?
Everything works for me locally and I checked that 25565 is open for the firewall but when my friends try to connect from elseware they get a connection timed out error
if the ip you used starts with 192.168 it means that you are using the private IP address, which works only in your LAN, first of all you need to set the IP of your server static, then there are multiple ways to procede, like(very dangerous to do) giving your friends the public IP address of your network, using a DNS service, modify the router so that all requests with port 25565 will be redirected to your server (in this case your friends will need to know your IP address) and others, but i advise you to be careful with what to do, cause security with servers is quite a pain to work with
@@lucaf5255 Thanks for the response. I am aware of the dangerous of making the server available outside my network. It is just going to be for myself and a few very close friends. I have followed this entire guide with the addition of port forwarding on my router to no avail. I use my phone as Wifi a hot spot for another pc in my home so I can test an outside device connecting and no matter what I do I get either a server timed out or could not connect.
what about dockerize server?
bro can any one tell how to stop and start minecraft server in ubuntu
How do you find your public ip for the server so you can connect outside of the network?
Search what’s my ip on a browser and click the first link the IPV4 number will be ur public ip
How do you do bedrock on Ubuntu?
how can i save eula.txt
im having a problem with openssh, it says it could not find a profile matching openssh when i do the sudo ufw allow openssh command
Based on your question, it looks as though you typed it in the wrong case. Make sure you type OpenSSH and not openssh. It has to be capitalized for the specific letters.
@@KeepItTechie i did that aswell and it didnt work, i found a way around it however by just simply doing ssh, i think that should have worked.
@@jackgetoverhere I should have said this as well. You can just put the port. 22 is the default port for ssh. Glad it worked for you. 💪🏾💪🏾
Do you know how you would upload a server icon through ubuntu server? I've been trying to figure it out for a while now.
Did you figure it out?
Is this just LAN or WAN?
It's for both. You have to open the port through your router.
it failed when i tried to run the nogui command. this version of the java runtime only recognizes class file versions up to 52.0
You need to update java
@@v111k7 it was updated prior.
@@sr2racing391 idk then, for me it was enough just to install java 19 and it worked perfectly fine
I also experienced the same thing as you
Great video, many thanks!
do you know how to password protect this server?
I've setup a server for some friends but dont want randoms joining and causing havoc.
Thanks.
Set up a whitelist in the server config. Also you can change from the default port :25565 to something else that is unused and you'll get a lot fewer probes to join.
guys can somone help i have installd java 19 and prettymuch evrythin and when i want to start the server with this code "java -Xmx1024M -Xms1024M -jar minecraft_server.1.20.4.jar nogui"and accsept the eula but then it just give me a error like this "Error: Unable to access jarfile minecraft_server.1.20.4.jar" can somone help ???
It sounds like your system can't find the 'minecraft_server.1.20.4.jar' file. Make sure the 'minecraft_server.1.20.4.jar' file is in the same directory where you're running the command. Double-check the file name for any typos. If you're not in the correct directory, navigate to it using the cd command or specify the full path to the jar file in your command. Hope this helps! Let me know if you're still having trouble.
Worked very well except anyone not on my wifi can't join is that something that dose not work with this method or did i not enable something.
Happy to hear the setup went well! For players outside your WiFi to join, you'll need to set up 'port forwarding' on your router, which involves opening the Minecraft server port (usually 25565) and directing it to your server's internal IP. After setting this up, share your public IP address with your friends. Be cautious, as this exposes your network to the outside world, so ensure your network's security is tight. Detailed instructions can vary by router, so check your model's manual or online resources for specific guidance. Happy gaming!
I was able to enable port forwarding on my router but am not sure exactly what to do on the server side of things, is there anything i need to do on the server side of things?@@KeepItTechie
Figured it out, thanks so much man works great.
@@Snake_____eyes Can you follow up on this and let us know how long your server was up until it got flooded with logon attempts or hit with a DDOS? People should be aware of the risks before opening a port (port forwarding) on their home router to the public Internet. Consider it a PSA. Thanks! Just for fun, I opened up the default port (25565) on a cloud server I have and created a fail2ban rule without having a Minecrafter server installed and it was bombarded with packets/traffic from trolls just trying to access or DDOS for "fun." Just wait until your home public IP shows up on Shodan, ouch.
how do i use an existing world file for my server?
used backup world and setting to FTP or Shared folder from you PC or Home Server storage
29:22 I'm going to assume so, but does with work if you're friends are outside your network?
Yes it will work. You have to open the port on your router. All routers have a different interface so it was pointless for me to show that part. It should say port forwarding. Open the port and point it to your internal server ip address.
do you need to like allow port forwarding on ubuntu aswell? like on windows firewall?@@KeepItTechie
nah bro im going back to windows
LMFAO 💀💀 relatable, like how tf am I supposed to get that link with no GUI linux
Its not that difficult guys. LOL
@@KeepItTechie we need easier tutorial 😭
@@muki_x this is probably the easiest, most basic easy to follow tutorial that you're gonna find.
Most of the time, I SSH into the server from my windows machine using cmd, and I can just copy and paste any links or commands I need from my windows pc. It would be a bit harder to pull links directly from the server, but I would think you wouldn't be connected straight into the server 99% of the time anyway
i know you are a busy man. ive followed everything youve done. and it just doesnt work for me. im new to ubuntu and minecraft servers. please. something. you obviously know what you are doing and i do not.
Hey bro, any on bedrock?
I really want to start a minecraft server with my friends and we want to use a vm on my computer since it's powerful enough, this guide is really helpful but I'm stuck on the openjdk19 installation, it doesn't show up on the version list, it reachs the lower 17. How can I get the 19 version? The only thing that changed from you it's the language and keyboard on italian and italian(win) on the keyboard. Can you help me? I can get on your discord if needed
I moved on using the 17 version just (almost) fine and it's working, now I need to know how to make it go online to play with my friends on it since it's on Lan connection I think
@@gabrielevolsa9829 there's a couple of ways but the easiest is probably (that i know of) using duckdns. It auto updates when your ip changes so you don't need to give / change your public ip
how do you close the server ?
with stop comand
I feel like such a dumba$$.. I could do this no problem on a centos7 system :P but for some reason I am having issues with ubuntu
Hey i run in to a problem with OpenSSH. Do anyone here have a solution. 17:04
also having that problem, whenever i do sudo ufw allow openssh it says it couldnt find a profile matching it
do u know how to make it a cracked server?
No I don't.
lavle
hello, how do i start the server when i reboot the pc? ty👍
java -jar
@@benjaminbarraza6829 Is there a way to set the pc to auto run this when it reboots? So if the power goes out or something and the system restarts it will automatically restart the server?
@@UnrivaledPiercer what OS?
Please help me setup reverse ssh tunnel on my omen laptop I'll pay you if i have to im familiar with tech termonolgy and configs which means helping me wont be too hard I'm running out resources you are my last hope please make time for me I'll pay if you need me to
I've never done but it doesn't look to hard. Check out this link: www.howtogeek.com/428413/what-is-reverse-ssh-tunneling-and-how-to-use-it/
Let me know if this works. No need to pay me.
Thanks a lot bro i will try it today the only reason i feel I'm having issues with it because I'm using a windows 11 home edition....however im reverse tunnelling into the same device that has virtualbox downloaded on my 2 machines is ubuntu desktop and ubuntu server
this is hard can't i just open chrome and do it the normal way?
What is the normal way?
@@BobSmith-or3vc idk windows haha
You should run your server on bedrock edition, it takes up less resources and provides better performance in game
Is there a way to add mods to this server?
My tutorial is for the basic minecraft server. There are too many ways to setup a modded server. It depends on what you want. You have to download the correct jar and mods then follow their instructions. Its different depending on the version. Some have scripts and some don't. You have to research it. Its possible because my son modded his but I set the server up for him.
yo bro just wondering how to reopen the minecraft dir @keepittechie