<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hello,<br><br>I'm using selenium rc for automated testing on a centos box.<br><br>working on the box itself has no problem as long as i start the server through terminal.<br><br>though if i wanted to run tests remotely i have a problem with firefox not knowing on  which display to run.<br><br>i have a vnc client running on port 1 (5801/5901)<br><br>I've tried the following:<br><br>export DISPLAY=1 ; java -jar selenium-server.jar > /opt/selenium/Logs/logs.txt # through ssh session though that didn't work<br><br><br>the only way to initiate it properly is to connect through vnc, open a terminal and type : java -jar $PWD/selenium-server.jar<br>though i don't know how to automate this.<br><br>so i thought of setting this in xstartup # vnc's startup for display 1<br><br>as such:<br><br><br>  1 #!/bin/sh<br>  2 <br>  3 # Uncomment the following two lines for normal desktop:<br>  4  unset SESSION_MANAGER<br>  5  exec /etc/X11/xinit/xinitrc<br>  6 while true ;do sh /opt/scripts/rc; done &<br>  7 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup<br>  8 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources<br>  9 xsetroot -solid grey<br> 10 vncconfig -iconic &<br> 11 xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &<br> 12 twm &<br><br>]# more /opt/scripts/rc<br>java -jar /opt/selenium/selenium-server.jar > /opt/selenium/Logs/logs.txt<br><br><br>Though that isn't working either, and still the firefox profile doesnt know where to start.<br><br>this is the error :<br><br><br>PHPUnit_Framework_Exception: Response from Selenium RC server for getNewBrowserSession(*firefox, http://www.test.com).<br>Failed to start new browser session: Error while launching browser.<br><br><br>any help to automate the startup on display 1 would be greatly appreciated<br><br>                                       </body>
</html>