Here at PureVoltage, we love to play games. That’s why we own and operate Minecraftserver.net and Exodus Hosting, of which are Minecraft and Counter-Strike servers for the most part. Recently, some of our staff have started playing a game called Rust, that’s a bit like Minecraft I would say, with the additions of harsh realities we all know so well in the real world like death, attacks, raiding, and even ferocious animals.
After playing on various servers for a few months, the guys asked if we could try and set up one on our VPS servers, and was provided a 2GB server shortly thereafter.
The server was up and running from March 26th to August 29th, and at max capacity was running 75 players and close to 100,000 entities. Located in our New York Datacenter location, this server provided 100’s of Rust players along with our own staff many hours of playing time.
Now, we’d like to take their notes and show you how you can setup your own Linux Rust Server using one of our VPS servers (we recommend 2GB+).
Additionally, we’d like to mention GameServerManagers at the top here, because their tool allowed us to easily setup, install and manage this Rust server. They have a ton of installing tools for a wide variety of games, be sure to check them out!
What You’ll Need
First, you’ll need a few things to get setup properly and ensure the installation goes off without a hitch!
- 1 VPS Server (2GB+ Recommended)
- Ubuntu 12.04 LTS+
- Putty or an equivalent command line tool
- GSM RustServer Package – Learn More
Now that you’ve obtained your VPS, you should have access and credentials setup for root, which we will need to prepare the server to run Rust.
Go ahead and login to your VPS as root, and run these commands:
sudo dpkg --add-architecture i386; sudo apt-get update;sudo apt-get install mailutils postfix curl wget file gzip bzip2 bsdmainutils python util-linux tmux lib32gcc1 libstdc++6 libstdc++6:i386
sudo apt-get install mailutils postfix curl wget file gzip bzip2 bsdmainutils python util-linux tmux libstdc++6
This will update your VPS and install the dependencies needed for the GSM Rust server tool.
Installing GSM Rust Server
Once you’ve installed the dependencies and update the VPS server, it’s now safe to install the GSM Rust Server package.
1.) Create a User & Login (still logged in as root):
su - rustserver
2.) Now, download the GSM Rust Script:
3.) Let’s make it executable:
chmod +x rustserver
4.) Finally, let’s run the installer and follow it’s instructions:
5.) Allowing RCON & Connection via IPTables:
sudo iptables -A INPUT -p tcp --dport 28015 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 28016 -j ACCEPT
Logging in & Starting Rust Server
Now that you’ve got everything setup and access in place, log out of root, and log back in with the rustserver user & pass you created above. Once you’ve logged in successfully, you should go ahead and run the update:
If all goes well with that, you can proceed to starting your Rust server:
Then to check and make sure all is running well, use the details command:
A complete list of all commands are available using this command:
Final Thoughts & Recommendations
We found that running this server on 2GB for 3 months was stable, but once we upgraded it to 4GB it ran much smoother, and players had little to no rubber banding or lag. We also took on 2 DDoS attacks during the life of the server, and managed to mitigate those attacks using our own in-house DDoS protection, powered by PureVoltage.
We also found administration of the server to be difficult through command line, and promptly switched to RustAdmin, an awesome GUI-based Windows tool that provides a huge amount of options to help make a vanilla Rust server much more fun and interactive.
We hope that this blog post helps you find a cost-efficient solution to hosting your own rust server, and with the tools available to you from PureVoltage, RustAdmin and Linux Game Server Managers, it’s easier than ever.
Thanks for reading this “How to Create a Linux Rust Server using a VPS”, and if you’re a PureVoltage customer struggling to get this setup yourself, just open a ticket and one of our team members will jump on it!