LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-05-2008, 10:33 AM   #1
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Rep: Reputation: 31
How to install live-cd to hd?


I created a Debian Live-cd using live-helper (great package!!!). I customized it installing my preferred window manager, and packages I use.
I included in the live-cd the "Debian installer", but I think that the installer will install the basic Debian, without the "customization" soft and configurations.

I wonder if there is some way of adding a hd install feature, that could "dump" the live-cd with all the software included to hd.

Thanks in advance,
Matías
 
Old 06-05-2008, 11:53 AM   #2
thornbush
Member
 
Registered: Jan 2008
Location: Brazil, state of São Paulo, Jundiaí city
Distribution: Debian squeeze/wheezy; LMDE-XFCE
Posts: 35

Rep: Reputation: 15
thread of Debian's Forum

Dear matiasar,
Please, check the following thread link:
http://forums.debian.net/viewtopic.p...926&highlight=
In this thread, I, a new user, without experience and knowing, received many help in the Debian's Forum. Read from the last page to the first. They counsel me not to install from the Live CD, but from a installer CD. They gave all the details of how to install any aplication, the XWindowSystem and both the KDE and fluxbox.
I hope that it can help you.
 
Old 06-06-2008, 04:35 PM   #3
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Original Poster
Rep: Reputation: 31
thornbush,

Thanks for the info!
I took a glance at the post you gave me. I'll read a little more, but I'm not sure if is the same case.
What I'm trying to do is a something like an unnattended installation that "copy" all the live-cd contents including the customization I did (packages, /etc, /home/users) to hd. The idea is boot with that live-cd and do an "install" feature able to copy the live-cd content to hd, like many live-cd does.

I'm a newbie too... As I see tou are from Brasil: obrigado pela ajuda!
 
Old 06-08-2008, 01:17 AM   #4
thornbush
Member
 
Registered: Jan 2008
Location: Brazil, state of São Paulo, Jundiaí city
Distribution: Debian squeeze/wheezy; LMDE-XFCE
Posts: 35

Rep: Reputation: 15
Dear Matiasar,
Yes, I'm Brazilian. You are from Argentina, wright?
As the most, the problem you have reported is in a high level for me, but it was a pleasure to try help.
 
Old 06-08-2008, 04:46 AM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
matiasar you will do better doing the full installation cd than the trying to install the live cd. The live cd compresses and uncompresses files on the fly which slow down your computer. Customize the full installation after you get it installed by using your package manager and of course you can limit programs that run on start also to help the speed.
 
Old 06-08-2008, 04:51 PM   #6
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Thornbush and Larry,

First of all, thanks for the help and advices.
Let me tell you a little more of my project. What I did is a first "testing" iso of Debian based live live-cd focused in educational software, intended for use at schools. The goal is kids at school to learn about linux and open source.
So I choose icewm and I plan to replace gdm with slim, in order to that live cd run fast even in modest and quite old computers.

I'd like to do some research to see if I could add an "installer" to the live-cd in order to be easy to install by kids or IT teachers. That way the little cd would become close to a "distro".
The goal of the installer would be to do a Debian installation, but installing the package and the WM artwork and customizations I included in the live-cd.

Regards,
Matías
 
Old 06-10-2008, 12:09 AM   #7
thornbush
Member
 
Registered: Jan 2008
Location: Brazil, state of São Paulo, Jundiaí city
Distribution: Debian squeeze/wheezy; LMDE-XFCE
Posts: 35

Rep: Reputation: 15
Dear Matiasar,
I am using Kurumin 7.0, whose OS is the etch a little customized. He was the Debian CD's vendor who indicated it to me.
Before, I used an version of 2003/2004, named Kalango Linux (which already exists, more actualized, try to google it), based on Kurumin and on Debian unstable. In this version, whose CD I have, there was, at the button K, an option to create a version of Kalango remasterized (remasterizada, en Portugues). It can be an application to create a CD with your own customizations. I never used it, because I have not a CD recorder.
Opportunelly, I will try to learn more about.
I installed Gcompris and Childsplay in my desktop, and they are fantastic. My sons, specialy the oldest, 6 years old, enjoy it so much, and I am satisfied, because they are educational.
May God bless you in this work.

