Thursday, August 11, 2022
LetsAskBinu.com
  • Home
  • Cybersecurity
  • Cyber Threats
  • Hacking
  • Protection
  • Networking
  • Malware
  • Fintech
  • Internet Of Things
No Result
View All Result
LetsAskBinu.com
No Result
View All Result
Home Networking

How to install a Minecraft server on Ubuntu Server 22.04

Researcher by Researcher
July 19, 2022
in Networking
0
How to install a Minecraft server on Ubuntu Server 22.04
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


Jack Wallen shows you how to install a Minecraft server on Ubuntu 22.04 so you can keep the fun in-house while teaching your young Linux admins the ropes.

Jun 30, 2020: Minecraft player in front of a portal holding a sword in his arm
Image: Wirestock/Adobe Stock

The Minecraft craze started back in 2009, and although it may not remain at the top of everyone’s mind, it still holds some sway. Even now it’s one of the most popular video games in history. But it’s not just about fun and games: Installing a Minecraft server allows you to bring the fun to your LAN, and it’s also a great exercise in teaching new admins how to work with Linux.

SEE: 20 good habits network administrators need–and 10 habits to break (free PDF) (TechRepublic)

I want to walk you through the procedure of installing a Minecraft server on Ubuntu Server 22.04 so you can test the mettle of your young Linux admins and give your staff the ability to blow off some steam while not leaving the confines of your local network.

What you’ll need

To follow along, you’ll need a running instance of Ubuntu Server 22.04 and a user with sudo privileges. That’s it.

How to install the dependencies

Minecraft has a few dependencies to take care of. One of the biggest is Java. Before we install Java, let’s take care of a few other, more standard dependencies with the command:

sudo apt-get install lib32gcc-s1 lib32stdc++6 libsdl2-2.0-0:i386 netcat screen -y

When that completes, we can now install Java. The thing about Minecraft is that it requires a much more recent version of Java than found in the standard repository. To get around that, we’ll first add the correct repo with the command:

sudo add-apt-repository ppa:openjdk-r/ppa

Next, update apt with:

sudo apt-get update

We can now install OpenJDK 17 with:

sudo apt-get install openjdk-17-jre-headless -y

How to open the firewall

If you’re running Uncomplicated Firewall, which you should be, it’s necessary to open a specific port with the command:

Open source: Must-read coverage

sudo ufw allow 25565

How to install Minecraft

Before we download and run the installer, we’ll create a new user with:

sudo adduser mcserver

Make sure to give the new user a strong and unique password. Once you’ve taken care of that, change into the new user with:

su - mcserver

We’re going to download the installer from Linux Game Server Manager with:

wget -O linuxgsm.sh https://linuxgsm.sh

Give the new file executable permissions with:

chmod +x linuxgsm.sh

Make the linuxgsm.sh file aware to Bash as mcserver with:

bash linuxgsm.sh mcserver

Finally, run the installer with:

~/mcserver install

How to configure the server

After the installation completes, we need to make a simple configuration change before starting the server. Open the config file with:

sudo nano serverfiles/server.properties

In that file, look for the line:

server-ip:xxx.xxx.xxx.xxx

Change the xxx.xxx.xxx.xxx to reflect the actual IP address of the hosting server.

Save and close the file.

How to start the server

Finally, it’s time to start the server. For that, issue the command:

~/mcserver start

Your Minecraft server should now be up and running and ready for players to connect. The one caveat is that players cannot connect to this server with the official Microsoft version of Minecraft. Instead, they must use the Java version of the game, which is not free, to play Multiplayer and connect to the local server.

One tip — you can check on the status of the Minecraft server with the command:

~/mcserver monitor

You should see output similar to the following (indicating all is well):

Monitoring mcserver: Checking session: OK
Monitoring mcserver: Querying port: gsquery: 192.168.1.63:25565 : 0/1:   OK
Monitoring mcserver: Querying port: gsquery: 192.168.1.63:25565 : 0/1: OK

And that, my Linux admin friends, is how you install a Minecraft server to an instance of Ubuntu Server 22.04 on your LAN. Happy gaming!

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.



Source link

Related articles

Join the SD-WAN webinar: How to Extend Network Visibility and Optimize the SaaS Experience

Join the SD-WAN webinar: How to Extend Network Visibility and Optimize the SaaS Experience

August 11, 2022
MX Linux makes sharing folders with Samba as simple as it gets

MX Linux makes sharing folders with Samba as simple as it gets

August 10, 2022
Tags: InstallMinecraftServerUbuntu
Share76Tweet47

Related Posts

