crussh/README.md

82 lines
2.6 KiB
Markdown
Raw Permalink Normal View History

2019-03-28 20:07:08 +00:00
# crussh: a modern cssh replacement
2024-03-05 10:44:57 +00:00
Available via [radicle](https://radicle.xyz/) at: `rad:z3BhWhapyVBzzuBicAyCcmMhv1yEe`
2012-03-14 23:45:41 +00:00
2019-03-28 20:07:08 +00:00
## What are this?
2012-03-14 23:45:41 +00:00
For anyone who needs to administrate clusters of many machines,
[clusterssh](http://sourceforge.net/projects/clusterssh/) has long been a
fallback for when the rest of your automation tools aren't working.
2019-03-28 20:07:08 +00:00
crussh aims to be a simple replacement for cssh with the following improvements:
2012-03-14 23:57:45 +00:00
2012-03-14 23:45:41 +00:00
- Uses a single window to hold multiple terminals.
- Intelligently tiles terminals to fit available window size.
- Scrolls available terminals when they don't all fit in-window.
2012-03-14 23:59:57 +00:00
- Never resizes a terminal smaller than 80x24 characters.
2012-03-14 23:45:41 +00:00
- Uses GTK and the VTE widget to provide modern, anti-aliased terminals.
2019-03-28 20:07:08 +00:00
## Install
2012-03-14 23:45:41 +00:00
The install process is very simple on most distros:
2019-06-02 12:51:06 +00:00
* Install python3 and python3-gi.
2019-03-28 20:07:08 +00:00
* Clone and symlink to your bin dir:
2012-12-10 20:20:06 +00:00
```bash
2014-05-23 22:46:13 +00:00
git clone https://github.com/nergdron/crussh.git
2019-06-02 12:51:06 +00:00
ln -s $(pwd)/crussh/crussh.py ~/bin/crussh
2012-12-10 20:20:06 +00:00
```
2012-12-10 20:15:33 +00:00
2019-03-28 20:07:08 +00:00
Run ```crussh HOST [HOST ...]```
## Examples
Basic usage is covered via the builtin help, which you can get by running
```crussh -h```. This section covers some common use cases.
To connect to a list of hosts in a file:
```bash
crussh $(cat hostlist.txt)
```
To use a custom login name, public key, or other SSH client options:
```bash
crussh -l someuser -i ~/.ssh/myotherkey -- host [host ...]
```
To do something other than ssh, such as edit a bunch of files in parallel:
```bash
crussh -e nano *.txt
```
2012-05-15 20:40:17 +00:00
2019-03-28 20:07:08 +00:00
## Usage Tips
2012-05-15 20:40:17 +00:00
2019-03-28 20:07:08 +00:00
Doing a clustered paste isn't completely obvious. The following methods will
work, after making sure you're clicked into the text entry box at the bottom of
the window:
2012-05-15 20:40:17 +00:00
- middle click or shift-insert to paste the X11 selection buffer.
- control-shift-v to paste the GTK/GNOME clipboard.
2012-03-14 23:45:41 +00:00
2019-03-28 20:07:08 +00:00
## Bugs & To Do
2012-03-15 00:52:52 +00:00
To see current issues, report problems, and see plans for features,
2014-05-23 22:46:13 +00:00
see the [crussh GitHub issues page](https://github.com/nergdron/crussh/issues).
2012-03-15 00:52:52 +00:00
2019-03-28 20:07:08 +00:00
## Copyright and License
2012-03-14 23:45:41 +00:00
2019-03-28 20:07:08 +00:00
crussh is copyright 2012-2019 by Tessa Nordgren <tessa@sudo.ca>.
2012-03-14 23:45:41 +00:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see the
[GNU licenses page](http://www.gnu.org/licenses/).