ReferencePlatforms/Test/Foopy

Set up a Snow Leopard foopy

Rescued from Aki's text file. Will probably change to be linux at some point.

Todo: flesh this out further.

Initial setup

  • Rev{1,2} mini -- install Snow Leopard
  • File bug for DNS/static IP in DHCP with MAC address

Setup steps

  • set up cltbld account; remove passwordless Mozilla Corporation account
    • System Preferences -> Accounts
    • Add cltbld account, check "Allow user to administer this computer"
    • Make sure to turn off Automatic Login for Mozilla Corporation before logging out
    • Log out, remove Mozilla Corporation account
  • remote login
  • remote desktop
  • xcode
  • software update, then turn off updates
  • macports
  • turn off energy saver
  • turn off bluetooth
sudo ln -s /Developer/SDKS/MacOSX10.6.sdk/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers
sudo port install mercurial
sudo port install py26-lint py26-virtualenv
# add /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin to front of PATH in ~cltbld/.profile
sudo mkdir /builds
sudo chown cltbld /builds
hg clone http://hg.mozilla.org/build/buildbot
sudo su -
/opt/local/bin/python2.6 setup.py install # (need to sudo su -; sudo python setup.py won't work)
exit
sudo port install wget py26-yaml


For future reference:

foopy02:~ cltbld$ sudo port list active
Warning: port definitions are more than two weeks old, consider using selfupdate
bzip2                          @1.0.6          archivers/bzip2
db46                           @4.6.21         databases/db46
expat                          @2.0.1          textproc/expat
gdbm                           @1.8.3          databases/gdbm
gettext                        @0.18.1.1       devel/gettext
gperf                          @3.0.4          devel/gperf
libiconv                       @1.13.1         textproc/libiconv
libidn                         @1.19           mail/libidn
mercurial                      @1.7.2          devel/mercurial
ncurses                        @5.7            devel/ncurses
ncursesw                       @5.7            devel/ncursesw
openssl                        @1.0.0c         devel/openssl
py26-distribute                @0.6.14         python/py26-distribute
py26-lint                      @0.22.0         python/py26-lint
py26-logilab-astng             @0.21.0         python/py26-logilab-astng
py26-logilab-common            @0.53.0         python/py26-logilab-common
py26-virtualenv                @1.5.1          python/py26-virtualenv
py26-yaml                      @3.09           python/py26-yaml
python26                       @2.6.6          lang/python26
readline                       @6.1.002        devel/readline
sqlite3                        @3.7.3          databases/sqlite3
wget                           @1.12           net/wget
zlib                           @1.2.5          archivers/zlib

steps to populate /builds

cd /builds
mkdir talos-data
hg clone http://hg.mozilla.org/users/tglek_mozilla.com/fennecmark bench@tara.glek
hg clone http://hg.mozilla.org/build/pageloader pageloader@mozilla.org
hg clone http://hg.mozilla.org/build/talos talos
cd /builds
hg clone http://hg.mozilla.org/build/tools
cd tools/sut_tools
ln -s /builds/talos-data/talos/devicemanager.py .
cd /builds
ln -s /builds/build-tools/sut_tools sut_tools

helper script to create/populate tegra dirs

for i in {71..90}; do
   TNUM=0$i
   TEGRA=tegra-$TNUM
   echo processing $TEGRA
   if [ ! -d /builds/$TEGRA ]; then
       echo creating dir for $TEGRA
       mkdir /builds/$TEGRA
   fi
   cd /builds/$TEGRA
   if [ ! -f /builds/$TEGRA/clientproxy.py ]; then
       echo symlinking clientproxy
       ln -s /builds/tools/sut_tools/clientproxy.py .
   fi
   if [ ! -f /builds/$TEGRA/buildbot.tac ]; then
       echo creating buildbot.tac
       sed "s/tegra-###/${TEGRA}/" /builds/buildbot.tac.tegras > /builds/$TEGRA/buildbot.tac
   fi
done