Dear Matiasar,
Please, see:
http://www.guiadohardware.net/kurumi...erizar-kurumin
It is in Portuguese.
The same script is opened in the refered Kalango Linux, at button K, system, "remasterizar Kalango (gere seu CD personalizado"
I will try to read here, traduced, now, a part of the script:
"Rematerizing-Kurumin
This script intends to make easy the work of 'remasterization' of Kalango. It gaters the scripts K-extract, k-rebuild, k-open and k-close which I developed to my own use but begin to be used by more people, as Kalango become popular.
The procedure of "remasterization" of CD is described in the second part of the manual of Kalango, which I will open following.
This script is destinated to professionals who know what they are doing. If you didn't read the manual (or if you read and didn't understood) or don't understand what we are spoking, press ctrl+c to close the window.
The script creates the directoryes Knxsourse and knxmaster within the directorye where the partition used to remasterization was mounted, as, e.g., /mnt/hda2/knxmaster e /mnt/hda2/knxsource
At the end of the proccess it is generated an archive Kurumin.iso in the same directory, which will imediately recorded if you leave a CD-R in the drive.
At home I use a partition separated for the archives of Kalango, the /dev/hda6. You can use any partition Linux, formated ext2 or reiserfs. This partition should have at least 1,5GB free.
It is impossible to use a Windows partition because they don't support symlinks and othe resources necessaries, which will make that the CD don't run.
You can remake a partition in you HD, creating the necessary partition using the qtparted or the cfdisk which follow the Kalango. This script has 4 functions: extract, remasterizing, reextract the image own to be executed with the Kalango runing in the CD. Don't try to run it at the HD. On the contrary, the CD will not run.
The functions to open the chroot of the image and generate the new ISO can be executed both in the CD or in the Kalango instaled in the HD."

It's the script opened in the live CD of Kalango Linux.

In its Konsole:
Where is K-extract
K-extract: /usr/local/bin/kextract
Where is K-rebuild
K-rebuild: /usr/local/bin/Krebuild
Where is K-close
K-close: /usr/local/bin/Kclose

Last edited by thornbush; 06-11-2008 at 11:57 AM. Reason: Adding informations
 
Old 06-11-2008, 12:56 PM   #8
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Dear Thornbush,

Thanks a lot for the information. I'had heard about Kurumin and Kalango. If I'm not wrong the first one means "little child" in Tupi-Guarani.
My 3 years old daughter also loves GCompris!!! I didn't know about Childsplay, so I'll take a look.

I'll take a look to the "remastering" used with Kurumin you gave me. I speak portugues, so there's no problem.
At the point I arrived with my project I did a remasterization of my live-cd using Debian live-helper.
What I'd like to add is some kind of "installer" to easily "deploy" the live-cd (within the software included) to hard disk. I think this feature would be similar to ubuntu installer.
May be is not easy but I'll keep on researching...

Regards,
Matías
 
Old 06-11-2008, 10:54 PM   #9
thornbush
Member
 
Registered: Jan 2008
Location: Brazil, state of São Paulo, Jundiaí city
Distribution: Debian squeeze/wheezy; LMDE-XFCE
Posts: 35

Rep: Reputation: 15
Dear Matiasar,
I can not understand what you are speaking about, but I can understand that you realize that what i write is not the way.
However, before I read your reply, I look for other informations. Allow me to copy it here.
Dear Matiasar,
The pointed above archives (in the script) are included also in the Kurumin 7.0, as we see in the following copy of the Konsole:
root@thornbush:/home/kurumin# whereis k-extract
k-extract: /usr/local/bin/k-extract
root@thornbush:/home/kurumin# whereis k-rebuild
k-rebuild: /usr/local/bin/k-rebuild
root@thornbush:/home/kurumin# whereis k-open
k-open: /usr/local/bin/k-open
root@thornbush:/home/kurumin# whereis k-close
k-close: /usr/local/bin/k-close
root@thornbush:/home/kurumin#
All the scripts of Kurumin 7.0 are under GPL v2 and can be founded in http://www.guiadohardware.net/kurumin/painel/ and http://www.guiadohardware.net/kurumin/bin/, as mentioned in one of Kurumin archives (/cdrom/index.html).
k-extract has 1,7Kb, k-rebuild, 114 bytes, k-open, 72 bytes, and k-close, 13,4 Kb.
There is another archive named /usr/local/bin/k-extract-psiso, which has 182 bytes. I don't know if it is necessary.
I think it should be sufficient to you. If it is not, I can try other thing.
Greetings.

Last edited by thornbush; 06-12-2008 at 11:22 AM. Reason: correcting mistakes of digitation
 
Old 06-12-2008, 12:30 PM   #10
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Dear Thornbush,

Thanks for the info!!!
Taking a look at Kurumin's site I found that the installation script called kurumin-install. I'll see if I can find it without downloading the whole iso of the distribution.
That script seems to do what I'm trying to achieve. I'll see if I can adapt it to my debian live-cd.
 
Old 06-12-2008, 08:34 PM   #11
souneedalink
Member
 
Registered: Jan 2008
Posts: 39

Rep: Reputation: 15
you could manually install the liveCD - http://forums.debian.net/viewtopic.php?t=18845

to include the debian installer you need to pass a lh_config option - http://forums.debian.net/viewtopic.php?t=25752

You could also remaster a GRML iso since it has a installer and is debian compatible.

If you do get a good script working I would be very interested in it also!
 
Old 06-13-2008, 08:28 AM   #12
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Original Poster
Rep: Reputation: 31
souneedalink,

That's a very good point to start with! I think that post at Debian forum will help me so much. I'll start working on a script to automate certain tasks like editing /etc/fstab...

Well, if I get some interesting result I'll post the script here.

