Hustoj ubuntu14.04-i386 Installation process

Source: Internet
Author: User

Ubuntu14.04 i386 under Hustoj installation Step 1. Install MySQL

Apt-get Install Mysql-server mysql-client

2. Installationapache2

Apt-get Install Apache2

Here to explain is Ubuntu under the Apache Default Web Execution folder under /var/www/, configuration file in /etc/apache2/apache2.conf, Profile subdirectory in /etc/ apache2/under

Go to Firefox, type http://localhost, and appear It works! Represents a successful installation

3. Install PHP

Apt-get Install PHP5 LIBAPACHE2-MOD-PHP5

Restart Apache, enter /etc/init.d/apache2 restart

Installing the text editor gedit

Apt-get Install Gedit

... (Figure see Original blog)

/var/www/html/info.php

Enter Firefox, type http://localhost/info.php, the PHP properties page appears to indicate successful installation

4. Installing Onlinejudge (ubuntu14.04 i386)
执行如下命令    sudo apt-get update    sudo apt-get install subversion    sudo svn co https://github.com/zhblue/hustoj/trunk/trunk/install hustoj    cd hustoj    sudo bash install-interactive.sh

enter Firefox, type http://localhost/JudgeOnline, the Judgeonline page appears to indicate the installation success, Other related issues view Http://code.google.com/p/hustoj/wiki/FAQ

Installing Pascal and the Java compiler

Hustoj The default is only C and C + + code after installation

sudo apt-get install FPC OPENJDK-6-JDK

PS:1.SVN locking the copy issue:

You go back to his superior directory to clear up, and if not, go back to the top-level directory to clear up

I appear to be Judge-read-only's copy lock problem, cause the content that should download not down, I simply delete this folder, reinstall again!

2. If it appears

Could not connect:access denied for user ' root ' @ ' localhost ' (using Password:yes)

Then open the directory:

The db_info.inc.php in Var/www/html/judgeonline/include

Change the Dbpass to a database password (previously set)

5. Set the Apache server Web site root path (can be accessed via IP OJ after Setup)

1. Enter the catalogue/etc/apache2/sites-aviliable/

2. Open the two files in the directory (default, etc.) and add the documentroot behind them judgeonline

3. Then restart Apache2: terminal input

/etc/init.d/apache2 restart

This should be OK.

Terminal ipconfig, locate the native IP address, enter the IP in the browser, log in OJ

6. Register account to test admin function

Come on, open OJ, register an account, let's get admin rights for this account

For example, my registered account is called Yutou .

The first step, the terminal enters the input sudo su loses the password

Step two enter Mysql–u root–p return

And then lose the password into MySQL

Step three enter show databases; view all databases

Fourth step, enter use Jol; (hustoj user database) Enter SELECT * FROM Jol if you want to go in;

Fifth Step input

Insert into Privilege (USER_ID,RIGHTSTR) VALUES (' Yutou ', ' Administrator ');

If your account is called Zhangkun, you only need to change the account section, as

Insert into Privilege (USER_ID,RIGHTSTR) VALUES (' Zhangkun ', ' Administrator ');

OK, so your account will have administrator privileges .... The point is to select the database.

7. The situation that has been pengind

After the completion of the login OJ problem has been pengind the situation, if you also appear, the solution is as follows

The program judged needs to be started with the root account, please restart the server or manually perform the sudojudged. If not, please check the database account configuration in/home/judge/etc/judge.conf, and change the root password and admin password to your own settings.

Refer to Configuration, fix it again, restart the server again or execute sudo pkill-9 judged wait a while to execute sudo judged

Is the sign of success ...

8. Follow-up questions:

Hustoj configuration file

http://blog.csdn.net/zhblue/article/details/7366194

/home/judge/etc/judge.conf

/var/www/html/judgeonline/include/db_info.inc.php

Change blue border color:/var/www/html/judgeonline/template/bs/image

Restart Apache, enter /etc/init.d/apache2 restart

Other issues with 9.oj

Can't edit issues under Google Chrome

The reserve question can be seen.

Reference

http://blog.csdn.net/chaoshenyutou/article/details/40183965

Https://github.com/zhblue/hustoj

Build OJ Environment:

http://aaron67.cc/blog/ubuntu-server-12-04%E6%90%AD%E5%BB%BAhustoj/

http://blog.csdn.net/chaoshenyutou/article/details/18950909

OJ Issue Discussion Edition

Http://code.google.com/p/hustoj/issues/list?can=1&q=label:Priority-Medium&x=&y=&mode=grid

How to use, install MySQL command

Http://www.cnblogs.com/zhuyp1015/p/3561470.html

Questions about the Java re

https://code.google.com/p/hustoj/issues/detail?id=99

Configuration file

http://blog.csdn.net/zhblue/article/details/7366194

What steps would reproduce the problem?
1. Install Ubuntu 14.04 LTS (64bit);-)
1. Install Ubuntu 14.04 LTS (64bit)
2. Submit A/C + + code
2. Submit a C + + program (#include <stdio.h> then only scanf and printf are the most common a+b =_=
3. Get Runtime Error:[error] A not allowed system call:runid:8674 called:89
3. Then the RE, the call number is 89, although I do not know what it readdir do, but it is called.

What is the expected output? What does your see instead?
Accepted;-), but get Runtime Error:[error] A not allowed system call:runid:8674 called:89

What version of the product is your using? What operating system?
Ubuntu 14.04 LTS (64bit), gcc (Ubuntu 4.8.2-17ubuntu1) 4.8.2, Hustoj core Lastest svn (last SVN version)
Ubuntu 14.04 LTS 32bit not tested. Errors may occur =w= (32-bit no test, but the estimate might also be problematic)

Provide any additional information below.
Add Hoj_max_limit in okcalls.h and problem solved.
Then I put a 89 and a hoj_max_limit in Okcalls.h.

Hustoj ubuntu14.04-i386 Installation process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.