Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 32302  / 1 Year ago, tue, may 23, 2023, 8:06:48

I run windows 7. I run a Minecraft server, but I can only host around 9 players before lag appears.



I heard that Ubuntu can run a server with much better performance than Windows 7. I kind of like the whole idea of Ubuntu, but I don't want to change my OS to Unix or anything else.



Basically, my question is, does running a server (specifically and Minecraft server) run easier and faster on a Ubuntu server? On top of that, how would one set that up?


More From » server

 Answers
3

Ubuntu would be a superior choice for hosting a server based application, especially if you use the server edition of Ubuntu. There would be less resources diverted to unnecessary things, like the desktop interface. The downside is that it would be command line only. You can always still go with Ubuntu desktop if you need a desktop interface.



To setup a Minecraft server with ubuntu, do the following:




  1. Ensure that you have the necessary Java packages installed.



    sudo apt-get install openjdk-7-jre-headless

  2. After you install Java, download either Bukkit or vanilla Minecraft server. Bukkit allows you to install plugins for server customization.



    To get Bukkit (latest beta version as of post date):



    mkdir ~/minecraft && wget -O ~/minecraft/server.jar http://dl.bukkit.org/downloads/craftbukkit/get/01804_1.4.7-R0.1/craftbukkit-beta.jar


    To get vanilla Minecraft Server:



    mkdir ~/minecraft && wget -O ~/minecraft/server.jar https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar

  3. Then, all you have to do is run Minecraft using this command:



    cd ~/minecraft && java -Xmx1024M -Xms1024M -jar server.jar nogui


    You can increase the allowed RAM usage by modifying the "1024" number in both locations in the previous command. This will help performance if you can spare the extra RAM.




If you decide to use Ubuntu desktop, you can always get extra resources by stopping the desktop interface. To disable: sudo service lightdm stop, and to enable: sudo service lightdm start.


[#33109] Tuesday, May 23, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
riffnkful

Total Points: 390
Total Questions: 123
Total Answers: 110

Location: Puerto Rico
Member since Sat, Mar 13, 2021
3 Years ago
riffnkful questions
Thu, Nov 17, 22, 04:24, 1 Year ago
Mon, Nov 28, 22, 01:40, 1 Year ago
Mon, Jul 11, 22, 13:24, 2 Years ago
Sun, Feb 5, 23, 05:06, 1 Year ago
;