Skip to content

Instantly share code, notes, and snippets.

@0x4f53
Last active September 19, 2023 10:26
Show Gist options
  • Save 0x4f53/05ca148581434a6969993b14f04c1c1d to your computer and use it in GitHub Desktop.
Save 0x4f53/05ca148581434a6969993b14f04c1c1d to your computer and use it in GitHub Desktop.
Set up Luna Multiplayer on Ubuntu Server 20.04+
# GCP gives you $300 in free credits for a few months. Use it to host Luna Server!
wget https://github.com/LunaMultiplayer/LunaMultiplayer/releases/download/0.29.0/LunaMultiplayer-Client-Release.zip
unzip LunaMultiplayer-Client-Release.zip
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y dotnet-sdk-5.0
dotnet --version &&
unzip LunaMultiplayer-Server-Release.zip
cd LMPServer/
dotnet Server.dll
sudo ufw allow 8800
timeout 10 dotnet Server.dll
# To add a password
# cd Config/
# nano GeneralSettings.xml
# To start on boot
# @reboot cd ~/LMPServer/ && sudo dotnet Server.dll
# Create firewall rule on GCP
# Visit https://console.cloud.google.com/net-security/firewall-manager/firewall-policies
# Allow ingress on 8800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment