Changeset 429
- Timestamp:
- Nov 25, 2019, 3:34:24 PM (5 years ago)
- Location:
- trunk/tssh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tssh/make-package-debian
r420 r429 38 38 Package: ${PKG_NAME} 39 39 Version: ${CODE_VERSION}-${PKG_VERSION} 40 Section: utils41 Tag: implemented-in::bash, interface::commandline, role::program40 Section: admin 41 Tag: admin::cluster, implemented-in::bash, interface::commandline, interface::text-mode, network::client, protocol::ssh, role::program, use::login 42 42 Priority: optional 43 Depends: tmux, openssh-client, ncurses-bin, findutils, grep 43 Depends: tmux, openssh-client, ncurses-bin, findutils, grep, wamerican | wfrench 44 44 Suggests: nmap, parallel 45 45 Architecture: all 46 46 Installed-Size: $(du -ks ${tmp_folder}|cut -f 1) 47 47 Maintainer: Gabriel Moreau <Gabriel.Moreau@univ-grenoble-alpes.fr> 48 Description: tmux cluster ssh48 Description: administer multiple ssh shells simultaneously with tmux 49 49 tssh is an acronym for tmux ssh. 50 50 In practise, tssh is an ncurve version of cluster-ssh. 51 51 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. 53 56 . 54 57 The tool is quite effective and tries to keep things simple. … … 74 77 echo "( cd /srv/www/debian/ ; reprepro includedeb jessie ~/jessie/${PKG_NAME}_${CODE_VERSION}-${PKG_VERSION}_all.deb )" 75 78 echo "( cd /srv/www/debian/ ; reprepro includedeb stretch ~/stretch/${PKG_NAME}_${CODE_VERSION}-${PKG_VERSION}_all.deb )" 79 echo "( cd /srv/www/debian/ ; reprepro includedeb buster ~/buster/${PKG_NAME}_${CODE_VERSION}-${PKG_VERSION}_all.deb )" 76 80 echo "( cd /srv/www/debian/ ; reprepro dumpreferences ) | grep -i tssh" -
trunk/tssh/tssh
r428 r429 11 11 export LANG=C 12 12 13 VERSION='0.3. 1'13 VERSION='0.3.2' 14 14 15 15 function usage() { … … 297 297 tssh [-w number] [-f] [-v] [-h] [-p] [-d delay_time] [-c remote_cmd] [-o ssh_option] <host1> <host2> <clusterssh class>... <hostM>- <hostN>+ 298 298 299 =head1 OPTIONS300 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 ssh308 309 =head2 C<-f>310 311 Fast, no nmap scan to eliminate sleeping computer312 313 =head2 C<-d delay_time>314 315 When use C<tmux> context,316 add a small delay in second before lauching the second shell317 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 exit322 323 =head2 C<-p>324 325 Launch in parallel (only with option C<-c>) with command parallel or xargs326 327 =head2 C<-v>328 329 Verbose330 331 =head2 C<-h>332 333 Minimal help334 335 336 337 299 =head1 DESCRIPTION 338 300 … … 347 309 A host or a class can be remove from the list with a dash append 348 310 and 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 312 See some L<Example> below. 359 313 360 314 The control command for C<tmux> is C<Ctrl^b>. … … 362 316 and move between machine with C<Ctrl^b ArrowKey>. 363 317 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 323 Windows to open (integer, default 16) 324 325 =head2 C<-o ssh_option> 326 327 Option to pass to ssh 328 329 =head2 C<-f> 330 331 Fast, no nmap scan to eliminate sleeping computer 332 333 =head2 C<-d delay_time> 334 335 When use C<tmux> context, 336 add a small delay in second before lauching the second shell 337 to let C<tmux> the time to open the window (default 0.8). 338 339 =head2 C<-c remote_cmd> 340 341 Launch the remote command on hosts and exit 342 343 =head2 C<-p> 344 345 Launch in parallel (only with option C<-c>) with command parallel or xargs 346 347 =head2 C<-v> 348 349 Verbose 350 351 =head2 C<-h> 352 353 Minimal help 354 381 355 382 356 =head1 CONFIGURATION … … 433 407 434 408 409 =head1 EXAMPLES 410 411 =over 412 413 =item * Example with the cluster ssh config above: 414 415 tssh all team- node005 laptop04+ 416 417 Is 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 441 On Debian, you need the package 442 443 apt-get install tmux ncurses-bin wamerican nmap 444 445 C<wamerican> (or C<wfrench>...) is used to choose a random word in the file F</usr/share/dict/words> 446 for each new tmux session. 447 448 C<ncurses-bin> is required for the C<tput> command 449 to automatically split your terminal into several small panels. 450 C<nmap> is only used for dynamic DNS domain and dynamic scan. 451 This is not mandatory for general use. 452 453 By default, C<tssh> use C<tput> to know the number of columns and lines of your terminal. 454 It takes 10 lines and 40 columns for each windows by default. 455 If C<tput> is not installed, the default is 16 windows... 456 435 457 436 458 =head1 SEE ALSO … … 447 469 448 470 =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/> 449 473 450 474 =back
Note: See TracChangeset
for help on using the changeset viewer.