LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2011, 12:46 PM   #1
Jetso
Member
 
Registered: Sep 2010
Posts: 40

Rep: Reputation: 2
Building my own Linux distribution.


My question is pretty simple. Do I have what it takes to build my own Linux distribution from scratch? I would like do this mainly for one reason: Learn. I would like to find out more about Linux and what makes it tick. I have been using Ubuntu for about 3 months. To be honest I do not know programming very well, such as I know the basics of BASH and a little C, but I do know my way around the terminal. I searched this on Google and I got a lot of hits on customizing a system then using REmasterSys to burn a .iso. I don't want to do this I want to do it the hard way, so that I learn more. Even if is a hard and long task, I don't really care, I just want to know if I am capable, or if it something to be left to expert programmers.
 
Old 01-02-2011, 12:48 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
There's a distribution for that purpose: LFS
 
1 members found this post helpful.
Old 01-03-2011, 06:29 PM   #3
Jetso
Member
 
Registered: Sep 2010
Posts: 40

Original Poster
Rep: Reputation: 2
I read through that, and it seems like a excellent site. I'm am going to try to do that. Now I have a stupid question. On there it says the LFS partition should be about 1.3GB. But it later mentions a "Root" partition that should be 10GB. I would like to make the system on a USB that I have that is 2GB so no permanent changes will happen if/when I screw something up. Is it possible for me to put it on my USB, or will I have to partition the HDD?
 
Old 01-03-2011, 06:56 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello Jetso,

I'm happy to read that you want to learn more about Linux. This may be a good startingpoint.

I'd suggest to go another way instead. How about Slackware? Slackware is an excellent distribution for learningpurposes and you'll have a very knowledgeable community here in the forum http://www.linuxquestions.org/questions/slackware-14/

I'm sure using Slackware will teach you everything you'll need in order to build LFS, and the advantage of running Slackware is that you'll learn, how a Linuxdistribution really works.

Your questions:
Quote:
On there it says the LFS partition should be about 1.3GB
the toolchain will need about 1.3 GB, the space you'll need for the system depends on the amount of programs you're going to install.
Quote:
I would like to make the system on a USB that I have that is 2GB so no permanent changes will happen if/when I screw something up. Is it possible for me to put it on my USB, or will I have to partition the HDD?
a Linuxsystem on an USB-drive will be very slow, I'd not recommend to do this. How much space do you have available on your harddrive? If you create two additional partitions, one for / 10 GB and another 5 GB for /home, you will have enough space to try everything out. And if you have to reinstall everything, you'll only have to format the / partition without changing anything on your /home partition.

Markus
 
Old 01-03-2011, 07:29 PM   #5
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
I recommend either doing LFS or Gentoo.

Here are some basic Pros of each (each is a con of another):

Gentoo:
Quicker to install
Has a package manager (for installation and maintenance)
Larger community/helpful Wiki
They support processor-specific CFLAGS settings (up to a limit (for the most part, anything beyond -O2 (in terms of optimization) is unsupported))
You're not building everything by hand.

LFS:
You're actually building everything by hand.

With both of these, you are likely to run into an issue somewhere in the process, which must be solved with your knowledge of the command line.

I can't comment on Slackware, as I've never used it, but I recommend you think about how long you're willing to spend on it -- I started LFS, then got a fraction of the way done and gave up. I instead have moved to Gentoo, which I can build in a day or two, and maintain (you can't easily update core packages in LFS).

I hope this helps, and good luck on whatever you pick.
 
Old 01-03-2011, 09:26 PM   #6
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 232

Rep: Reputation: 8
I recommend Gentoo for learning because of all the support and documentation it has. Make sure you force yourself to use the command line and modify your system with on the back end with the config files. Stay away from the GUI's/Desktop managers.
 
Old 01-04-2011, 01:21 AM   #7
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
IMHO, you need a good bit of technical knowledge, but I don't want to discourage something potentially excellent The Dynebolic guy is a single soul (www.dynebolic.org), so knock yourself out.
 
Old 01-04-2011, 03:49 AM   #8
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by macemoneta View Post
There's a distribution for that purpose: LFS
That is certainly true, but I'll make a slightly different recommendation: Read the LFS documentation. It is really pretty good, you'll learn stuff and having read it you should be in a position to asses your own readiness. And, obviously, if you do go on to to do the full LFS thing, it will be time very well spent.

