forked from arkmanager/ark-server-tools
-
Notifications
You must be signed in to change notification settings - Fork 7
Quick Start
Brian Aldridge edited this page Feb 12, 2019
·
20 revisions
Here is a quick and dirty way to set up a 2x2 grid right away.
Please use common sense. This is a list of the steps that it should take to get your your system configured. It has some automation built in, so if you run each line one at a time, you should have a working server by the end. If there is an error, please let me know and I will troubleshoot it.
Choose for you system type:
Debian/Ubuntu: sudo dpkg --add-architecture i386
Debian/Ubuntu: sudo apt-get update
Debian/Ubuntu: sudo apt-get install steamcmd
Debian/Ubuntu: sudo apt-get install redis-server
Debian/Ubuntu: sudo apt-get install jq
Redhat/Centos: sudo yum install steamcmd
Redhat/Centos: sudo yum install redis-server
Redhat/Centos: sudo yum install jq
sudo systemctl disable redis-server
sudo service redis-server stop
sudo useradd -m steam -s /bin/bash
sudo passwd steam
curl -sL http://git.io/fh4HA | sudo bash -s steam
su - steam
cd /home/steam/
atlasmanager install
atlasmanager redis-start
atlasmanager redis-status
cd /home/steam/ATLAS/ShooterGame/
mkdir ServerGrid
wget https://raw.githubusercontent.com/BoiseComputer/atlas-server-tools/master/map/ServerGrid.ServerOnly.json
wget https://raw.githubusercontent.com/BoiseComputer/atlas-server-tools/master/map/ServerGrid.json
wget -P ./ServerGrid/ https://github.com/BoiseComputer/atlas-server-tools/raw/master/map/MapImg.jpg
pubip="$(sed -e 's/^"//' -e 's/"$//' <<<"$(dig whoami.akamai.net. @ns1-1.akamaitech.net. +short)")"
sed -i 's/123.456.789.0/'"$pubip"'/g' ServerGrid.json
sed -i 's/#atlas_SeamlessIP=1.2.3.4/atlas_SeamlessIP='"${myip}"'/g' /etc/atlasmanager/atlasmanager.cfg
echo -n "Please set your desired server admin password [ENTER]: ";read temppass;
sed -i 's/keyboardcat/'"$temppass"'/g' /etc/atlasmanager/instances/main.cfg;unset temppass
cp /etc/atlasmanager/instances/main.cfg /etc/atlasmanager/instances/b1.cfg
sed -i 's/"32330"/"32331"/g' /etc/atlasmanager/instances/b1.cfg
sed -i 's/"5750"/"5752"/g' /etc/atlasmanager/instances/b1.cfg
sed -i 's/"57550"/"57551"/g' /etc/atlasmanager/instances/b1.cfg
sed -i 's/"A1"/"B1"/g' /etc/atlasmanager/instances/b1.cfg
sed -i 's/atlas_ServerY=0/atlas_ServerY=1/g' /etc/atlasmanager/instances/b1.cfg
cp /etc/atlasmanager/instances/main.cfg /etc/atlasmanager/instances/a2.cfg
sed -i 's/"32330"/"32332"/g' /etc/atlasmanager/instances/a2.cfg
sed -i 's/"5750"/"5754"/g' /etc/atlasmanager/instances/a2.cfg
sed -i 's/"57550"/"57552"/g' /etc/atlasmanager/instances/a2.cfg
sed -i 's/"A1"/"A2"/g' /etc/atlasmanager/instances/a2.cfg
sed -i 's/atlas_ServerX=0/atlas_ServerX=1/g' /etc/atlasmanager/instances/a2.cfg
cp /etc/atlasmanager/instances/main.cfg /etc/atlasmanager/instances/b2.cfg
sed -i 's/"32330"/"32333"/g' /etc/atlasmanager/instances/b2.cfg
sed -i 's/"5750"/"5756"/g' /etc/atlasmanager/instances/b2.cfg
sed -i 's/"57550"/"57553"/g' /etc/atlasmanager/instances/b2.cfg
sed -i 's/"A1"/"B2"/g' /etc/atlasmanager/instances/b2.cfg
sed -i 's/atlas_ServerX=0/atlas_ServerX=1/g' /etc/atlasmanager/instances/b2.cfg
sed -i 's/atlas_ServerY=0/atlas_ServerY=1/g' /etc/atlasmanager/instances/b2.cfg
atlasmanager start @all
atlasmanager status @all