CSCI-1411-Lab-Setup-Mac

Lab Setup Guide for Mac OS

This guide describes how to access the lab from an off-campus network with a Mac using the VPN and terminal. This has been tested on a Mac running OSX 10.5 and I successfully compiled and ran the sample hello world program through the Mac terminal. Download the appropriate VPN version from the link provided below (If your not sure what version of Mac OSX you have then click the apple at the upper-left corer of the desktop and select the About This Mac option).

This guide includes the following topics:

HorizontalLine

Note: Click on any of the images in this guide to see a larger version (for reading the terminal commands).

HorizontalLine

Accessing the UCD Network from an Off-Campus Network

To access the CSE grid with a computer that is not in the lab and is not connected to the UCD Wireless network you must use the UCD VPN. To use the UCD VPN just download it from the link provided above. Once the VPN application is installed it will allow you to connect to the CU-Downtown campus VPN. This guide will cover this process.

Step 1: Download the VPN from the UCD VPN Download Site. Its a simple Mac DMG installation image file.

Downloaded Mac VPN Client DMG

Downloaded Mac VPN Client DMG

Step 2: Mount the CiscoVPNClient by double clicking on the vpnclient.dmg file you downloaded in Step 1
Step 3: Find the mounted CiscoVPNClient either on the Desktop or use Go->Computer.

Mounted VPN Client

Mounted VPN Client

Step 4: Double clicking on the mounted CiscoVPNClient will open the disk image. You can now install the Cisco VPN Client by double clicking on the installation image (Click the cardboard-box above the text Cisco VPN Client.mpkg).

UCD VPN Installation Package

UCD VPN Installation Package

Step 5: Continue through the installation process just as you would for any other program installation. Once the application has been successfully installed, you can run it by going to Go->Applications->VPNClient

VPN Installation Beginning

VPN Installation Beginning

VPN Successful Installation

VPN Successful Installation

Step 6: Once you have the VPN Client running, click on UCD-Downtown Campus and click connect (in the upper-left corner). This will connect you to the UC-Denver campus VPN. When you are prompted, enter your UCD username and password (the same username and password used in the lab and for your UCD portal).

Running the VPN

Running the VPN

Connected to the UCD VPN

Connected to the UCD VPN

HorizontalLine

Using a Mac Terminal with SSH

This section describes how to use the Mac Terminal as a substitute for PuTTY. Using the terminal with the SSH command and PuTTY are equivalent for our purposes.

Step 1: Open the terminal. This is found in the Applications menu: Go->Applications->Utilities->Terminal.
Step 2: Enter the SSH command to connect to the CSE grid using secure shell like the example below. Note that once you enter this command and it successfully connects (assuming you are already connected to the VPN) it will display a warning related to the authenticity of the host.

  • ssh yourusername@csegrid.ucdenver.pvt
  • ssh transues@csegrid.ucdenver.pvt

Warning
The authenticity of host ‘csegrid.ucdenver.pvt (xxx.xxx.xxx.xxx)’ can’t be established.
RSA key fringerprint is …
Are you sure you want to continue connecting (yes/no)? yes

Terminal SSH Command

Terminal SSH Command

Step 3: Type yes to continue connecting to the CSE grid.
Step 4: When prompted, enter your password. After you have logged in you should see a prompt similar to what was shown with PuTTY. At this point you can use the Terminal just as you would use PuTTY (enter commands, compile code, run code).

Logged-in Terminal with SSH (like PuTTY)

Logged-in Terminal with SSH (like PuTTY)

Example Commands (compiling and running a progam)

Example Commands (compiling and running a progam)

HorizontalLine

Sharing a Folder with the CSE Grid

Using the built in command for connecting to a server: MacDesktop->Go->Connect to Server… a shared folder can be created between your Mac and the CSE grid (under your home directory). This can be used to upload files (like WinSCP in Windows) to the CSE grid server. If you are going to proceed with this guide and you are not connected the the UCD wireless network then you must be connected to the VPN.

Step 1: Open the connect to server dialog using: MacDesktop->Go->Connect to Server… This menu option is high-lighted in red below.

Connect To Server...

Connect To Server…

Step 2: In the Connect To Server dialog enter the following address: smb://csenas.ucdenver.pvt/yourusername. Note! Where it says yourusername you provide your UCD login username. When you have provided this Server Address in the top text field (as shown in the right image below), click the Connect button.

Connect To Server Dialog

Connect To Server Dialog

Server Address

Server Address (Mine as an example)

Step 3: In the resulting prompt, enter your UCD username and password. Once you are connected, a folder will open. This represents your home directory on the UCD grid.

Connect To Server Login

Connect To Server Login

You can now copy and paste files into this shared-folder and they will be uploaded to your home directory on the grid. You can use this to upload and download files.