Newer edit →
Assignment 1 (cesar)
3,749 bytes added
14:24, 18 September 2006
Assignment 1 draft 1
= Overview =
This page outlines how to build firefox from CVS using Ubuntu 6.06. I am a complete newbie when it comes to ubuntu, I'm a slack guy. In here, I will discuss the steps required and the troubles that were encountered (you might be surprised).
= Requirements =
The first step is go to mozilla and follow the links to [http://developer.mozilla.org/ Mozilla's Developer Centre] and use their [http://developer.mozilla.org/en/docs/Build_Documentation Mozilla's Build documentation] to build the browser. Ubuntu does not come with many/any good developer tools, so we must extract the following from synaptics. But in order to use ubuntu, you need to figure out the root password, which you can't :
Can't access Ubuntu's root password to install programs.
Ubuntu doesn't have a root password per se. sudo instead
You'll have to sudo dhclient to access the internet. Now change that bloody su password. Go to synaptics and install the following :
cvs (188.8.131.52-17) ''If you have a different version, read the additional information in mozilla's build guide''
<strike>autoconf (2.59)</strike> ''Not needed, and won't work apparently''
That's all I can gather from my logs that I remember. A lot of stuff is dependancies. The configure file will yell at you if you miss something.
= Checking out the source =
Before you checkout the source, check the [http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox tinderbox]. I don't know why that isn't higher up in the wiki. Green is good, red bad, yellow is still building.
Next, click [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_Via_CVS this] link to get the cvs command to checkout the source code. The first thing you should notice is that cvs hangs in the labs. You have to ssh tunnel to matrix than pull it from cvs :
ssh -L 2401:cvs-mirror.mozilla.org:2401 -l username username@matrix
cvs -d :pserver:anonymous:anonymous@localhost:/cvsroot co mozilla/client.mk
That will pull one important file.
If you are on the internet long enough in the lab, you'll notice that things stop working. You can log in, but you can't visit any pages.
Internet suddenly stops working
(I kid you not) You have to renew your dhcpc leasetime, aparently after every ~800 seconds. Reissue dhclient command. I don't know what a ''good'' solution is.
Keep this in mind before checking out the source code. Continue with the instructions, change directory. Next you have to export an environment variable because you are using ssh tunneling rather than cvs-mirror.mozilla.org :
Now issue the command
make -f client.mk checkout MOZ_CO_PROJECT=browser
checkout the browser. If you forget to checkout, make will recursively call itself. oops.
= Configuring =
Create a mozconfig file. I did this as a . file in my home directory so I wouldn't accidently delete it. Double-check spelling
Create a mozobj directory in your home directory. This is where all the object code goes (or should go).
= Building =
Before you build, find an lengthy activity to engage in. Then export the following environment variables :
This tells mozilla where the mozconfig file is.
Issue the command to make.
make -f client.mk build
Retrieved from "
SICT AR Meeting Area
get involved with CDOT
as a Student
as an Open Source Community Member
as a Company
Real World Mozilla
Course Project List
Potential Course Projects
About CDOT Wiki