Jump to content
  • Announcement

    Welcome to M1GC

  • M1GC

How to configure a Squad Dedicated Server (Linux)


M1GC

Recommended Posts

  • REQUIREMENTS for LINUX
  • GLIBC 2.17 or higher

Install GLIBC UBUNTU

sudo apt-get install libglib2.0-dev

First of all this guide assumes you've got a Linux Distribution installed with 64 bit architecture.

Most hosting companies will run 64bit so not to worry.
Other than that, this guide needs no linux experience whatsoever and will be in completely "for dummies" mode. 

PROTIP: The linux terminal autocompletes with TAB.

So if you have a file or folder called "testfolder" you can write "test" and press tab and it will autofill to testfolder!
A suggested software to use to connect to your linux server terminal is PUTTY.

https://www.chiark.greenend.org.uk/~sgtatham/putty/

INSTALLING SERVER:
Log in as root and install the software screen and a library needed for SteamCMD

Debian/Ubuntu: apt-get install screen
                   apt-get install lib32gcc1
    CentOS: yum -y install screen
            yum -y install glibc libstdc++
            yum -y install glibc.i686 libstdc++.i686

Create a user you want to use for the squadservers.

adduser username

Enter a password for the user of your own choosing.

You may have to change the password with "sudo passwdusername" When prompted for full name, room number, work phone, home phone, and other just press enter.

When asked if information is correct write Y and press enter


Log on to the new user account: ssh username@localhost and then the password you selected.

Make a directory named SquadServer

mkdir SquadServer

Enter the folder

cd SquadServer

Make a folder for the first server instance

mkdir server1

Download SteamCMD

wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz

NOTE: Some have complained about getting an untrusted/license error of some sort. If that is the case, try this:

wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz

Unpack steamCMD

tar zxvf steamcmd_linux.tar.gz

Create a script for installing (And later updating) the first serverinstance

$nano updateserver1.sh - This opens a text editor.
    
Copy paste the following into the file: 
"./steamcmd.sh +login anonymous +force_install_dir server1 +app_update 403240 validate"
 Close the file and save by pressing ctrl+o and hitting enter. Exit by pressing ctrl+x

Make files in the folder executeable

 chmod +x *

Install the server instance (this same command is used later to update the server when a new version is released.)

./updateserver1.sh

When it's finished it will say "Success! App '403240' fully installed."

Quit SteamCMD by writing

exit

and hitting Enter.

Create a script for starting the server instance

nano startserver1.sh

Copy paste the following into the file:

cd server1; ./SquadServer.sh Port=7787 QueryPort=27165 FIXEDMAXPLAYERS=80 RANDOM=NONE

 Save and close the file by pressing ctrl+o > Enter > Ctrl+X 
Make the script and the server folder executeable 

chmod +x startserver1.sh
chmod +x server1

Open a screen window to run the server in then enter that screen

screen -dmS server1
screen -r server1

EDITING CONFIG FILES:

Log on as your the user account running the server and go into the Serverconfig folder located in SquadServer/server1/Squad/ServerConfig in our example.

cd SquadServer
cd server1
cd Squad
cd ServerConfig

 Open the file you wish to edit with NANO.

nano Server.cfg

Server configuration Settings in  Server.cfg

This is the general server config file. Each variable should be on its own line. New additions will be added to this wiki. Since we do not overwrite config files you will need to manually add them to your existing server config if you wish to alter the default value.

ServerName="Squad Dedicated Server"

IsLANMatch=false 

ShouldAdvertise=true 

MaxPlayers=40 

NumReservedSlots=0 

NumPlayersDiffForTeamChanges=3 

AllowTeamChanges=true 

PreventTeamChangeIfUnbalanced=true 

EnforceTeamBalance=true 

RejoinSquadDelayAfterKick=180 

ServerMessageInterval=300 

ServerPassword=Password 

AutoTkBanTime=1209600 

RecordDemos=false 

VehicleClaimingDisabled=false 

VehicleKitRequirementDisabled=false 

AllowQA=false // Forced on for Licensed servers (Only OWI staff & qa are admins) 

AllowCommunityAdminAccess=false // Forced on for Licensed servers (Only OWI devs) 

AllowDevProfiling=false

PORTS TO OPEN

Port = Game port = UDP (Default 7787, 7788 UDP) Need to be open on Windows firewall and router.
QueryPort = Steam query port = UDP (Default 27165 UDP)
QueryPort+1 = Second Steam query port = UDP and TCP (Default 27165, 27166, 27167 UDP and TCP)

FILES

Admins.cfg
Bans.cfg
License.cfg
MapRotation.cfg
Rcon.cfg
RemoteAdminListHosts.cfg
RemoteBanListHosts.cfg
Server.cfg
ServerMessages.cfg

ADDING ADMINS IN ADMIN.CFG

