Changeset 429


Ignore:
Timestamp:
Nov 25, 2019, 3:34:24 PM (4 years ago)
Author:
g7moreau
Message:
  • Better doc, better tag and description package
Location:
trunk/tssh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tssh/make-package-debian

    r420 r429  
    3838Package: ${PKG_NAME}
    3939Version: ${CODE_VERSION}-${PKG_VERSION}
    40 Section: utils
    41 Tag: implemented-in::bash, interface::commandline, role::program
     40Section: admin
     41Tag: admin::cluster, implemented-in::bash, interface::commandline, interface::text-mode, network::client, protocol::ssh, role::program, use::login
    4242Priority: optional
    43 Depends: tmux, openssh-client, ncurses-bin, findutils, grep
     43Depends: tmux, openssh-client, ncurses-bin, findutils, grep, wamerican | wfrench
    4444Suggests: nmap, parallel
    4545Architecture: all
    4646Installed-Size: $(du -ks ${tmp_folder}|cut -f 1)
    4747Maintainer: Gabriel Moreau <Gabriel.Moreau@univ-grenoble-alpes.fr>
    48 Description: tmux cluster ssh
     48Description: administer multiple ssh shells simultaneously with tmux
    4949 tssh is an acronym for tmux ssh.
    5050 In practise, tssh is an ncurve version of cluster-ssh.
    5151 It has been used in the LEGI laboratory for over 5 years.
    52  tssh is a small tool to luanch command over many computers.
     52 tssh is a small tool to launch command over many computers.
     53 It allows you to control multiple ssh sessions from a single input window.
     54 You can also configure clusters of machines for easy invocation
     55 and interact with individual terminal windows during a session.
    5356 .
    5457 The tool is quite effective and tries to keep things simple.
     
    7477echo "( cd /srv/www/debian/ ; reprepro includedeb jessie   ~/jessie/${PKG_NAME}_${CODE_VERSION}-${PKG_VERSION}_all.deb )"
    7578echo "( cd /srv/www/debian/ ; reprepro includedeb stretch ~/stretch/${PKG_NAME}_${CODE_VERSION}-${PKG_VERSION}_all.deb )"
     79echo "( cd /srv/www/debian/ ; reprepro includedeb buster   ~/buster/${PKG_NAME}_${CODE_VERSION}-${PKG_VERSION}_all.deb )"
    7680echo "( cd /srv/www/debian/ ; reprepro dumpreferences ) | grep -i tssh"
  • trunk/tssh/tssh

    r428 r429  
    1111export LANG=C
    1212
    13 VERSION='0.3.1'
     13VERSION='0.3.2'
    1414
    1515function usage() {
     
    297297 tssh [-w number] [-f] [-v] [-h] [-p] [-d delay_time] [-c remote_cmd] [-o ssh_option] <host1> <host2> <clusterssh class>... <hostM>- <hostN>+
    298298
    299 =head1 OPTIONS
    300 
    301 =head2 C<-w number>
    302 
    303 Windows to open (integer, default 16)
    304 
    305 =head2 C<-o ssh_option>
    306 
    307 Option to pass to ssh
    308 
    309 =head2 C<-f>
    310 
    311 Fast, no nmap scan to eliminate sleeping computer
    312 
    313 =head2 C<-d delay_time>
    314 
    315 When use C<tmux> context,
    316 add a small delay in second before lauching the second shell
    317 to let C<tmux> the time to open the window (default 0.8).
    318 
    319 =head2 C<-c remote_cmd>
    320 
    321 Launch the remote command on hosts and exit
    322 
    323 =head2 C<-p>
    324 
    325 Launch in parallel (only with option C<-c>) with command parallel or xargs
    326 
    327 =head2 C<-v>
    328 
    329 Verbose
    330 
    331 =head2 C<-h>
    332 
    333 Minimal help
    334 
    335 
    336 
    337299=head1 DESCRIPTION
    338300
     
    347309A host or a class can be remove from the list with a dash append
    348310and force to be in this one with a plus append.
    349 Example with the cluster ssh config below:
    350 
    351  tssh all team- node005 laptop04+
    352 
    353 Is equivalent to:
    354 
    355  tssh srv-mail srv-dns srv-imap srv-web srv-proxy \\
    356    node001 node002 node003 node004 \\
    357    node101 node102 node103 node104 \\
    358    node005 laptop04
     311
     312See some L<Example> below.
    359313
    360314The control command for C<tmux> is C<Ctrl^b>.
     
    362316and move between machine with C<Ctrl^b ArrowKey>.
    363317
    364 =head1 DEPENDS
    365 
    366 On Debian, you need the package
    367 
    368  apt-get install tmux ncurses-bin wamerican nmap
    369 
    370 C<wamerican> (or C<wfrench>...) is used to choose a random word in the file F</usr/share/dict/words>
    371 for each new tmux session.
    372 
    373 C<ncurses-bin> is required for the C<tput> command
    374 to automatically split your terminal into several small panels.
    375 C<nmap> is only used for dynamic DNS domain and dynamic scan.
    376 This is not mandatory for general use.
    377 
    378 By default, C<tssh> use C<tput> to know the number of columns and lines of your terminal.
    379 It takes 10 lines and 40 columns for each windows by default.
    380 If C<tput> is not installed, the default is 16 windows...
     318
     319=head1 OPTIONS
     320
     321=head2 C<-w number>
     322
     323Windows to open (integer, default 16)
     324
     325=head2 C<-o ssh_option>
     326
     327Option to pass to ssh
     328
     329=head2 C<-f>
     330
     331Fast, no nmap scan to eliminate sleeping computer
     332
     333=head2 C<-d delay_time>
     334
     335When use C<tmux> context,
     336add a small delay in second before lauching the second shell
     337to let C<tmux> the time to open the window (default 0.8).
     338
     339=head2 C<-c remote_cmd>
     340
     341Launch the remote command on hosts and exit
     342
     343=head2 C<-p>
     344
     345Launch in parallel (only with option C<-c>) with command parallel or xargs
     346
     347=head2 C<-v>
     348
     349Verbose
     350
     351=head2 C<-h>
     352
     353Minimal help
     354
    381355
    382356=head1 CONFIGURATION
     
    433407
    434408
     409=head1 EXAMPLES
     410
     411=over
     412
     413=item * Example with the cluster ssh config above:
     414
     415 tssh all team- node005 laptop04+
     416
     417Is equivalent to:
     418
     419 tssh srv-mail srv-dns srv-imap srv-web srv-proxy \\
     420   node001 node002 node003 node004 \\
     421   node101 node102 node103 node104 \\
     422   node005 laptop04
     423
     424=item * Batch mode with C<tmux>
     425
     426 tssh -c 'sudo apt-get update' all team
     427
     428=item * Batch mode with C<parallel> or C<xargs> (without C<tmux>)
     429
     430 tssh -c 'sudo apt-get update' -p all team
     431
     432=item * Connexion without the ssh key
     433
     434 tssh -o '-F /dev/null' all team
     435
     436=back
     437
     438
     439=head1 DEPENDS
     440
     441On Debian, you need the package
     442
     443 apt-get install tmux ncurses-bin wamerican nmap
     444
     445C<wamerican> (or C<wfrench>...) is used to choose a random word in the file F</usr/share/dict/words>
     446for each new tmux session.
     447
     448C<ncurses-bin> is required for the C<tput> command
     449to automatically split your terminal into several small panels.
     450C<nmap> is only used for dynamic DNS domain and dynamic scan.
     451This is not mandatory for general use.
     452
     453By default, C<tssh> use C<tput> to know the number of columns and lines of your terminal.
     454It takes 10 lines and 40 columns for each windows by default.
     455If C<tput> is not installed, the default is 16 windows...
     456
    435457
    436458=head1 SEE ALSO
     
    447469
    448470=item * L<SVN repository|http://servforge.legi.grenoble-inp.fr/svn/soft-trokata/trunk/tssh>
     471
     472=item * L<Download package (Debian)|http://servforge.legi.grenoble-inp.fr/pub/soft-trokata/tssh/download/>
    449473
    450474=back
Note: See TracChangeset for help on using the changeset viewer.