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:
- Install tmux
- Acquire tmux-cssh bash script
- Put tmux-cssh in your $PATH
- Create a ~/.tmux.conf file with the following content:
        bind-key = set-window-option synchronize-panes setw -g mouse on 
- Run source ~/.tmux.conf(ignoreCommand setw not foundwarning if you see it)
- 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
- NOTES:
 * You can use your mouse to select individual panes
 * Use ctrl+b followed by the space key to cycle through various layouts