VPN Installation Instructions for Ubuntu (and Red Hat Linux)

NC State Cisco AnyConnect VPN Initial Installation Instructions for Red Hat and Ubuntu OS Machines.  This has been tested with Red Hat v6 and Ubuntu versions 10.04 LTS, 11.10, and 12.04 LTS.

NOTE: If you are upgrading from 11.10 to 12.04 LTS, you may receive this message:
“AnyConnect cannot confirm it is connected to your secure gateway.
The local network may not be trustworthy.
Please try another network.”
If so, visit the VPN Error Messages page for details on how to fix.

Other versions of Linux have been known to work but have not been tested by ComTech.  Please feel free to download and install the appropriate file manually via the VPN Manual Download and Installation page.

 

Prerequsites:

Java must be running on your machine in order to install the client.  You can either use Sun Java (java.com) or install an open source browser plugin called IcedTea.  It can be downloaded and installed via this link.

1) Using Firefox web browser, go to https://vpn.ncsu.edu. Type your NC State Unity username and password.  Press the “Login” button.

VPN-Ubuntu-Webpage-Login-1

2) The Cisco AnyConnect VPN will launch and the install will begin automatically.  If Java is not installed on your machine or cannot be detected, the installation will fail, and you will be presented with an option to manually download and install the client.

VPN-Ubuntu-Java-Check-1

 

3) If it detects Java is correctly installed, it will proceed to download the VPN AnyConnect software:

VPN-Ubuntu-Java-Check-2

 

If you receive the following message, the client was unable to detect that Sun Java was installed correctly.  You can continue the installation manually by clicking on “Linux i386” in which you will be asked to save a file called “vpnsetup.sh”.  After you save the file (which should be saved in your Downloads folder), all you need to do is run the file by entering “sudo sh ./vpnsetup.sh” at a command line and then skip to Step 10.

Alternatively, you can close this window, and proceed with a complete manual installation

VPN-Ubuntu-Manual-Install

4) However, if the Java check was successful, you will be prompted to approve the digital certificate provided by the appliance. If the digital signature has been verified, click Run to begin the initial installation of the AnyConnect VPN client.

 

5) The Cisco AnyConnect VPN Client will begin to download to your computer.

VPN-Ubuntu-Anyconnect-Download-1

 

6) You will receive a prompt to enter your Password. Enter the local Password you use to log onto your Ubuntu machine.

VPN-Ubuntu-Anyconnect-Download-2

 

7) The Cisco AnyConnect client application will begin to install and proceed to log in.

VPN-Ubuntu-Anyconnect-Install-1

 

8) The client will be installed on your work station and will initialize your first connection to the NC State SSL VPN network via the AnyConnect VPN Client.

VPN-Ubuntu-Anyconnect-Finished-1

 

9) In Ubuntu 10.x, you should see the icon in the notification bar as seen in the image above.  However, in Ubuntu 11.x the Cisco Anyconnect Icon VPN-Mac-Anyconnect-Icon does NOT show up in the top notification bar.  This is because you have to manually configure which application you want to whitelist and show up in the system tray.

 

10) Once the client is installed you will not have to log into the vpn.ncsu.edu website again. You can open up the Cisco AnyConnect VPN Client directly.  The location of the application differs depending on whether you are using Ubuntu 10.x or Ubuntu 11.x.  Both are described below:

Ubuntu 10.x:

Under Applications, open the Cisco folder and double-click Cisco AnyConnect VPN Client to launch the application.

VPN-Ubuntu-10-Anyconnect-Applications-1

 

Ubuntu 11.x

Click on the “Dash Home” icon in your Unity Dock (the first icon).  Enter “Cisco” to search for the Cisco Anyconnect VPN client.

VPN-Ubuntu-11-Anyconnect-Applications-1

After clicking on the icon, you can pin the icon to your launcher for easy access in the future:

VPN-Ubuntu-11-Anyconnect-Launcher

In Ubuntu 11.x, the Cisco AnyConnect Icon VPN-Mac-Anyconnect-Icon does NOT show up in the top notification bar.  This is because you have to manually configure which application you want to whitelist and show up in the system tray.

11)  After clicking the Cisco AnyConnect VPN Client application, see the “Connect to:” field to make sure you are connecting to vpn.ncsu.edu. You will immediately be prompted for your Unity username and password to login.

VPN-Ubuntu-Anyconnect-Launch-1

 

12)  In order to disconnect, click on the Cisco AnyConnect Icon and click on “Disconnect” in the Connection Tab.

In Ubuntu 11.x, you will need to find the Cisco AnyConnect Application again to bring up the window.  If you pin the application to the dock, you will be able to disconnect from the icon in the dock.