CSE 110 - Using Your PC


CSE 110 Fall 2009 Using your Personal Computer 1. Java Compiler and/or Eclipse Environment If you prefer, you may use your PC to do programming assignments. For this, you need to install a Java compiler on your PC, or get an environmental tool such as Eclipse. We will talk about these two things later. You also need to install ssh (secure shell) or some other utility program that will connect your PC to sparky. 2. Saving your program with indentation: After you are done with assignment, DO NOT save the file in "text mode" or "ascii mode". This is because you want to retain whatever indentation you have in your program. If you used notepad for creating your Java program then your indentation will be retained if your file name has .java extension. When you use ssh file-transfer utility, indentation of your Java program will still be retained, after you copy it to sparky. 3. Transferring your program to sparky: The SSH Secure Shell Client is the desktop client, which you use to connect to sparky from a SINC site, or from our Lab CS 2129, or from your home. Make sure that your internet connection is on. Connect to sparky using your PC. You may use Telnet or FTP as well for this purpose. Note that Telnet and FTP connections are not secured/protected. Follow steps given below to install SSH and transfer your program to sparky account. 4. SSH Client Download: To install ssh on your PC, follow these steps. - First connect to the softweb website (http://softweb.cc.sunysb.edu) - A login window will pop up, where you login using your Stony Brook ID, and date-of-birth in YYMMDD format. There is a plan to switch to NetID for this purpose. - Once inside click on the Email and Telnet picture and then select "SSH 2.2.0". - Click the link "SSH Win 3.2.9 Client" to download the installer, SSH Win 3.2.9 Client, Installation Instructions, and the License file. - Click on the downloaded file to install it, and follow the installation instructions. 5. File Transfer Using SSH Client: To connect to sparky click on the SSH Client icon on your desk- top, and click on `Quick Connect'. Here for the host name enter `sparky.ic.sunysb.edu'. Once you are connected to sparky using the SSH Client, you can use it to transfer files between your PC and sparky. This way you can have a local/home copy of all the work that you do on sparky. To transfer files: - Click the small yellow icon on the toolbar of the Secure Shell Client program. This button will launch the Secure File Transfer Client, and connect to whatever server you are already connected to. - In the drop down, click on `New File Transfer'. This will open a new window. This window has two columns, one with `Local Name' showing your local machine files, and the other with `Remote Name' showing the files on sparky. - To transfer a file from your PC to sparky, right click on the file in the left column and click on `Upload'. - To transfer a file from sparky to your PC, right click on the file in the right column and click on `Download'. 6. Exercise: After you are connected to sparky, transfer some file from sparky to your PC, edit it on the PC and save. Send the modified version back to sparky and view the changes. Do this just as a practice exercise. File transfer from Sparky (UNIX) to PC (Windows), may add some extra characters.