Common files and script for Sandstorm servers used in SPL and ICL community
- Install the needed packages:
sudo dpkg --add-architecture i386; sudo apt update; sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc-s1 lib32stdc++6 git htop distro-info libsdl2-2.0-0:i386; sudo apt autoremove
- Open ports needed for the server:
sudo ufw enable && sudo ufw allow ssh && sudo ufw allow 27102:27105/udp && sudo ufw allow 27131:27134/udp && sudo ufw allow 27015:27018/tcp
- Add a new user and login into it (optional):
sudo adduser <UserName>
su - <UserName>
- Make a folder for your server and get in it:
mkdir <ServerDirectory> && cd <ServerDirectory>
- Dowload makeServer.sh:
wget -O makeServer.sh https://raw.githubusercontent.com/LorenzoCardinali/SandstormServers/main/makeServer.sh && chmod +x makeServer.sh
- Execute makeServer.sh adding the wanted server name as parameter:
./makeServer.sh <MyServerName>
- Follow the installation
- Edit the following config files as needed:
- %ServerDirectory%/serverfiles/Insurgency/Saved/Config/LinuxServer/Game.ini
- %ServerDirectory%/lgsm/config-lgsm/inssserver/%MyServerName%.cfg
- Follow this guide to get a token for mods (https://insurgencysandstorm.mod.io/guides/server-admin-guide#read22)
- Start the server
./<MyServerName> start
- Done
- Install git in your machine:
sudo apt update && sudo apt install git wget
- Get in the main folder of the sandstorm server
- Download updateFiles.sh and execute it:
wget -O updateFiles.sh https://raw.githubusercontent.com/LorenzoCardinali/SandstormServers/main/updateFiles.sh && chmod +x updateFiles.sh && ./updateFiles.sh
- Done