The Chakra Project

How to create a Chakra LiveMedia

From The Chakra Project - Wiki

Jump to: navigation, search

This tutorial teaches you how to create a Chakra LiveMedia using Larch7.

Contents

Introduction

Notice: Only chakra-minimal-(i686/x86_64)-testing profile fully works at the moment.

You should always read the README file before actually doing anything.

Also, know that Live-Scripts2 are still under heavy development, but usable. Visit the LiveCD Development Forum to ask questions about it or get further information.

Get the source code

First, you need to download Chakra live-scripts2. Make sure you have Git installed in your system, and run:

git clone git://git.chakra-project.org/chakra/live-scripts2.git
cd live-scripts2/

Install needed extra packages

Now you need to install some packages to get larch7 running. To do so, run this (as root):

pacman -Sy aufs2 aufs2-util cdrkit python-pexpect
pacman -U http://chakra-project.org/repo/chakra/i686/uipi-1.14-1-any.pkg.tar.xz

After the installation, run this script (as root) to test it:

./1-prepare.sh

Get the propertary drivers

Now it is time to get the propertary drivers. In order to do it, run:

  • Minimal edition (testing):
  • i686:
./2-chakra-minimal-testing-update-overlay-pkgs.sh i686
  • x86_64:
./2-chakra-minimal-testing-update-overlay-pkgs.sh x86_64

Once done, you should get an output similar to the one in the image below:

Click to enlarge.

Larch7

Graphical mode

Now you are ready to run this script:

./3-build-gui.sh

Then, you'll see this window:

Click to enlarge.

Click on "Browse for Profile" to get to this window:

Click to enlarge.

Now select the profile and click on "Choose". Then click on the "Installation" tab to get here:

Click to enlarge.

Edit 'addedpacks' is our next goal:

Click to enlarge.

Verify all fits, and click on OK. Next is the Edit 'pacman.conf repositories' button:

Click to enlarge.

Normally all should be fine here. Now you can click on the Install button to get here:

Click to enlarge.

Maybe you need to write down your root password.

Click to enlarge.

You can follow the progress now. When finished click on Done. Next is the Larchify tab:

Click to enlarge.

Click on Edit supported locales to change them:

Click to enlarge.

When finished click on Done and on Larchify.

Click to enlarge.

This time it takes longer. Get a coffee ;). Once finished, click on Done. You're almost done. Click on the Prepare Medium tab.

Click to enlarge.

Select syslinux/isolinux and hit Create larch medium.

Click to enlarge.

After a couple of minutes you'll get this (last) message:

Click to enlarge.

Command line mode

Larch has also a command line mode, but it wasn't tested yet with Chakra LiveMedia.

Hybrid ISO creation

Now you can patch your created iso for USB-Stick usage.

Tweaks

Setup larch-config for i686 build on a x86_64 host

Save this as ~/.config/larch/larch-config if you want to build a i686-disc on a x86_64 host:

[chakra-mini-i686-testing]
profile = /home/phil/.config/larch/working_dir/MyProfiles/chakra-minimal-i686-testing
pacman_cache = /var/cache/pacman/pkg32
medium_iso = yes
install_path = /home/larchtesting32
medium_btldr = syslinux
platform = i686
medium_search = label

[chakra-mini-x86_64-testing]
profile = /home/phil/.config/larch/working_dir/MyProfiles/chakra-minimal-x86_64-testing
medium_iso = yes
install_path = /home/larchtesting
medium_btldr = syslinux
platform = x86_64
medium_search = label

[_]
project = chakra-mini-i686-testing

Edit profile, install_path and pacman_cache lines. Create those folders:

mkdir -p /home/larchtesting
mkdir -p /home/larchtesting32
mkdir -p /var/cache/pacman/pkg32

Notice you can call them different if you want to.

Personal tools