ReferencePlatforms/UnitTestOnly/Ubuntu: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
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
  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 &
*/5 * * * * /builds/slave/start.sh
</pre>
</pre>
And disable X from starting automatically
And disable X from starting automatically
Confirmed users
1,377

edits

Navigation menu