PS: Yes, I did lh_config --debian-installer=enabled
But I think that's the plain Debian installer. To "dump" the live-cd to hd I think it is necessary to use the "copy and reconfigure" approuch described at the debian forum you gave me. Even though that kind of install it's not the best.

Thanks and regards,
Matías
 
Old 06-13-2008, 11:36 AM   #13
thornbush
Member
 
Registered: Jan 2008
Location: Brazil, state of São Paulo, Jundiaí city
Distribution: Debian squeeze/wheezy; LMDE-XFCE
Posts: 35

Rep: Reputation: 15
found the installation script without

Dear Matiasar,
Perhaps the last thread indicated, of Debian's Forum, will be the correct answer. Nevertheless:
Quote:
Originally Posted by matiasar View Post
I'll see if I can find it without downloading the whole iso of the distribution. That script seems to do what I'm trying to achieve.
I think it is sure that you can find the necessary archives without downloading the whole iso of the distribution. If it is not in the pages of "guia do hardware", it will be at knoppix or canottix pages, whose URLs I didn't write, but I can write opportunelly (they are also mentioned in the guide of Kurumin that I refered). If necessary, I can attach the archives which I have in an e-mail, because they have a small size.
Quote:
Originally Posted by matiasar View Post
I'll see if I can adapt it to my debian live-cd.
For general, since Kurumin's OS is the etch a little customized, its archives should be used with Debian. But, since it is a little customized, perhaps there will be the need of some adaptations.
Greetings.
 
Old 06-19-2008, 10:59 AM   #14
masinick
Member
 
Registered: Apr 2002
Location: Clinton Township, MI
Distribution: Debian, antiX, Kubuntu, Xubuntu, and many others
Posts: 597
Blog Entries: 15

Rep: Reputation: 70
Another possible alternative or two

Quote:
Originally Posted by matiasar View Post
I created a Debian Live-cd using live-helper (great package!!!). I customized it installing my preferred window manager, and packages I use.
I included in the live-cd the "Debian installer", but I think that the installer will install the basic Debian, without the "customization" soft and configurations.

I wonder if there is some way of adding a hd install feature, that could "dump" the live-cd with all the software included to hd.

Thanks in advance,
Matías
There is a Debian project called "CDD", which provides a set of tools to help you build custom CDs. There also exists a Bebian netinst to directly install a Debian system over the network from a small CD ISO image. I believe that there is also a Debian Live CD project. These existing projects could be used if you want to build your own system based exclusively on plain Debian software.

However, there is a distribution called AntiX, created by a guy who uses the handle "anticapitalista". He begins his work by basing it on SimplyMEPIS, then replaces the default SimplyMEPIS setup (which is in turn based on Debian) with lightweight window managers, and he removes many of the large applications.

AntiX can be used as a Live CD, and it also includes a routine that will quickly install the system to disk. I believe that it uses an approach to directly copy the contents of the Live CD to disk, then it provides configration tools to manage the resulting system.

I personally find AntiX to be a very good system. It runs great from Live CD, and it also installs very easily to disk. The software is somewhat more current than the most recently released version of SimplyMEPIS, which, by the way, could also provide you with a really nice full desktop, should you want to go that way. SimplyMEPIS 7.0 was released last Christmas season, near the end of 2007, but there has been little work done on it since then. In contrast, AntiX is up to release M7.2 and has been updated within the past few months, and it is based on newer software.

Perhaps one of these projects would provide you with a simpler starting point. There are plenty of Debian based projects, but they will require a bit more effort on your part to achieve the end result. Sounds like AntiX could potentially provide you with what you need now, or at least get you closer to your objective more quickly. I thought I would offer you these systems to give you a few more ideas. Which ever way you go, I wish you much success in your project!
 
Old 06-25-2008, 10:50 AM   #15
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Brian,

First sorry for my delay responding your post.
By some other ways I reached CDD too. It seems very promising and usefull specially when you need to run fast Debian installation with a bunch of software "ready to run" after installation.

I'not really in a hurry to achieve this objective, because I'm trying to learn as much as I could from the process. So I'd like to explore both CDD and the "copy" approach. If I'm not wrong many distro based on Knoppix use this "copy" approach even if not the best way to install a linux system.
That's why I think CDD approach must be much better for cases like servers or critical applications.

Well, at the point I reached, I was able to "copy" (or ~= "install") the live system to a hd partition, adjust grub and fstab. System boots ok from that partition but filesystem remains read-only. Still I wasn't able to figure out why.

Thanks a lot for the help and good ideas!
Matías
 
  


Reply

Tags
script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
MEPIS Live: can we install somethg with apt-get install ? frenchn00b MEPIS 9 03-31-2009 06:46 AM
live cd -> HD install -> back to live cd ? android6011 Linux - General 3 07-20-2006 01:06 AM
Install Live CD to HD? jimbo-62 Linux From Scratch 5 09-17-2005 07:55 PM
Linux Live CD install to HD linux216 Linux - Newbie 7 01-02-2005 03:09 AM
Fedora Live install? carlosinfl Fedora 1 10-20-2004 12:53 AM

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

All times are GMT -5. The time now is 09:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration