Difference between revisions of "Building the BCCD"

From Earlham CS Department
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
These instructions outline the process of setting up a working build environment for the [http://bccd.cs.uni.edu Bootable Cluster CD] (BCCD).
 
These instructions outline the process of setting up a working build environment for the [http://bccd.cs.uni.edu Bootable Cluster CD] (BCCD).
  
1. [http://bccd.cs.uni.edu/~tmcnulty/chroots/ Download] and unpack a Debian chroot environment, or [[Chroot_Creation|create one yourself]].
+
1. [http://bccd.cs.uni.edu/~tmcnulty/chroots/ Download] and unpack a Debian chroot environment, or [[BCCD_chroot_Creation|create one yourself]].
 
<pre>
 
<pre>
 
wget http://bccd.cs.uni.edu/~tmcnulty/chroots/chroot-<arch>.tar.bz2
 
wget http://bccd.cs.uni.edu/~tmcnulty/chroots/chroot-<arch>.tar.bz2
Line 7: Line 7:
 
</pre>
 
</pre>
  
2. Enter the chroot and 'become' the bccd user:
+
2. Enter the chroot:
 
<pre>
 
<pre>
 
sudo chroot chroot-<arch> /bin/bash
 
sudo chroot chroot-<arch> /bin/bash
Line 13: Line 13:
 
</pre>
 
</pre>
  
3. ''Optional but recommended.'' Download a local copy of all the third party sources:
+
3. ''Optional but recommended.'' Get a local copy of all the third party sources:
 
<pre>
 
<pre>
 
wget http://bccd.cs.uni.edu/~tmcnulty/chroots/garchive.tar # 600-some MB
 
wget http://bccd.cs.uni.edu/~tmcnulty/chroots/garchive.tar # 600-some MB
 
tar xf garchive.tar -C /
 
tar xf garchive.tar -C /
 +
# fix permissions
 +
chmod a+x /var/www/garchive
 +
chmod a+x /var/www/garchive/*
 +
chmod -R a+r /var/www/garchive
 
</pre>
 
</pre>
 +
This creates an archive of third party source tarballs in /var/www/garchive that the build scripts can access later on.  This helps avoid stalls due to download failures during the build process.
  
 
4. Enter the CVS checkout and update it:
 
4. Enter the CVS checkout and update it:

Latest revision as of 02:10, 15 December 2005

These instructions outline the process of setting up a working build environment for the Bootable Cluster CD (BCCD).

1. Download and unpack a Debian chroot environment, or create one yourself.

wget http://bccd.cs.uni.edu/~tmcnulty/chroots/chroot-<arch>.tar.bz2
sudo tar xjf chroot-<arch>.tar.bz2

2. Enter the chroot:

sudo chroot chroot-<arch> /bin/bash
cd

3. Optional but recommended. Get a local copy of all the third party sources:

wget http://bccd.cs.uni.edu/~tmcnulty/chroots/garchive.tar # 600-some MB
tar xf garchive.tar -C /
# fix permissions
chmod a+x /var/www/garchive
chmod a+x /var/www/garchive/*
chmod -R a+r /var/www/garchive 

This creates an archive of third party source tarballs in /var/www/garchive that the build scripts can access later on. This helps avoid stalls due to download failures during the build process.

4. Enter the CVS checkout and update it:

su - bccd
cd bccd
cvs -d:pserver:anonymous@bccd.cs.uni.edu:/ login
# hit return when prompted for a password
cvs -d:pserver:anonymous@bccd.cs.uni.edu:/ up

5. Start the build process:

cd meta/lnx-bbc
make singularity_GARCH=<arch> build # where <arch> is one of: ppc, i386
# wait a long time

6. Grab the ISO and burn it to a CD:

cp work/main.d/bccd-*.iso ~
cd
# use your favorite burner here

Comments or questions? Contact Toby.