Install virtualenv
sudo apt-get install python-virtualenv
OR
Download it from https://pypi.python.org/pypi/virtualenv
Set up virtual env
virtualenv .
Install fabric, fexpect and (optional) redis
./bin/pip install fabric fexpect redis
Check whether paramiko is broken:
Try running:
./bin/fab -H localhost test
If you see this error "NameError: global name 'host' is not defined" then go to 4.2.
Patch paramiko: (See bug paramiko/paramiko#179)
sed -i "59 s/host/socket.gethostname().split('.')[0]/" local/lib/python2.7/site-packages/paramiko/config.py
Have a look at what tasks are available:
./bin/fab -l
Create a VM or have a server with Ubuntu 13.04 (which we will call raring).
(Optional) Set up your ssh key and hostname in your ssh config.
Set up oer.exports on raring:
./bin/fab -H raring export_setup
Run the tests in oer.exports on raring:
./bin/fab -H raring export_test
Try generating a pdf with oer.exports on raring:
./bin/fab -H raring export_generate_pdf