To set up java and eclipse under linux, do the following:
suand then typing in your root password in response to the prompt.
cd /etc/apt
cat > newfilethen hitting enter. On the next line there will not be a prompt. Type:
deb ftp://robotlab.csis.pace.edu/debian/ ./then hit return. Again there will be no prompt. Type a control-D (control key and the D key at the same time). You have now created a file called newfile.
cat sources.list newfile >> newsourcesCheck to see that the command worked properly by typing:
diff newsources sources.listwhich should output just two lines, which will look something like:
9d8 < deb ftp://robotlab.csis.pace.edu/debian/ ./If your output looks like this, then everything's fine. If not, retype the command:
cat sources.list newfile >> newsourcesand check again. If you cannot get this to work properly, email me and don't do the rest of the steps below.
mv newsources sources.list
apt-cache update
apt-get install sun-j2sdk1.5
apt-get install eclipse-sdk
You're done! You have setup your machine to use the Pace repository from now on, and have installed java and eclipse. We have other packages in the repository that are used in the robotics lab.
Good Luck with linux!