wget http://release.seleniumhq.org/selenium-grid/selenium-grid-1.0.4-bin.tar.bz2
2. unpack / tar download
tar jxf selenium-grid-1.0.4-bin.tar.bz2
3. copy to location you like, e.g. /opt
cp -R selenium-grid-1.0.4 /opt/
4. check, if java and ant are installed correct
cd /opt/selenium-grid-1.0.4/
ant sanity-check
5. start selenium hub on default-Port 4444
ant launch-hub
6. shutdown
wget --post-data action=shutdown action=shutdown http://localhost:4444/lifecycle-manager
7. make an init-script (/etc/init.d/selenium-hub)
#!/bin/sh
# Selenium Grid init-Script
SELENIUM_HOME="/opt/selenium-grid-1.0.4"
case $1 in
start)
echo "starting Selenium Grid"
cd $SELENIUM_HOME
`ant launch-hub` &
;;
stop)
echo "stopping Selenium Grid"
wget --post-data action=shutdown action=shutdown http://localhost:4444/lifecycle-manager > /dev/null 2>&1
;;
restart)
echo "stopping Selenium Grid"
wget --post-data action=shutdown action=shutdown http://localhost:4444/lifecycle-manager > /dev/null 2>&1
echo "starting Selenium Grid"
cd $SELENIUM_HOME
`ant launch-hub` &
;;
esac
8. register it to default runlevels
update-rc.d selenium-hub defaults
9. Upgrade to newer version:
- repeat steps 1-3 with actual version
- edit SELENIUM_HOME in /etc/init.d/selenium-hub
/etc/init.d/selenium-hub restart