Join the SD-WAN webinar: How to Extend Network Visibility and Optimize the SaaS Experience

Join the SD-WAN webinar: How to Extend Network Visibility and Optimize the SaaS Experience

August 11, 2022
0

Today’s hybrid work environments make it increasingly difficult to monitor, secure and optimize network connectivity and application performance. 40% of...

MX Linux makes sharing folders with Samba as simple as it gets

MX Linux makes sharing folders with Samba as simple as it gets

August 10, 2022
0

Jack Wallen shows you how easy it is to share directories to your local network through Samba with MX Linux....

To Upgrade, or Simply Renew? That is the Question.

To Upgrade, or Simply Renew? That is the Question.

August 9, 2022
0

Cisco DNA for SD-WAN and Routing subscription software has been around for the better part of three years now. If...

Cisco Wireless 3D Analyzer: High Level View on Latest Innovations

Cisco Wireless 3D Analyzer: High Level View on Latest Innovations

August 8, 2022
0

Wireless connections are ubiquitous and have become a part of our daily lives no differently than electricity. Planning, maintaining, and...

Cisco DNA Center Release 2.3.3 – What’s New?

Cisco DNA Center Release 2.3.3 – What’s New?

August 5, 2022
0

Ever have one of those days where you’ve almost reached the office and you realize you left your laptop at...

Load More
  • Trending
  • Comments
  • Latest
Brave browser’s Tor mode exposed users’ dark web activity

Brave browser’s Tor mode exposed users’ dark web activity

February 18, 2022
This Week in Fintech: TFT Bi-Weekly News Roundup 08/02

This Week in Fintech: TFT Bi-Weekly News Roundup 15/03

March 15, 2022
QNAP Escalation Vulnerability Let Attackers Gain Administrator Privileges

QNAP Escalation Vulnerability Let Attackers Gain Administrator Privileges

March 15, 2022
A first look at threat intelligence and threat hunting tools

A first look at threat intelligence and threat hunting tools

March 15, 2022
Beware! Facebook accounts being hijacked via Messenger prize phishing chats

Beware! Facebook accounts being hijacked via Messenger prize phishing chats

0
Shoulder surfing: Watch out for eagle‑eyed snoopers peeking at your phone

Shoulder surfing: Watch out for eagle‑eyed snoopers peeking at your phone

0
Remote work causing security issues for system and IT administrators

Remote work causing security issues for system and IT administrators

0
Elementor WordPress plugin has a gaping security hole – update now – Naked Security

Elementor WordPress plugin has a gaping security hole – update now – Naked Security

0
U.S. Gov Offers $5M Reward For North Korean Cybercrime Intel

How Three Ransomware Groups Targeted One Vulnerable Network

August 11, 2022
High-Severity Flaw in Argo CD is Information Leak Risk

Organizations Warned of Critical Vulnerabilities in NetModule Routers

August 11, 2022
Join the SD-WAN webinar: How to Extend Network Visibility and Optimize the SaaS Experience

Join the SD-WAN webinar: How to Extend Network Visibility and Optimize the SaaS Experience

August 11, 2022
Makulu Linux Shift makes shifting between desktop layouts easy

Makulu Linux Shift makes shifting between desktop layouts easy

August 10, 2022

Recent Posts

U.S. Gov Offers $5M Reward For North Korean Cybercrime Intel

How Three Ransomware Groups Targeted One Vulnerable Network

August 11, 2022
High-Severity Flaw in Argo CD is Information Leak Risk

Organizations Warned of Critical Vulnerabilities in NetModule Routers

August 11, 2022
Join the SD-WAN webinar: How to Extend Network Visibility and Optimize the SaaS Experience

Join the SD-WAN webinar: How to Extend Network Visibility and Optimize the SaaS Experience

August 11, 2022

Categories

  • Cyber Threats
  • Cybersecurity
  • Fintech
  • Hacking
  • Internet Of Things
  • Malware
  • Networking
  • Protection

Tags

Access Android attack Attacks banking BiWeekly bug Cisco critical Cyber Cybersecurity Data devices Digital exploited financial Finds Fintech Flaw flaws Google Group Hackers Krebs Latest malware Microsoft million Network News open Payments phishing Ransomware RoundUp security Software TFT Threat Top vulnerability warns Week Windows zeroday

© 2022 Lets Ask Binu All Rights Reserved

No Result
View All Result
  • Home
  • Cybersecurity
  • Cyber Threats
  • Hacking
  • Protection
  • Networking
  • Malware
  • Fintech
  • Internet Of Things

© 2022 Lets Ask Binu All Rights Reserved