hitchhiker’s guide to cs lee sieger, tim cook, jason day, zuozhi yang

11
Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Upload: frederick-blankenship

Post on 18-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Hitchhiker’s Guide to CSLee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Page 2: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Launching DrJava from Windows LabOpen My Computer from Start

MenuClick on \\labserv\pclab driveClick on CS111 folderClick on drjava.bat

This should mount the CS drive in your file explorer and also launch DrJava

Page 3: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

MobaXtermInstall free version from…http://mobaxterm.mobatek.net/download.html

On lab computers, can be found under the Computer Science folder in All Programs in the start menu

Page 4: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Click on Session Button

Page 5: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Click on SSH button at top right of window

For Remote Host put…

gbcs#.cc.gettysburg.edu

where # is some number from 1 to 18…Click on specify username and enter

college usernameChange port to 222Click on OK and enter password

when prompted

Page 6: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang
Page 7: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Mounting CS Drive1. From the Start menu choose

Computer.2. In the Computer window there is a

“Map Network Drive” link near the top.3. Enter \\ada.cc.gettysburg.edu\

<username> in the box and select a drive letter. Replace <username> with your username.

4. Uncheck “Reconnect at Logon”.5. Hit OK. A window should magically

appear containing your files.

Page 8: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Secure Shellssh

◦Hosts: gbcsN.cc.gettysburg.edu N=1..22

◦Port: 222

Commands:◦ssh gbcs3.cc.gettysburg.edu –p 222

–l user◦ssh

[email protected]:222

Page 9: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Hello World Diff (Python File)Open geditType…

print("Hello World")Save file as helloworld.py

Page 10: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Hello World Diff (Java File)Open drjavaType…public class HelloWorld

{ public static void main(String[] args) { System.out.println("Hello World"); } }

Save file as HelloWorld.java

Page 11: Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang

Testing DiffRun the following in the terminal..

python helloworld.py > helloworld_out.txtjava HelloWorld > HelloWorld_out.txtdiff helloworld_out.txt HelloWorld_out.txt

This will test to see if each programs output is the same