ReferencePlatforms/Test/Mac: Difference between revisions

Jump to navigation Jump to search
Line 12: Line 12:
#* System Preferences -> Energy Saver
#* System Preferences -> Energy Saver
#* "Put the computer to sleep when it is inactive for..." Never
#* "Put the computer to sleep when it is inactive for..." Never
#* 'put the display to sleep' Never
#* uncheck 'Put the hard disk(s) to sleep when possible'
#* In options set dock to autohide
#* In options set dock to autohide
# Create a 'mozqa' account
# Create a 'mozqa' account
niutil -create / /Users/mozqa
#* System Preferences -> Accounts -> press '+' to add account
niutil -createprop / /Users/mozqa uid 503
#* Username : mozqa, 'Allow user to administrate this computer' checked
niutil -createprop / /Users/mozqa gid 503
#* in 'Login Items' add Terminal (Applications -> Utilities -> Terminal)
niutil -createprop / /Users/mozqa realname "Mozilla QA"
#** handy to have this on startup
niutil -createprop / /Users/mozqa home "/Users/mozqa"
niutil -createprop / /Users/mozqa shell "/bin/bash"
niutil -createprop / /Users/mozqa passwd "*"
niutil -create / /Groups/mozqa
niutil -createprop / /Groups/mozqa gid 503
passwd mozqa
# Enable VNC
# Enable VNC
#* System Preferences -> Sharing
#* System Preferences -> Sharing
Line 30: Line 26:
#* Change the VNC password
#* Change the VNC password
# Install the mozqa ssh key in ~/.ssh
# Install the mozqa ssh key in ~/.ssh
# Enable autologin
#* System Preferences -> Accounts -> Login Options -> Automatically login as 'mozqa'


=== XCode Installation ===
=== XCode Installation ===
Line 47: Line 45:
  make
  make
  sudo make install
  sudo make install
=== Throttling ===
Install Mac CHUD tools http://developer.apple.com/tools/download/, then run
sudo reggie_se -S 0b1100 -b 4:1 -i a -n IA32_CLOCK_MODULATION


== BuildBot Setup ==
== BuildBot Setup ==
Line 135: Line 129:
  </Directory>
  </Directory>
Turn off logging, remove any lines that begin with "CustomLog"
Turn off logging, remove any lines that begin with "CustomLog"
* replace the old apache install with the new apache2 install
mv /usr/sbin/apachectl /usr/sbin/apachectl1.3
ln -s /etc/apache2/bin/apachectl /usr/sbin/apachectl


Restart apache with:
Restart apache with:
  sudo /etc/apache2/bin/apachectl restart
  sudo apachectl start
 
== Auto start on reboot ==
Install buildbot.start.talos.slave.plist in /Library/LaunchAgents/.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>EnvironmentVariables</key>
        <dict>
                <key>PATH</key>
                <string>/Library/Frameworks/Python.framework/Versions/Current/bin:/bin:/sbin:/usr/bin:/usr/sbin</string>
        </dict>
        <key>Label</key>
        <string>buildbot.start.talos.slave</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Library/Frameworks/Python.framework/Versions/Current/bin/buildbot</string>
                <string>start</string>
                <string>/users/Mozqa/talos-slave</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>UserName</key>
        <string>mozqa</string>
        <key>WorkingDirectory</key>
        <string>/Users/mozqa/</string>
</dict>
</plist>


= Updating Talos =
= 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.
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.
541

edits

Navigation menu