<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Dylan Northrup" <ale@doc-x.net><br><b>To: </b>"Atlanta Linux Enthusiasts" <ale@ale.org><br><b>Sent: </b>Wednesday, September 14, 2016 10:42:12 AM<br><b>Subject: </b>Re: [ale] Tmux, where have you been alll my life?<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 14, 2016 at 8:28 AM, James Sumners <span dir="ltr"><<a href="mailto:james.sumners@gmail.com" target="_blank" data-mce-href="mailto:james.sumners@gmail.com">james.sumners@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;" data-mce-style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">In general, it's nice to have a multiplexer so that work can simply be resumed when moving from one computer to another. They also offer much greater flexibility over a single connection and a single terminal window.<span class="gmail-HOEnZb"><span color="#888888" data-mce-style="color: #888888;" style="color: #888888;"><br></span></span></div></div></blockquote></div><div class="gmail_extra"><br></div>Even if connections don't fail, I am not always working from the same host. James gets it exactly right for my use case. With tmux, I can encapsulate context around a specific task by having multiple windows (or panes in those windows) for a task. Tmux also lets me attach to the same session from multiple bash shells so I can move things around based on what I need to focus on with a keystroke instead of having to move a mouse or move windows.</div></div></blockquote><div><br></div><div>Can you explain a bit more. I know you can use tmux to connect to a socket. I could SSH into my desktop from anywhere and connect to its socket.</div><div><br data-mce-bogus="1"></div><div>I install devices in the field and redirect output to different VTs. I could just start a tmux session as root, spawn programs to get and display the output instead? Is it possible to latch onto /dev/console?</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">My work setup has four monitors that regularly have ssh sessions up on them. With tmux, I can move the current activity to the "primary" monitor and have others for referencing log files, man pages, running compiles, etc. that are related to what I'm doing on the primary window. Then, when I need to reconnect from home, I can do the same thing (albeit with fewer monitors) and have the current activity on one monitor and reference information on the other. And I don't need to reconnect to various hosts, re-run session commands, etc.</div><div class="gmail_extra"><br></div><div class="gmail_extra">But, for me, the killer app for tmux is being able to do something akin to csshX inside a terminal without having to install anything on the box I'm sitting at other than an ssh client. Being able to run 'mwin {web,app,db}host-{dev,ref,prod}{1,2}' and get an ssh session on 14 systems with multiplexed input to be able to work on all of them at the same time to be able to tweak a config, trigger chef/puppet, deploy a security patch, etc. is amazing.</div></div></blockquote><div><br></div><div>If you are on a system that has ssh client you'll just ssh to a remove system and execute tmux? </div><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">As far as "what is the tmux command to do X?" "C-b ?" is your friend (or, for folks like me who remap C-b to C-a, "C-a ?"). If anyone is interested in my tmux configurations (and helper scripts like 'mwin' listed above), I have them in <a href="https://github.com/dylannorthrup/dotfiles/" target="_blank" data-mce-href="https://github.com/dylannorthrup/dotfiles/">https://github.com/dylannorthrup/dotfiles/</a> . My .tmux.conf is in the top level, helper scripts are under ~/.tmux and 'mwin' is under ~/bin. Happy to answer any questions folks might have.<br clear="all"></div></div></blockquote><div><br></div><div>I'm curious about your setup I'll check your .dotfiles.</div><div><br data-mce-bogus="1"></div><div><br></div></div></div></body></html>