apt-get on many hosts with clusterssh 
Clusterssh opens for each connection a xterm and sends a keystroke to each window.

You can also work in only one xterm.

#> apt-get install clusterssh

I use approxd for caching .deb's using port 9999. This port is not reachable by all my hosts,
therefore i use remote port forwarding from ssh.

I can type

#> cssh -o "-R9999:approxy:9999" host1 host2 host3

or create a default config

#> cssh -u > $HOME/.csshrc

You can define different clusters aliases. Each alias consists of some hosts:
clusters = apt mon
apt = host1 host2 host3
ssh_args= -x -o ConnectTimeout=10 -R9999:approxy:9999
now i only type

#> cssh apt


a small patch makes "retile windows" working for me:

--- ClusterSSH.pm.orig 2010-09-27 13:23:02.561375883 +0200
+++ /usr/share/perl5/App/ClusterSSH.pm 2010-09-27 13:09:27.011375882 +0200
@@ -1319,7 +1319,7 @@
logmsg( 3,
"x:$current_x y:$current_y, r:$current_row c:$current_col" );

- $xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );
+# $xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );

if ( $config{unmap_on_redraw} =~ /yes/i ) {
$xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );



[ view entry ] ( 905 views )   |  print article

<<First <Back | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Next> Last>>