In this tutorial you will learn how to setup an SA-MP (San Andreas Multiplayer) server on CentOS 7.
Let's make sure the system is fully updated before we start. Then, we'll be creating a new user for the server. Be sure to use a strong password.
yum update yum upgrade -y adduser samp passwd samp
Let us also open the necessary firewall ports.
firewall-cmd --zone=public --add-port=7777/tcp --permanent firewall-cmd --zone=public --add-port=7777/udp --permanent firewall-cmd --reload
Next, install the required libs to run the server.
yum install glibc.i686 libstdc++.i686 -y
Now, let's switch to the user that we have just created.
su samp cd ~
Download the server software.
http://files.sa-mp.com/samp037svr_R2-1.tar.gz tar xf samp037svr_R2-1.tar.gz
Open the config file in a text editor. We need to make some changes in order to run the server.
cd samp03 nano server.cfg
rcon_password changemeto your desired admin password.
Save the file. Your SAMP server is now installed.
Want to customize the name and perhaps the slots of the server? For any of these changes, you can edit the
server.cfg file again, as we did previously.
On line 4, change
50 to the amount of slots you want. Max slots is 500.
On line 6, change
SA-MP 0.3 Server to your server name.
Navigate to the following folder and run your server.
cd /home/samp/samp03/ screen -dmS samp ./samp03svr
The server is now running in the background. To shut down the server, run the following command:
Enjoy your new San Andreas server!