Difference between revisions of "Projects/Plasma/NetbookReference"

Jump to: navigation, search
(Introduction)
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
Plasma is creating a reference image for the Netbook shell.
+
Plasma is creating a reference image for the Netbook shell.  The Plasma Netbook team hopes to learn what good default configurations are through user feedback and usability testing.  By creating a Live CD/usb disk image that can be easily and directly modified, changes can get wider testing more quickly and with a shorter feedback cycle, and the Reference Edition contains only upstream packages with no distribution specific configuration, branding or patching.
  
You need to log in to the build service website, in order to see most of the settings.
+
<br>The Plasma Netbook Reference Edition uses the Build Service for an easy way to generate Live images based up KDE trunk, and integrate changes from testers and developers.  For now it is x86 only, based on openSUSE Factory and openSUSE 11.2.
  
== Buildservice ==
+
The steps involved in contributing the the Plasma Netbook Reference Edition are:
https://build.opensuse.org/project/show?project=KDE%3ANetbook
 
  
 +
* Try the Reference Edition
 +
* Get set up to use the Build Service
 +
* Make your own branch
 +
* Build it
 +
* Tweak the settings
 +
* Test it
 +
* Contribute your changes back to the Reference Edition
  
For now x86 base factory, 11.2
+
or simply
  
<br> Command line tool "osc" (try to get a not too old version) and build tool (for debian: http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_5.0/all/build_2010.02.02-1_all.deb). For Suse install packages osc and build.
+
* Try the Reference Edition
 +
