Difference between revisions of "Building LinuxMCE 0810"

From LinuxMCE
Jump to: navigation, search
Line 12: Line 12:
 
===Change Root to build environment===
 
===Change Root to build environment===
 
  chroot /media/kubuntu-8.10
 
  chroot /media/kubuntu-8.10
 +
 +
===Verify Apt Sources===
 +
contains
 +
deb    http://us.archive.ubuntu.com/ubuntu/    intrepid main restricted universe multiverse
 +
deb-src http://us.archive.ubuntu.com/ubuntu/    intrepid main restricted universe
 +
deb    http://us.archive.ubuntu.com/ubuntu/    intrepid-updates main restricted universe multiverse
 +
deb-src http://us.archive.ubuntu.com/ubuntu/    intrepid-updates main restricted universe
 +
deb http://security.ubuntu.com/ubuntu intrepid-security main restricted universe
 +
deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted universe
 +
deb http://debian.slimdevices.com/ stable main
 +
 +
 +
 +
 +
===Prep MySQl===
 +
apt-get install mysql-server
 +
<nowiki>sed 's/^[^#]*bind-address[[:space:]]*=.*$/#&\nskip-networking/' -i /etc/mysql/my.cnf</nowiki>
 +
 +
  
 
For a more in detail description of all the steps involved see [[Building LinuxMCE 0804]]
 
For a more in detail description of all the steps involved see [[Building LinuxMCE 0804]]

Revision as of 04:06, 23 February 2009

Create Build Environment

debootstrap --arch i386 intrepid /media/kubuntu-8.10/


Mount required directories

mount --bind /dev /media/kubuntu-8.10/dev
mount none /media/kubuntu-8.10/proc -t proc
mount none /media/kubuntu-8.10/dev/pts -t devpts

Change Root to build environment

chroot /media/kubuntu-8.10

Verify Apt Sources

contains

deb     http://us.archive.ubuntu.com/ubuntu/     intrepid main restricted universe multiverse 
deb-src http://us.archive.ubuntu.com/ubuntu/     intrepid main restricted universe
deb     http://us.archive.ubuntu.com/ubuntu/     intrepid-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/     intrepid-updates main restricted universe
deb http://security.ubuntu.com/ubuntu intrepid-security main restricted universe
deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted universe
deb http://debian.slimdevices.com/ stable main



Prep MySQl

apt-get install mysql-server
sed 's/^[^#]*bind-address[[:space:]]*=.*$/#&\nskip-networking/' -i /etc/mysql/my.cnf


For a more in detail description of all the steps involved see Building LinuxMCE 0804

Currently the focus is on getting the following to work completely.

Obtaining, installing and configuring the build scripts

Obtaining.

sudo su -
apt-get install subversion
svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/src/Ubuntu_Helpers_NoHardcode

Installing.

cd Ubuntu_Helpers_NoHardcode
./install.sh
cd /usr/local/lmce-build

Configuring.

cat >/etc/lmce-build/builder.custom.conf <<EOF

# Uncomment to avoid DVD build step[s]
do_not_build_sl_dvd="yes"
do_not_build_dl_dvd="yes"


# Uncomment to create fake win32 binaries
win32_create_fake="yes"

# Point to the development sqlCVS server for 0810
sqlcvs_host="schema.linuxmce.org"
EOF

Preparing for build

cd /usr/local/lmce-build

The preparation steps one at a time:

prepare-scripts/install-build-pkgs.sh
prepare-scripts/cd1-prepare.sh
prepare-scripts/cd2-prepare.sh
prepare-scripts/create-diskless-debootstrap.sh
prepare-scripts/import-external-files.sh
prepare-scripts/preseed-build-pkgs.sh

Or, you could do them all in one go with:

./prepare.sh

posde Doing the prepare.sh script produced a hash error. apt-get update and restarting the prepare.sh solved this.

Building from source

cd /usr/local/lmce-build

All the build steps can be executed seperately:

build-scripts/checkout-svn.sh
build-scripts/import-win32bins.sh
build-scripts/build-replacements.sh
build-scripts/build-makerelease.sh
build-scripts/import-databases.sh
build-scripts/build-maindebs.sh
build-scripts/get-closed-source-debs.sh
build-scripts/create-repo.sh
build-scripts/cd1-build.sh
build-scripts/cd2-build.sh

Or the following script will run them all:

./build.sh