Debian Codegraph @

INSTALL-UBUNTU-DEBIAN.md

raw
1 ### Installation on stock Ubuntu and Debian
2
3 The following are instructions for setting up a system starting from stock system images.
4
5 These instructions were tested on a 64-bit systems from https://github.com/opscode/bento, and using the _Junos PyEZ_ library version 2.1.0.
6
7 Operating Systems
8 ---------------
9 - Ubuntu 16.10
10 - Ubuntu 16.04
11 - Ubuntu 15.10
12 - Ubuntu 15.04
13 - Debian 8.7
14 - Debian 8.6
15
16
17 #### Step 1: Update package list
18
19 sudo apt-get update
20
21 #### Step 2: Install Python and PIP
22
23 ##### For Python 2.x:
24 sudo apt-get install python-dev
25 wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python
26
27 ##### For Python 3.x:
28 sudo apt-get install python3-dev
29 wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python3
30
31 #### Step 3: Install OS packages required by Junos PyEZ and it's
32 pre-requisite Python packages
33
34 sudo apt-get install libxslt1-dev libssl-dev libffi-dev
35
36 #### Step 4: Install Junos PyEZ
37
38 sudo pip install junos-eznc
39
40 #### Step 5: Verify
41
42 Once you've completed the above step, you should be able to create a `Device` instance, connect to a Junos system, and display the "facts", as illustrated in the README.md file.
43
44 Enjoy!
45
46
47 #### Installing from GitHub
48
49 Development code can be installed directly from GitHub based on any branch, commit, or tag.
50
51 ***Steps 1 -3 are still required.***
52 #### Alternate Step 4: Install Junos PyEZ from GitHub
53
54 #### Step 4a: Install Git from OS packages
55 sudo apt-get install git
56
57 #### Step 4b: Install Junos PyEZ from GitHub
58 sudo pip install git+https://github.com/Juniper/py-junos-eznc.git
59 or
60 sudo pip install git+https://github.com/Juniper/py-junos-eznc.git@<branch,tag,commit>