A subscription is required to view this video. Enroll Today

Electives

Remote Pairing with tmux

  • flaviu
  • 2252 views

Pair programming is way to escape rabbit holes and improve code quality through dual thinking and error checking. If you can't be in the same location tmux is a great solution to pair program remotely.

Comments

Melinda Jackson said

Flaviu! So glad to see this screencast... and a familiar face. Good work. I can't wait to try it out one Friday afternoon with my team. Sweet!

Keith Adkins said

If you are just sharing terminal sessions, byobu seems to do a lot of what this does, but with the added benefit that it is also a screen session. F2 creates new windows, F3 cycles through them, F6 detaches, others can ssh into the box and attach to your sessions, etc. Next time you are in a Ubuntu box (byobu is installed by default).. just type byobu and hit F9 for some config options... And you can always use screen for the same thing.

Geostellar said

I find that tmux is insufficient for pairing on a real-world project, especially a web-based one. In my workflow, I typically have multiple terminal sessions (one for a Rails server, one for a Rails console, and one for actually running commands), and at least two browser tabs open (one for the app, the other for Google). One of the biggest limitations of tmux is that it only allows text-based interaction. That throws browser sharing out the window, and since it is one of the most important pieces of my workflow, I can't live with that. Enter join.me. I've found that the free version of join.me is perfect for pair programming, as it allows voice and screen sharing with full control sharing. We've worked successfully with this setup for more than a year, and have little gripes.

Luc said

Great screencast! I'll be trying out tmux very soon and this was a great introduction.

42 Dev Team said

That was great. We're trying to work more paired programming session into our code review / team processes and this could be a very useful way to do it. Plus, now I finally can see a use for tmux!

Faculty

Flaviu Simihaian said

HUSSEINMORSY, 1. I typically have one username. However, authentication is done via their public/private key. So adding their key to the ~/.ssh/authorized_keys file will let them in without a password.

  1. on the server, there's only one vim, so we both have to use the same settings. It is best not to get to crazy with plugins to level the learning curve. I just install Janus (https://github.com/carlhuda/janus/) and that typically has everything we need.

Hussein Morsy said

Thanks for the great screencast. I have 2 questions 1. If you login into the server. Do both user login with the same username ? 2. How to you handle the problem, that eventually each user has very different vim settings.

Dan Kissell said

Thanks for the screencast! I'd love to see another one with more detail regarding your or others tmux workflow. Thanks again.

Download

Share