How to start Minecraft Server on Ubuntu Linux online(2022)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 104

  • @chewhua
    @chewhua 2 ปีที่แล้ว +7

    Thank you for this, it worked really well! I had to download the updated server jar file for 1.19.2 directly from the website, but once I moved it to the /opt/minecraft folder, everything else went smoothly. I learned a bit of linux along the way too

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +1

      Glad it helped you! have fun with your server!

  • @yuto4kaaa
    @yuto4kaaa ปีที่แล้ว +5

    hi, I usually don't leave comments, but you helped me a lot and everything worked out thank you very much

    • @JamesCatena
      @JamesCatena  ปีที่แล้ว +1

      Thank you for the kind review! Hope you enjoy your new server!

  • @T_Faded
    @T_Faded 2 ปีที่แล้ว +4

    9:25 it just says {screen is terminating}

    • @Leshotgun
      @Leshotgun ปีที่แล้ว

      same issue. any resolve? Help!

    • @zchrisb
      @zchrisb ปีที่แล้ว

      @@Leshotgun yeah me too...

    • @Jmdeleeuw-
      @Jmdeleeuw- ปีที่แล้ว

      Same.. No fix?

  • @nicknamegd
    @nicknamegd 2 ปีที่แล้ว +2

    why does the server works only from local ip? i configured the router but i can't connect to it from the public ip. i tried everything (also after i configured the router the internet speed became slower for like x15 times, but after i deleted all the settings i added it went back to normal speed)

  • @ReSET_Dark
    @ReSET_Dark 11 หลายเดือนก่อน +2

    Hello, I was following this and when I got to the screen /opt/scripts/minecraft.sh command all it does is say "[Screen is terminating]" do you have any idea how I can fix this?

    • @d0t176
      @d0t176 6 หลายเดือนก่อน +1

      Probably late, but ive found out that for me it was because i messed up the eula.txt agreenment and didnt save it. I did it again, saved it properly and screen worked after that.👍

  • @mepo369
    @mepo369 5 หลายเดือนก่อน +1

    hi just wondering on how you would update the sever?

  • @hattanbashir
    @hattanbashir ปีที่แล้ว +4

    The only thing left is to play minecraft from the terminal

  • @TsetungMao
    @TsetungMao ปีที่แล้ว +4

    thank u so much for this tutorial. i have one issue tho. i can play with the local ip but not with the public one so my friends can't join (yes i did port forward) please help me

  • @greenypm8631
    @greenypm8631 2 ปีที่แล้ว +1

    Grat tutorial man!

  • @Becksbsmol54
    @Becksbsmol54 2 ปีที่แล้ว +3

    Hi James, question about the ram. Is there a way for me to change the maximum number of Gigs used to run the server after I've successfully finished? Or will I need to start the process over from scratch?
    Thanks!

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +4

      Sorry for the late reply, however to change the ram you can simply edit the minecraft.sh file in the scripts folder. You can change it to what you want then save and exit. Reload the world and it will change the ram used.

  • @ksawerybruno324
    @ksawerybruno324 ปีที่แล้ว

    Some debian based distros don’t have ufw pre installed, so just put in the command “ Sudo apt-get install ufw “ in the terminal

  • @ALBERTZ649
    @ALBERTZ649 2 ปีที่แล้ว +1

    Hey bro, do you have a link to the page you pulled up at 1:20? Trying to do the research for the server I'm setting up and need the page so I can setup the script with the right link

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +3

      www.spigotmc.org/wiki/what-is-spigot-craftbukkit-bukkit-vanilla-forg/

  • @richonsolana
    @richonsolana หลายเดือนก่อน

    can you show us db connection on sql? i already have my server but all configured on windows now im moving to a ubuntu vps need to figure out how to do it on it

  • @zchrisb
    @zchrisb ปีที่แล้ว +1

    What does screen do? Can I use it without screen? I think I perfectly followed the instruction, but it says [screen is terminating], so something is going wrong.

    • @JamesCatena
      @JamesCatena  ปีที่แล้ว

      You can run the server without screen, However when you close the terminal anything running in that terminal will be closed. Screen let's the terminal instance be run in the background and the terminal to be closed.

    • @T4Envy
      @T4Envy ปีที่แล้ว

      ​@JamesCatena I have the same issue it says screen is terminating

    • @d0t176
      @d0t176 6 หลายเดือนก่อน

      Probably late, but ive found out that for me it was because i messed up the eula.txt agreenment and didnt save it. I did it again, saved it properly and screen worked after that.👍

  • @seal-teeth
    @seal-teeth 2 ปีที่แล้ว

    Why the warning about running as administrator on start up? Is this the way we should be doing this ?

  • @zachvestal905
    @zachvestal905 2 ปีที่แล้ว +1

    I am able to run the server and connect while on the same wifi, but when I try to connect from a different wifi server is not found. I have port forwarding opened for 25565. and firewall allows that port through.

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      are you using the public ip or the internal private ip?

  • @shadow_1363
    @shadow_1363 2 ปีที่แล้ว

    lifesaver! thanks a ton

  • @eightios5138
    @eightios5138 2 ปีที่แล้ว +1

    I can't do /gamemode creative or /op in game or via the terminal and even /help in terminal does nothing how should i go about this?

    • @eightios5138
      @eightios5138 2 ปีที่แล้ว +1

      Nevermind. For anyone facing this problem just enter into the console without a / for example type op playername instead of /op playername. It is a bit confusing as the console tells you to type /help when you need to type help instead

  • @SCisic-yi4lx
    @SCisic-yi4lx 10 หลายเดือนก่อน

    I'm struggling a while to instal it on proxmox and thanks to you i have install it and running ,but i cant connect to the server from minecraft on android tablet.
    The IP and port correct.
    Do you have a idea what would be the problem?

  • @That1guystudios
    @That1guystudios ปีที่แล้ว

    scrolled through all the comments and couldn't find a solution i havent already tried, but people from outside networks cannot connect to the server. I've tried port forwarding and all of that, but nothing seems to work for me. Has anybody else had this problem and if so, how did you deal with it?

  • @luukwalthaus9245
    @luukwalthaus9245 2 ปีที่แล้ว +1

    great video but for some reason when i want to join the server my minecraft crashes. do you know why. ( i get error code -805306369)

  • @kikplej552
    @kikplej552 2 ปีที่แล้ว +1

    I am using zorin and i cants use screen command how do i install it

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +1

      zorin is a distro based on unbuntu. All the commands should work the same.

    • @kikplej552
      @kikplej552 2 ปีที่แล้ว +1

      @@JamesCatena yes but i cant use the screen command it just dont work or it will show me command sudo apt install screen

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +1

      @@kikplej552 sudo apt install screen

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +1

      @@kikplej552 type that in, you have to install it to use it.

  • @nicknamegd
    @nicknamegd 2 ปีที่แล้ว +1

    how do i shutdown the server so i can change its properties?

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      In the server command prompt type /stop
      You can also change the properties of the server save it then go into the command prompt and type /restart
      If can also be in the command prompt and push ctrl + c , however I dont recommend this. The 2 above options are the best to do.

    • @nicknamegd
      @nicknamegd 2 ปีที่แล้ว

      @@JamesCatena thanks!

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      @@nicknamegd Np, Glad I could help!

  • @reisukingu4592
    @reisukingu4592 2 ปีที่แล้ว

    Whenever I run the screen command it says file cannot be found???

  • @jakehancock6880
    @jakehancock6880 2 ปีที่แล้ว +2

    How do I delete a world?

    • @jakehancock6880
      @jakehancock6880 2 ปีที่แล้ว +1

      Or how do i give myself permissions to the minecraft folder.

    • @T_Faded
      @T_Faded 2 ปีที่แล้ว +1

      @@jakehancock6880 sudo chmod 777 -R /path to folder to delete a world just go in the server folder delete the one called world than start java again to generate a new world 5:25 might help generate new world (to find the server folder path right click than click properties it should say Parent folder at the bottom than just add a / than server folder name Example: /home/faded/MC-Server

  • @schuhchef1878
    @schuhchef1878 2 ปีที่แล้ว +1

    can you still make it so safe that you can let everyone on this server and bad people can't do shit?

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      You can, there are multiple ways to do it though. The simplest way is whitelisting, you just enable whitelisting and then you add their usernames to the whitelist and the server will only allow those people to get on.
      If you want to truely let anyone in you should read up on vlans and reverse proxies. You can use services like cloudflare and there are guides out there for that. However, it will not be cheap and even if you followed those guides I wouldnt recommend unless you know what you are doing network security wise. Even if you do though if someone wants to hack something enough, with enough dedication they will get in.

  • @antinul907
    @antinul907 2 ปีที่แล้ว

    when I type "ip a" in my vps im trying to host it in, it is just bringing up different ipv6 what do I do? When i tyr to join via the ipv4 of the vps it just doesnt connect.

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      Sorry for the late response, If you havent figured it out what virtualization software are you running? VMware, vmbox, etc..

    • @antinul907
      @antinul907 2 ปีที่แล้ว

      @@JamesCatena It was being hosted with contabo vps and that fixed the issue by reinstalling but now I have the issue of not being able to connect to the server even though the server is online

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      @@antinul907 Are you still hosting on contabo?

    • @antinul907
      @antinul907 2 ปีที่แล้ว

      @@JamesCatena Yes I just never got the mc server working. Sorry for the super late response I dont remember getting a notification but I saw it when I was looking through my email to delete.

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      @@antinul907 You being able to see the server but not being able to connect sounds like some sort of port forwarding issue or you have enabled whitelisting.

  • @Untenableify
    @Untenableify 2 ปีที่แล้ว

    Can I assign a specific port to Minecraft instead of opening every port on my firewall?

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +1

      You can, if you go to the folder that you installed minecraft to. Open up your "server.properties" file. Inside that you will see a "server-port" line that says 25565... Change that to whatever you want, When you save and close then reload the server it will be on that port!

  • @somecatyoudontknow6471
    @somecatyoudontknow6471 2 ปีที่แล้ว +1

    also you failed to leave the link in the description....

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +2

      You are right, I did forget to. Added it, thanks for that.

  • @wouns1
    @wouns1 ปีที่แล้ว

    ty bro

  • @T_Faded
    @T_Faded 2 ปีที่แล้ว

    It wont let me change the permissions on the folder and it has a locked icon on it

    • @T_Faded
      @T_Faded 2 ปีที่แล้ว

      i made a new folder and downloaded paper 1.19.3 and same issue

    • @T_Faded
      @T_Faded 2 ปีที่แล้ว

      I fixed it by cd (folder name) then sudo java -Xms2G -Xmx4G -jar (jar file name) then filling out properties and EULA

    • @T_Faded
      @T_Faded 2 ปีที่แล้ว

      It was locked sudo chmod 777 -R /path to folder Unlocked it

    • @MsHaspei7
      @MsHaspei7 ปีที่แล้ว +1

      @@T_Faded hey thanks for that, i was having troubles to copy my local world to the server, so that was it. kudos!

  • @quantino1611
    @quantino1611 ปีที่แล้ว

    i wish it had 1.20 version link to paste in.

  • @elijahonyoutube
    @elijahonyoutube 2 ปีที่แล้ว +1

    how do you do this on 22.04?

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      Shouldnt really be to different. Is there a specific part that is not working for you?

  • @Becksbsmol54
    @Becksbsmol54 2 ปีที่แล้ว

    Hi! I was able to get this running, but was having trouble on my end with connecting to the server with the local IP address, which I think was due to not being connected to the same wifi as what the router is on. But before I could test that out, suddenly the screen stopped running it in the background, and I can't get it to run at all with the 'screen /opt/scripts/minecraft.sh' command. It keeps terminating screen. I did everything else right but can't seem to figure out why this is happening. Especially since I got it running in the background before. I will note that 2 different screen instances, from a different server being run on the linux (servers of my brother's with media on them). They weren't on when I got the minecraft screen to run. Do I need to only have one screen running potentially?
    Any help would be appreciated! That aside, thanks for making such a thorough tutorial! It's been extremely helpful up to the problem I'm having rn lol

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +2

      You are trying to run 2 different servers on the same PC? If you, this is probably because you havent changed the connection ports. The default port used is 25565. If that port is already open for one server, you cannot open that port for another instance. You can think of ports as a fork in the road. Each port only goes to the assigned program. You can change the port of one of the servers and it be able to run both server on the same machine. It should be located in the server.properties file. Scroll down until you see "Server-port=25565" You can change it to anything but I would just move up like 100 so 25665. When you connect to server on minecraft you will have to specify the port now though.

    • @Becksbsmol54
      @Becksbsmol54 2 ปีที่แล้ว +2

      @@JamesCatena Thank you so much this helped a lot!

    • @Becksbsmol54
      @Becksbsmol54 2 ปีที่แล้ว

      Another question, I'm having trouble installing plugins. I don't quite understand how your download went straight into a folder on you ubuntu. I didn't actually have a folder titled 'Downloads', so I had to make one. And it still didn't show up. I tried copying the download's link address with a wget command, but keep getting a 403 Error saying the action is Forbidden. Any advice would be appreciated. Thanks for your time!

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      Are using Ubuntu server or desktop? If you are using Desktop if you click on the files shortcut, The shortcut bar on the left looks like file cabinet. It should open you home folder that has your Downloads Folder. If you use firefox that is where they will all go by default.
      When you download the addon in your browser, you can see where it is downloading to by clicking on the downloads or ctrl+j in the browser you used to download an addon. That should open a new page or popup. You will see the addon you downloaded. Click on the folder to the right. That will take you to the download location. Then you can see where it is downloading the addon files.

    • @Becksbsmol54
      @Becksbsmol54 2 ปีที่แล้ว

      @@JamesCatena I am using a MacBook, but am connected to the Ubuntu PC through terminal with ssh.

  • @deyancho
    @deyancho ปีที่แล้ว +1

    kur za umreliq ti tutorial

  • @Josh_DoesStuff
    @Josh_DoesStuff ปีที่แล้ว +1

    Does this run as bedrock? For mobile play?

  • @madhukorukanti6244
    @madhukorukanti6244 2 ปีที่แล้ว

    I can't connect to the server IDK why... Can anyone say the reason

    • @T_Faded
      @T_Faded 2 ปีที่แล้ว

      I would guess Its port from your router to the server may be server IP I'm not done the tutorial

  • @emmaschmit0878
    @emmaschmit0878 2 ปีที่แล้ว

    failed to download mojang_1.18.2.jar can anyone help

  • @wertiaaudit5746
    @wertiaaudit5746 2 ปีที่แล้ว +1

    Can I play half life in minecraft

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +1

      Im sure you can, Do I know how to do that? Nah fam.

  • @therealblujuice
    @therealblujuice 2 ปีที่แล้ว +1

    I had more luck with pufferpanel. So much easier to work with

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      Yeah, I have a virtual machine in my lab that has Pterodactyl installed and I have used that in the past. Just figured most people who want a minecraft server and are looking how to's on youtube dont want to go through the hassle of setting something like that up. Ill check pufferpanel out though a little more in depth. Thanks for the suggestion mate!

    • @therealblujuice
      @therealblujuice 2 ปีที่แล้ว

      @@JamesCatena Thanks. I really did try so many different ways from different videos until I came across pufferpanel. Installed java17 though as I set up a paper 1.19 server. Worked flawlessly for my very limited Linux experience

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      @@therealblujuice Thats awesome, Glad it worked out for you man!

  • @theshroomian2415
    @theshroomian2415 2 ปีที่แล้ว

    how do i install 1.19.2 instead of 1.18.2?

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      papermc.io/downloads
      Go there find the version you want. Paste that link instead of the one in the video and it will download the correct version you choose. Everything else should be the same.

    • @theshroomian2415
      @theshroomian2415 2 ปีที่แล้ว

      @@JamesCatena thx good tutorial btw

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว

      @@theshroomian2415 NP, glad I could help!

  • @soft1435
    @soft1435 2 ปีที่แล้ว

    protocol "top " doesn't work

    • @zchrisb
      @zchrisb ปีที่แล้ว

      It says protocol TCP "C"

  • @DIVYANSH_JAISWAL
    @DIVYANSH_JAISWAL ปีที่แล้ว

    Bro if u can do it for me I can pay u

  • @somecatyoudontknow6471
    @somecatyoudontknow6471 2 ปีที่แล้ว +1

    Go with Peppermint. All the perks of having Ubuntu without any of the garbage.

    • @JamesCatena
      @JamesCatena  2 ปีที่แล้ว +3

      Ill check it out, Normally I use only server versions with just CLI. I used to only use centos but since that is ending I changed to ubuntu since its widely used and can find help when I need it more easy. Thanks for the suggestion big dog!

    • @somecatyoudontknow6471
      @somecatyoudontknow6471 2 ปีที่แล้ว

      @@JamesCatena its more of most fixes, like 99% of them, for Ubuntu work for peppermint, but peppermint isn't run by Ubuntu because of Ubuntu's history of acting like Microsoft.

  • @markmanning2921
    @markmanning2921 ปีที่แล้ว +1

    problem is the text in your console LITERALLY looks like this to me .. ... . ..... . . ..... . . ... . . ....

    • @That1guystudios
      @That1guystudios ปีที่แล้ว +1

      increase your youtube resolution

  • @Jmdeleeuw-
    @Jmdeleeuw- 11 หลายเดือนก่อน

    CTRL+A+D
    Commenting so I can find it if I forget again.