Install Domjudge-judgehost 3.2.1 in Ubuntu Dekstop 11.10 ~ Roisa

Install Domjudge-judgehost 3.2.1 in Ubuntu Dekstop 11.10

DOMjudgelogo1

Install JudgeHost

sudo apt-get update

sudo apt-get install make sudo php5-cli php5-mysql ntp xsltproc procps sharutils gcc g++ gcj-4.4-jre openjdk-6-jre-headless openjdk-6-jdk (ghc fp-compiler)

JudgeHost saja
- gcj
+ gcj-4.4-jre
+ libcurl4-gnutls-dev
+ libboost-regex-dev

cd domjudge-3.2.1
./configure --prefix=$HOME/domjudge
make judgehost
sudo make install-judgehost

user add
sudo useradd -d /nonexistent -g nogroup -s /bin/false domjudge-run

nambah sudoers
sudo visudo
adekroisa ALL=(root) NOPASSWD: /home/adekroisa/domjudge/judgehost/bin/runguard *
adekroisa ALL=(root) NOPASSWD: /bin/cp -pR /dev/null ./dev/null

melihat
ll domjudge/judgehost/bin/runguard

menjalankan judgehost
./domjudge/judgehost/bin/judgedaemon

instal openssh
sudo apt-get install openssh-server

-----------
install chroot
cd
cd domjudge/judgehost/bin/
ls
sudo gedit dj_make_chroot

INSTALLDEBS=" phyton" --> nama package phyton

--> ini untuk memastikan :

sudo ./dj_make_chroot

sudo gedit ../lib/judge/chroot-startstop.sh

ls /chroot/domjudge -->harus folder yang belum ada

install deh:
sudo ./dj_make_chroot /chroot/domjudge i386
menginstall debian di dalam folder (debootstrap) --> untuk mengulang instalasi hapus folder chroot

cat /etc/apt/apt.conf
Acquire::http::proxy " //proxy"> //proxy"> //proxy">http://192.168.1.200:80”; –> //proxy um

cat /chroot/domjudge/etc/apt/apt.conf

----------------
cd
sudo gedit domjudge/judgehost/etc/judgehost-config.php
komen chroot_script, aktifkan chroot_startstop.sh

ll domjudge/judgehost/etc/

nambah judgehost di halaman jury, pilih menu judgehost:

add new : misal roisa-mscdr (nama host, muncul pada saat judgedaemon di jalankan)

menjalankan judge daemon, seperti postingan sebelumnya dari adit :

cd

./domjudge/judgehost/bin/judgedaemon (terlihat nama host misal: Judge started on roisa-mscdr)


selanjutnya.. enable the chroot-startstop.sh script in etc/judgehost-config.php and add the following lines
to /etc/sudoers:
adekroisa ALL=(root) NOPASSWD: /bin/mount -n -t proc –bind /proc proc
adekroisa ALL=(root) NOPASSWD: /bin/umount /*/proc
adekroisa ALL=(root) NOPASSWD: /bin/mount -bind chroot/domjudge /*
adekroisaALL=(root) NOPASSWD: /bin/umount /home/adekroisa/domjudge/judgehost/judgings/roisa-mscdr /*


OTOMATISASI JUDGEDAEMON pada saat booting:

crontab -e

pilih editor: misal ed, nano, vim

tambahkan

@reboot $HOME/domjudge/judgehost/bin/judgedaemon –d

-d itu daemon, makanya nama blognya adit lightd.. hmm

ctrl+x (tutup), simpan: y;

ganti psw jury:

cd

htpasswd domjudge/domserver/etc/htpasswd-jury admin

new psw

cara install openssh :

sudo apt-get install openssh-server

sudo dhclient eth0

ifconfig

--------------------

Setting biar bisa akses Vbox:

masuk setting vBox: adapter –> hostonly-adapter (select none) misal adapter apa gitu

belum ada buat dulu : file –> prerference –> network –> add haha..

enable aja semua:

1. NAT –> easy konf. (tidak usah nyeting, otomatis.. makae default)

2. hostonly adapter –> guest (ada di vbox) ke host (win7)

3. Bridged adapter –> menggunakan hardware (lan, wifi)

4. Internal Network –> guest ke guest

misal di temukan hostonly di eth2:

sudo ifconfig eth2 192.168.33.2 netmask 255.255.255.0

---------------------------

oke sekarang kita setting localhost ndak pake subdir

sudo gedit /etc/apache2/site-available/domjudge

isi dengan:

<VirtualHost *:80>

DocumentRoot /home/roisa/domjudge/domserver/www

</VirtualHost>

-------------

lanjut dengan men-disable default deh:

sudo a2dissite default

kemudian, enable domjudge (sesuai nama file yang dibuat diatas tuh):

sudo a2ensite domjudge

kemudian di restrat apachenya:

sudo apache2ctl graceful

nek belum bisa restart browsernya (hmmm.. pancet)

untuk memastikan ketik aja : wget localhost trus gedit index.html, keliatan domjudge toh.. Smile

-------------

eh.. bisa akses vbox pake puTTY

settingan yang tadi (ip: 192.168.33.2) di isi trus login as: (misal: roisa), isi password.. oke deh..

oke.. lets try

Artikel Lainnya

0 comment:

Posting Komentar

Informasi Pilihan Identitas:
Google/Blogger : Account special blogger
Another : Jika tidak punya account blogger namun punya alamat Blog atau Website.
Anonim : Jika tidak ingin mempublikasikan profile anda (tidak disarankan). salam hangat, Roisa :)

 
Wedoo Indonesia