Slide 1

Slide 1 text

screen & tmux Brought you by @AV4TAr

Slide 2

Slide 2 text

ups, connection dropped... 2

Slide 3

Slide 3 text

why? • more than one window in a session. • more than one pane in a window. • keep processes running in background. "AHH, connection dropped during migration..." - No more :) 3

Slide 4

Slide 4 text

screen

Slide 5

Slide 5 text

screen basics • start: ~ screen • list sessions: ~ screen -ls • attach: ~ screen -r [session-number] available for Linux / Mac / Cygwin 5

Slide 6

Slide 6 text

screen basics • Prefix: Ctrl-a • new window: Ctrl-a c • list windows: Ctrl-a " • detach: Ctrl-a d quick reference http://bit.ly/screen-quick-reference 6

Slide 7

Slide 7 text

Show time!

Slide 8

Slide 8 text

tmux

Slide 9

Slide 9 text

tmux • like screen but better. • client - server. 9

Slide 10

Slide 10 text

tmux basics • start: ~ tmux • list sessions: ~ tmux list-sessions • list connected clients: ~ tmux list-clients • attach: ~ tmux attach-session [-t session-number] available for Linux / Mac / Cygwin 10

Slide 11

Slide 11 text

tmux basics • Prefix: Ctrl-b • new window: Ctrl-b c • vertical pane split: Ctrl-b " • horizontal pane split: Ctrl-b % • move through panes: Ctrl-b arrows • detach: Ctrl-b d • help: Ctrl-b ? 11

Slide 12

Slide 12 text

Demooooo 12

Slide 13

Slide 13 text

a bit of magic teamocil

Slide 14

Slide 14 text

What is teamocil? simple tool used to automatically create sessions, windows and panes in tmux with YAML files. http://teamocil.com/ 14

Slide 15

Slide 15 text

teamocil basics ~ gem install teamocil ~ mkdir ~/.teamocil ~ teamocil --edit sample ~ tmux ~ teamocil sample 15

Slide 16

Slide 16 text

~/.teamocil/four.yml windows: - name: "four-panes" root: "~/Code/sample/www" layout: tiled panes: - cmd: "top" - cmd: "tail -f /var/log/apache2/error.log" - cmd: "tail -f /var/log/mail.log" - cmd: "ping google.com" 01. 02. 03. 04. 05. 06. 07. 08. 09. 16

Slide 17

Slide 17 text

live stuff

Slide 18

Slide 18 text

gracias. @AV4TAr 18

Slide 19

Slide 19 text

resources • tmux: Productive Mouse-Free Development - book • tmux Quick Start - youtube • http://teamocil.com/ • done with Showerjs 19