LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 04-23-2002, 09:58 AM   #1
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 45
Lightbulb April ramblings


I've been thinking, a dangerous thing on a tuesday I know, but still, i've been thinking.

One of my thoughts was that LFS is great becuase you can install from scratch only the software that you want to install, nothing new there, but one thing that is quite difficult is remembering what you have actually installed after the base system. I mean, I have been trying to get galeon to compile, and I must have installed at least 20 new librarys, programs, to get through the configure phase of galeon. Not that I mind, its just that I can't remember half the things I have installed, and if I was to install more software I know my memory would just collapse!

Is there a way of simplifying this process? What I don't like is the rpm system, because it has caused so much trouble for myself. So my LFS comp is going to be rpm free! But if there was a way to re-call everything installed, that would be great.

Another thing that I thought about was that all I did during the installation was to copy and paste the commands from the book. This lead me to think that maybe it would be possible to automate the installation process. I realise that most ppl who use LFS are going to be mostly wanting to configure individual packages for their machines, but there may be some who just want a from scratch machine, and an automatic installation would be the way for them.

It is just a thought, but maybe something for the far distant future.
 
Old 04-23-2002, 10:40 AM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
In effect you are looking for a package manager and an automated installation. Both are available in various ways.

Package manager: Very shortly now, http://ftp.linuxfromscratch.org/misc...fs-0.2.tar.bz2 will be added to the book (as soon as version 1.0 of it is ready). It's primary goal is checking installations against an installation log file to make sure that you have all the right files in the right places (provided you're not straying from the suggested installation methods used in the book, prefixes, and so on).

That package also contains the log-install script that I use to create those installation logs. It's a very simple bash script that touches a temporary file, tells you to go install the package, then it will basically run "find / -cnewer tmpfile" to collect all the files and directories that were modified after that tempfile was created. It's not 100% fool proof, but it works well enough for most people's purposes.

If you use log-install for every package installation, you'll have a bunch of files in /usr/share/checklfs/install-logs. You get to name the files yourself, so you'd use package-version as the fileformat.

The checklfs package also has a pkgdel script that parses a log file and removes the files therein. Be careful here, sometimes a package may update some other packages file so you need to edit that installation log file before you blindly trust it's contents.

There are other package managing tools out there. See http://hints.linuxfromscratch.org/hints.html and http://search.linuxfromscratch.org

Second point, automated installations. We're working on it already, see http://automated.linuxfromscratch.org
 
Old 04-24-2002, 05:44 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
I'm not too fond of package managers so what I did is keep a log of what I installed. I also added comments on any exotic things I needed to change to get the package installed or running the way I wanted. The log is just a bunch of plain text ascii files. Nothing automatic but at least it will help me if I ever want to recreate the complete system again from scratch.
 
Old 04-24-2002, 09:55 AM   #4
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Original Poster
Rep: Reputation: 45
Thanks for the replies. As for the package management I like the idea of recording what is installed. That is basically what I want, nothing which will stop me from installing packages because I don't have one pre-requirement already installed.

I didn't realise that the automated install was under way! I think that it would be a great thing to complete and look forward to the end result. Adding on to that, do you ever think that it would be possible to install from a cd one day? I mean, I know you need linux already installed, but couldn't a linux system be installed to RAM, then the LFS process could take over? It is just a thought mind you, I still don't understand fully what is/isn't possible.

Cheers again.
 
Old 04-24-2002, 03:20 PM   #5
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Installating from CD is actually possible and it's not hard.

Basically what you need to do if you were to create your own cdrom is this:

1) Build and LFS system according to chapter 5.

2) Add a few more utilities that you need such as mount (from util-linux), mke2fs (e2fsprogs), mkreiserfs (reiserfsprogs), fdisk (util-linux again) and so forth

3) burn whatever is in /mnt/lfs to a cdrom and make that cdrom a bootable one (so you have to craete a bootimage too somewhere). Then you boot from that cdrom and it contains everything you need to build chapter 6, since after chapter 5 you enter chroot and leave your distribution, so it's no different running from a harddrive or cdrom at that point.

Once booted from cdrom you create a partition, format it, mount it and go through chapter 6.

See also http://hints.linuxfromscratch.org/hints/bootcd.txt and use http://search.linuxfromscratch.org to search through the online mailinglist archives. There are quite a few people who are working on these kind of cdrom's.
 
Old 04-24-2002, 08:25 PM   #6
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Original Poster
Rep: Reputation: 45
That is something that I have been looking into. The hints are excellent. I shall be trying out some the boot stuff in the near future. Thanks!
 
  


Reply


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
April 1st Already? mcleodnine Linux - News 5 03-17-2005 01:08 PM
redhat 9 product updates after april? jariep Red Hat 1 01-16-2004 01:18 PM
Late night ramblings... LogicG8 LinuxQuestions.org Member Success Stories 0 01-07-2004 02:14 AM
SuSE 8.2 is out in April Phonics3k Linux - Software 0 03-21-2003 05:58 AM
SuSE Linux 8.2 - April 14, 2003 rivang Linux - Distributions 0 03-13-2003 11:32 AM


All times are GMT -5. The time now is 06:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration