Create your own spinoff!

If you are in a small company or simply in a situation where you want to install a preselected list of programs then why shouldn’t you just grab SabayonCore modify the ISO so it will have anything you want and burn that to a disc. Or maybe you want to create your own Sabayon based distro and fork it a bit? Yes you can!

The tool we have in stock to achieve this is called molecule.
First install molecule (equo install molecule)

Then grab an example spec file.

All I can say is that if you want to start something based on the CoreCD you want to have a look at this spec file:

http://gitweb.sabayon.org/?p=molecule.git;a=blob;f=examples/specs/5-x86-g-remaster-add-games.spec;h=5623f42dee8595990663ad2e72697cafd9ce9143;hb=29d45a193430bc8afbda65d0cf10f692144f5f70

(also found in /etc/molecule/examples)

Since I am for now only looking into a 64bits mastered ISO I’ve commented out:

# pre chroot command, example, for 32bit chroots on 64bit system, you always
# have to append "linux32" this is useful for inner_chroot_script
# prechroot: linux32

Next I point to where My ISO I want to remaster is:

# Path to source ISO file (MANDATORY)
source_iso: /home/joost/Sabayon_Linux_CoreCD_DAILY_amd64.iso

Now where does this all go:

# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /home/joost

Tell molecule to update that ISO before installing anything (that is the next point in line)

# Determine whether repositories update should be run (if packages_to_add is set)
# (default is: no), values are: yes, no.
execute_repositories_update: yes

Tell it to add packages (in this case my set @lxde)

# List of packages that would be added from chrooted system (comma separated)
packages_to_add: @lxde

Ofcourse you can add as many packages here as you want!

I can imagine this does not actually give the perfect result yet.
In my example I use the @lxde set and it contains the gdm login manager by default. On CoreCD chroot there is actually nothing that triggers this to auto start. We also need to configure a file called /etc/conf.d/xdm and set it to use gdm.

Here an example snip. how thats done:

Make it use gdm:
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="gdm"/g' /etc/conf.d/xdm

Make xdm startup automaticly (and thus load gdm)
rc-update add xdm

so I created inner_chroot_script_after.sh
#!/bin/bash
# Use gdm by default
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="gdm"/g' /etc/conf.d/xdm
# automaticly start xdm
rc-update add xdm
# to be sure, cleanup
equo cleanup

All these commands should be put in a file, and we point our specs file to trigger it from within the chroot like this:
# Inner chroot script command, to be executed inside destination chroot after
# packages installation and removal
inner_chroot_script_after: /home/joost/inner_chroot_script_after.sh

Now run molecule and make it all happen:
molecule sabayon-lxde-amd64.spec

Keep in mind I cannot guarantee anything YET, but it should give you a head start.
Also note that this is a strategy used where we take an excisting iso and modify it basicly. Much more advanced things ARE possible but lets start here rite?

About these ads

  1. #1 by Omar on May 10, 2010 - 5:07 am

    Thanks Joost!!! :-)

  2. #2 by full0t0n3 on May 14, 2010 - 6:49 pm

    nice with that explanation we’ll get a lot sabayon flavours

    thx a lot Joost

    greets from Belgium

    keep going
    cheers

  3. #3 by totedati on May 21, 2010 - 7:00 pm

    yeah … interesting … maybe molecule infrastructure can be morphed/extended to spit out an ready to use liveusb image not only iso images …

    is an interesting tool and because i am a little unhappy with default package selection in kde livedvd v5.2, no konqueror!? uhoh … no mplayer? pffff …, will try to test molecule …

  4. #4 by Liliane McDonald on May 26, 2010 - 12:06 am

    is an interesting tool and because i am a little unhappy with default package selection in kde livedvd v5.2, no konqueror!? uhoh … no mplayer? pffff …, will try to test molecule …
    +1

  5. #5 by t on May 30, 2010 - 5:49 pm

    Nice post!

    Have you created your own spin using xfce desktop environment? I would love to try Sabayon with :

    -xfce desktop environment ((Would I need xorg?))
    -32 bits version
    -ipw2200 firmware

    Lasrt week I used Sabayon Core to make my own my I got an error when Xorg was installed.

    Any suggestion?

    Thanks.

    -t

    • #6 by joostruis on June 9, 2010 - 12:10 pm

      XFCE is in the works and nearly complete.

      • #7 by tony on June 9, 2010 - 8:50 pm

        I can not wait to see it!!!

  6. #8 by bourn3 on June 6, 2010 - 7:34 am

    umm can I layman -s pentoo?i mean to get pentoo portage(and packages)..

    • #9 by joostruis on June 9, 2010 - 12:11 pm

      Yes but a more clean approach would be to request whatever packages you need for Entropy or create your own community repository and install them from there.

  1. Anonymous
  2. Planet Sabayon Brasil » Construindo seu prĂ³prio Spinoff!
  3. Learning While Playing for a Better World

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 177 other followers

%d bloggers like this: