Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
showtell:show_tell2014 [2014-04-07 01:07]
xro
showtell:show_tell2014 [2015-09-22 22:16] (current)
xro ↷ Page moved from show_tell2014 to showtell:show_tell2014
Line 71: Line 71:
 =====Backup Titanpad===== =====Backup Titanpad=====
  
-<markdown>+http://​guckes.titanpad.com/​24 
 + 
 +<file - guckes_showtell2014graz.txt>
 = Event = = Event =
  
Line 274: Line 276:
  
 EOF EOF
 +</​file>​
  
-</​markdown>​ 
  
 +==== Backup von Tmux Show+Tell ====
 +
 +http://​guckes.titanpad.com/​25
 +
 +<file - guckes_tmux2014graz.txt>​
 += Problem =
 +
 +screen is old, there are no updates.
 +tmux has a vivid community.
 +so.. how to switch from screen to tmux?
 +
 += Log =
 +
 +Tmux at first glance: ​ once I understood how to use commands in a running session it started to be real fun!  Splitting a window into so called panes (C-b " for horizontal split or C-b % for vertical) is cool, and then you move/resize panes either using keys or mouse! ​ The latter requires options "​mouse-resize-pane"​ and "​mouse-select-pane"​ which I set in my .tmux.conf (see link below).
 +
 +(And here I noticed that I still don't know how to select text using the mouse in tmux) ... looks like one has to decide if the mouse can be used to select/​resize windows/​panes or if it can be used to select text.  Would be nice if I were wrong on this one.
 +
 += Links =
 +
 +TMUX - Terminal MUltipleXer
 +TMUX 0.6 [2009-01-17]
 +Nicholas Marriott <​nicm(at)users.sf.net>​
 +home:   ​http://​tmux.sourceforge.net/​
 +        http://​sf.net/​projects/​tmux
 +wiki:   ​http://​en.wikipedia.org/​wiki/​Tmux
 +mail:   ​tmux-users@lists.sf.net
 +irc:    irc.freenode.net/​tmux
 +book:   ​http://​pragprog.com/​book/​bhtmux/​tmux
 +ChangeLog: https://​sourceforge.net/​p/​tmux/​tmux-code/​ci/​master/​tree/​CHANGES
 +
 += HowTos =
 +
 +[2010-06-28 by Cody]
 +http://​blog.hawkhost.com/​2010/​06/​28/​tmux-the-terminal-multiplexer/​
 +
 += Setup Files =
 +
 +http://​www.guckes.net/​Setup/​screenrc
 +this also contains some of the problems i had with screen.
 +(Sven Guckes)
 +
 +Sven Guckes (aka SvenG):
 +http://​www.guckes.net/​Setup/​tmux.conf
 +
 +Jogi Hofmueller (aka Thesix):
 +http://​hofos.at/​configs/​tmux.conf
 +
 +Bernhard (ak Xro):
 +https://​www.tittelbach.at/​files/​.tmux.conf
 +Features:
 +- some keybindings like screen (Ctrl-a)
 +- j: join-pane
 +- K: kill-pane mit nachfrage
 +- \: kill-session mt nachfrage
 +- B: fenster ineine background session verschieben
 +- R: config reload
 +- space: next windows
 +- backspace: previous window
 +- tab: next-pane
 +- |: als intuitive alternative to horizontal split mit cmd
 +- -: als intuitive alternative to vertical split mit cmd nachfrage
 +- h: layout der panes ändern
 +- coole statusleiste die auch das grml default geworden ist :-)
 +
 +
 +http://​www.linuxwiki.de/​tmux
 +an old attempt to describe tmux
 +by Sven Guckes and Anselm Helbig
 +[latest change on 2010-08-01]
 +
 += Features =
 +
 +== automatic terminal resize ==
 +1. öffne ein terminal
 +2. starte eine tmux session: tmux new-session -s twotermsession
 +3. öffne ein zweites terminal
 +4. attache die selbe tmux session: tmux attach-session -t twotermsession
 +5. ändere die größe des terminalfensters
 +6. schau zu wie tmux die session automatisch auf das kleinere fenster anpasst
 +7. schließe das kleinere terminalfenster
 +8. schau zu wie tmux automatisch die größere ann die neue kleineste terminal größe anpasst
 +
 += Key Bindings =
 + * w   menu with all windows
 + * s   ​tree-menu with all sessions and their windows
 + * #   list all paste buffers (everything you ever copied)
 + * %   split vertical
 + * " ​  split horizontal
 + * !   break two panes into separate windows
 + * h   ​change layout of panes
 +
 +
 +== tmux commandos ==
 + * werden zur Konfiguration in ~/​.tmux.conf verwendet
 + * können, genau gleich, mit <​prefix-key>:​ auf der tmux CL eingegeben werden
 + * können aus der shell als argument zu '​tmux'​ angegeben werden in welchem Fall man z.b. volle zsh shell completion hat und sie auf das aktuelle Fenster wirken
 + * in jedem der drei Fälle schreiben sich die Commandos exakt gleich
 + * die meisten Commandos nehmen die Standardargumente ​
 +   * -s für quell session:​fenster
 +   * -t für ziel session:​fenster
 +   * new-session -s <name der neuen session> da sie eine neue quelle ist
 +
 +== Fenster zwischen Sessions verschieben / teilen ==
 + * das aktuelle Fenster in eine andere (oder die selbe) Session linken: link-window -t <target session>
 + * das aktuelle Fenster in eine andere Session verschieben (oder einen anderen Platz in der aktuellen Session): move-window -t <​target-session>​
 + * Shortcut dafür festlegen in der config, z.b. C-b O um in die session "​bg"​ zu verschieben: ​
 +    bind-key B move-windows -t bg
 +
 +Noch besser, session "​bg"​ bei Bedarf erst anlegen:
 + * bind-key B if-shell "! tmux has-session -t bg" "​new-session -d -s bg" \; move-window -t bg
 +
 +
 +
 += Tipps =
 +
 +== immer die selbe tmux session attachen/​wiederherstellen ==
 +#> tmux has-session -t guakesession && {exec tmux attach-session -t guakesession || exec zsh} || exec tmux new-session -s guakesession
 +
 +
 += Manual =
 +
 +NAME                ​
 +SYNOPSIS ​           ​
 +DESCRIPTION ​        
 +KEY BINDINGS ​       ​
 +COMMANDS ​           ​
 +CLIENTS AND SESSIONS
 +WINDOWS AND PANES   
 +KEY BINDINGS ​       ​
 +OPTIONS ​            
 +FORMATS ​            
 +NAMES AND TITLES ​   ​
 +ENVIRONMENT ​        
 +STATUS LINE         
 +BUFFERS ​            
 +MISCELLANEOUS ​      
 +TERMINFO EXTENSIONS ​
 +FILES               
 +EXAMPLES ​           ​
 +SEE ALSO            ​
 +AUTHORS ​            
 +BSD                 
 +
 += FILES =
 +
 +     ​~/​.tmux.conf ​      ​Default tmux configuration file.
 +     /​etc/​tmux.conf ​    ​System-wide configuration file.
 +
 +EOF
 +</​file>​
  
 ---- ----
-{{tag>​workshop}}+{{tag>​workshop ​show+tell}}
realraum Graz, Brockmanngasse 15, 8010 Graz, realraum - Verein für Technik in Kultur und Gesellschaft
  • /var/lib/dokuwiki/data/attic/showtell/show_tell2014.1396825628.txt.gz
  • Last modified: 2014-04-07 01:07
  • by xro