Difference between revisions of "BCCD chroot Creation"

From Earlham CS Department
Jump to navigation Jump to search
 
Line 17: Line 17:
 
3. Get it running:
 
3. Get it running:
 
<pre>
 
<pre>
debootstrap {potato,woody,sarge} /path/to/chroot
+
debootstrap [potato|woody|sarge] /path/to/chroot
 +
</pre>
 +
 
 +
4. Wait awhile.  Once it's complete, enter the chroot:
 +
<pre>
 +
chroot /path/to/chroot /bin/bash
 +
mount -t proc none /proc
 +
cd
 +
</pre>
 +
 
 +
5. Get apt ready for action:
 +
<pre>
 +
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
 +
</pre>
 +
 
 +
6. Fetch the package list and start the installation:
 +
<pre>
 +
wget http://cluster.earlham.edu/~tobias/bccd-chroot-selections
 +
dpkg --set-selections < bccd-chroot-selections
 +
apt-get dselect-upgrade # this will take a long time
 +
</pre>
 +
 
 +
7. Add the BCCD user:
 +
<pre>
 +
useradd -m bccd
 +
</pre>
 +
 
 +
8. Check out the BCCD sources from CVS:
 +
<pre>
 +
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/22/10" bccd
 +
</pre>
 +
 
 +
9. If you want to publish the chroot, exit and tar it up:
 +
<pre>
 +
umount /proc
 +
exit
 +
cd /path/to/chroot/..
 +
tar cjf bccd-chroot.tar.bz2 bccd-chroot
 
</pre>
 
</pre>

Revision as of 04:12, 7 December 2005

These instructions show how to setup a Debian chroot for building the 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 deboostrap*.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
mount -t proc none /proc
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 http://cluster.earlham.edu/~tobias/bccd-chroot-selections
dpkg --set-selections < bccd-chroot-selections
apt-get dselect-upgrade # this will take a long time

7. Add the BCCD user:

useradd -m bccd

8. 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/22/10" bccd

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

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