Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
b9288efc
Commit
b9288efc
authored
11 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Allow specification of branch to install
parent
c90fb34d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/vm/install-mininet-vm.sh
+10
-4
10 additions, 4 deletions
util/vm/install-mininet-vm.sh
with
10 additions
and
4 deletions
util/vm/install-mininet-vm.sh
+
10
−
4
View file @
b9288efc
...
...
@@ -3,6 +3,8 @@
# This script is intended to install Mininet into
# a brand-new Ubuntu virtual machine,
# to create a fully usable "tutorial" VM.
#
# optional argument: Mininet branch to install
set
-e
echo
`
whoami
`
ALL
=
NOPASSWD: ALL |
sudo tee
-a
/etc/sudoers
>
/dev/null
sudo sed
-i
-e
's/Default/#Default/'
/etc/sudoers
...
...
@@ -25,11 +27,16 @@ fi
if
[
-e
/etc/rc.local.backup
]
;
then
sudo mv
/etc/rc.local.backup /etc/rc.local
fi
#
Install
Mininet
#
Fetch
Mininet
sudo
apt-get
-y
install
git-core openssh-server
git clone git://github.com/mininet/mininet
cd
mininet
cd
# Optionally check out branch
if
[
"
$1
"
!=
""
]
;
then
pushd
mininet
git checkout
-b
$1
$1
popd
fi
# Install Mininet
time
mininet/util/install.sh
# Finalize VM
time
mininet/util/install.sh
-tc
...
...
@@ -38,4 +45,3 @@ time mininet/util/install.sh -tc
# echo "export NOX_CORE_DIR=~/noxcore/build/src/" >> .bashrc
#fi
echo
"Done preparing Mininet VM."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment