-
Notifications
You must be signed in to change notification settings - Fork 25
Getting started for linux
For Ubuntu/Debian
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y curl unzip nano
For RedHat/CentOS
sudo yum update
sudo yum install -y curl unzip nano
You must have rcon enabled in the ark server gameusersettings.ini
file. If using ASM you can just check enable rcon in the administrator section.
For tribe logs to work you must enable Server rcon output tribe logs and server game log include tribe logs in the server launcher settings by adding these tag. -ServerRCONOutputTribeLogs
-servergamelogincludetribelogs
In ASM you can just check the Server RCON OUTPUT tribe logs option in the Administrator section.
Download or transfer cross ark chat to your server. Go to https://github.com/spikeydragoon/Cross-Ark-Chat/releases and right click CrossArkChatLinux.zip and select copy link. It is needed for the curl command below.
In all commands below when replacing the {Values} make sure you remove the {} as they are just placeholders.
# Go to tmp folder
cd /tmp
# Download cross ark chat
sudo curl -L {UrlOfCrossArkChat.zip} -o CrossArkChat.zip
# Unzip and put it in the directory you want.
sudo unzip CrossArkChat.zip -d /home/{YourUsername}/CrossArkChat
# Set permissions for executable
sudo chmod -R u+x /home/{YourUsername}/CrossArkChat
# Create and edit the service file so CrossArkChat will run in background.
sudo nano /lib/systemd/system/CrossArkChat.service
Paste the following content and replace User and Group with your own username
[Unit]
Description=Cross Ark Chat Service
[Service]
Type=simple
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
User={YourUsername}
Group={YourUsername}
ExecStart=/home/{YourUsername}/CrossArkChat/CrossArkChat
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
[Install]
WantedBy=multi-user.target
Press Ctrl + x,y (to save), Enter (to save with the same name)
Enable the new CrossArkChat service
sudo systemctl enable CrossArkChat.service
Reload the Systemd Daemon (Do this every time you modify a server file)
sudo systemctl daemon-reload
Before starting make sure you edit the /home/{YourUsername}/CrossArkChat/Config/_configuration.json file and set up discord if you’re linking it to the bot.
Start the CrossArkChat service. You can use start, stop, restart or status. You don't have to run it manually again since it's enabled to start on boot.
sudo systemctl start CrossArkChat.service
CrossArkChat using /etc/rc.local (Debian etc) or /etc/rc.d/boot.local (RedHat etc)
- Open the /etc/rc.local or /etc/rc.d/boot.local
sudo nano /etc/rc.local
- Paste the following line at the end of the file and replace with your own username.
/home/{YourUsername}/CrossArkChat/CrossArkChat
-
Press Ctrl + x, y (to save), Enter (to save with the same name).
-
Run CrossArkChat Note before starting make sure you edit the
_configuration.json
file and set up discord if your linking it to the bot.
cd ~/CrossArkChat ./CrossArkChat &
CrossArkChat using crontab for everyone else
- Open crontab
crontab -e
- Paste the following line at the end of the file and replace with your own username.
@reboot /home/{YourUsername}/CrossArkChat/CrossArkChat
-
Press Ctrl + x, y (to save), Enter (to save with the same name)
-
Run CrossArkChat.
Note: Before starting make sure you edit the `_configuration.json` file.
Set up the discord bot account if you are using the bot with discord.
cd ~/CrossArkChat ./CrossArkChat &