How To Host A Minecraft Server On An Ubuntu Virtual Private Server (VPS)

54,638
0
Published 2020-08-21
How To Host A Minecraft Server On An Ubuntu Linux Virtual Private Server (VPS)

[NEW VID] How To Create A Minecraft: Java Edition 1.20 Server On An Ubuntu Cloud Server (VPS) - Trails & Tales    • How To Create A Minecraft: Java Editi...  

Free $200 in OVH cloud credit for new customers using my referral link: bit.ly/ovh-websplaining

Minecraft server.jar www.minecraft.net/en-us/download/server
Download and Install PuTTy www.putty.org/
Download and Install WinSCP winscp.net/eng/index.php
Buy Minecraft Java Edition www.minecraft.net/

Commands:
Note: Right click in the putty terminal to paste these commands
wget [ server.jar file copied link address from www.minecraft.net/en-us/download/server ]
sudo apt update
sudo apt install openjdk-17-jre-headless
cd minecraft
sudo java -Xmx1024M -Xms1024M -jar server.jar nogui

You need to agree to the eula in order to run the server. Copy the contents of eula.txt then delete the file and create a new one in it's place with the previous files contents. The owner should change from root to ubuntu. Open up eula.txt document and change eula=false to eula= true

sudo apt-get install screen
screen
sudo java -Xmx1024M -Xms1024M -jar server.jar nogui
op yourusernamehere
Type "t" in game followed by: /gamemode yourgamemodeofchoicehere

[IMPORTANT] Minecraft: Java Edition servers now require a minimum of Java 17 or above to run. In the video Java 14 is installed. Replace the number 14 with the latest version of Java. For example as of today the latest version of Java for Linux Ubuntu 21.04 is 17. Enter the following command in the terminal without the quotations "sudo apt install openjdk-17-jre-headless"

Timestamps:
0:00 Intro
0:23 What is a VPS
1:05 What is PuTTY
1:16 What is WinSCP
1:34 Download & Install PuTTY
2:44 Download & Install WinSCP
3:50 Buy a Start Minecraft VPS from OVH
8:18 Login to OVH Control Panel
9:30 Rename your VPS
9:59 Copy VPS login info to Desktop
11:32 Connect to VPS with PuTTy SSH
12:45 Download Minecraft server.jar
13:50 Update Ubuntu VPS
14:07 Install Java openjdk-17-jre-headless
14:55 Connect to WinSCP
16:09 Create minecraft folder in /home/ubuntu directory
17:15 Start the minecraft VPS
19:05 Edit eula.txt to eula=true
22:08 Install & run Screen
23:02 Start Minecraft server
24:30 Join your Minecraft Server through VPS IP
26:00 Give yourself Operator (op)
26:46 Change Gamemode
27:24 Outro

What is a Minecraft VPS?
A VPS (short for virtual private server) is a fully-isolated virtual environment based on a bare-metal server. Each VPS is allocated a set portion of the server’s physical resources, and is functionally equivalent to a dedicated server, but with a much lower price tag. It may help to think of it as renting a flat, rather than a whole house. This definition was taken from www.ovhcloud.com/en-ie/vps/uc-vps-minecraft

Grow your YouTube Channel with vidIQ vidiq.com/70s

Minecraft Guides (Playlist)    • Minecraft Guides  

More OVH Server Tutorials (Playlist)    • OVH Server Tutorials  

Ubuntu Linux Tutorials (Playlist)    • Ubuntu Linux Tutorials  

Social Media
SUBSCRIBE youtube.com/@Websplaining?sub_confirmation=1
Instagram (Thumbnail Collection) www.instagram.com/websplaining
Twitter (For Newest uploads) twitter.com/websplaining
Reddit (Discussions) www.reddit.com/r/Websplaining
Personal Website www.websplaining.com/

#Minecraft #VPS #UbuntuServer

DONT FORGET TO LIKE, COMMENT, AND SUBSCRIBE!

All Comments (21)
  • @Websplaining
    [IMPORTANT] Minecraft: Java Edition servers now require a minimum of Java 17 or above to run. In the video Java 14 is installed. Replace the number 14 with the latest version of Java. For example as of today the latest version of Java for Linux Ubuntu 21.04 is 17. Enter the following command in the terminal without the quotations "sudo apt install openjdk-17-jre-headless"
  • @bhopping
    Thank you so much! I was messing around for about 3 hours before finding this video trying to figure stuff out and this helped a lot.
  • @meeckamc
    What’s the recommended plan for a bungee cord server?
  • @Abadion12
    remember to open your servers port! sudo ufw allow 25565
  • @borbor9649
    I restarted the server via my hosting. but now the server doesnt open. How do i fix this?
  • @axel0w
    i love you so much for this tutorial
  • Can you tell me how I can place my own Minecraft world on the server?
  • @sabotagethefool
    My man, this is EXACTLY what I needed, calm and well explained thank you SO MUCH! Also, that doesn't sound like any part of Ireland I know :P Where abouts is that accent from? Much love from the wee north ;P Edit: Oh also; is there an easy way to reaccess the server commands if I close Putty and come back to it?
  • @Bbhamadama888
    if i close down the minecraft server, will it also close down the server??
  • @mbill7113
    How do I restart the Server after I stopped it?
  • @Mark-xp4fw
    Does this work with modpacks for minecraft?
  • @CoccusMC
    I cant find the 1.7.10 server download
  • @louismack8409
    can someone help me with putty its not letting me do the password?
  • @ezb_ai
    hi, help please ASAP! sudo java -Xmx1024M -Xms1024M -jar server.jar nogui gives Error: LinkageError occurred while loading main class net.minecraft.server.Main java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more rec ent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recogniz es class file versions up to 58.0 do you recognize this issue? if so kindly explain how to fix it. I've tried everything and I'm very frusterated