Difference between revisions of "BCCD chroot Creation"

From Earlham CS Department
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
These instructions show how to setup a Debian chroot for building the BCCD:
+
'''Prebuilt chroots are available from http://bccd.cs.uni.edu/~tmcnulty/chroots/'''
 +
 
 +
These instructions show how to setup a Debian chroot environment for building the [http://bccd.cs.uni.edu/ Bootable Cluster CD] (BCCD):
  
 
1. Start as root.  Download debootstrap from http://packages.debian.org/stable/admin/debootstrap.html:
 
1. Start as root.  Download debootstrap from http://packages.debian.org/stable/admin/debootstrap.html:
Line 11: Line 13:
 
2. Unarchive and install debootstrap:
 
2. Unarchive and install debootstrap:
 
<pre>
 
<pre>
ar x deboostrap*.deb
+
ar x debootstrap*.deb
 
tar xzf data.tar.gz -C /
 
tar xzf data.tar.gz -C /
 
</pre>
 
</pre>
Line 23: Line 25:
 
<pre>
 
<pre>
 
chroot /path/to/chroot /bin/bash
 
chroot /path/to/chroot /bin/bash
mount -t proc none /proc
 
 
cd
 
cd
 
</pre>
 
</pre>
Line 39: Line 40:
 
6. Fetch the package list and start the installation:
 
6. Fetch the package list and start the installation:
 
<pre>
 
<pre>
wget http://cluster.earlham.edu/~tobias/bccd-chroot-selections
+
wget -q http://cluster.earlham.edu/~tobias/bccd-chroot-selections -O - | dpkg --set-selections
dpkg --set-selections < bccd-chroot-selections
 
 
apt-get dselect-upgrade # this will take a long time
 
apt-get dselect-upgrade # this will take a long time
 +
apt-get clean # clean out the downloaded .dpkgs
 +
</pre>
 +
 +
7. Add symlinks that the BCCD build process depends on:
 +
<pre>
 +
ln -s /usr/bin/g77 /bin/g77
 +
ln -s /usr/lib/libfreetype.la /lib/libfreetype.la
 
</pre>
 
</pre>
  
7. Add the BCCD user:
+
8. Add the BCCD user:
 
<pre>
 
<pre>
 
useradd -m bccd
 
useradd -m bccd
 
</pre>
 
</pre>
  
8. Check out the BCCD sources from CVS:
+
9. Check out the BCCD sources from CVS:
 
<pre>
 
<pre>
 
su - bccd
 
su - bccd
 
cvs -d:pserver:anonymous@bccd.cs.uni.edu:/ login
 
cvs -d:pserver:anonymous@bccd.cs.uni.edu:/ login
 
# [hit return when prompted for a password]
 
# [hit return when prompted for a password]
cvs -d:pserver:anonymous@bccd.cs.uni.edu:/ co -D"2005/10/21" bccd
+
cvs -d:pserver:anonymous@bccd.cs.uni.edu:/ co -D"2005/08/30" bccd
 
</pre>
 
</pre>
  
9. If you want to publish the chroot, exit and tar it up:
+
10. If you want to publish the chroot, exit and tar it up:
 
<pre>
 
<pre>
 
exit
 
exit
Line 65: Line 72:
 
tar cjf bccd-chroot.tar.bz2 bccd-chroot
 
tar cjf bccd-chroot.tar.bz2 bccd-chroot
 
</pre>
 
</pre>
 +
 +
11. Now, you can [[Building the BCCD|build your own copy]] of the BCCD.
 +
 +
Comments or questions?  Contact [mailto:tobias@cs.earlham.edu Toby].

Latest revision as of 14:20, 18 May 2006

Prebuilt chroots are available from http://bccd.cs.uni.edu/~tmcnulty/chroots/

These instructions show how to setup a Debian chroot environment for building the Bootable Cluster CD (BCCD):

1. Start as root. Download debootstrap from http://packages.debian.org/stable/admin/debootstrap.html:

# on x86:
wget http://http.us.debian.org/debian/pool/main/d/debootstrap/debootstrap_0.2.45-0.2_i386.deb
# on ppc:
wget http://http.us.debian.org/debian/pool/main/d/debootstrap/debootstrap_0.2.45-0.2_powerpc.deb

2. Unarchive and install debootstrap:

ar x debootstrap*.deb
tar xzf data.tar.gz -C /

3. Get it running:

debootstrap [potato|woody|sarge] /path/to/chroot

4. Wait awhile. Once it's complete, enter the chroot:

chroot /path/to/chroot /bin/bash
cd

5. Get apt ready for action:

cat > /etc/apt/sources.list << EOF
deb http://debian.osuosl.org/debian/ sarge main
deb-src http://debian.osuosl.org/debian/ sarge main
deb http://security.debian.org/ sarge/updates main
EOF
apt-get update

6. Fetch the package list and start the installation:

wget -q http://cluster.earlham.edu/~tobias/bccd-chroot-selections -O - | dpkg --set-selections
apt-get dselect-upgrade # this will take a long time
apt-get clean # clean out the downloaded .dpkgs

7. Add symlinks that the BCCD build process depends on:

ln -s /usr/bin/g77 /bin/g77
ln -s /usr/lib/libfreetype.la /lib/libfreetype.la

8. Add the BCCD user:

useradd -m bccd

9. Check out the BCCD sources from CVS:

su - 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:/ co -D"2005/08/30" bccd

10. If you want to publish the chroot, exit and tar it up:

exit
umount /proc
exit
cd /path/to/chroot/..
tar cjf bccd-chroot.tar.bz2 bccd-chroot

11. Now, you can build your own copy of the BCCD.

Comments or questions? Contact Toby.