ReferencePlatforms/Linux-Public: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
mNo edit summary
Line 32: Line 32:
root/root<br />
root/root<br />
cltbld/cltbld
cltbld/cltbld
= Running under VirtualBox =


= Troubleshooting =
= Troubleshooting =

Revision as of 06:41, 4 November 2009

You can get the reference platform here: ftp://ftp.mozilla.org/pub/mozilla/VMs. If you are working on one of the community machines, we can also clone these scrubbed VMs onto community machines for you.

Using This VM as a Development Environment

By default, the reference platform only runs a console and a VNC server. If you want to use it for actual development you'll probably want to run X. Here's how to do it:

  • Disable the VNC server with this command:
  • chkconfig --level 2345 vncserver off
  • Change the default run level. As root, run:
  • sed -i -e 's/^id:[0-9]:initdefault:$/id:5:initdefault:/' /etc/inittab

Reboot, and you should be graphical! CentOS uses 'yum' as it's RPM front-end. You should be able to install most applications/tools you need through it. If you'd like a graphical front-end you can run 'pirut'.

Installing BuildBot

Because our Buildbot code changes fairly regularly we don't keep a copy of it on the VM.

export PYTHONPATH=".:/tools/zope-interface/lib/python2.5/site-packages/:/tools/twisted-core/lib/python2.5/site-packages:/tools/twisted/lib/python2.5/site-packages/:$PYTHONPATH"
export PYTHONHOME="/tools/python"
export PATH="/tools/python/bin:/tools/twisted/bin:/tools/twisted-core/bin:$PATH"
cd /tools
hg clone http://hg.mozilla.org/build/buildbot
cd /tools/buildbot
python setup.py install --prefix=/tools/buildbot
# buildbotcustom is only required if you're running a Buildbot master
cd /tools
mkdir buildbotcustom
cd buildbotcustom
hg clone http://hg.mozilla.org/build/buildbotcustom

Usernames and Passwords

By default, this image has two accounts:
(username)/(password)
root/root
cltbld/cltbld

Running under VirtualBox

Troubleshooting

  • Make sure you login as cltbld. root will not have the correct PATH and environment variables set.
  • You may get an error about "Stale Data" when running this VM in VMware Workstation for the first time. It can be safely ignored.
  • If vmware tools doesn't install/upgrade correctly, try running vmware-config-tools.pl as root.
  • Bridged Network does not seem to work when using that image in VMWare Server (1.0x), NAT seems to work fine