* [http://bugs.kde.org Report bugs]
  
http://download.opensuse.org/repositories/openSUSE:/Tools/
+
==Contributing==
 +
===Try the Reference Edition===
 +
You can get the Reference Edition at http://download.opensuse.org/repositories/KDE:/Netbook .
 +
The iso is a finished disk image that you can dd to a USB stick and boot.
  
<br> To get the project:  
+
===Get set with the Build Service===
<pre>osc co KDE:Netbook</pre>
+
To start making your own changes, you need to a login to the [https://build.opensuse.org Build Service website].  An OpenID login is being worked on.
 +
 
 +
You need some tools to get started:
 +
A full list of repositories is at the osc link below, but some common ones are
 +
* http://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_11.2
 +
* http://download.opensuse.org/repositories/openSUSE:/Tools/Debian_5.0/
 +
* http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_9.10/
 +
* http://download.opensuse.org/repositories/openSUSE:/Tools/Fedora_12/
 +
* http://download.opensuse.org/repositories/openSUSE:/Tools/Mandriva_2010/
 +
 
 +
To work efficiently with the OBS, you need the [http://en.opensuse.org/Osc#osc.2C_the_Python_command_line_client osc command line client].  The Build Service website is also an OBS client.  To build your own images, you need the [http://en.opensuse.org/KIWI kiwi] command line tool, and the 'build' package.
 +
 
 +
===Branch it in the OBS===
 +
The Build Service contains a branch/merge mechanism that allows you to submit your package modifications back to the main project in the same manner as a git tracking branch.  This allows changes to be reviewed by the Plasma team.
 +
 
 +
Once you have the tools installed, create a branch with:
 +
 
 +
osc branch KDE:Netbook
 +
 +
then check out your branch with the command output by 'osc branch' above.
 +
 
 +
===Build it===
 +
Since image builds consume a lot of resources, only the main KDE:Netbook project builds on the server.  You can build your branches locally like this:
  
Build locally:
 
 
<code>osc build images i586 kde-four-live.kiwi</code>
 
<code>osc build images i586 kde-four-live.kiwi</code>
On debian the signature of the packages can not be verified, so I turned that off (needs to be fixed):
+
On debian the signature of the packages cannot be verified, so we turned that off (needs to be fixed):
 
<code>osc build images i586 kde-four-live.kiwi --no-verify --linksources</code>
 
<code>osc build images i586 kde-four-live.kiwi --no-verify --linksources</code>
*<code>--linksources</code> don't copy packages over but link them
+
*<code>--linksources</code>save disk space by not copying packages to the build chroot but link them
 +
 
 +
The first build will take a long time to fetch the base packages from the server, but these are cached.
 +
 
 +
===Tweak the settings===
 +
You can tweak the resulting image by either modifying the package list in the file kde-four-live.kiwi from plasma-image, modifying the packages themselves, or by changing the configuration files in the plasma-netbook-desktop package.  You already have a checkout of these packages in your branch.
 +
 
 +
===Test it===
 +
After changing something, rebuild the image and test it on a netbook or in a virtual machine.
 +
 
 +
===Submit changes back===
 +
When you have changes in your branch that you want to merge back to KDE:Netbook, <code>osc submitrequest</code> will create a request to merge the changes.  When the request is accepted, your branch will be rebased on the updated original
 +
 
  
=== Packages ===
+
==Technical Details==
 +
 
 +
===Packages===
 
A short description of what we have in the project.
 
A short description of what we have in the project.
  
Most packages come from openSuse.
+
Most packages used to build the image come from openSUSE. By declaring additional or replacement packages in KDE:Netbook, or your branch, we customise the image.
* plasma-image this is the resulting usb stick image (or whatever)
 
* plasma-netbook-desktop this package will contain our modifications (for example starting the netbook plasma shell by default)
 
 
 
== KIWI - creating a harddisk image ==
 
  
 +
* plasma-image this 'package' is actually resulting USB stick image (or whatever)
 +
* plasma-netbook-desktop this package contains Plasma's modifications to the system configuration, for example starting the netbook plasma shell by default.
  
As base we use KDE Four Live.
+
===KIWI - creating a harddisk image===
 +
As a base we use [http://home.kde.org/~kdelive KDE Four Live].  The Build Service package for this is [https://build.opensuse.org/package/show?package=kde-four-live&project=KDE:Medias here].
  
 
The description what will be built in the end is in the .kiwi file.
 
The description what will be built in the end is in the .kiwi file.
Line 43: Line 87:
 
http://en.opensuse.org/Build_Service/KIWI/Cookbook</pre>
 
http://en.opensuse.org/Build_Service/KIWI/Cookbook</pre>
  
 +
On the project page: we can configure whether to publish at the 'Flags for Experts' link
  
On the website: we can configure whether to publish (expert flags).
+
The status of the build can also be seen on the project page:
 +
https://build.opensuse.org/project/monitor?project=KDE:Netbook
  
The status of the build can be seen on the project page:
+
there are some build repositories registered for the project:
https://build.opensuse.org/project/add_target_simple?project=KDE%3ANetbook
 
there are some build repositories:
 
 
*images: the kiwi image, that will be the iso
 
*images: the kiwi image, that will be the iso
*openSUSE_11.2: the open suse stable repo
+
*openSUSE_11.2: the openSUSE stable repo
*openSUSE_Factory: the newer kde builds, when we want bleeding edge
+
*openSUSE_Factory: openSUSE development branch, when we want bleeding edge kernel, XOrg etc.
  
 
The openSUSE repos are needed when we create custom packages.
 
The openSUSE repos are needed when we create custom packages.
  
You can download the binary image using osc (or the web interface):
+
You can download the finished binary image whether or not publishing is using osc (or the web interface):
 
<code>osc getbinaries images i586</code>
 
<code>osc getbinaries images i586</code>
If you have a usb stick to test the image with, double check the device and directly bunzip the image onto the rood device of the usb stick:
+
If you have a USB stick to test the image with, double check the device node, /dev/sdX is just an example, and directly bunzip the image onto the root device of the usb stick:
<code>bunzip2 -c Plasma-Netbook-Reference.i686-0.1.0-Build8.1.raw.bz2 > /dev/sdX</code>
+
<code>bunzip2 -c Plasma-Netbook-Reference.i686-0.1.0-Build8.1.raw.bz2 > /dev/sdX</code>.

Revision as of 11:18, 9 March 2010

Introduction

Plasma is creating a reference image for the Netbook shell. The Plasma Netbook team hopes to learn what good default configurations are through user feedback and usability testing. By creating a Live CD/usb disk image that can be easily and directly modified, changes can get wider testing more quickly and with a shorter feedback cycle, and the Reference Edition contains only upstream packages with no distribution specific configuration, branding or patching.


The Plasma Netbook Reference Edition uses the Build Service for an easy way to generate Live images based up KDE trunk, and integrate changes from testers and developers. For now it is x86 only, based on openSUSE Factory and openSUSE 11.2.

The steps involved in contributing the the Plasma Netbook Reference Edition are:

  • Try the Reference Edition
  • Get set up to use the Build Service
  • Make your own branch
  • Build it
  • Tweak the settings
  • Test it
  • Contribute your changes back to the Reference Edition

or simply

Contributing

Try the Reference Edition

You can get the Reference Edition at http://download.opensuse.org/repositories/KDE:/Netbook . The iso is a finished disk image that you can dd to a USB stick and boot.

Get set with the Build Service

To start making your own changes, you need to a login to the Build Service website. An OpenID login is being worked on.

You need some tools to get started: A full list of repositories is at the osc link below, but some common ones are

To work efficiently with the OBS, you need the osc command line client. The Build Service website is also an OBS client. To build your own images, you need the kiwi command line tool, and the 'build' package.

Branch it in the OBS

The Build Service contains a branch/merge mechanism that allows you to submit your package modifications back to the main project in the same manner as a git tracking branch. This allows changes to be reviewed by the Plasma team.

Once you have the tools installed, create a branch with:

osc branch KDE:Netbook

then check out your branch with the command output by 'osc branch' above.

Build it

Since image builds consume a lot of resources, only the main KDE:Netbook project builds on the server. You can build your branches locally like this:

osc build images i586 kde-four-live.kiwi On debian the signature of the packages cannot be verified, so we turned that off (needs to be fixed): osc build images i586 kde-four-live.kiwi --no-verify --linksources

  • --linksourcessave disk space by not copying packages to the build chroot but link them

The first build will take a long time to fetch the base packages from the server, but these are cached.

Tweak the settings

You can tweak the resulting image by either modifying the package list in the file kde-four-live.kiwi from plasma-image, modifying the packages themselves, or by changing the configuration files in the plasma-netbook-desktop package. You already have a checkout of these packages in your branch.

Test it

After changing something, rebuild the image and test it on a netbook or in a virtual machine.

Submit changes back

When you have changes in your branch that you want to merge back to KDE:Netbook, osc submitrequest will create a request to merge the changes. When the request is accepted, your branch will be rebased on the updated original


Technical Details

Packages

A short description of what we have in the project.

Most packages used to build the image come from openSUSE. By declaring additional or replacement packages in KDE:Netbook, or your branch, we customise the image.

  • plasma-image this 'package' is actually resulting USB stick image (or whatever)
  • plasma-netbook-desktop this package contains Plasma's modifications to the system configuration, for example starting the netbook plasma shell by default.

KIWI - creating a harddisk image

As a base we use KDE Four Live. The Build Service package for this is here.

The description what will be built in the end is in the .kiwi file.

Find it in your checkout in KDE:Netbook/plasma-image/kde-four-live.kiwi

For more documentation about KIWI, see here:

http://en.opensuse.org/KIWI
http://en.opensuse.org/Build_Service/KIWI/Cookbook

On the project page: we can configure whether to publish at the 'Flags for Experts' link

The status of the build can also be seen on the project page: https://build.opensuse.org/project/monitor?project=KDE:Netbook

there are some build repositories registered for the project:

  • images: the kiwi image, that will be the iso
  • openSUSE_11.2: the openSUSE stable repo
  • openSUSE_Factory: openSUSE development branch, when we want bleeding edge kernel, XOrg etc.

The openSUSE repos are needed when we create custom packages.

You can download the finished binary image whether or not publishing is using osc (or the web interface): osc getbinaries images i586 If you have a USB stick to test the image with, double check the device node, /dev/sdX is just an example, and directly bunzip the image onto the root device of the usb stick: bunzip2 -c Plasma-Netbook-Reference.i686-0.1.0-Build8.1.raw.bz2 > /dev/sdX.


Content is available under Creative Commons License SA 4.0 unless otherwise noted.