Installing a workstation as a development environment in the context of DevNet, Cisco's developer program, involves configuring the system to support network automation and programmability. This includes setting up tools and software tailored for Cisco platforms and APIs. DevNet workstations commonly include an integrated development environment (IDE) such as Visual Studio Code or PyCharm, along with the necessary software development kits (SDKs) and libraries for Cisco platforms like Cisco IOS, NX-OS, or ACI. DevNet developers often utilize Python or JavaScript for scripting and programming, leveraging libraries like the Cisco SDK or RESTCONF/NETCONF protocols for network automation. The installation process may also include tools for version control, such as Git, and collaboration platforms like Cisco Webex Teams. Setting up a DevNet workstation ensures developers have the specialized tools required to create, test, and deploy network automation solutions on Cisco infrastructure.
Disclaimer
This Lab Guide is designed to assist candidates to facilitate Technology learning. While every effort has been made to ensure that all material is as complete and accurate as possible, the enclosed material is presented on an “as is” basis. Neither the authors nor RSTForum assume any liability or responsibility to any person or entity with respect to loss or damages incurred from the information contained in this Lab guide. This workbook was developed by RSTForum. Any similarities between material presented in this Lab Guide and any other Lab Guide or any other material is completely coincidental.
In this lab you’ll find walkthroughs on how to install a set of common development tools on an Ubuntu Desktop 18.0.4 workstation or latest.
To use Linux as your development environment, you should have a good graphical desktop interface setup.
sudo apt install curl
sudo apt install libssl-dev
# (equivalent to openssl-dev on other distributions)
(wget is already installed, so we do not need to install it)
sudo apt install build-essential
sudo apt install git
Let us verify Git is working as expected:
git --version
You should get output indicating the version of git installed:
# Example output
git version 2.17.1
git clone https://github.com/RSTForum/knowledgebase.git
# Expected Output
Cloning into
remote: Counting objects: 11, done.
remote: Total 11 (delta 0), reused 0 (delta 0), pack-reused 11
Unpacking objects: 100% (11/11), done.
Python 3 is the recommended version of Python.
Note: Python 2 is no longer supported. As of January 1st, 2020 no new bug reports, fixes, or changes will be made to Python 2. You can read Python 2 instructions in the appendix to this Lab, but it is not required or recommended.
You may already have Python 3 installed. Verify your Python installation by running this command at the terminal prompt:
python3
#Expected output
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
\[GCC 8.3.0\] on linux
Type "help", "copyright", "credits" or "license" for more information
>>>
sudo apt install python3
cd ~
python3 -V
# Expected Output
Python 3.6.9
Before leaving the Python setup, you need to know how to create a Python virtual environment. Python virtual environments are a method of creating isolated “environments” where specific versions of Python can be installed along with independent sets of libraries and dependencies.
Virtual environment usage is very common and is recommended practice when working in Python, and most DevNet labs encourage you to create and work within virtual environments.
sudo apt install python3-virtualenv
python3 -m venv py3-venv
source py3-venv/bin/activate
# Expected Output
(py3-venv) \[timmc@ubuntu ~\]$
python -V
Python 3.6.9
deactivate
There are two different Node.js options when installing. It’s possible to use the distro-stable package with APT, or to branch out and use version-specific versions of Node.js using NVM, the Node Version Manager.
For our lab purposes, the distro-stable
version will probably be fine since it is 8.x. (Note: This will install an older version of NodeJS. To install the latest version, use the NVM steps below and not these)
sudo apt install nodejs
sudo apt install npm
nodejs -v
#Expected output
v8.10.0
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
source ~/.bashrc
nvm ls-remote
nvm install v12.18.0
nvm use v12.18.0
node -v
sudo apt install snapd
sudo snap install atom --classic
sudo snap install atom --classic
All done!
sudo snap install postman
Once the installation completes, find Postman in the application launcher.
Postman will open and allow you to sign-up or sign-in. You do NOT need to sign in to use Postman, you can simply click the “Take me straight to the app. I’ll create an account another time.” link to bypass login.
snap install ngrok
Download the .deb Google Chrome installer from google.com/chrome
Install it using dkpg:
cd $HOME/Downloads
sudo dpkg -i google-chrome-stable\_current\_amd64.deb
To access the Chrome Developer tools:
Under More tools, click the link for Developer tools
You will now see the developer tools open within the window: