Skip to content

Instantly share code, notes, and snippets.

@anmsid
Created July 20, 2015 09:37
Show Gist options
  • Save anmsid/23f9c089d8879aa07a05 to your computer and use it in GitHub Desktop.
Save anmsid/23f9c089d8879aa07a05 to your computer and use it in GitHub Desktop.
prepare tomato-backend and geni-lib on CloudLab
#!/bin/sh
# prepare tomato-backend and geni-lib on CloudLab
# activate extra disk space and mount it under /tomato
sudo /usr/local/etc/emulab/mkextrafs.pl -r /dev/sda /tomato
sudo mkdir /tomato/{files,templates}
sudo chown tomato:tomato /tomato/{files,templates}
sudo service tomato-backend stop
cd /var/lib/tomato
sudo rmdir files
sudo rmdir templates
sudo ln -s /tomato/files .
sudo ln -s /tomato/templates .
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y fail2ban
sudo apt-get install -y mercurial
sudo apt-get install -y fabric
sudo apt-get install -y python-fabric
sudo apt-get install -y python-lxml
sudo apt-get install -y python-dateutil
sudo apt-get install -y python-m2crypto
sudo apt-get install -y tomato-backend
cd ~
# install geni-lib
hg clone https://bitbucket.org/barnstorm/geni-lib
cd geni-lib
hg pull -u
hg update -C 0.9-DEV
sudo python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment