Log in

HCMC Journal

CSSH (now tmux-cssh) and upyeros

: Greg Newton
Minutes: 60

Trying to resolve an issue earlier caused me to try using CSSH. Problems ensued

Checking up on a script I use to make quick changes to the lab machines (called upyeros) I noticed that it was a bit borked - I hadn’t updated it to reflect changes in the way apt uses certs.

To fix it I needed to either rebuild a package and roll it out or change 2 lines of the script.

To edit the file on all lab machines I wanted to use CSSH, but discovered it doesn’t work under Wayland. This will become a bigger problem when X is gone. Fortunately I discovered a project called tmux-cssh that build on tmux to create a curses-based replica of CSSH.

Here’s how I set things up:

  1. Install tmux
  2. Acquire tmux-cssh bash script
  3. Put tmux-cssh in your $PATH
  4. Create a ~/.tmux.conf file with the following content:
    bind-key = set-window-option synchronize-panes
    setw -g mouse on
  5. Run source ~/.tmux.conf (ignore Command setw not found warning if you see it)
  6. Assuming you have a ~/.clusterssh/clusters file, run tmux-cssh hcmclabmachines, where hcmclabmachines is the name you gave your cluster in the ~/.clusterssh/clusters file
  7. NOTES:
    * You can use your mouse to select individual panes
    * Use ctrl+b followed by the space key to cycle through various layouts