-
Notifications
You must be signed in to change notification settings - Fork 0
AlternateBootstrap
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.
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):
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 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.serviceYou 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.)
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
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 cloudSwitch over to running as the cloud user:
sudo su cloud
cd /home/cloudCreate a webapp directory under the cloud user's home directory
and navigate into it:
mkdir -p webapp
cd webappDownload 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`.jarFor more info (demo server, exercise repository, contributing to cloudcoder, etc): cloudcoder.org
