ReferencePlatforms/UnitTestOnly/10.5-Xserve: Difference between revisions

Jump to navigation Jump to search
m
Line 1: Line 1:
=Version 1=
<h1>Version 1</h1>
==Install OS==
<h2>Install OS</h2>
Image machine with standard 10.5.2 Xserve PPC build machine image.  The image is actually an Intel image, so we need to remove the installed version of MacPorts
<p>Image machine with standard 10.5.2 Xserve PPC build machine image.  The image is actually an Intel image, so we need to remove the installed version of MacPorts
</p>
<pre class="_fck_mw_lspace">sudo port -f uninstall installed


sudo port -f uninstall installed
sudo rm -rf \
  /opt/local \
sudo rm -rf \
  /Applications/DarwinPorts \
    /opt/local \
  /Applications/MacPorts \
    /Applications/DarwinPorts \
  /Library/LaunchDaemons/org.macports.* \
    /Applications/MacPorts \
  /Library/Receipts/DarwinPorts*.pkg \
    /Library/LaunchDaemons/org.macports.* \
  /Library/Receipts/MacPorts*.pkg \
    /Library/Receipts/DarwinPorts*.pkg \
  /Library/StartupItems/DarwinPortsStartup \
    /Library/Receipts/MacPorts*.pkg \
  /Library/Tcl/darwinports1.0 \
    /Library/StartupItems/DarwinPortsStartup \
  /Library/Tcl/macports1.0 \
    /Library/Tcl/darwinports1.0 \
  ~/.macports
    /Library/Tcl/macports1.0 \
#Existing mozilla tools are I386 only
    ~/.macports
sudo rm -rf /tools
#Existing mozilla tools are I386 only
rm ~/.profile #only contained useless things
sudo rm -rf /tools
# logout or reboot to pickup changes, otherwise your python installs below won't work
rm ~/.profile #only contained useless things
</pre>
# logout or reboot to pickup changes, otherwise your python installs below won't work
<h2>System Preferences</h2>
 
<p>Open System Preferences and in:
==System Preferences==
</p>
Open System Preferences and in:
<ul><li> Energy Saver set both times to 'never'
* Energy Saver set both times to 'never'
</li><li> Spotlight set the main hard drive as a private location to stop spotlight from indexing it
* Spotlight set the main hard drive as a private location to stop spotlight from indexing it
</li><li> Desktop and Screensaver set the screensaver time to 'never'
* Desktop and Screensaver set the screensaver time to 'never'
</li><li> Dock and set the dock to automatically hide
* Dock and set the dock to automatically hide
</li><li> Displays and set resolution to 1280x1024@60hz
* Displays and set resolution to 1280x1024@60hz
</li><li> Sharing and enable screen sharing and remote login
* Sharing and enable screen sharing and remote login
</li></ul>
 
<h2>Runtime requirements</h2>
==Runtime requirements==
<p>You need to install mercurial, wget and buildbot.  Instead of installing macports and xcode tools we are going to use the built in version of Twisted 2.5.0:
You need to install mercurial, wget and buildbot.  Instead of installing macports and xcode tools we are going to use the built in version of Twisted 2.5.0:
</p>
 
<pre class="_fck_mw_lspace">curl -O http://mercurial.selenic.com/release/mercurial-1.5.2.tar.gz
curl -O http://mercurial.selenic.com/release/mercurial-1.5.2.tar.gz
tar zxf mercurial-1.5.2.tar.gz
tar zxf mercurial-1.5.2.tar.gz
cd mercurial-1.5.2
cd mercurial-1.5.2
python setup.py build
python setup.py build
sudo python setup.py install
sudo python setup.py install
</pre>
 
<pre class="_fck_mw_lspace">curl -O http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2
curl -O http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2
tar jxf Twisted-2.5.0.tar.bz2
tar jxf Twisted-2.5.0.tar.bz2
cd Twisted-2.5.0
cd Twisted-2.5.0
sudo python setup.py install
sudo python setup.py install
</pre>
 
<pre class="_fck_mw_lspace">hg clone http://hg.mozilla.org/build/buildbot buildbot
hg clone http://hg.mozilla.org/build/buildbot buildbot
cd buildbot
cd buildbot
hg up -C --rev 53
hg up -C --rev 53
python setup.py build
python setup.py build
sudo python setup.py install
sudo python setup.py install
</pre>
 
<p>For WGet:
For WGet:
</p>
curl -O http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
<pre class="_fck_mw_lspace">curl -O http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar zxf wget-latest.tar.gz
tar zxf wget-latest.tar.gz
cd wget-1.12 #or whatever version is the latest
cd wget-1.12 #or whatever version is the latest
./configure
./configure
make
make
sudo make install
sudo make install
 
</pre>
==Buildbot Slave==
<h2>Buildbot Slave</h2>
Finally, set up your buildbot slave
<p>Finally, set up your buildbot slave
mkdir -p /builds/slave
</p>
cd /builds/slave
<pre class="_fck_mw_lspace">mkdir -p /builds/slave
buildbot create-slave . master:port username password
cd /builds/slave
 
buildbot create-slave . master:port username password
== Setup buildbot start on boot ==
</pre>
The existing start-up script (,code>/Library/LaunchAgents/buildbot.start.slave.plist</code>) will work without modification *if* you create the symlinks for the paths it is expecting, specifically:
<h2> Setup buildbot start on boot </h2>
mkdir -p /tools
<p>The existing start-up script (,code&gt;/Library/LaunchAgents/buildbot.start.slave.plist&lt;/code&gt;) will work without modification *if* you create the symlinks for the paths it is expecting, specifically:
cd /tools
</p>
ln -s /Users/cltbld/buildbot
<pre class="_fck_mw_lspace">mkdir -p /tools
ln -s /System/Library/Frameworks/Python.framework/Versions/2.5 python
cd /tools
 
ln -s /Users/cltbld/buildbot
From VNC:
ln -s /System/Library/Frameworks/Python.framework/Versions/2.5 python
* Make sure the resolution is set to 1280x1024. (''this is not in the xserve ref image'')
</pre>
* System Prefs -> Accounts -> Login Options
<p>From VNC:
** Set 'Automatic Login' to 'cltbld', enter the password when prompted.
</p>
<ul><li> Make sure the resolution is set to 1280x1024. (<i>this is not in the xserve ref image</i>)
</li><li> System Prefs -&gt; Accounts -&gt; Login Options
<ul><li> Set 'Automatic Login' to 'cltbld', enter the password when prompted.
</li></ul>
</li></ul>
canmove, Confirmed users
2,850

edits

Navigation menu