This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## lxc-tool for natty | |
## Create inet_interface for lxc containers. (ignore the guest status) | |
## author [email protected] | |
## Usage: rake conf_ip RAKE_ENV=environment (default=default) | |
require 'pp' | |
require 'erb' | |
LXC_DIR = "/var/lib/lxc/" | |
rake_env = ENV['RAKE_ENV'] || "dafault" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## lxc-tool for natty | |
## copy sshdconfigs from host to all guests. (ignore the guest status) | |
## author [email protected] | |
## Usage: rake copyssh | |
require 'pp' | |
LXC_DIR = "/var/lib/lxc/" | |
rake_env = ENV['RAKE_ENV'] || "dafault" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo echo deb-src http://archive.ubuntu.com/ubuntu natty main universe>> /etc/apt/sources.list | |
$ sudo apt-get -y update | |
$ sudo apt-get -y install git | |
$ sudo apt-get -y build-dep ruby1.9.1-full | |
$ sudo apt-get -y install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev | |
$ sudo -s | |
# bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) | |
## use older version rvm. |
NewerOlder