This page explains how to make pc2 work on Kubuntu Linux (Dapper Drake).
- Install Java 1.5 sdk
- Check that the correct version of java is running by typing: java -version at the prompt
- if the Java version is not 1.5, update the configuration of your machine: update-alternatives --config java
- additionally you might want to check if typing javac and java at the prompt asks you for some files (this will indicate that the path has been correctly set)
- Copy the pc2 folder to your PC and add it to your path
- Test your system with: the server and a client (say pc2team) running on one pc and then with the client running on another PC
- Normally on the same PC, everything should be fine. If it does not work on different PCs, update your (say) pc2team startup script to include the ip of the current machine
- Change the line:
java -Djava.security.policy=policy.ini $PC2CN $* to
java -Djava.rmi.server.hostname="172.22.26.111" -Djava.security.policy=policy.ini $PC2CN $* (i.e. the ip of the current machine is required) - or better use the following script to get the ip automatically:
ip=ifconfig eth0 | grep Bcast | awk '{ print $2 }' | sed 's/.*://'
echo java -Djava.rmi.server.hostname=$ip -Djava.security.policy=policy.ini $PC2CN $*
- Do the same modifictions to pc2team, pc2judge, pc2admin,... - all the "batch files"