How to setup your ARK: Survival Evolved Server or Ubuntu OS?

ARK: Survival Evolved is an adventurous action genre video game. It is one of the most played games worldwide. To play the game, the player can navigate on foot or use animal. The island is full of dinosaurs, natural hazards, prehistoric animals and hostile human-players. A player can choose weapons and firearms to protect and defend himself from animals and human players. You can play as a single player or your friends can join your server in multiplayer mode.

To setup your own ARK: Survival Evolved server on Ubuntu, follow the tutorial below.

Prerequisites:

  1. You must have a copy of game client from https://www.playark.com to use your ARK: Survival Evolved server.
  2. You should setup your VPS’s hostname.
  3. Follow the general instructions to secure your server. activating firewalls.

Minimum Requirements for these settings:

  1. Ubuntu 16.04 (64 bit) installed on your VPS
  2. 6 GB RAM required (8 GB Recommended)
  3. Fast Internet

Before you begin:

Login as root user with your root username & password via SSH client (e.g. Putty – You can get Putty from https://www.putty.org )

You will have to update & upgrade your Ubuntu to latest packages using the following commands:

# sudo apt-get update && sudo apt-get upgrade

When you see the following message, type ‘Y’ and press Enter key.

Select “install the package maintainer’s version” option and then select OK.
ark survival evolved server

  1. Now you have to setup SteamCMD. This is steam command line interface.

Install SteamCMD:

To install SteamCMD in Ubuntu, follow the steps below:

  1. You will have to open the list in nano editor using the following command:
# sudo nano

/etc/apt/sources.list

  1. Write the following lines in opened list file as shown below:
deb http://archive.ubuntu.com/ubuntu xenial main universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main universe multiverse

 

ark survival evolved server

  1. After you have done writing, press Ctrl + X, write ‘Y’ and press Enter key.
  2. Now, type the following command in your terminal:
# sudo dpkg --add-architecture i386
  1. Now you will need to update your package again using the following command:
# sudo apt-get update
  1. Now type the following command to proceed towards installation of SteamCMD:
# sudo apt-get install steamcmd

If above command gives any error, then you may use the following command:

# sudo apt-get -f install steamcmd
  1. After execution of above command, you will see the following screen. Type ‘Y’ and press Enter key.
  2. During installation of SteamCMD, a screen will appear to ask regarding terms and agreement. Select OK option and then select I AGREE to accept these terms and agreement and select
  3. To avoid any security issues, you will have to add another user.

 

How to add new user in Ubuntu?

  1. To add user, use the following command:
# adduser

ark

Note: ark can be any username of your choice.

  1. Select your password of your choice:
  2. Enter your information like Full Name, Phone Number, etc.
  3. Confirm your information is correct by typing ‘Y’ and press Enter.
  4. To assign admin rights to user, use the following command:
# adduser

ark

sudo

Now proceed towards making some settings in your system to open files limit:

  1. Use the following command for to open /etc/sysctl.conf file
# sudo nano

/etc/sysctl.conf

  1. Add the following line
fs.file-max=100000

Press Ctrl + X, write ‘Y’ and press Enter.

then run

# sysctl -p /etc/sysctl.conf
  1. Use the following command for to open /etc/security/limits.conf file
# sudo nano

/etc/security/limits.conf

  1. Update the following lines to the lines below in opened file and use Ctrl + X, then type ‘Y’ and press Enter to save the settings:

 

*                            soft      nofile               1000000

*                            hard     nofile               1000000

 

  1. Use the following command for to open /etc/pam.d/common-session file
# sudo nano

/etc/pam.d/common-session

 

  1. Add the following line in opened file as shown in screenshot below and use Ctrl + X, then type ‘Y’ and press Enter to save the settings:
#  session required pam_limits.so

The above changes are necessary for tuning otherwise, consumption of system resources would be higher.

Let’s install ARK server now:

  1. Now let’s proceed towards installation of ARK server. First of all, you will have to create a server directory that you contain the files of your ARK server. To create directory, execute the following commands in your terminal:
# mkdir

server

Where server is name of directory.

  1. Now let’s create symlink from the location /usr/games/steamcmd to steamcmd in your user’s directory. In my case, username is ark so mine would be ark user’s directory. To do this, use the following command:
# ln -s /usr/games/steamcmd steamcmd
  1. Use the following command to run streamcmd for installation of ARK server.
# steamcmd +login anonymous +force_install_dir /home/ark/server +app_update 376030 +quit

Now you can see that your app has been successfully installed.

 

Let’s create a systemd Unit for ARK Server now:

  1. When system is restarted or rebooted, to automatically start the ARK server, we will create a systemd unit file. For this purpose, we will log in again from our root account or we can simply switch user to root by using the following command:

Command to switch user to root:

# su -
  1. Now to create a new systemd file, execute the following command:
# nano

/lib/systemd/system/ark.service

  1. Type the following lines in opened file in nano editor. Use Ctrl + X, type ‘Y’ and press Enter key to save the file.
 

[Unit]

Description=ARK Survival Evolved

[Service]

Type=simple

Restart=on-failure

RestartSec=5

StartLimitInterval=60s

StartLimitBurst=3

User=ark

Group=ark

ExecStartPre=/home/ark/steamcmd +login anonymous +force_install_dir /home/ark/server +app_update 376030 +quit

ExecStart=/home/ark/server/ShooterGame/Binaries/Linux/ShooterGameServer TheIsland?listen?SessionName=example -server -log

ExecStop=killall -TERM srcds_linux

[Install]

WantedBy=multi-user.target

 

 

  1. Execute the following command to apply your updated changes.
# systemctl daemon-reload
  1. Execute the following commands to enable systemd unit and run/start your ARK server.
# systemctl enable ark.service
# systemctl start ark

Now, after successful execution of the commands above, you will need to configure your server by editing settings in GameUserSettings.ini file. You can setup password for the users and admin in this file. You can also leave user’s password blank when you want your users to connect with your server without any password. Admin password is required while issuing game commands. To do this, you can follow the commands below:

  1. Open the GameUserSettings.ini file.
# nano /home/ark/server/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini
  1. Now add the following lines given below in opened nano editor and use Ctrl + X, type ‘Y’ and press Enter to save the settings. 

Now Connect to your ARK Survival Server:

  1. Now open your ARK Survival client and click Join ARK.
  2. Use Server Name Filter and select your server.
  3. Enter password and click Accept.

Leave a Reply

Your email address will not be published. Required fields are marked *