Revision b9288efc util/vm/install-mininet-vm.sh

View differences:

util/vm/install-mininet-vm.sh
3 3
# This script is intended to install Mininet into
4 4
# a brand-new Ubuntu virtual machine,
5 5
# to create a fully usable "tutorial" VM.
6
#
7
# optional argument: Mininet branch to install
6 8
set -e
7 9
echo `whoami` ALL=NOPASSWD: ALL | sudo tee -a /etc/sudoers > /dev/null
8 10
sudo sed -i -e 's/Default/#Default/' /etc/sudoers
......
25 27
if [ -e /etc/rc.local.backup ]; then
26 28
    sudo mv /etc/rc.local.backup /etc/rc.local
27 29
fi
28
# Install Mininet
30
# Fetch Mininet
29 31
sudo apt-get -y install git-core openssh-server
30 32
git clone git://github.com/mininet/mininet
31
cd mininet
32
cd
33
# Optionally check out branch
34
if [ "$1" != "" ]; then
35
  pushd mininet
36
  git checkout -b $1 $1
37
  popd
38
fi
39
# Install Mininet
33 40
time mininet/util/install.sh
34 41
# Finalize VM
35 42
time mininet/util/install.sh -tc
......
38 45
#  echo "export NOX_CORE_DIR=~/noxcore/build/src/" >> .bashrc
39 46
#fi
40 47
echo "Done preparing Mininet VM."
41

  

Also available in: Unified diff