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

No comments: