How to form your own distro LIVE

Each distribution has a version of "live" to allow for verification, test and study how it works and if it is the distro that does for us.
But once you find our distribution, once we have the custom programs that interest us and freed of unnecessary programs that we believe would be a great thing to be able to re-turn it into a "distro" live.
Obviously there is already someone on the internet who has designed and created a series of scripts to transform our installation in a live distro, the site we're talking about is www.linux-live.org

Linux Live is a set of shell scripts that allows you to create your own live distribution, starting from what has already been installed on the PC. The live type will be bootable from cd-rom from any USB system.

Here are the instructions taken directly from the site.

How to build a Live distro:
1) Install your favorite distro to disk partition, or into a folder on your existing system.
Slackware is recommended but not required.

2) Build aufs kernel module and squashfs kernel module (patched to support LZMA Optionally)
The above step is not required if you use Precompiled Linux kernel from this website
Install kernel modules to the newly installed distro to / lib / modules / `uname-r` / fs /.
Make sure you are running the examination used to compile the kernel modules you

3) Remove all Unnecessary files (for example man pages and other files you do not need to),
Live to make your Linux system as small as possible (this step is optional).

4) Download Linux Live scripts from this website and unpack it in / tmp
Read. / DOC / requirements.txt to find out what linux-live scripts need
Edit the. Config file if you need to modify some variables

5) Finally login as root and run. / Build
Live distribution's 'directory tree' will be created in / tmp/live_data_1234
where 1234 is a random number

6) To make ISO image, run make_iso.sh
To make a bootable (USB) drive, run bootinst.sh

Working example:
If you're just looking for a working Linux Live system, visit www.slax.org
Interesting features of Linux Live scripts

1) persistent changes
Use 'changes ... =' boot parameter to Specify persistent changes directory or file. If a directory is used, eg. changes = / some_dir / and the / some_dir / is found on some partition on your disk, then all the changes made to the filesystem root directory will be saved To That. This works even if / some_dir / is on NTFS or VFAT, thanks to posixovl overlay (an userspace filesystem Already included). Important note: if you plan to save changes on VFAT, make sure to modify your distribution's shutdown scripts. It must not execute killall, and everything else is Killed posixovl is wrong. Instead, call the cleanup script from / mnt / live / cleanup. If a file is specified for the boot parameter changes, eg. changes = / path / file.dat, and the file has a valid filesystem inside, then the files will be loop-mounted and written changes to it. You May Also use changes = / dev/sda1/path / and changes = / dev/sda1/path/file.dat ... Particular to Specify where to look for devices. Other devices will be skipped (will not be mounted even).

2) adding modules on the fly
In the. / Tools / directory of Linux Live, you will find 'active' and 'deactivate' scripts. These two methods You may use to add and remove additional LZM modules to the root filesystem on the fly, while your OS is running Live.

3) installable system to disk
As Mentioned in the previous section, there exists a script Called bootinst.sh (and bootinst.bat) to setup a boot sector to boot Linux from Live disk. If you combine That with persistent changes, your live distro will behave like INSTALLED, all changes are stored transparently to the boot media (even to USB), and you can still use 'activate' and 'deactivate' commands to Manipulate the root filesystem.

What do you think? Some of you have already tried to use it?

Posted under Technology

This post was written by admin on October 28, 2008

Tags: , ,

Other Posts

6 Comments so far

  1. Stirner October 28, 2008 12:35 pm

    Well ... .. I think it would be best to try to really have it on your own understanding what you are doing.

    It could start from a scratch for which there are also the Minilite the package cache, expand the compressed file system (cloop or squash) chroot into the directory that houses the uncompressed fs and strokes of apt-get (debian .. if derivative. .) customize everything to your liking. I let the man pages for example and remove the locales that do not interest me, move outside of the package cache file to be compressed, and so on. and so on.
    In this way we could also compile our own kernel, update qlcuni important packages from source, fill out a form, etc.. and so on.

    Basically I prefer to become part of my script ... at least I understand them!

    Max

  2. admin October 28, 2008 1:12 pm

    You are absolutely right! But let's get a view of a person who knows little, that is not geek, who has a need and do not want to fiddle with it to learn and understand what they are doing. If we view the "easy technology", these scripts are a godsend :)

  3. Robert October 28, 2008 6:22 pm

    > But let's get a view of a person who knows little, that is not geek, who> need and do not want to fiddle with it to learn and understand what they are doing. If> we view "technology convenient", these scripts are a godsend :)
    if one is not 'a geek, takes its knoppix and he keeps his mouth shut.
    = learning effort, we want to understand or not?

  4. admin October 29, 2008 9:46 am

    @ Roberto
    I do not understand this hatred towards those who need something and, thanks to the Internet, is already done and working.
    It would be like saying that driving a car I need to know all about thermodynamics and the Carnot cycle ...
    I need a script ... If one wants to use it then they can learn in detail what these scripts, but maybe not :)

  5. Stirner October 29, 2008 1:55 pm

    Time ago I wrote a guide: http://knoppix.crealabs.it/viewtopic.146.html closed and then the forum has aged there.

    The "DIY" I proposed in the short run would definitely be a greater effort, but once you understand the mechanism can become any customization.
    Today I made up my live with the 2.6.27.4 kernel 2.6.27.1 because he had problems with some USB devices.
    Here http://www.nabble.com/Cloop-and-2.6.27-kernel-to20000679.html there is the opportunity to collaborate with the creator of the "mother" of all live!

    Greetings and have fun ;-)

    Max

  6. admin October 29, 2008 2:08 pm

    @ Stirner
    Thanks for the info!
    If you want, you can send me your guide to the "place", it will be useful to many people!

Trackbacks

Leave a Comment

Name (required)

Email (required)

Website

Comments