Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
student:cs149startup:start [2020/07/29 11:01] – created bowersjcstudent:cs149startup:start [2021/11/03 22:16] (current) – [Using the shell to access Autolab] added missing -L mayfiecs
Line 3: Line 3:
 ====== Code Editor ====== ====== Code Editor ======
  
-The first thing you need for CS 149 is a Java code editor. Think of this as Microsoft Word for Java code. All sections of CS 149 in fall 2020 are using the jGRASP IDE. IDE stands for integrated development environment and is just a fancy term for a code editor (with a few extra bells and whistles).+The first thing you need for CS 149 is a Java code editor. Think of this as Microsoft Word for Java code. All sections of CS 149 in fall 2021 are using the jGRASP IDE. IDE stands for integrated development environment and is just a fancy term for a code editor (with a few extra bells and whistles).
  
-jGRASP is very easy to download, install, and set-up. So that you do not also need to separately install a Java installation, we recommend you install the version of jGRASP that comes bundled with OpenJDK, which is the open source version of the Java development kit, as well as the Checkstyle and JUnit tools. +jGRASP is very easy to download, install, and set-up (see how quickly [[https://youtube.com/playlist?list=PLv0EaZTS9xfkQ-WqFGcO8zGgIs-2KThBY|Dr. Bowers does it in this YouTube playlist]]). So that you do not also need to separately install a Java installation, we recommend you install the version of jGRASP that comes bundled with OpenJDK, which is the open source version of the Java development kit, as well as the Checkstyle and JUnit tools. 
  
 To download the jGRASP installer, navigate to [[https://jgrasp.org|http://jgrasp.org]], click the "Download" link on the left-hand menu, and scroll down until you see the gray box that begins with "jGRASP" followed by the version with the words "Bundled with OpenJDK" below it. There are three green buttons below this, "jGRASP Bundled exe", "jGRASP Bundled pkg", and "jGRASP Bundled zip". If you are using Windows, select the "exe" button. If you are on a Mac, select the "pkg" button. This will start the download for the proper installer. To download the jGRASP installer, navigate to [[https://jgrasp.org|http://jgrasp.org]], click the "Download" link on the left-hand menu, and scroll down until you see the gray box that begins with "jGRASP" followed by the version with the words "Bundled with OpenJDK" below it. There are three green buttons below this, "jGRASP Bundled exe", "jGRASP Bundled pkg", and "jGRASP Bundled zip". If you are using Windows, select the "exe" button. If you are on a Mac, select the "pkg" button. This will start the download for the proper installer.
Line 31: Line 31:
 Direct access to Autolab is blocked from off campus for security reasons. In order to access Autolab from off campus you must either [[student:vpn:start|install and run the VPN]] or you must create an SSH tunnel through the shell. This sounds really complicated and fancy, but is actually fairly straightforward. To do this simply run the following command in your shell but make sure to replace "your-username" with your actual username:  Direct access to Autolab is blocked from off campus for security reasons. In order to access Autolab from off campus you must either [[student:vpn:start|install and run the VPN]] or you must create an SSH tunnel through the shell. This sounds really complicated and fancy, but is actually fairly straightforward. To do this simply run the following command in your shell but make sure to replace "your-username" with your actual username: 
  
-''ssh 4443:autolab.cs.jmu.edu:443 your-username@stu.cs.jmu.edu''+''ssh -L 4443:autolab.cs.jmu.edu:443 your-username@stu.cs.jmu.edu''
  
 Then log in using your EID password. This establishes what is called an SSH tunnel that routes traffic through your computer to our Autolab server through a connection to stu.cs.jmu.edu, which is the student server for computer science students.  Then log in using your EID password. This establishes what is called an SSH tunnel that routes traffic through your computer to our Autolab server through a connection to stu.cs.jmu.edu, which is the student server for computer science students. 
  
 Once you have done this, you can access Autolab by visiting [[https://localhost:4443/|https://localhost:4443/]] in a browser. Your browser will give you security warnings about this, because it will recognize that you are trying to connect to cs.autolab.jmu.edu but have in fact connected to localhost. In this case, this is ok, since localhost is just the name of your own computer and you are using the SSH tunnel you yourself have set up.  Once you have done this, you can access Autolab by visiting [[https://localhost:4443/|https://localhost:4443/]] in a browser. Your browser will give you security warnings about this, because it will recognize that you are trying to connect to cs.autolab.jmu.edu but have in fact connected to localhost. In this case, this is ok, since localhost is just the name of your own computer and you are using the SSH tunnel you yourself have set up.