Minecraft Server VPS - Getting Started Guide

Minecraft Server VPS - Getting Started Guide

Your Minecraft VPS based on Ubuntu 24.04 comes with a fully configured Paper MC server, optimized JVM settings (Aikar's Flags), automatic world backups and firewall. The server starts automatically - just connect and play.

Software Included

Component Details
Ubuntu24.04 LTS
Paper MCLatest stable (Minecraft Java Edition)
JavaOpenJDK 21
JVM OptimizationAikar's Flags (G1GC tuned for Minecraft)
FirewallUFW (SSH + Minecraft ports only)
Fail2BanSSH brute-force protection
BackupsAutomatic every 6 hours, 7-day retention

Step 1 - Connect to Your Server

Your Minecraft server is running on port 25565 (default). Open Minecraft Java Edition, click MultiplayerAdd Server, and enter your server IP:

your.server.ip

No port needed - Minecraft uses 25565 by default.

Note: The first boot takes 1-3 minutes while the world is being generated. If you can't connect immediately, wait a moment and try again.

Step 2 - Server Administration via SSH

Connect to your server via SSH for administration:

ssh root@your.server.ip

Useful commands:

# Check server status
systemctl status minecraft

# Stop the server
systemctl stop minecraft

# Start the server
systemctl start minecraft

# Restart the server
systemctl restart minecraft

# View live server logs
journalctl -u minecraft -f

Server Configuration

Server Properties

The main configuration file is located at:

/opt/minecraft/server.properties

After editing, restart the server for changes to take effect:

systemctl restart minecraft

Common settings you may want to change:

Setting Description
motdServer name shown in the server list
max-playersMaximum number of players (default: 20)
gamemodesurvival, creative, adventure
difficultypeaceful, easy, normal, hard
white-listEnable whitelist (true/false)
view-distanceChunk render distance (default: 8, lower = better performance)
pvpPlayer vs player combat (true/false)

Installing Plugins

Paper MC supports Bukkit and Spigot plugins. To install a plugin:

# Copy plugin JAR to the plugins directory
cp my-plugin.jar /opt/minecraft/plugins/

# Restart the server
systemctl restart minecraft

Download plugins from trusted sources:


Whitelist Management

If you enabled whitelist, only approved players can join. Manage the whitelist via SSH:

# Edit whitelist file
nano /opt/minecraft/whitelist.json

# Or add players by editing server.properties:
# white-list=true
# Then restart and use the whitelist.json file

Backups

Automatic Backups

Your world is automatically backed up every 6 hours. Backups are stored in /opt/minecraft/backups/ and kept for 7 days.

# List backups
ls -lh /opt/minecraft/backups/

# Manual backup
sudo -u minecraft /opt/minecraft/backup.sh

# Restore from backup (stop server first!)
systemctl stop minecraft
cd /opt/minecraft
rm -rf world
tar -xzf backups/world-2026-03-04_12-00.tar.gz
systemctl start minecraft

Performance

JVM Memory

The server automatically allocates memory based on your VPS RAM (total RAM minus 1 GB for the OS). No manual tuning needed.

VPS RAM Server Heap Recommended Players
2 GB1 GB1-5
4 GB3 GB5-15
8 GB6 GB*15-30
16 GB12 GB*30+

* For 8+ GB VPS, 2 GB is reserved for the OS instead of 1 GB.

Performance Tips

  • Lower view-distance and simulation-distance in server.properties if you experience lag
  • Use the built-in Spark profiler: type /spark tps in-game to check server performance
  • Limit entity counts with Paper's configuration in /opt/minecraft/config/paper-world-defaults.yml
  • Pre-generate chunks with a plugin like Chunky to avoid lag spikes when players explore

Updating Paper MC

To update Paper MC to the latest version:

# Stop the server
systemctl stop minecraft

# Backup current JAR
cp /opt/minecraft/paper.jar /opt/minecraft/paper.jar.bak

# Download latest Paper MC
# Visit https://papermc.io/downloads/paper and download the latest JAR
# Upload it to your server via SCP or SFTP:
scp paper-1.XX.X-XXX.jar root@your.server.ip:/opt/minecraft/paper.jar

# Fix permissions
chown minecraft:minecraft /opt/minecraft/paper.jar

# Start the server
systemctl start minecraft

Troubleshooting

Problem Solution
Can't connect to server Wait 1-3 minutes after first boot for world generation. Check: systemctl status minecraft
Server lag / TPS drops Lower view-distance to 6 and simulation-distance to 4. Check TPS: /spark tps
Server crashes with OutOfMemoryError Your VPS needs more RAM. Upgrade to a higher plan or reduce max-players and view-distance
"Failed to verify username" error This means online-mode=true (default). Players must own a legitimate Minecraft account
Plugin not working Check logs: journalctl -u minecraft | grep ERROR. Ensure the plugin is compatible with your Paper MC version
Forgot root password Use VNC console in your client panel to reset it

File Locations

Path Description
/opt/minecraft/Server root directory
/opt/minecraft/server.propertiesMain configuration
/opt/minecraft/plugins/Plugin directory
/opt/minecraft/world/World data
/opt/minecraft/backups/Automatic backups
/opt/minecraft/logs/Server and backup logs
/opt/minecraft/config/Paper MC configuration


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 0