Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Ubuntu Developer Quick Start

DC edited this page Nov 18, 2013 · 17 revisions

Dependencies

First, set up MySQL as described in Running a Scramble Server.

Then, install the dependencies.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install markdown make screen gcc git mercurial mysql-server

Install Go

Install Go separately, from here: http://golang.org/doc/install

Don't use apt-get install golang, it's still on an old version. Instead:

wget <Go download url for your platform>
tar -xzvf go*.tar.gz
sudo mv go /usr/local/

Then, set up Go. For example:

mkdir -p ~/go/src
echo "export GOPATH=$HOME/go" >> ~/.bashrc
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc
source ~/.bashrc

Set up MySQL

By default, MySQL only accepts connections from localhost. Do NOT allow outside connections unless you've locked it down first.

$ mysql -u root -p YOUR_ROOT_PASSWORD
mysql> create database if not exists scramble;
mysql> grant all on scramble.* to scramble@localhost identified by 'scramble';
mysql> flush privileges;

Compile and run

Finally, head back to Developer Quick Start to compile and run Scramble.