How to Set Up an ARK: Survival Evolved Server on Ubuntu OS

简介: In this tutorial, we will be hosting an ARK: Survival Evolved dedicated gaming server using an Alibaba Cloud ECS instance (Ubuntu 16.04).

By Arslan Ud Din Shafiq, Alibaba Cloud Tech Share Author

ARK: Survival Evolved is an adventure-action genre video game. It is my personal favorite and one of the most played games worldwide. You can play as a single player or play with your friends on a server in multiplayer mode. There are a few ways to host a multiplayer server: buying a dedicated gaming server, using a third-party service, or creating your own on Alibaba Cloud!

As a gamer and developer, I prefer to have more flexibility when it comes to creating dedicated gaming servers. One major benefit of using a cloud provider, such as Alibaba Cloud, is that I do not have to worry about maintaining or upgrading the hardware in my server. It is also elastic, which means that I can easily scale my resources based on demands.

In this tutorial, I will be using an Ubuntu 16.04 server on Alibaba Cloud Elastic Compute Service (ECS). You could also use other operating systems (OS); however, the steps may differ slightly from this tutorial. To setup your own ARK: Survival Evolved server, follow the tutorial below.

Prerequisites:

1.You must have an Alibaba Cloud ECS instance activated. If you are a new user, you can get free $300 credit in your Alibaba Cloud account. If you don't know how to setup your instance, you can refer to this tutorial or the quick-start guide.
2.You must have a copy of game client from https://www.playark.com to use your ARK: Survival Evolved server.
3.You should setup your server’s hostname.

Minimum Requirements for ARK: Survival Evolved Server

1.Ubuntu 16.04 (64 bit) installed on your Alibaba Cloud ECS
2.6 GB RAM required (8 GB Recommended)
3.Fast Internet (you can purchase bandwidth on ECS for internet access)

Setting Up Ubuntu for SteamCMD

After completing the prerequisites, you will need to set up Ubuntu correctly on your ECS instance.

1.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 can also connect directly using the Alibaba Cloud console.

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

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

1

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

2

4.Select “install the package maintainer’s version” option and then select OK.

3

Installing SteamCMD:

To install SteamCMD in Ubuntu, follow the steps below:

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

# sudo nano /etc/apt/sources.list

4

2.Write the following lines in opened sources.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

5

3.After you have done writing, press Ctrl + X, type ‘Y’ and press Enter key.
4.Now, type the following command in your terminal:

# sudo dpkg --add-architecture i386

6

5.Now you will need to update your package again using the following command:

# sudo apt-get update

7

6.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

8

7.After execution of above command, you will see the following screen. Type ‘Y’ and press Enter key.

9

8.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 OK.

10

11

Adding a New User in Ubuntu

To avoid any security issues, you will have to add another user on your server.

1.To add user, use the following command:

# adduser ark

Note: ark can be any username of your choice.

12

2.Select your password of your choice:

13

3.Enter your information like Full Name, Phone Number, etc.

14

4.Confirm your information is correct by typing ‘Y’ and press Enter.

15

5.To assign admin rights to user, use the following command:

# adduser ark sudo

16

Configure Open Files Limit:

1.Use the following command to open /etc/sysctl.conf file

# sudo nano /etc/sysctl.conf

2.Add the following line

fs.file-max=100000

17

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

# sysctl -p /etc/sysctl.conf

18

3.Use the following command to open /etc/security/limits.conf file

# sudo nano /etc/security/limits.conf

4.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:

* softnofile1000000
* hardnofile1000000

19

5.Use the following command to open /etc/pam.d/common-session file

# sudo nano /etc/pam.d/common-session

6.Add the following line in the 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

20

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

Installing ARK Server

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

# mkdir server

The argument server is the name of directory.

21

2.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

22

3.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

23

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

Creating a systemd Unit for ARK Server

1.When the system is restarted or rebooted, we will create a systemd unit file to automatically start the ARK server. 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 -

2.Now to create a new systemd file, execute the following command:

# nano /lib/systemd/system/ark.service

24

3.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

25

4.Execute the following command to apply your updated changes.

# systemctl daemon-reload

26

5.Execute the following commands to enable systemd unit and run/start your ARK server.
# systemctl enable ark.service

27

# systemctl start ark

28

Configuring ARK Server

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

2.Now add the following lines given below in opened nano editor and use Ctrl + X, type ‘Y’ and press Enter to save the settings.

29

Setting Up Firewalls for ARK Server

You can protect your ARK server from unauthorized access by setting up firewalls. To do this, follow the following instructions.

If you have activated firewalls, you will have to define a rule in Alibaba Cloud security group for your cloud server to add exception for port 27015, 7777, 7778 and 27020. By default, these ports are blocked by the firewalls.
1.Go to your Elastic Compute Service section:

30

2.Click on More.

31

3.Click on Configure Rules.

32

4.Click on Quickly Create Rules.

33

5.Add the configurations for port UDP 27015 as shown in screenshot below & click OK.

34

6.Now, add the configurations for port UDP 7777 as shown in screenshot below & click OK.

35

7.Now, add the configurations for port UDP 7778 as shown in screenshot below & click OK.

36

8.Add the configurations for port TCP 27020 as shown in screenshot below & click OK.

37

Connecting to Your ARK Survival Server

After successfully completing all the previous steps, you should be able to connect to your ARK server. To do this, you just need to perform three steps.

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

Conclusion

If you follow all the steps correctly, you should have a fully functional and dedicated ARK gaming server. If you are interested to know how to host a Minecraft server on Alibaba Cloud, you should definitely check out my Minecraft tutorial!

I will be writing more tutorials on gaming in the near future. If you are interested in writing, feel free to check out the Tech Share program. Be sure to stay up to date with the official Alibaba Cloud Blog!

目录
相关文章
|
6月前
|
数据安全/隐私保护 虚拟化 Windows
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Windows Server 2012 操作系统保姆级教程(附链接)
|
Ubuntu 安全 Linux
百度搜索:蓝易云【Ubuntu 20.04 安装VNC Server的教程。】
请注意,VNC连接是以明文形式传输数据的,因此建议在安全的网络环境中使用VNC,并设置强密码以确保安全性。
241 1
|
3月前
|
Ubuntu 网络安全 数据安全/隐私保护
ubuntu server连接wifi教程
本文提供了一个简化Ubuntu Server在Raspberry Pi系统上配置过程的脚本"config_ubuntu_server",包括自动和手动两种方法来设置root权限、SSH配置,并连接WiFi,同时支持无密码SSH访问,适合初学者和高级用户。
79 3
|
3月前
|
Ubuntu 网络协议 开发工具
在 Ubuntu Server 上配置静态 IP 地址
在 Ubuntu Server 上配置静态 IP 地址
310 0
|
6月前
|
网络协议 Unix Linux
【技术分享】Server / Server Software / Unix Windows OS
Server / Server Software / Unix Windows OS
76 2
|
12月前
|
存储 缓存 NoSQL
如何解决Ubuntu server 下 Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”.
如何解决Ubuntu server 下 Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”.
401 0
|
6月前
|
存储 Ubuntu 网络安全
|
6月前
|
Ubuntu 网络安全 虚拟化
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
240 1
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
|
消息中间件 网络协议 Ubuntu
Ubuntu安装RabbitMQ server - 在外远程访问【内网穿透】
通过在ubuntu+cpolar+rabbitMQ环境下,实现mq服务端远程访问。
Ubuntu安装RabbitMQ server - 在外远程访问【内网穿透】
下一篇
无影云桌面