And another recommendation; don't make your own distro (well, not for anything other than personal learning) unless you can write down in a few simple sentences what the objectives are and how your distro has a different emphasis from all of the others out there. I'm not saying that making a distro is a bad thing to do, just that the rest of the world has little use for it unless it has a particular focus or set of capabilities that are different from what is already available, and there are really quite a lot already available.
 
Old 01-05-2011, 02:03 PM   #9
Jetso
Member
 
Registered: Sep 2010
Posts: 40

Original Poster
Rep: Reputation: 2
Okay.
Quote:
LFS:
You're actually building everything by hand.
Thats exactly what I want to do. I need some help with the partitions though. Please look at my attachment for my HDD layout. Now to make room for the LFS I would need to shrink sda3 then extend sda4 and put about a 10GB ext3 partition on it, then use it for all the LFS. I am not going to have a /home for storage.
Attached Thumbnails
Click image for larger version

Name:	Partitions.jpg
Views:	18
Size:	199.7 KB
ID:	5763  

Last edited by Jetso; 01-05-2011 at 02:04 PM.
 
Old 01-05-2011, 02:19 PM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello,

how many Ram does your machine have? 3.7GB of swapspace seem quite much, I'd recommend 512MB Ram as a maximum. If you have 4GB of Ram, you'll need no swapspace at all.

I'd recommend to create at least 2 partitions for Linux, be aware, that 10GB is not as much. If you're compiling your own programs the system will need relatively big amounts of harddiskspace (temporarily). So I'd recommend 25GB for / and another 10GB for /home (and if you don't want to call it home, mount it as /usr/local/reserve or something). The time will come when you have to reformat the partition and need some space as storage for important data which you don't want to change.

Markus
 
Old 01-05-2011, 02:24 PM   #11
Jetso
Member
 
Registered: Sep 2010
Posts: 40

Original Poster
Rep: Reputation: 2
I have 2GB of DDR2 Ram. So What I mentioned in the earlier post is What I should do to keep all of my data, but still have room for LFS?
 
Old 01-05-2011, 02:56 PM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
How much space do you need for your Windows?

Markus
 
Old 01-05-2011, 03:34 PM   #13
winblowzxp
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Rep: Reputation: 0
I think I'll ask here instead of creating a new thread since it pertains to LFS...

I'm preparing to build an LFS installation...why make my own distro? Simple. Support for SPARC is very small. Which leads to my question: Will the 2.6.3x kernel compile for sparc32 (sun4m)? If so, would my architecture argument be sparc-* or sparc32-*?
 
Old 01-05-2011, 03:50 PM   #14
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello winblowzxp,

I think this is a theme for a new thread, and that in the programming-forum http://www.linuxquestions.org/questions/programming-9/ there are people who may answer your question.

What you can do at least is to look into the kernel sources, there is a file
Code:
Documentation/sparc/Readme-?.?
and you'll find a directory "arch/sparc" with more information.
Quote:
would my architecture argument be sparc-* or sparc32-*?
read the documentation of gcc http://gcc.gnu.org/onlinedocs/gcc/

Markus

Last edited by markush; 01-05-2011 at 03:54 PM.
 
Old 01-05-2011, 05:54 PM   #15
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
I had always wanted to learn LFS, maybe I should get to know it better once I get my desktop up and running again.

I probably would also recommend Arch as a more noob-friendly way to customize Linux instead of LFS as you don't have to build everything from source. However, if you want to build everything from source I'd say Gentoo is a much better choice since it allows you to see the inner workings of apps.

However, in my opinion the perfect source-based distro is LFS + JHBuild + a custom moduleset, as it would providethe ability to resolve dependencies that could otherwise cause problems when building apps from source.
 
  


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
Building Custom Slackware Distribution mahdif Slackware 1 10-25-2007 11:13 AM
Building a Linux Distribution Islanders Linux - General 2 11-20-2006 09:02 AM
Customizing a distribution to add my artwork and design for a brand new distribution caa718 Linux From Scratch 3 03-19-2006 05:03 PM
Building a Linux Distribution jrbush82 Linux - General 3 03-09-2006 08:09 AM
Building Custom Destop Distribution from slackware nkanthikiran Slackware 9 02-23-2006 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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