Apps & Games

Install CodeCombat Multiplayer Game on Ubuntu 16.04

CodeCombat is an amazing multiplayer programming game tool for learning how to code even if you are new to coding. This is the ideal platform for students who have an interesting in game development to learn computer science while playing through a game in real time. CodeCombat is a startup and community based project, hence its open-source under the MIT and Creative Commons licenses. Furthermore, it is the largest open-source CoffeeScript project with lines of code. Now lets install codecombat on ubuntu.

Install CodeCombat

1) Install MongoDB Database

  • First import public key > create source list file and install database
sudo apt-key adv --keyserver hkp:// --recv EA312927
echo "deb "$(lsb_release -sc)"/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update && sudo apt-get install -y mongodb-org
  • Create the service file for mongodb
cd /lib/systemd/system/
vim mongod.service
  • Paste below into the file
Description=High-performance, schema-free document-oriented database

ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

  • Reload systemd service with following command
systemctl daemon-reload
  • Start mongodb service and add as a service on startup
systemctl start mongod
systemctl enable mongod

2) Install and Launch CodeCombat on Ubuntu 16.04

  • Install some needed packages
sudo apt-get install build-essential python2.7 git curl npm nodejs-legacy
  • If your default Python version is 3, then run this also
npm config set python `which python2.7`
  • Next let’s setup Git
git config --global "YOUR_NAME"
git config --global "YOUR_EMAIL_ADDRESS"
  • Next we start cloning the game from the repository
git clone
cd codecombat
git remote add -f upstream
  • Install Dependencies
npm install
  • Let’s import the latest development database and overwrite the current development database
(cd $(mktemp -d /tmp/coco.XXXXXXXX) && curl | tar xzf - && mongorestore --drop --host
  • Run following command to startup brunch and nodemon
npm run dev
  • Open your browser and enter following URL

About the author


A passionate Linux and Open Source user. In my spare time, I love developing mobile games for fun (You can check my games out iOS Store | Google Play Store) and also spend time contributing to the Linux community.

Leave a Reply

5 Comments on "Install CodeCombat Multiplayer Game on Ubuntu 16.04"

Notify of
Sort by:   newest | oldest | most voted
Larry Linares
Larry Linares
HI, i have a problem when run npm run dev root@SRV-INGEMPCC:/lib/systemd/system/codecombat# npm run dev > codecombat@ dev /lib/systemd/system/codecombat > brunch watch –server –env fast Loaded brunch static stuff Got 560 coffee files and 266 jade files (bundled 126 of them together). 06 Mar 09:58:11 – error: { [Error: Component must have “/lib/systemd/system/codecombat/bower_components/jquery/bower.json”] code: ‘NO_ BOWER_JSON’ } 06 Mar 09:58:11 – info: custom server started, initializing watcher 6 Mar 09:58:12 – [nodemon] v1.6.1 6 Mar 09:58:12 – [nodemon] reading config /lib/systemd/system/codecombat/nodemon.json 6 Mar 09:58:12 – [nodemon] to restart at any time, enter `rs` 6 Mar 09:58:12 – [nodemon] ignoring: /lib/systemd/system/codecombat/.git/**/* /lib/systemd/system/codecombat/node_modules/**/*… Read more »
Larry Linares
Larry Linares

Hi, finally I could install the CC but when I enter as a student I get the next screen without being able to play

comment image (244KB)