Admins are now created by groups and groups are assigned to admins. You can create as many groups as you want with any types of permissions. All the permissions will be in the config file commented out. These files will not be over writeable so when we add new permissions you will need to check here or the wiki for updates. The below are just examples. Please note that it needs to be SteamId64. You can convert your ID at steamid.io/lookup/

Group=SuperAdmin:changemap,cheat,private,balance,chat,kick,ban,config,cameraman,debug,pause
Group=Admin:changemap,balance,chat,kick,ban,cameraman,pause
Group=Moderator:changemap,chat,kick,ban
Admin=76561115695178:Moderator //Player 5
Admin=8915618948911:Moderator //Player 4
Admin=7894591951519:Admin //Player 3
Admin=7984591565611:SuperAdmin //Player 2
Admin=917236241624:SuperAdmin //Player 1
Admin=45365435431:Admin //Player 8792 

Map Rotation in MapRotation.cfg

Logar 
Kohat 
OP First Light 
Chora 
Fool's Road 
Sumari 
Gorodok 
Yehorivka 
Mestia 
Kokan 
Narva 
Al Basrah 
Belaya

If you want a specifc map version you can add the below into the rotation file

Al Basrah 

Al Basrah AAS v1 

Al Basrah Conquest v1 

Al Basrah INS v1 

Al Basrah Invasion v1 

Al Basrah Invasion v2 

Al Basrah PAAS v1 

Al Basrah PAAS v2 

Belaya Belaya AAS v1 

Belaya AAS v2 

Belaya AAS v3 

Belaya Invasion v1 

Belaya Invasion v2 

Belaya PAAS v1 

Chora 

Chora AAS v1 

Chora AAS v1 INF 

Night Chora AAS v2 

Chora Conquest v1 

Chora INS v1 

Chora Invasion v1 

Night Chora PAAS v1 

Fool's Road Fool's 

Road AAS v1 

Fool's Road AAS v1 

INF Fool's Road AAS v2 

Fool's Road AAS v3 

Fool's Road AAS v4 

Fool's Road Conquest v1 

Fool's Road Skirmish 

Gorodok 

Gorodok AAS v1 

Gorodok AAS v1 INF 

Gorodok AAS v2 

Gorodok AAS v3 

Gorodok AAS v4 

Gorodok Invasion v1 

Gorodok Invasion v2 

Jensen's Range 

Kamdesh 

Kamdesh AAS v1 

Kamdesh AAS v1 

INF Kamdesh INS v1 

Kamdesh Invasion v1 

Kamdesh Invasion v2 

Kamdesh PAAS v1 

Kohat Kohat AAS v1 

Kohat AAS v1 INF 

Kohat AAS v2 

Kohat INS v1 

Kohat Invasion v1 

Kokan 

Kokan AAS v1 

Kokan AAS v2 

Kokan INS v1 

Kokan PAAS v1 

Logar 

Logar PAAS V1 

Logar Valley AAS v1 

Logar Valley AAS v1 INF 

Logar Valley INS v1 

Logar Valley INS v1 

Night Mestia 

Mestia AAS v1 

Mestia AAS v2 

Mestia Invasion v1 

Mestia Invasion v2 

Mestia PAAS v1 

Narva 

Narva AAS v1 

Narva AAS v2 

Narva AAS v3

Narva Invasion v1 

Narva PAAS v1 

Narva PAAS v2 

OP First Light 

OP First Light AAS v1 

Sumari Sumari AAS v1 

Sumari AAS v1 INF 

Sumari AAS v2 

Sumari AAS v3 

Sumari INS v1 

Sumari ITC v1 

Yehorivka 

Yehorivka AAS v1 

Yehorivka AAS v1 INF

Yehorivka AAS v2 

Yehorivka AAS v3

Yehorivka Invasion v1 

Yehorivka Invasion v2

When you're done, save the file with ctrl+o and then enter. Exit nano with ctrl+X.

Start your server

./startserver1.sh
 Screen allows the server to run even if you've shut down your SSH session (putty).

STOPPING SERVER:

SSH to your linux server as the user running the squadserver. (Not root) Once in the terminal, open up the screen for said server instance, in above example called server1

screen -r server1

You will now see the SquadServer log window, press CTRL+C and it will shut the server down.

After that you can start it again with your start command.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • M1GC

  • Welcome to M1GC

    tenor.gif

    We accept players of all skill levels and help members grow at their own pace.

    We are respectful, determined, and proud to be M1GC members..

  • twitch-logo.gif.6e366685b5d45bf948dad544bc71f521.gif

    Check out M1GC on Twitch

  • Sign up to Restream.io

    M1-Gaming Is Inviting you to Join Restream. The best way to stream video live to 30+ platforms simultaneously for free.

MuRdeR1 GaMinG CReW

We are a community of mature gamers who value character, honor, and professionalism

We are one of the newest active teams in online gaming.

We are diverse and open, with members from all across the world in multiple games.

M1GC Crew Gamers

We are organized and stable, with opportunities for both competitive and casual.
We accept players of all skill levels and help members grow at their own pace.

M1GC Crew Websites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.