NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

How To Host A Minecraft Server On Linux

Want to host a Minecraft server on Linux? If so, you need to be running the Java edition, as Microsoft only allows Linux Minecraft servers to run that way. To run a Minecraft server on Linux, you'll need the Java Runtime environment.platform with the Java edition. Installing Java might be annoying. However, it's straightforward to install Java on Linux, so let's get going!



Install Java Runtime



This guide will focus on how to host a Minecraft server using a Linux operating system. fake it till you make it We won't specifically focus on using a Linux server operating system, because it's not required. However, if you're looking to have a dedicated Minecraft server on Linux, you should probably go that route, and we recommend Ubuntu server.



Note: there are many versions of the Java Runtime environment on Linux, both Oracle's official release and the open source alternative. For this tutorial, we'll use the official Oracle version. That said, it's perfectly OK to use the OpenJDK setup as an alternative, and everything should run just as well.



Ubuntu/Ubuntu Server



Oracle's Java runtime isn't easy to install on Ubuntu. However, adding a PPA makes this much less of a headache. Due to the nature of how Ubuntu server works, this PPA should work fine on both Ubuntu desktop, and Ubuntu server. However, if you add the PPA to Ubuntu server and find issues, consider installing the OpenJDK JRE runtime as an alternative.



To add the Oracle Java Runtime PPA to your system, open up a terminal and enter the following:



Run apt update to refresh Ubuntu's software sources.



After running the update, use apt upgrade to install any updates that show up.



Lastly, install Oracle Java from the software repository.



Debian/Debian Server



Debian can access the Ubuntu Oracle Java PPA. To add it, you'll need to edit your /etc/apt/sources.list file. Open up a terminal and launch Nano.



Oracle Java not working? Consider using the Open source alternative instead.



Paste the following code into the Nano editor:



#Webupd8



deb https://ppa.launchpad.net/webupd8team/java/ubuntu trusty main deb-src https://ppa.launchpad.net/webupd8team/java/ubuntu trusty main



Save the Nano editor with Ctrl + O, then use the terminal to add the PPA's software GPG key.



Lastly, install Java.



Rhel/Fedora/OpenSUSE



Oracle has pretty good support for all Redhat based Linux operating systems, so installing it is very easy. That said, if you have issues, you may want to look into the open source alternative.



To install the latest version of the Oracle Java Runtime Environment, go to the download page and get the newest RPM.



Once downloaded, open up the terminal, CD to the ~/Downloads directory and run the installer.



Fedora/Rhel



Suse



Run Minecraft Java Edition Server



After getting Java working, the hard part is done. Now all that's left to do is to download the latest version of the Minecraft Java Edition server app and run it. When downloaded, open up a terminal use the MV command to place the server app in an appropriate location.



Note: if you are using a server OS, you may need to download and place the file manually. The instructions below are specifically for those running a Minecraft server on an OS that has a proper Home folder structure set up.



Run the server headless (no GUI) with:



Alternatively, run the Minecraft server with a GUI interface:



Now that the Minecraft Java edition server is running, you'll need to distribute the IP address for it. For best results, host this server at your own home on LAN. If you must host one online, consider doing it on a VPS like DigitalOcean, as they offer great rates to run Linux apps on.



Note: if you are running an online server, be sure that port 25565 is forwarded or the server will not work!



To find the local IP address, run in a terminal:



This command will isolate the server's LAN IP.



From there, distribute your IP address to any who needs to connect and instruct players to add the IP to their Minecraft client.



Running your Minecraft server online and not just on LAN? You'll need to go through and find your server's external IP address. Finding this address should be easy to do within most VPS dashboards.


Homepage: https://fakeroot.net/
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.