DOMJudge is an automated judge system for programming contests. It can be used to host programming contests, as well as to run practice sessions. DOMJudge is open source software, and it is easy to install on Linux Mint Latest.
Before you begin, you should have the following:
First, you need to install some required packages. Open a terminal window and run the following commands:
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y libmariadbclient-dev libacl1-dev libcurl4-openssl-dev libyaml-dev libzip-dev libapache2-mod-php \
php-zip build-essential g++ gcc git make unzip wget
Next, you need to download the DOMJudge package. You can download it from the official website. Use the following command to download it:
wget https://www.domjudge.org/releases/domjudge-7.3.3.tar.gz
After downloading the DOMJudge package, you need to extract it. Use the following command to extract it:
tar -xvf domjudge-7.3.3.tar.gz
Now, you can install DOMJudge by running the installation script. Use the following commands to install DOMJudge:
cd domjudge-7.3.3
./configure --with-baseurl=http://localhost/domjudge
make
sudo make install
sudo make install-apache2
sudo ln -s /opt/domjudge/domserver/etc/apache.conf /etc/apache2/conf-available/domjudge.conf
sudo a2enconf domjudge
sudo service apache2 reload
Finally, you need to configure DOMJudge. Use the following command to create the MySQL database:
mysql -u root -p -e "create database domjudge;"
mysql -u root -p domjudge < sql/mysql_structure.sql
mysql -u root -p domjudge < sql/mysql_data.sql
Next, you need to set up the configuration file. Use the following commands to create the configuration file:
cd domserver
cp etc/domjudge-domserver-judgehost.example.cfg etc/domjudge-domserver-judgehost.cfg
cp etc/domjudge-domserver.example.cfg etc/domjudge-domserver.cfg
Edit the configuration file domjudge-domserver.cfg
with your text editor, and update the values for the following:
database_host = localhost
database_user = root
database_password = your_password
Now, you are done with the installation and configuration of DOMJudge.
You have successfully installed DOMJudge on Linux Mint Latest. You can now use DOMJudge to host programming contests or run practice sessions. To use DOMJudge, log in to the web interface using the following URL:
http://localhost/domjudge
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!