Many people have asked me “how did you set up a server” or “Make a tutorial”, So i’m going to do just that!
[size=24pt]What your going to need:[/size]
Linux (This tutorial will assume your using Ubuntu)
Administrator access to both your machine and your router.
Patience
Git
A Cloned version of Cataclysm DDA ready to be compiled
if you have those, We can get started.
First clone the Dgamelaunch
then we grab the dependacies
sudo apt-get install byacc
sudo apt-get install libsqlite3
sudo apt-get install libsqlite3-dev
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install autogen
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install openssh-server
now we go to the Cataclysm-DDA/tools file and run the setupDgamelaunch.sh
let it compile and do its thing, it should prompt you to input 3 things, The Absolute path to the Cataclysm Binary (Ie the cataclysm file) the Absolute path to the whole Catacylsm directory (ie /home//Cataclysm-DDA/) and the name of your server (This will show up as banner text)
Once you enter this info, it should continue a bit more and then allow you to input again.
Now, Were going to need to create a new administration user (it needs to be able to chroot)
Once you create it, create an SH script anywhere in the new users home file
to properly do this, you will need to ether do it through terminal whilst root (I.E use sudo -s)
or through running GUI as root (The default command for this is sudo nautilus
Inside the file, Enter the following
#!/bin/bash/
clear
cd /opt/dgamelaunch/cdda
sudo ./dgamelaunch
Once your done that, your going to need to set the file as the new users shell by running
to make sure it works:
If you’ve already set a new port for SSH in /etc/ssh/sshd_config then add a -p to the end
if your greeted with the DGL login screen then Huzza, you got it if not, recheck your steps.
If you need to restart from the beginning, delete the dgamelaunch folder and the dgamelaunch folder in /opt/
otherwise, Go into your routers configuration and setup the ports that sshd is running on and boom, you should be good.