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
7a106d9b
Commit
7a106d9b
authored
13 years ago
by
Bob Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Script for installing mininet + tutorial into new VM.
parent
de5d3118
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
+33
-0
33 additions, 0 deletions
util/vm/install-mininet-vm.sh
with
33 additions
and
0 deletions
util/vm/install-mininet-vm.sh
0 → 100644
+
33
−
0
View file @
7a106d9b
#!/bin/bash
# This script is intended to install Mininet into
# a brand-new Ubuntu (10.04 or 11.10) virtual machine,
# to create a fully usable "tutorial" VM.
set
-e
sudo
sh
-c
'cat >> /etc/sudoers'
<<
EOF
openflow ALL=NOPASSWD: ALL
EOF
sudo sed
-i
-e
's/Default/#Default/'
/etc/sudoers
sudo sed
-i
-e
's/ubuntu/mininet-vm/'
/etc/hostname
sudo sed
-i
-e
's/ubuntu/mininet-vm/g'
/etc/hosts
sudo hostname
`
cat
/etc/hostname
`
sudo sed
-i
-e
's/quiet splash/text/'
/etc/default/grub
sudo
update-grub
sudo sed
-i
-e
's/us.archive.ubuntu.com/mirrors.kernel.org/'
\
/etc/apt/sources.list
sudo
apt-get update
sudo
apt-get
-y
install
git-core openssh-server
git clone git://github.com/mininet/mininet
cd
mininet
# Currently ovs-1.4-compat; will change to testing or master
git checkout
-b
1.4 origin/devel/ovs-1.4-compat
cd
time
mininet/util/install.sh
echo
<<
EOF
You may need to reboot and then:
sudo dpkg-reconfigure openvswitch-datapath-dkms
sudo service openvswitch-switch start
EOF
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