Prereqs - ItsMmmike/SYS-350 GitHub Wiki
Installing VSCode + Pyvmomi on Debian/Ubuntu
In order to start working on this Milestone project, we first need to install the necessary tools and software to begin developing our automation scripts. (Mgmt01)
- To install Pyvmomi on a Debian/Ubuntu based system, we can use the following command:
sudo apt update
sudo apt install python3-pip
# Install as logged in user
pip3 install wheel
pip3 install pyvmomi
pip3 install pyvim
- VSCode can be installed with the command below:
sudo snap install code --classic
Installing Git + Cloning Base Repo for Milestone
I've also made a clone my SYS-350 course repo onto the Mgmt01 VM in order to store and upload my Pyvmomi scripts onto GitHub later
- In order to clone a repo from GitHub, we first need to install git:
# Installs Git on Debian/Ubuntu
sudo apt update
sudo apt install git
- From here, I used
git clone <Link-To-GitHub-Repo>
in order to clone my course repo locally onto my Mgmt01 VM.
Syncing GitHub Repo onto VSCode
This is useful in the event that you need to push/pull project files to your GitHub Repo while working in the VSCode environment.
To get this working, we need to run the following commands to configure the user information that will be used to log into GitHub as well as accessing our Repo.
# Run this in a Linux terminal
git config --global user.name <username-goes-here>
git config --global user.email <email-goes-here>
- From here, open VSCode's File Explorer and open your cloned GitHub Repo Directory
- To do this, navigate to the left panel, click on "Source Control" and click on "sync" to update to the latest version of your GitHub Repo
- Lastly, we should now be able to make commit, push, and pull requests from Mgmt01 to our GitHub Repo