ReferencePlatforms/Test/Linux

From MozillaWiki
Jump to navigation Jump to search

Configuration Details

Ubuntu 7.04 'Desktop" install

Configuration Changes

/etc/X11/xorg.conf: Add the following two lines to the "Monitor" section:

HorizSync 30-81
VertRefresh 56-60

In the "Screen" section use the following options (removing/replacing old options):

DefaultDepth 24
SubSection "Display"
  Depth 24
  Modes "1280x1024" "1024x768"
EndSubSection

/etc/gdm/gdm.conf:

AutomaticLoginEnable=true
AutomaticLogin=mozqa

Make sure to restart gdm to pick up the changes:

sudo /etc/init.d/gdm restart

Third-party applications

sudo apt-get install openssh-server cvs apache2 x11vnc python-yaml python-dev lib6-dev
cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d buildbot mozilla/tools/buildbot
cd buildbot
python setup.py build
sudo python setup.py install
cd ..
rm -rf buildbot/

Python Twisted

Do not use the Python Twisted package from apt-get. It uses Twisted 2.5.0, which is buggy.

wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.4/TwistedCore-2.4.0.tar.bz2
wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.4/Twisted-2.4.0.tar.bz2
tar xfvj TwistedCore-2.4.0.tar.bz2 
tar xfvj Twisted-2.4.0.tar.bz2 
cd TwistedCore-2.4.0
python setup.py build
sudo python setup.py install
cd ../Twisted-2.4.0
python setup.py build
sudo python setup.py install
cd ..
rm -rf Twisted*

Configure VNC Server

Set a password with:

vncpasswd

Make vnc start on boot by adding the following to mozqa's crontab:

@reboot          x11vnc -display :0 -shared -forever -rfbauth /home/mozqa/.vnc/passwd -bg

Setting up a Talos Buildbot Slave

How to setup a Buildbot Talos slave (replace the master.host, username, and password with the correct values)

cd ~
mkdir talos-slave
buildbot create-slave talos-slave master.host:9989 username password

You should then start the slave once to create the proper directory structure.

buildbot start talos-slave
buildbot stop talos-slave

Configure Apache

The DocumentRoot will be dependent on the builddir of your Buildbot slave. In this section that directory will be referred to as $BUILDDIR.

Pageset

You will need to install a pageset in /home/mozqa/pages

The rest

  • Create an empty directory so Apache doesn't complain:
cd ~/talos-slave/$BUILDDIR
mkdir talos
  • Open /etc/apache2/sites-available/default and change the DocumentRoot and second <Directory> tag to '/home/mozqa/talos-slave/$BUILDDIR/talos'.

Open up /etc/apache2/conf.d/charset and comment out the AddCharset line as so:

#AddDefaultCharset UTF-8

Add an alias so Apache knows where the pageset is. Add this to your configuration file: Alias /page_load_test/pages /home/mozqa/pages <Directory /home/mozqa/pages>

   Options Indexes
   Order allow,deny
   Allow from all

</Directory>

Restart Apache

/etc/init.d/apache2 restart

Test the installation by browsing to 'http://localhost/page_load_test/framecycler.html'. The browser should cycle through many pages rapidly.

Updating Talos

Assuming your Buildbot master configuration is proper, Buildbot will automatically update Talos on every performance run. If the pageset is updated, you will need to refresh /home/mozqa/pages.