Remove vmware easy install leftovers
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# This script is intended to install Mininet into
|
# This script is intended to install Mininet into
|
||||||
# a brand-new Ubuntu (10.04 or 11.10) virtual machine,
|
# a brand-new Ubuntu virtual machine,
|
||||||
# to create a fully usable "tutorial" VM.
|
# to create a fully usable "tutorial" VM.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
sudo sh -c 'cat >> /etc/sudoers' <<EOF
|
sudo sh -c 'cat >> /etc/sudoers' <<EOF
|
||||||
openflow ALL=NOPASSWD: ALL
|
openflow ALL=NOPASSWD: ALL
|
||||||
@@ -17,14 +16,23 @@ sudo update-grub
|
|||||||
sudo sed -i -e 's/us.archive.ubuntu.com/mirrors.kernel.org/' \
|
sudo sed -i -e 's/us.archive.ubuntu.com/mirrors.kernel.org/' \
|
||||||
/etc/apt/sources.list
|
/etc/apt/sources.list
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
# Clean up vmware easy install junk if present
|
||||||
|
if [ -e /etc/issue.backup ]; then
|
||||||
|
sudo mv /etc/issue.backup /etc/issue
|
||||||
|
fi
|
||||||
|
if [ -e /etc/rc.local.backup ]; then
|
||||||
|
sudo mv /etc/rc.local.backup /etc/rc.local
|
||||||
|
fi
|
||||||
|
# Install Mininet
|
||||||
sudo apt-get -y install git-core openssh-server
|
sudo apt-get -y install git-core openssh-server
|
||||||
git clone git://github.com/mininet/mininet
|
git clone git://github.com/mininet/mininet
|
||||||
cd mininet
|
cd mininet
|
||||||
cd
|
cd
|
||||||
time mininet/util/install.sh
|
time mininet/util/install.sh
|
||||||
if ! grep NOX_CORE_DIR .bashrc; then
|
# Ignoring this since NOX classic is deprecated
|
||||||
echo "export NOX_CORE_DIR=~/noxcore/build/src/" >> .bashrc
|
#if ! grep NOX_CORE_DIR .bashrc; then
|
||||||
fi
|
# echo "export NOX_CORE_DIR=~/noxcore/build/src/" >> .bashrc
|
||||||
|
#fi
|
||||||
echo <<EOF
|
echo <<EOF
|
||||||
You may need to reboot and then:
|
You may need to reboot and then:
|
||||||
sudo dpkg-reconfigure openvswitch-datapath-dkms
|
sudo dpkg-reconfigure openvswitch-datapath-dkms
|
||||||
|
|||||||
Reference in New Issue
Block a user