This VM fits for the following use case: As developer, I want to quickly (in less than 5 minutes) have a fully working pair programming session, without polluting my dev machine nor compromise my network security.
-
First install vagrant:
http://vagrantup.com
-
Choose a linux box on
http://www.vagrantbox.es
. I chose Ubuntu precise64. -
Add the
precise64
box:vagrant box add precise64 http://files.vagrantup.com/precise64.box
-
Clone this repo
git clone git@github.com:romain/ppsession
-
In the folder, you get 3 files
README.md
,Vagrantfile
,get_cookbooks.rb
. Now run theget_cookbooks.rb
script, then launch the VMruby ./get_cookbooks.rb vagrantup
Everything is installed and provisioned, it's time for your PP session
Vagrant has configured a redirection from port 22222 on your dev machine (the host) to port 22 on the VM (the guest).
Login into your machine in either one of the following methods:
vagrant ssh
su - pair
or
ssh pair@your-ip -p 22222
Once logged in, start your tmux session:
tmux
Your pair can login simply:
ssh pair@your-ip -p 22222
Once logged, she can attach her terminal to the existing session
tmux attach
Et voilà
- tmux cheat sheet:
http://www.dayid.org/os/notes/tm.html