Saturday, December 27, 2008

Setting/Installing JAVA and PC^2 (pcsquare ICPC software) in Ubuntu Live

You can see here also:

See the HDD partitions:

sudo fdisk -l

Create a mount point and mount that partition:

sudo mkdir /mnt/F
sudo mount /dev/sda9 /mnt/F

Unzipping pc^2 zip file:

unzip -o (download the package)

Installing java:

sudo ./j2sdk-1_4_2_16-linux-i586.bin (download from Sun's site)

Setting the path variables for JAVA:

export JAVA_HOME=/mnt/F/ubuntu/j2sdk1.4.2_16
export PATH=$JAVA_HOME/bin:$PATH

Necessary configuration for java:

cd /usr/bin

sudo rm ./java
sudo rm ./java_vm
sudo rm ./javaws

sudo ln -s /mnt/F/ubuntu/j2sdk1.4.2_16/bin/java ./java
sudo ln -s /mnt/F/ubuntu/j2sdk1.4.2_16/bin/java_vm ./java_vm
sudo ln -s /mnt/F/ubuntu/j2sdk1.4.2_16/bin/javaws ./javaws
sudo ln -s /mnt/F/ubuntu/j2sdk1.4.2_16/bin/javac ./

This will enable gcc:

sudo aptitude install build-essential

Now, after configuring your network properly, manually restarting your network:
sudo /etc/init.d/networking restart

You can see the interface information:
sudo mousepad /etc/network/interfaces

Monday, September 1, 2008

PC^2 (pc-square) download

So, what is PC^2 (pcsquare) ?
quote "PC2 is the Programming Contest Control System developed at California State University, Sacramento (CSUS) in support of Computer Programming Contest activities of the ACM, and in particular the ACM International Collegiate Programming Contest (ICPC) and its Regional Contests around the world. "

The official website of PC2 (pc square):
From here you can get all the information that you need.

The official documantation download link:

Download link of the pc-square software:

Now, the procedure for running the pc-square system in Linux or Windows is little bit different. We'll see one by one in subsequent posts.

welcome to the world of programming and pc_square (pc^square)

This blog is for people who want to arrange a programming contest just like done in a ICPC. There is a very well-spread software used for this named "pc^2" (pc square) that is used in almost all the professional contests. Here I will show you how to configure pc_square according to your need. We'll start with from where to download and end up at analyzing the scoreboard after the contest has been finished.

So, be with us! :)
from the next post we'll start.