LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-05-2008, 05:05 PM   #1
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Rep: Reputation: 31
Make live cd from a running debian?


Hello all!

I have a project... or a dream: making my own live-cd with a customized debian system. Ideally that live-cd could have an 'install' feature, to install on hds.
I've installed a Debian system (etch) with the set of applications that suites my needs.
I started looking at http://www.linux-live.org/, so I installed the kernel and modules provided by linux-live.org, with squasfs capabilities.
But with the documentation from linux-live.org I haven't been able to create the live-cd yet.

Does anybody knows where I can find more documentation or an step by step guide to linux-live software?
Or may be exist another way to create a Debian live-cd from a running Debian (hd installed)?

Thanks in advance,
Matías
 
Old 04-05-2008, 05:18 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
This project is somewhat dated but you can use it as a basis for what you want to do.

http://users.rcn.com/srstites/LifeBo...home.page.html

-------------------
Steve Stites
 
Old 04-06-2008, 02:45 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Quote:
Originally Posted by matiasar View Post
Hello all!

I have a project... or a dream: making my own live-cd with a customized debian system. Ideally that live-cd could have an 'install' feature, to install on hds.
I've installed a Debian system (etch) with the set of applications that suites my needs.
I started looking at http://www.linux-live.org/, so I installed the kernel and modules provided by linux-live.org, with squasfs capabilities.
But with the documentation from linux-live.org I haven't been able to create the live-cd yet.

Does anybody knows where I can find more documentation or an step by step guide to linux-live software?
Or may be exist another way to create a Debian live-cd from a running Debian (hd installed)?

Thanks in advance,
Matías
The simple answer my friend is use bootcd package. It will do whatever you want to do.
http://packages.debian.org/search?ke...le&section=all

Also search for something like "How to build a live CD from bootcd" and you will find couple of good articles which explains that. I think one of them is on Debian Administration website.
 
Old 04-06-2008, 07:56 PM   #4
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Thanks

Jailbait, Kushal, thanks for your help!! I'll start doing some research in that way.

Matías
 
Old 04-07-2008, 04:48 AM   #5
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Check this thread out on another forum.

http://forums.debian.net/viewtopic.php?t=25752

It mentions something about live-helper...
 
Old 04-07-2008, 02:49 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Take a look at Debian Live..

View the FAQ to move your running system to a LIVE system..

http://debian-live.alioth.debian.org/
http://wiki.debian.org/DebianLive/

live-helper mentioned in the previous post is part of the Debian Live project.

Last edited by farslayer; 04-07-2008 at 02:52 PM.
 
Old 04-09-2008, 02:14 PM   #7
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321

Original Poster
Blog Entries: 1

Rep: Reputation: 31
debian-live... is so good!

Thanks all for your responses.
I took a first glance at Debian Live. It's seems so good!!!! I'm running my first tests.


Thanks!!
 
Old 04-09-2008, 02:49 PM   #8
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Quote:
Originally Posted by matiasar View Post
Thanks all for your responses.
I took a first glance at Debian Live. It's seems so good!!!! I'm running my first tests.


Thanks!!
Also, once you get some exciting results, can you please post your procedure or the steps so that other may benefit.

Best Luck.
 
Old 05-30-2008, 07:59 AM   #9
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321

Original Poster
Blog Entries: 1

Rep: Reputation: 31
My procedure for live-helper

Well, after taking some time with live-helper I finally did something interesting.

This is the procedure I've followed, picking info from here and there.

1) I'm using etch, so I installed live-helper scripts from Debian backports, as explained in the project wiki: http://wiki.debian.org/DebianLive/Backports.

2) Create a list of packages to include in the live-cd by creating a file:
/usr/share/live-helper/lists/my_livecd

3) Create the directory which will hold the files: in my case
#mkdir /root/debian-live/

4) Run lh_config:

#cd /root/debian-live
#lhconfig -p my_livecd --debian-installer=enabled

5) Build:

# lh_build

At this point in /root/debian-live/ there are the live-cd structure and a file colled binary.iso. It is a good idea to test it with qemu or the virtual machine of your choice.

6) Some customizing:

This is where I found Debian-live wonderfull. It is easy to customize.

#chroot /root/debian-live/chroot

Now you can do apt-get install what you want. Also change configurations, change window manager, etc.
Remember to put any configuration files which should go to the default user home directory at: /etc/skel/

For example, I dropped there the conky configuration file: .conkyrc.


7) Recreate the customized iso:

Here is I found this little script, which recreates the iso after customizing. I put it at /root directory, logically you can choose the dir of your preference, as long as you change the paths in LIVE_ROOT and LIVE_CHROOT variables.


#/root/recreate.sh
LIVE_ROOT=debian-live
LIVE_CHROOT=debian-live/chroot

rm -f ${LIVE_ROOT}/binary/casper/filesystem.*
rm -f ${LIVE_ROOT}/*.iso
mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs

mkisofs -A "Debian Live" -p "Custom Debian Live CDROM;" \
-publisher "The Live CD Cabal" \
-o "${LIVE_ROOT}"/"${LIVE_IMAGE}"binary.iso \
-r -J -l -V "Debian Live `date +%Y%m%d`" \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table "${LIVE_ROOT}"/binary

#-----



Well, I suppose there are some other ways of doing this.
Now my TODO list includes testing the installation to hd from booting the live-cd. I wonder if the installer will install all the packaged and configurations included in the live-cd... Does anybody knows?

And also I will test creating Lenny or Sid images.

My congratulations for the Debian developers and community.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I wanna make a live slackware live cd. Please help cyto Slackware 7 08-04-2011 02:23 AM
Debian Live CD, with 'live-helper' package xxAlk3XKidXx Debian 0 06-03-2007 03:29 AM
every live distro make make screen out of frequency clhona Linux - Hardware 2 02-14-2007 01:46 AM
Help with Running Live CD N/A Linux - Newbie 13 11-22-2006 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration