Autostart with SSH
Samuel Winchenbach <[email protected]>
| Newsgroups | gmane.comp.graphics.chromium.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I was wondering if it is possible to autostart crserver using SSH? I
currently have SSH setup with public/private key pairs so that no
password is needed. Below shows that SSH is working correctly, it shows
the config file I am trying to run, and it shows the output errors.
Thanks! Sam.
ssh2 node1 "bash -c 'LD_LIBRARY_PATH=/home/cluster/apps/cr-1.8/lib/Linux
/home/cluster/apps/cr-1.8/bin/Linux/crserver -mothership node0:10000' "&
[cluster@node0 bin]$ which ssh2
/usr/local/bin/ssh2
[cluster@node0 bin]$ ssh2 -h
ssh2: SSH Secure Shell 3.2.9.1 (non-commercial version) on i686-pc-linux-gnu
[cluster@node0 bin]$ ssh2 node1
Authentication successful.
Last login: Tue May 02 2006 14:26:21 -0400 from node0
No mail.
[cluster@node1 ~]$
#
# CONFIG FILE
#
#!/usr/bin/python
import string, sys, getopt
sys.path.append( "../server" )
from mothership import *
TILE_ROWS = 2
TILE_COLS = 3
TILE_WIDTH = 1024
TILE_HEIGHT = 768
SERVER_HOSTS=["node1", "node2", "node3", "node4", "node5", "node6"]
APP_HOST = "node0"
APP_PATH = "/home/cluster/apps/cr-1.8/bin/Linux"
LIB_PATH = "/home/cluster/apps/cr-1.8/lib/Linux"
APP = "depth_ser 400 10"
env = "LD_LIBRARY_PATH=" + LIB_PATH
prog = APP_PATH + "/crserver -mothership node0:10000"
cr = CR()
tilesortspu = SPU("tilesort")
appnode = CRApplicationNode(APP_HOST)
appnode.AddSPU(tilesortspu)
for row in range(TILE_ROWS):
for col in range(TILE_COLS):
index = row * TILE_COLS + col
host = SERVER_HOSTS[index]
render_spu = SPU( "render" )
render_spu.Conf( "window_geometry", [0, 0, TILE_WIDTH, TILE_HEIGHT] )
render_spu.Conf( "fullscreen", 1 )
servernode = CRNetworkNode( host )
servernode.AddTile( col * TILE_WIDTH, (TILE_ROWS - row - 1) *
TILE_HEIGHT, TILE_WIDTH, TILE_HEIGH
servernode.AddSPU( render_spu )
tilesortspu.AddServer( servernode, protocol="tcpip", port = 7000 +
index )
cr.AddNode( servernode )
servernode.AutoStart( ["/usr/local/bin/ssh2", host,
"/bin/sh -c '" + env + " " + prog + "'"] )
appnode.SetApplication( os.path.join(APP_PATH, APP) )
appnode.StartDir( APP_PATH )
cr.AddNode( appnode )
cr.MTU( 1024*1024 )
cr.Go()
#
# END CONFIG FILE
#
[cluster@node0 configs]$ python sams.conf&
[1] 3197
[cluster@node0 configs]$ This is Chromium, Version 1.8
Autostart for node node1: ['/usr/local/bin/ssh2', 'node1', "/bin/sh -c
'LD_LIBRARY_PATH=/home/cluster/apps/cr-1.8/lib/Linux
/home/cluster/apps/cr-1.8/bin/Linux/crserver -mothership node0:10000'"]
Autostart for node node2: ['/usr/local/bin/ssh2', 'node2', "/bin/sh -c
'LD_LIBRARY_PATH=/home/cluster/apps/cr-1.8/lib/Linux
/home/cluster/apps/cr-1.8/bin/Linux/crserver -mothership node0:10000'"]
Autostart for node node3: ['/usr/local/bin/ssh2', 'node3', "/bin/sh -c
'LD_LIBRARY_PATH=/home/cluster/apps/cr-1.8/lib/Linux
/home/cluster/apps/cr-1.8/bin/Linux/crserver -mothership node0:10000'"]
Autostart for node node4: ['/usr/local/bin/ssh2', 'node4', "/bin/sh -c
'LD_LIBRARY_PATH=/home/cluster/apps/cr-1.8/lib/Linux
/home/cluster/apps/cr-1.8/bin/Linux/crserver -mothership node0:10000'"]
Autostart for node node5: ['/usr/local/bin/ssh2', 'node5', "/bin/sh -c
'LD_LIBRARY_PATH=/home/cluster/apps/cr-1.8/lib/Linux
/home/cluster/apps/cr-1.8/bin/Linux/crserver -mothership node0:10000'"]
Autostart for node node6: ['/usr/local/bin/ssh2', 'node6', "/bin/sh -c
'LD_LIBRARY_PATH=/home/cluster/apps/cr-1.8/lib/Linux
/home/cluster/apps/cr-1.8/bin/Linux/crserver -mothership node0:10000'"]
Start a crappfaker on node0
Authentication successful.
Authentication successful.
Authentication successful.
/usr/X11R6/bin/xauth: error in locking authority file
/home/cluster/.Xauthoritywarning: X11 auth data does not match fake data.
warning: X11 auth data does not match fake data.
libGL error: XF86DRIAuthConnection failed
libGL error: reverting to (slow) indirect rendering
X connection to node6:10.0 broken (explicit kill or server shutdown).
libGL error: XF86DRIAuthConnection failed
libGL error: reverting to (slow) indirect rendering
Authentication successful.
Authentication successful.
/usr/X11R6/bin/xauth: error in locking authority file
/home/cluster/.Xauthoritywarning: X11 auth data does not match fake data.
warning: X11 auth data does not match fake data.
X connection to node2:10.0 broken (explicit kill or server shutdown).
libGL error: XF86DRIAuthConnection failed
libGL error: reverting to (slow) indirect rendering
Authentication successful.
libGL error: XF86DRIAuthConnection failed
libGL error: reverting to (slow) indirect rendering
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642