Skip to content
daveho edited this page Mar 13, 2013 · 37 revisions

This web page contains instructions for installing and configuring CloudCoder on some variety of Linux or Unix other than Ubuntu or Debian. (If you can use Ubuntu or Debian, use the Bootstrap instructions.)

Note that these instructions are a work in progress.

Install required packages

You should install

  • OpenJDK (1.6 or later)
  • MySQL (version 5 or later)
  • Apache (version 2 or later), with SSL

For example, if you are running a Linux distribution which uses the yum package manager, the command might be something like:

sudo yum install java-1.6.0-openjdk.x86_64 mysql mysql-server httpd mod_ssl

(Note that in the command above httpd is Apache.)

You will need to consult your distribution's documentation to determine exactly which packages you need and how to install them.

You may need to start the MySQL server: one of the following commands may work:

# Works on Amazon Linux
sudo /etc/init.d/mysqld start
# Works on Fedora?
sudo systemctl start mysqld.service

You may also need to configure a password for the MySQL root user.

sudo /usr/bin/mysqladmin -u root password 'new-password'

(Replace new-password with the actual root user password.)

Create CloudCoder database and database user

CloudCoder needs a database in which to store the exercises, user information, submissions, etc. It also needs a database user account with which to access this database.

You should be able to use the following commands:

mysql --user=root --pass \
--execute="create user 'cloudcoder'@'localhost' identified by 'ccuserpassword'"
mysql --user=root --pass \
--execute="grant all on cloudcoderdb.* to 'cloudcoder'@'localhost'"

Replace ccuserpassword with the password you would like to use for the MySQL cloudcoder user. For each command, you will be prompted to enter the password for the MySQL root user.

Install the webapp

Log into the server you will use to host the web application. Create a cloud user account, which is the user under which the webapp will run. For example, using the useradd command:

sudo useradd cloud

Switch over to running as the cloud user:

sudo su cloud
cd /home/cloud

Create a webapp directory under the cloud user's home directory and navigate into it:

mkdir -p webapp
cd webapp

Download the latest version of the CloudCoder webapp:

wget http://s3.amazonaws.com/cloudcoder-binaries/LATEST
wget http://s3.amazonaws.com/cloudcoder-binaries/cloudcoderApp-`cat LATEST`.jar

Configure the webapp

Run the following command to configure CloudCoder:

java -jar cloudcoderApp-v*.jar configure

Install

Downloads

Screenshots

For more info (demo server, exercise repository, contributing to cloudcoder, etc): cloudcoder.org

Clone this wiki locally