How to setup java and eclipse from the Pace University Robotics Lab Debian Repository (for linux beginners)

To set up java and eclipse under linux, do the following:

  1. Start up a terminal window.

  2. Become root by typing:

    	su
    
    and then typing in your root password in response to the prompt.

  3. Change to the /etc/apt directory by typing:
    	cd /etc/apt
    
  4. Create a new file by typing:
    	cat > newfile
    
    then 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.

  5. Type the following command, being *absolutely* sure that you type two greater-than signs:
    	cat sources.list newfile >> newsources
    
    Check to see that the command worked properly by typing:
    	diff newsources sources.list
    
    which 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 >> newsources
    
    and check again. If you cannot get this to work properly, email me and don't do the rest of the steps below.

  6. Type the command:
    	mv newsources sources.list
    
  7. You can now use the Pace debian repository. Type the command:
    	apt-cache update
    
  8. Install java by typing:
    	apt-get install sun-j2sdk1.5
    
  9. Install eclipse by typing:
    	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!