ReferencePlatforms/Linux-Public: Difference between revisions
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
</ul> | </ul> | ||
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'. | 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 | |||
mkdir buildbotcustom | |||
cd buildbotcustom | |||
hg clone http://hg.mozilla.org/build/buildbotcustom | |||
When you create the slave, be sure to set "umask = 002" in the buildbot.tac and restart it (otherwise we'll start pushing update snippets around with mode 600). | |||
= Usernames and Passwords = | = Usernames and Passwords = |
Revision as of 19:02, 19 February 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 mkdir buildbotcustom cd buildbotcustom hg clone http://hg.mozilla.org/build/buildbotcustom
When you create the slave, be sure to set "umask = 002" in the buildbot.tac and restart it (otherwise we'll start pushing update snippets around with mode 600).
Usernames and Passwords
By default, this image has two accounts:
(username)/(password)
root/root
cltbld/cltbld
Troubleshooting
- You may get an error about "Stale Data" when running this VM in VMware Workstation for the first time. It can be safely ignored.