3 # --------------------------------------------
4 # External shell provisioner script for Fedora
5 # --------------------------------------------
7 # Set HOME variable for this script
10 # Install initial packages
21 # Install required dependencies
42 # Install pyang (extensible YANG validator and converter in python)
43 cd $HOME && git clone https://github.com/mbj4668/pyang.git
44 sudo chown -R vagrant:vagrant $HOME/pyang/
45 cd $HOME/pyang/ && sudo python setup.py install
47 # Install libnetconf (NETCONF library in C)
48 cd $HOME && git clone https://code.google.com/p/libnetconf
49 sudo chown -R vagrant:vagrant $HOME/libnetconf/
50 cd $HOME/libnetconf/ && \
51 sh configure --prefix=/usr --with-nacm-recovery-uid=1000 && \
55 # Install netopeer (set of NETCONF tools built on the libnetconf library)
56 cd $HOME && git clone https://code.google.com/p/netopeer
57 sudo chown -R vagrant:vagrant $HOME/netopeer/
58 cd $HOME/netopeer/server/ && \
59 sh configure --prefix=/usr && \
63 # --------------------------------
64 # Install Robot Framework and RIDE
65 # --------------------------------
67 # Install required dependencies
73 # Install Robot Framework libraries
76 robotframework-sshlibrary \
77 robotframework-requests
79 # Install wxPython, a blending of the wxWidgets C++ class library used for RIDE
81 wget http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/wxPython-src-2.8.12.1.tar.bz2 && \
82 tar -xjvf wxPython-src-2.8.12.1.tar.bz2 && \
83 rm wxPython-src-2.8.12.1.tar.bz2 && \
84 cd wxPython-src-2.8.12.1/wxPython && \
85 python setup.py build && \
86 sudo python setup.py install
88 # Add 'ride' alias for quietly running RIDE gui
89 echo "alias ride=\"nohup ride.py >/dev/null 2>&1 &\"" >> $HOME/.bashrc