ReferencePlatforms/Test/Linux: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 4: Line 4:


== Configuration Changes ==
== Configuration Changes ==
Make the following changes:
=== Assumptions ===
* a user named 'mozqa' is logged in and has administrative privileges - this will be the default user for this machine, default home directory is thus /home/mozqa
 
=== Make the following changes ===
* System -> Preferences -> Screen Resolution
* System -> Preferences -> Screen Resolution
** 1280 x 1024/60Hz/Normal
** 1280 x 1024/60Hz/Normal
Line 13: Line 16:
** 'Never' put display to sleep
** 'Never' put display to sleep
* System -> Administration -> Login Window
* System -> Administration -> Login Window
** in Security tab select 'Enable Automatic Login'
** in Security tab select 'Enable Automatic Login' for user mozqa
* System -> Administration -> Synaptic Package Manager
* System -> Administration -> Synaptic Package Manager
** install cpufrequtils (002-5)
** install cpufrequtils (002-5)
* configure vnc server
** Set a password with:
vncpasswd
* edit /etc/rc.local, add the following lines:
* edit /etc/rc.local, add the following lines:
  #set up vnc
  #set up vnc
Line 27: Line 33:
  cpufreq-set -f 1000
  cpufreq-set -f 1000
  cpufreq-set -c 1 -f 1000
  cpufreq-set -c 1 -f 1000
* rm /usr/share/hal/fdi/policy/10osvendor remove 10-cpufreq.fdi (this allows the cpufreq-set commands to take precedence)
* open Terminal
** from Terminal menu select Edit -> Profiles
** select 'Default'
** from 'Title and Command' tab set 'When command exits' to 'Hold the terminal open'
* System -> Preferences -> Sessions
** in 'Startup Programs' tab click 'Add'
*** name: 'start talos slave', command: 'gnome-terminal -x buildbot start talos-slave'
* Reboot to ensure that all settings have been correctly set
=== 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>
Turn off logging, remove any lines that begin with "CustomLog"
Restart Apache
/etc/init.d/apache2 restart


== Third-party applications ==
== Third-party applications ==
Line 54: Line 92:
  cd ..
  cd ..
  rm -rf Twisted*
  rm -rf Twisted*
== Configure VNC Server ==
Set a password with:
vncpasswd


== Setting up a Talos Buildbot Slave ==
== Setting up a Talos Buildbot Slave ==
Line 64: Line 98:
  mkdir talos-slave
  mkdir talos-slave
  buildbot create-slave --umask=022 talos-slave master.host:9989 username password
  buildbot create-slave --umask=022 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>
Turn off logging, remove any lines that begin with "CustomLog"
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.
= TODO After a Reboot =
* turn back on x11vnc
* turn back on throttling
* replace random with urandom
541

edits

Navigation menu