# How to PROPERLY set up a Cataclysm:DDA server using codehero's Dgamelaunch

**URL:** <https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852>\
**Category:** The Garage\
**Created:** [July 21, 2014, 5:28pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852 "2014-07-21T17:28:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![poklj](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@poklj](https://discourse.cataclysmdda.org/u/poklj)\
**Post date:** [July 21, 2014, 5:28pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/1 "2014-07-21T17:28:24Z")

</div>

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

```auto

```

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](http://setupDgamelaunch.sh)

```auto

```

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

```auto

```

to make sure it works:

```auto

```

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.

---

<div class="post-metadata">

**Author:** ![stk2008](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@stk2008](https://discourse.cataclysmdda.org/u/stk2008)\
**Post date:** [July 21, 2014, 6:38pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/2 "2014-07-21T18:38:38Z")

</div>

I was one of them that asked for a tutorial 🙂 I assumed u used win7 so I’m a bit gutted  
Because I don’t use linex :(.

Thanks though

---

<div class="post-metadata">

**Author:** ![poklj](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@poklj](https://discourse.cataclysmdda.org/u/poklj)\
**Post date:** [July 21, 2014, 7:57pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/3 "2014-07-21T19:57:04Z")

</div>

[quote=“stk2008, post:2, topic:6852”]I was one of them that asked for a tutorial 🙂 I assumed u used win7 so I’m a bit gutted  
Because I don’t use linex :(.

Thanks though[/quote]  
Well, There is a possible way of doing it on win7, though, you would have to use a Virtual machine. And frankly, i’m not too sure how to pull it off on the networking side.  
But if you can figure it out, all the power to ya (Oh and codehero is actually working on a clone, He might be able to add in Windows support.  
It’s unlikely that the Normal DGL used will work on windows because it uses a special linux package called TTY, which, i think, is how it interfaces with the game)

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [July 21, 2014, 8:08pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/4 "2014-07-21T20:08:08Z")

</div>

> [@poklj](#):
>
> It’s unlikely that the Normal DGL used will work on windows because it uses a special linux package called TTY, which, i think, is how it interfaces with the game)

There are TTY emulators for windows, though I’m unsure of whether or not they will work and if so, what else will be required of them.

---

<div class="post-metadata">

**Author:** ![stk2008](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@stk2008](https://discourse.cataclysmdda.org/u/stk2008)\
**Post date:** [July 21, 2014, 8:16pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/5 "2014-07-21T20:16:54Z")

</div>

this is a shame ☹

i thought about running it via virtual machine but tbh i think it would cause to many issues ☹

---

<div class="post-metadata">

**Author:** ![stk2008](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@stk2008](https://discourse.cataclysmdda.org/u/stk2008)\
**Post date:** [July 21, 2014, 8:20pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/6 "2014-07-21T20:20:58Z")

</div>

you know what this seems like a realy neat tutorial on how to install a virtual machine running linex

> **[Installing a Virtual Machine and Ubuntu on Windows 7](http://www.instructables.com/id/Introduction-38/#step1)**
>
> Hey folks, this is Zack with your hot-off-the-press instructable.  I'm doing this so that I can use my awesome laptop for sending commands to BeagleBoard. ...

---

<div class="post-metadata">

**Author:** ![poklj](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@poklj](https://discourse.cataclysmdda.org/u/poklj)\
**Post date:** [July 21, 2014, 8:52pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/7 "2014-07-21T20:52:12Z")

</div>

> [@i2amroy](#):
>
> [quote=“poklj, post:3, topic:6852”]It’s unlikely that the Normal DGL used will work on windows because it uses a special linux package called TTY, which, i think, is how it interfaces with the game)

There are TTY emulators for windows, though I’m unsure of whether or not they will work and if so, what else will be required of them.[/quote]

Dgamelaunch requires the TTY files for the sending of the screen for the game, without it you would see nothing, at least that’s what I understand of it

---

<div class="post-metadata">

**Author:** ![Daidalon](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@Daidalon](https://discourse.cataclysmdda.org/u/Daidalon)\
**Post date:** [July 22, 2014, 1:36am UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/8 "2014-07-22T01:36:51Z")

</div>

[quote=“stk2008, post:6, topic:6852”]you know what this seems like a realy neat tutorial on how to install a virtual machine running linex

> **[Installing a Virtual Machine and Ubuntu on Windows 7](http://www.instructables.com/id/Introduction-38/#step1%5B/quote%5D)**
>
> Hey folks, this is Zack with your hot-off-the-press instructable.  I'm doing this so that I can use my awesome laptop for sending commands to BeagleBoard. ...

  
If you do this, use an older version of Ubuntu.

A few months ago I had to install it, and the newest (at the time) version would install and then say one of many possible errors (all nonsensical).

---

<div class="post-metadata">

**Author:** ![poklj](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@poklj](https://discourse.cataclysmdda.org/u/poklj)\
**Post date:** [July 22, 2014, 12:39pm UTC](https://discourse.cataclysmdda.org/t/how-to-properly-set-up-a-cataclysm-dda-server-using-codeheros-dgamelaunch/6852/9 "2014-07-22T12:39:29Z")

</div>

[quote=“Daidalon, post:8, topic:6852”][quote=“stk2008, post:6, topic:6852”]you know what this seems like a realy neat tutorial on how to install a virtual machine running linex

> **[Installing a Virtual Machine and Ubuntu on Windows 7](http://www.instructables.com/id/Introduction-38/#step1%5B/quote%5D)**
>
> Hey folks, this is Zack with your hot-off-the-press instructable.  I'm doing this so that I can use my awesome laptop for sending commands to BeagleBoard. ...

  
If you do this, use an older version of Ubuntu.

A few months ago I had to install it, and the newest (at the time) version would install and then say one of many possible errors (all nonsensical).[/quote]

For VM’s i recommend Ubuntu 12.04 LTS, aka Precise Pangolian, Which is what I’m running right now.
