LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-01-2005, 01:36 AM   #1
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Rep: Reputation: 31
What I need to Start ?


Hello,

I want to create my own linux distro which will contain at least following :

Quote:
1. KDE gui and a Media player with MP3 support and a Movie viewer.

2. Kernel Source and gcc compiler (so that user can build custom application, driver)

3. PDF support, PPP/ADSL and network support with samba.

4. Apache web server with perl,php support and a FTP server
I have downloaded LFS 6.1 eBook from their site and Currently I am using Mandrake 10.1 Official Release and want to use this as my base system because it is working fine with my hardware. My system configuration is :

Quote:

Celeron 2.0 Ghz Processor

256 MB SDRAM

Intel 845 Chipset motherboard with Onboard Graphics (intel extreme) and Onboard Sound (AC'97).

Realtek 8139 Ethernet (Onboard)

10 GB HDD
40 GB HDD
CDRW
DVDROM

Smart Link Philips Semiconducter Internal Modem

Can any one suggest me how to start ?


Thanks,
Kirtimaan.
 
Old 10-01-2005, 07:29 AM   #2
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Rep: Reputation: 32
http://slax.linux-live.org/ have tools to create your own live-linux cd just like knoppix. the
scripts they use to make the live-cd may be of help

Last edited by cadj; 10-01-2005 at 07:32 AM.
 
Old 10-01-2005, 10:41 AM   #3
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Just start by doing everything in the Linux From Scratch book.
When you have done this you will have the most basic linux system that exists.
After that read the Beyond Linux From Scratch book.
It explains how to install and configure various aspects of a linux system ranging from basic security to graphical browsers.
I just finished my LFS-system and am now busy with BLFS-book.

Some basic advice:
* Do a lot of sanity check when the book says so
* Download a copy of the book version you are going, that way you won't have a problem when the stable version changes
* Download all archives from the LFS-website at once to make sure you have exactly the same version in the book

I wish you good luck and hope you enjoy creating your once distro as much as I have and am doing.
 
Old 10-01-2005, 11:52 PM   #4
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
The book should just about give you enough knowledge to make your own distro
Quote:
Originally posted by hoes
...* Download all archives from the LFS-website at once to make sure you have exactly the same version in the book...
The book says not to do that because you'll slow down their servers. They only make them available on their site because other sites might not be carrying them anymore.

So only get the ones you can't find anywhere else.
Just make sure to get the exact versions and check the md5sums.
 
Old 10-02-2005, 06:32 PM   #5
Brennan
LQ Newbie
 
Registered: Sep 2005
Posts: 13

Rep: Reputation: 0
Being that I'm doing this right now, my suggestion is to use the LiveCD. If you read the book online, it states that you won't even need a working internet connection; just the LiveCD and an empty partition in which you plan on installing your LFS. I downloaded the .pdf 6.1 book and made sure I had the 6.1 LiveCD for my host system.

I wish you luck in whichever advice you choose to adhere to! I'm not sure if I messed up my LFS and will have to start over or if the mistakes I made while following the book are recoverable. Just be prepared to spend a lot of time working on it. I'm currently going on over a week installing this, but then again, my system specs aren't as good as yours.
 
Old 10-02-2005, 11:07 PM   #6
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Original Poster
Rep: Reputation: 31
Thumbs up

Hello all,

Thanks for supporting and encouraging me. Brennan, I must use the LiveCD, because when I read some chaps of book, I found that I need to download approx 120 MB minimum in order to start. And here I don't have so good network connection. . So I am going to Order LFS LiveCD 6.1.


I know that it will take more and more time, also serval messups will be there. But I am eager to build my own distro and planning to give 3 hrs per day.


Thanks again,
Kirtimaan.
 
Old 10-08-2005, 02:15 AM   #7
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Original Poster
Rep: Reputation: 31
Hello,

I just got the LFS Live CD 6.1.2 , purchased from a linux vendor. When I boot my system from disk, It starts the LFS and gave me a console. I found the /root/README and found that ino and XFCE gui is available in CD.

where the all packages are ? means in which directory, LFS packages are located so that I don't need them to download.

Thanks,
Kirtimaan.
 
Old 10-13-2005, 04:13 AM   #8
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Original Poster
Rep: Reputation: 31
Hello,

I located all packages source in sources directory. and Now I am on chapter 5.7. One question I have is when to remove a package source ?

I copied source folder to my LFS partition and now I am unpacking that and compiling one-by-one as per book and a hint (install-lfs-fromcd).

In book, it is given not to remove binutils-build directory, not to remove gcc-build directory in 1st pass. but what about other packages ? Can I remove source directories of other packages, once i <i> make ; make install </i> them ?


Thanks,
Kirtimaan.
 
Old 10-13-2005, 11:14 AM   #9
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Quote:
In book, it is given not to remove binutils-build directory, not to remove gcc-build directory in 1st pass. but what about other packages ? Can I remove source directories of other packages, once i <i> make ; make install </i> them ?
you can all remove the other build directory's you only have to leave them if the book tells you to.
Just follow the book word by word and you will have a shiny full working distro.

Good luck!
 
Old 10-13-2005, 11:42 PM   #10
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Original Poster
Rep: Reputation: 31
Thanks mr_demilord.

One more question , Is it required to install all packages listed in Chapter 5 ? Or can I choose what to install and what to not ?

Also It seems that in Chapter 6 again same package is compiled and installed which was done in chapter 5. What is difference in both ? is this due to chroot ?

Thanks
Kirtimaan.
 
Old 10-14-2005, 07:11 AM   #11
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Quote:
One more question , Is it required to install all packages listed in Chapter 5 ? Or can I choose what to install and what to not ?
It is highly recommed to install all the packages from LFS,
Otherwise the build will fail.
Chapter 5 is the toolchain , a set of tools to build the LFS system. these tools will be used to build the packages in Chapter 6.

Quote:
Also It seems that in Chapter 6 again same package is compiled and installed which was done in chapter 5. What is difference in both ? is this due to chroot ?
In chapter 6 all is done in a chroot, so the host keeps clean and it uses it's own tools.
This is the base LFS system.

========================================================================
If you plan to quit with it you have to chroot again.


I use some scripts to chroot from this

http://www.linuxfromscratch.org/hint...rom-livecd.txt
It works flawless, I also use it for BLFS except xorg .

Just a tip to make it easier

If you start to build remember your host system needs some packages to build the toolchain.
The tools that are needed is noted at the top of each source you are going to install it is noted as Installation depends on:

Last edited by mr_demilord; 10-14-2005 at 07:25 AM.
 
Old 10-14-2005, 11:18 PM   #12
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Original Poster
Rep: Reputation: 31
Hello mr_demilord,

Thanks for being back to me. Infact I am following that hint because I am doing my LFS in shifts and keep shutting down my system. I also found it easier to create scripts rather than keep typing bunch on commands again and again to console each time I boot my system from LFS live cd.

Currently I am at topic 6.11 and Probably will complete my lfs by coming two - three days.

Kirtimaan.
 
Old 10-15-2005, 02:40 PM   #13
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
One question: Do you only use script for setting things up or also for installing packages?

If you use it only for setting things up when booting no harm will be done.

I however had a problem using script for building programs.
If you configure gcc for c and c++ (Chapter 5: Pass 2 Gcc) "./configure --languages=c,c++"
and put it in the script exactly as it is on internet, c++ support won't be build.
I had this problem and noticed it several packages later and had to do a lot off things over.

So if you use scripts, be careful.

Hoes
 
Old 10-16-2005, 06:07 AM   #14
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Quote:
Originally posted by hoes
One question: Do you only use script for setting things up or also for installing packages?

If you use it only for setting things up when booting no harm will be done.

I however had a problem using script for building programs.
If you configure gcc for c and c++ (Chapter 5: Pass 2 Gcc) "./configure --languages=c,c++"
and put it in the script exactly as it is on internet, c++ support won't be build.
I had this problem and noticed it several packages later and had to do a lot off things over.

So if you use scripts, be careful.

Hoes
GCC is indeed a pain in the ass to compile, it will only work if you copy past.
xorg is also known to fail in a chroot environment and there are also other packages that will fail like cups.
however the most will build succesfully.

BTW to clean some confusion, I only talked about entering the chroot environment for chapter 6.
I didnt talk about installation scripts

Last edited by mr_demilord; 10-16-2005 at 06:09 AM.
 
Old 10-17-2005, 10:34 PM   #15
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Original Poster
Rep: Reputation: 31
Can I have RPMs

Hello,

Yesterday I got my LFS system Bootable and fully working. I have also registered this to LFS site
and get counted. Now I am moving towards BLFS to expand CLI to GUI.


At this moment, I found that I have to download individual packages from different locations ( isn't there any ISO image like LFS ?), I am thinking that is it possible to use RPMs rather then packages ?


I know that LFS means to get rid of useless applications installed by other distros, but for example downloading all KDE app are sized approx 300 MB , while I have fedora , mandrake, RHL 9 disks and I think they are included in those distro in RPM format.

So can I get from there for BLFS ? If so then I must have to compile and install RPM command first. Can any one guide me for this ?


Thanks,
Kirtimaan.
 
  


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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
disable cold start and warm start snmp traps chkisco Linux - Newbie 0 10-28-2005 02:58 AM
fc2-gnome : Applications dont start / very slow to start nox104 Linux - Software 0 08-18-2004 08:53 PM
Can I gett KPPP to start when I start a browser on a network machine? duffboygrim Linux - Networking 0 03-25-2004 04:49 PM
cannot start kdeas user ,can start icewm,fluxbox jackren Debian 1 02-29-2004 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:34 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