4 This is how to make automatic recordings without the hassle to type yourself (and fail and start over again).
9 * automatically split window and output all comments starting with ":" to one window, and all other cmds to another one
14 * use zsh and _not_ bash, cause zsh+ohmyzsh autosets the window title to the running command
15 * put DISABLE_CORRECTION="true" in .zshrc (otherwise zsh might ask you for correction where it is not needed)
16 * turn off fancy shell prompts
17 * i use a custom "demo" user for recordings, with a clean .zshrc (see above)
19 Setup shelr to use the ttyrec backend
20 -------------------------------------
22 I realized that the bad timing i encountered earlier was due the default shelr backend "script".
23 I changed it to "ttyrec" and now the timing is ok.
24 please try above shelr play cmd again with updated recording.
25 see [upload to shelr is currently broken](https://github.com/shelr/shelr/issues/21)
27 sudo apt-get install ttyrec
34 * use max. 132x43 resolution in shell
39 rm -rf ~/leap/demo/example.org
40 rm -rf ~/leap/demo/leap_cli
41 rm -rf ~/leap/demo/leap_platform
43 shelr record # choose a short, intuitive title (use the first comment in the script)
46 * in another termial start:
49 ./shelr-screencast.sh setup/setup.sh
55 * before uploading, edit "meta" and change following keys:
57 `cd /home/demo/.local/share/shelr/RECORD_ID
58 sed -i "s/`hostname`/demobox/g" meta`
60 * uploading sucks. you will always get an 500 error, but sometimes the vid yet shows up on http://shelr.tv.
61 i couldn't login using github oauth, if anyone have an openid account, please try.
64 shelr setup xxxxxxxx # setup upload api key (see pwstore)
67 * Description: "see https://leap.se for more details"
68 * Tags: "leap, bitmask"
69 * you can always edit the description, tags and title later
71 Resetting demo machines
72 ========================
74 * connect to the pistoncloud DC vpn, and souce your credentials for the
75 * cd to your leap_pistonadmin working dir
76 * revert the instances using YOUR key !
79 for h in chameleon panda seahorse; do ./revert_instance_from_snapshot.sh -i ${h}.testing.bitmask.net -s ${h}_gold -k $USER; done
82 * NOTE: you need to wait maybe 5 minutes for the nodes to be restarted
84 Preparing the demo machines
85 ---------------------------
87 * make sure you can properly login to the machines with you ssh-key. use ssh-agent for it:
90 eval `ssh-agent` && ssh-add
92 * to speed up initialization + deployment, login to the servers and:
95 apt-get update && apt-get dist-upgrade