Project

wemux-pair

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Firewall punching remote pairing with wemux made easy
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 0.9
~> 10.1
~> 2.14

Runtime

~> 1.6
 Project Readme

Wemux::Pair Gem Version Build Status

Firewall-punching remote pairing with wemux made easy

Wemux::Pair allows two users to collaborate within the same terminal session via ssh.

Requirements

  • Have a box that is accessible to both users via ssh.
  • wemux should be installed on the host.

Installation

Add this line to your application's Gemfile:

gem 'wemux-pair'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wemux-pair

First time set up for hosts (assuming OSX)

'Host' refers to the computer that initiates the wemux session and 'client' refers to the computer that joins the session.

  1. Create a pairprogramming user.

  2. Give that user remote login access via System Preferences>Sharing>Remote Login

  3. Add client's ssh keys to ~pairprogramming/.ssh/authorized_keys

  4. In ~pairprogramming/.bash_profile should be: wemux attach; exit

  5. Ensure your user is in the host_list in /usr/local/etc/wemux.conf, e.g.

     host_list=(yourusername)
    

Note: If wemux was installed via Homebrew, the host_list is often misconfigured by default.

Usage

Generate .pair.yml configuration, run $ pair --init

Print Usage: $ pair --help

Host: Start a wemux session

Then run $ pair host

Client: Ensure you're not in a wemux/tmux session

Run $ pair <host port>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b feature/my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/my-new-feature)
  5. Create new Pull Request