Carmelo Cascone | d661507 | 2017-12-15 00:53:43 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -xe |
| 3 | |
| 4 | cp /etc/skel/.bashrc ~/ |
| 5 | cp /etc/skel/.profile ~/ |
| 6 | cp /etc/skel/.bash_logout ~/ |
| 7 | |
| 8 | # ONOS |
| 9 | git clone https://github.com/opennetworkinglab/onos.git |
Carmelo Cascone | c5569c2 | 2018-04-18 10:09:15 +0900 | [diff] [blame] | 10 | tee -a ~/.bashrc <<EOF |
Carmelo Cascone | b7e618d | 2018-01-12 18:31:33 -0800 | [diff] [blame] | 11 | |
| 12 | # ONOS |
| 13 | export ONOS_ROOT=~/onos |
| 14 | source ~/onos/tools/dev/bash_profile |
Carmelo Cascone | f11513d | 2018-01-16 00:31:14 -0800 | [diff] [blame] | 15 | source ~/onos/tools/dev/p4vm/bm-commands.sh |
Carmelo Cascone | b7e618d | 2018-01-12 18:31:33 -0800 | [diff] [blame] | 16 | EOF |
| 17 | source ~/.profile |
Carmelo Cascone | d661507 | 2017-12-15 00:53:43 -0800 | [diff] [blame] | 18 | |
| 19 | # Build and install P4 tools |
Carmelo Cascone | b7e618d | 2018-01-12 18:31:33 -0800 | [diff] [blame] | 20 | bash /vagrant/install-p4-tools.sh |
Carmelo Cascone | d661507 | 2017-12-15 00:53:43 -0800 | [diff] [blame] | 21 | |
| 22 | # Mininet |
| 23 | git clone git://github.com/mininet/mininet ~/mininet |
| 24 | sudo ~/mininet/util/install.sh -nwv |