ReferencePlatforms/Linux-Public: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 34: Line 34:


= Troubleshooting =
= Troubleshooting =
* The default PATH varible (and also PYTHONPATH?) does not work for using the usual build tools like hg, python, etc. Set the PATH variable as described at [[ReferencePlatforms/Linux-Public#Installing_BuildBot]] to get a working build environment.
* The default PATH variable (and also PYTHONPATH?) does not work for using the usual build tools like hg, python, etc. Set the PATH variable as described at [[ReferencePlatforms/Linux-Public#Installing_BuildBot]] to get a working build environment.
* You may get an error about "Stale Data" when running this VM in VMware Workstation for the first time. It can be safely ignored.
* 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.
* If vmware tools doesn't install/upgrade correctly, try running vmware-config-tools.pl as root.

Revision as of 09:41, 30 May 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

Troubleshooting

  • The default PATH variable (and also PYTHONPATH?) does not work for using the usual build tools like hg, python, etc. Set the PATH variable as described at ReferencePlatforms/Linux-Public#Installing_BuildBot to get a working build environment.
  • 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.