Resources
Guidelines for accessing VSI Lab Server
Before attempting to connect to the lab server, ensure that you have received permission. Contact Dr. Eungjoo Lee at eungjoolee@arizona.edu for access, and once you have permission, follow the
instructions below.
-
Establish VPN Connection
Use the Cisco AnyConnect application to connect to the VPN. If you dont have AnyConnect, you can follow the instructions here to download and install it in your laptop
- VPN Address:
vpn.arizona.edu/Engineering - Open the AnyConnect app, enter the VPN address, and authenticate using your university credentials
- VPN Address:
-
Test the Connection to the Server
To test the server connection, follow these steps:
- Open a terminal or command prompt.
- Connect to the server with the following command:
ssh username@server-ip-address - Verify that your user account appears by listing the directory contents.
ls -la /dataIf you do not see your username, contact IT support atsupport@engr.arizona.edu
-
Connect VS code to the Server.
Once the VPN and server connection are verified, you can use VS Code for development.
- Install the Remote-SSH extension in VS-code.
- Open the extension and click the plus sign (+) to add a new remote.
- Use the following SSH command:
ssh username@server-ip-address -A - Enter your password when prompted.
-
Clone a Git Repository
You can now, clone your Git repository to the server and start coding:
- Click Clone Git Repository in VS Code
- Provide the repository URL:
https :// github.com/github -username/your_repo_name.git - When prompted, choose to save it under
/data/username/mydirectory - Trust the workspace by clicking Yes when asked by VS Code
-
Create a Virtual environment
- Press
Cmd + Shift + P(orCtrl + Shift + P) to open the command palette. - Search for and select Python: Select Interpreter.
- Choose Create Virtual Environment, then select venv and the desired Python version.
- Press
(Optional) Create a .gitignore file
You may want to create a .gitignore file to prevent unnecessary files from being pushed to the
repository. For example, to exclude the .venv directory, add the following to your .gitignore:
/.venv