<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Skbohra</id>
	<title>LinuxMCE - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Skbohra"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Skbohra"/>
	<updated>2026-07-21T22:26:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Building_LinuxMCE_0810&amp;diff=22192</id>
		<title>Building LinuxMCE 0810</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Building_LinuxMCE_0810&amp;diff=22192"/>
		<updated>2010-01-28T07:38:58Z</updated>

		<summary type="html">&lt;p&gt;Skbohra: /* Virgin Kubuntu 8.10 builder (no chroot) notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category: tutorials]]&lt;br /&gt;
[[category: programmer&#039;s Guide]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
==Setting up a chroot environment==&lt;br /&gt;
These steps are optional as you can just build on a clean Kubuntu-8.10 install.  But required if you want to build using an existing 0810 core without ruining it&#039;s run-time database.&lt;br /&gt;
&lt;br /&gt;
Start with becoming root as the  following steps will need to be done using super user privileges.&lt;br /&gt;
  sudo su -&lt;br /&gt;
&lt;br /&gt;
===Create the environment===&lt;br /&gt;
 apt-get install debootstrap&lt;br /&gt;
 debootstrap --arch i386 intrepid /media/kubuntu-8.10/&lt;br /&gt;
&lt;br /&gt;
===Steps after each reboot ===&lt;br /&gt;
(Note: For First building, perform steps in the &#039;&#039;&#039;Getting Started&#039;&#039;&#039; section)&lt;br /&gt;
====Mount required directories====&lt;br /&gt;
 mount --bind /dev /media/kubuntu-8.10/dev&lt;br /&gt;
 mount none /media/kubuntu-8.10/proc -t proc&lt;br /&gt;
 mount none /media/kubuntu-8.10/dev/pts -t devpts&lt;br /&gt;
&lt;br /&gt;
====Change-root into the environment====&lt;br /&gt;
 chroot /media/kubuntu-8.10&lt;br /&gt;
====Start MySQL Server====&lt;br /&gt;
Do not execute the mysql start before doing the sed statement listed in the &#039;&#039;&#039;Installing needed packages section&#039;&#039;&#039; below to reconfigure MySQL.&lt;br /&gt;
 /etc/init.d/mysql start&lt;br /&gt;
&lt;br /&gt;
===Verify apt&#039;s list of repositories===&lt;br /&gt;
Make sure &#039;&#039;/etc/apt/sources.list&#039;&#039; (inside the chroot) contains something very similar to:&lt;br /&gt;
 deb       &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;&#039;&#039;us.archive.ubuntu.com&#039;&#039;/ubuntu/ intrepid  main restricted universe multiverse &lt;br /&gt;
 deb-src &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;&#039;&#039;us.archive.ubuntu.com&#039;&#039;/ubuntu/ intrepid  main restricted universe&lt;br /&gt;
 deb       &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;&#039;&#039;us.archive.ubuntu.com&#039;&#039;/ubuntu/ intrepid-updates  main restricted universe multiverse&lt;br /&gt;
 deb-src &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;&#039;&#039;us.archive.ubuntu.com&#039;&#039;/ubuntu/ intrepid-updates  main restricted universe&lt;br /&gt;
 deb       &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;security.ubuntu.com/ubuntu intrepid-security  main restricted universe&lt;br /&gt;
 deb-src &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;security.ubuntu.com/ubuntu intrepid-security  main restricted universe&lt;br /&gt;
&lt;br /&gt;
The following line is added to the sources.list during the prepare script and should not be added before. [[User:Posde|posde]]&lt;br /&gt;
 deb       &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;debian.slimdevices.com/ stable  main&lt;br /&gt;
&lt;br /&gt;
 deb       &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;www.avenard.org/files/ubuntu-repos/ intrepid release testing&lt;br /&gt;
&lt;br /&gt;
Add the Avenard GPG key&lt;br /&gt;
 wget http://www.avenard.org/files/ubuntu-repos/ubuntu-repos.key &amp;amp;&amp;amp; sudo apt-key add ubuntu-repos.key &amp;amp;&amp;amp; rm ubuntu-repos.key&lt;br /&gt;
&lt;br /&gt;
===Installing needed packages===&lt;br /&gt;
&#039;&#039;&#039;Important!&#039;&#039;&#039; Perform these also &#039;&#039;&#039;after&#039;&#039;&#039; chrooting if you are building in a chrooted environment.&lt;br /&gt;
&lt;br /&gt;
If you get messages like &#039;&#039;/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory&#039;&#039;, that meens that $LANG is set. Either clear the LANG or install the needed language pack (english given example given in the code-snip below).&lt;br /&gt;
&lt;br /&gt;
(Leave the root password for MySQL empty.)&lt;br /&gt;
 apt-get update&lt;br /&gt;
 &lt;br /&gt;
 #  Uncomment either of lines below if needed (see explanation above)&lt;br /&gt;
 #unset LANG&lt;br /&gt;
 #apt-get install language-pack-en-base&lt;br /&gt;
 &lt;br /&gt;
 apt-get dist-upgrade&lt;br /&gt;
 apt-get install aptitude openssh-client mysql-server&lt;br /&gt;
&lt;br /&gt;
Reconfigure MySQL to not open a TCP-IP network port: (only needed if you are building in a chrooted environment)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sed &#039;s/^[^#]*bind-address[[:space:]]*=.*$/#&amp;amp;\nskip-networking/&#039; -i /etc/mysql/my.cnf&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building from source==&lt;br /&gt;
For a more in detail description of all the steps involved see [[Building LinuxMCE 0804]]&lt;br /&gt;
&lt;br /&gt;
Currently the focus is on getting the following to work completely.&lt;br /&gt;
&lt;br /&gt;
===Getting started===&lt;br /&gt;
You should only have to do this part once initially.&lt;br /&gt;
&lt;br /&gt;
The following steps will require superuser privileges, and it is &#039;&#039;&#039;always&#039;&#039;&#039; wise to refresh the packages list beforehand.&lt;br /&gt;
 sudo su -&lt;br /&gt;
 apt-get update&lt;br /&gt;
&lt;br /&gt;
====Obtaining the build scripts====&lt;br /&gt;
 apt-get install subversion&lt;br /&gt;
 svn co http://svn.linuxmce.org/svn/branches/LinuxMCE-0810/src/Ubuntu_Helpers_NoHardcode&lt;br /&gt;
&lt;br /&gt;
====Installing the build scripts====&lt;br /&gt;
 cd Ubuntu_Helpers_NoHardcode&lt;br /&gt;
 ./install.sh&lt;br /&gt;
 cd /usr/local/lmce-build&lt;br /&gt;
&lt;br /&gt;
====Configuring the build scripts====&lt;br /&gt;
 cat &amp;gt;/etc/lmce-build/builder.custom.conf &amp;lt;&amp;lt;EOF&lt;br /&gt;
 &lt;br /&gt;
 # Uncomment to avoid DVD build step[s]&lt;br /&gt;
 do_not_build_sl_dvd=&amp;quot;yes&amp;quot;&lt;br /&gt;
 do_not_build_dl_dvd=&amp;quot;yes&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 # Uncomment to create fake win32 binaries&lt;br /&gt;
 win32_create_fake=&amp;quot;yes&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # Point to the development sqlCVS server for 0810&lt;br /&gt;
 sqlcvs_host=&amp;quot;schema.linuxmce.org&amp;quot;&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
===Preparing for build===&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/lmce-build&lt;br /&gt;
&lt;br /&gt;
The preparation steps one at a time (recommended):&lt;br /&gt;
 prepare-scripts/install-build-pkgs.sh&lt;br /&gt;
 prepare-scripts/cd1-prepare.sh&lt;br /&gt;
 prepare-scripts/cd2-prepare.sh&lt;br /&gt;
 prepare-scripts/create-diskless-debootstrap.sh&lt;br /&gt;
 prepare-scripts/import-external-files.sh&lt;br /&gt;
 prepare-scripts/preseed-build-pkgs.sh&lt;br /&gt;
&lt;br /&gt;
Or, you could do them all in one go with:&lt;br /&gt;
 ./prepare.sh&lt;br /&gt;
&lt;br /&gt;
===Building from source===&lt;br /&gt;
&lt;br /&gt;
 cd /usr/local/lmce-build&lt;br /&gt;
&lt;br /&gt;
All the build steps can be executed seperately (recommended at least the first time):&lt;br /&gt;
 build-scripts/checkout-svn.sh&lt;br /&gt;
 build-scripts/import-win32bins.sh&lt;br /&gt;
 build-scripts/build-replacements.sh&lt;br /&gt;
 build-scripts/build-makerelease.sh&lt;br /&gt;
 build-scripts/import-databases.sh&lt;br /&gt;
 build-scripts/build-maindebs.sh&lt;br /&gt;
 build-scripts/get-closed-source-debs.sh&lt;br /&gt;
 build-scripts/create-repo.sh&lt;br /&gt;
 build-scripts/cd1-build.sh&lt;br /&gt;
 build-scripts/cd2-build.sh&lt;br /&gt;
&lt;br /&gt;
Or the following script will run them all:&lt;br /&gt;
 ./build.sh&lt;br /&gt;
&lt;br /&gt;
== Using the build&#039;s output ==&lt;br /&gt;
The build.sh script puts all created deb-files under /var/www. Setup a web server to point to that directory. &lt;br /&gt;
 sudo apt-get install apache2&lt;br /&gt;
&lt;br /&gt;
In the machine, where you want to test the build, follow the instructions on using the alpha build. After the step pre-install-from-repo.sh, go into /etc/apt/sources.list, and replace the deb.linuxmce.org line with&lt;br /&gt;
 deb &amp;lt;ip-address-of-your-builder&amp;gt; ./&lt;br /&gt;
and re-run apt-get update&lt;br /&gt;
You will find, that two packages are missing. Get those two packages from the regular repository and put them into the builders /var/www directory&lt;br /&gt;
&lt;br /&gt;
 pushd /var/www&lt;br /&gt;
 wget http://deb.linuxmce.org/ubuntu/dists/intrepid/lmce-alpha2/binary-all/libft-perl_1.0_all.deb&lt;br /&gt;
 wget http://deb.linuxmce.org/ubuntu/dists/intrepid/lmce-alpha-latest/binary-all/mail-transport-agent_1.0_all.deb &lt;br /&gt;
 dpkg-scanpackages . &amp;gt;Packages&lt;br /&gt;
 gzip -c Packages &amp;gt; Packages.gz&lt;br /&gt;
 popd&lt;br /&gt;
&lt;br /&gt;
Now, on your new or test core, execute another apt-get update, and you are good to go for the mce-install.sh&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
If you want to speed up building on a multi-core machine, amend build-scripts/build-maindebs.sh and change the call to MakeRelease to include -j &amp;lt;number of cores&amp;gt;. Before executing the build, copy libresolution.so from an older build to your lib dir, and run ldconfig.&lt;br /&gt;
&lt;br /&gt;
=== Without -j 2 ===&lt;br /&gt;
 23:36:44  Compiling and building packages&lt;br /&gt;
 01:42:50  *** STEP: Download closed source debs&lt;br /&gt;
&lt;br /&gt;
 Total: roughly 2h 6minutes for compiling&lt;br /&gt;
&lt;br /&gt;
=== With -j 2 ===&lt;br /&gt;
 13:13:44  Compiling and building packages&lt;br /&gt;
 14:51:56  *** STEP: Download closed source debs&lt;br /&gt;
&lt;br /&gt;
 Total: roughly 1h 38minutes for compiling&lt;br /&gt;
&lt;br /&gt;
=== Error during prepare step ===&lt;br /&gt;
If you get an error during the prepare stage&lt;br /&gt;
 E: Couldn&#039;t find package libvdpau-dev&lt;br /&gt;
make sure to have avenard repo in your builders sources.list&lt;br /&gt;
&lt;br /&gt;
 deb http://www.avenard.org/files/ubuntu-repos/ intrepid release testing&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Virgin Kubuntu 8.10 builder (no chroot) notes ===&lt;br /&gt;
-As pointed out above, do not run the command below, it is not needed when you aren&#039;t chrooted.&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;sed &#039;s/^[^#]*bind-address[[:space:]]*=.*$/#&amp;amp;\nskip-networking/&#039; -i /etc/mysql/my.cnf&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- After you reboot, you will notice that KDE mysteriously vanished, and you will go to a gnome desktop.  I&#039;m not sure why this is, but it does not seem to affect the builder any.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- If you want to run this builder headless (or just want to ability to ssh in to it), then you must configure it for ssh access by installing an ssh server&lt;br /&gt;
 sudo apt-get install openssh-server&lt;/div&gt;</summary>
		<author><name>Skbohra</name></author>
	</entry>
</feed>