ReferencePlatforms/UnitTestOnly/Ubuntu: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (→Create Slave) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
Enable Vino (System->Preference->Remote Desktop) to connect with a password and no confirmation. | Enable Vino (System->Preference->Remote Desktop) to connect with a password and no confirmation. | ||
=Set up Xvfb= | =Autostart buildbot= | ||
Put this script into <code>/builds/slave/start.sh</code> | |||
<pre>#!/bin/sh | |||
if [ ! -f /builds/slave/twistd.pid ] ; then | |||
echo Starting buildbot | |||
/usr/local/bin/buildbot start /builds/slave/ | |||
fi</pre> | |||
and make it executable <code>chmod +x /builds/slave/start.sh</code> | |||
=Set up Xvfb and start.sh= | |||
<pre> | <pre> | ||
# Make sure Xvfb is running on :2 | # Make sure Xvfb is running on :2 | ||
Line 14: | Line 23: | ||
@reboot ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace & | @reboot ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace & | ||
*/5 * * * * ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace & | */5 * * * * ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace & | ||
# Make sure buildbot is always running | |||
*/5 * * * * /builds/slave/start.sh | |||
</pre> | </pre> | ||
And disable X from starting automatically | |||
sudo update-rc.d -f gdm remove | |||
=Update All Packages= | =Update All Packages= | ||
Line 23: | Line 37: | ||
sudo apt-get install mercurial | sudo apt-get install mercurial | ||
sudo apt-get install python-twisted | sudo apt-get install python-twisted | ||
sudo apt-get install ssh | |||
sudo apt-get install xvfb | |||
=Install Mozilla Packages= | =Install Mozilla Packages= | ||
Line 37: | Line 53: | ||
buildbot create-slave slave 10.250.48.137:9989 <host> <password> | buildbot create-slave slave 10.250.48.137:9989 <host> <password> | ||
buildbot start slave | buildbot start slave | ||
=Get CPU info= | |||
uname -a > /builds/slave/info/host | |||
cat /proc/cpuinfo >> /builds/slave/info/host |
Latest revision as of 23:30, 18 November 2009
Install OS
Install from the Ubuntu 9.04 32bit live cd image
Configure OS
Enable Vino (System->Preference->Remote Desktop) to connect with a password and no confirmation.
Autostart buildbot
Put this script into /builds/slave/start.sh
#!/bin/sh if [ ! -f /builds/slave/twistd.pid ] ; then echo Starting buildbot /usr/local/bin/buildbot start /builds/slave/ fi
and make it executable chmod +x /builds/slave/start.sh
Set up Xvfb and start.sh
# Make sure Xvfb is running on :2 @reboot ps -C Xvfb | grep -q Xvfb || exec Xvfb :2 -screen 0 1280x1024x24 & */5 * * * * ps -C Xvfb | grep -q Xvfb || exec Xvfb :2 -screen 0 1280x1024x24 & # Make sure metacity is running on :2 @reboot ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace & */5 * * * * ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace & # Make sure buildbot is always running */5 * * * * /builds/slave/start.sh
And disable X from starting automatically
sudo update-rc.d -f gdm remove
Update All Packages
sudo apt-get distupgrade
Existing machines where updated "Tue Nov 3 11:34:47 PST 2009"
Install Ubuntu packages
sudo apt-get install mercurial sudo apt-get install python-twisted sudo apt-get install ssh sudo apt-get install xvfb
Install Mozilla Packages
cd ~ hg clone http://hg.mozilla.org/build/buildbot cd buildbot python setup.py build sudo python setup.py install
Create Slave
sudo mkdir /builds sudo chown cltbld:cltbld /builds cd /builds buildbot create-slave slave 10.250.48.137:9989 <host> <password> buildbot start slave
Get CPU info
uname -a > /builds/slave/info/host cat /proc/cpuinfo >> /builds/slave/info/host