LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...

Notices

Reply
 
Search this Thread
Old 04-28-2005, 03:31 PM   #1
guosheng
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
How to build a Minimum Linux


I need to build a small linux for reimaging computers (Windows). It must have ability to get ip from dhcp and mount a windows network drive to pull the image off network drive. I want to get as small as possible. Please help!
 
Old 04-28-2005, 03:35 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
how much linux experience do you have??
 
Old 04-28-2005, 04:05 PM   #3
guosheng
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I have rebuilt kernel many times before and rebuilt DSL Linux that boots off USB key.

I am not sure how to remove things (like GUI) that I don't need for the small Linux.
 
Old 04-28-2005, 04:14 PM   #4
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
what size do you need it to be?? will it be for use on a USB key??

also, double-posting is a NO NO on this site:

http://www.linuxquestions.org/questi...hreadid=318190
 
Old 04-28-2005, 04:59 PM   #5
guosheng
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Okay, since I don't know how to remove it, I changed to something else.

I need the boot disk as small as possible. Maybe 2-5MB. If it will be a little bigger, that would be fine.

I have tried this: http://www.xs4all.nl/~lennartb/rescuedisk/node3.html
but the configration in Building uClibc doesn't match what I have.
 
Old 04-28-2005, 05:50 PM   #6
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Re: How to build a Minimum Linux

Quote:
Originally posted by guosheng
I need to build a small linux for reimaging computers (Windows). It must have ability to get ip from dhcp and mount a windows network drive to pull the image off network drive. I want to get as small as possible. Please help!
If you have time and patience try Linux from Scratch.
In the introduction of the LFS book the author states that he has build a 8MB linux web server.
If you compile only the things you really need you can build a really small linux.
If you don't have patience and time, you may try Damn Small Linux.. It's about 50MB and has X-windows (fluxbox). I cannot recall if samba is installed in DSL but you can easily find it out.
Anyway, you have many different options

*EDIT*
Opps! I just noticed that this thread is in the LFS forum. Sorry. I should be more careful

Last edited by perfect_circle; 04-28-2005 at 05:54 PM.
 
Old 04-29-2005, 10:30 AM   #7
darkRoom
Member
 
Registered: Mar 2004
Location: Valencia, espaņa
Distribution: Slack, Gentoo, Custom
Posts: 162

Rep: Reputation: 30
Hi
Firstly i dont recommend you use linux from scratch to build a very small distro, its simply not suitable for this. However in building lfs you may learn something (a lot) about how to go about building your small installation. I say this because lfs does not contain the kind of packages you'll need to use, for a start glibc is much too large for your purposes and many of the binaries would be better replaced by using a busybox alternative. Sure you can strip it down but in terms of effort it would make more sense to build from scratch your own system, that way you choose everything that goes in and you understand the build process better. If you want to try theres a few hints on stripping down and building a small lfs at the lfs site.

The build techniques and the version info of the toolchain packages will be most useful to you, take a look at hlfs, the toolchain uses the uclibc library. Apart from that take a look at from power up to bash prompt, its over at tldp and perhaps some texts on embedded systems.

Just to give you an idea of size i once made a lfs (compiled to optimise for size), without texinfo,kbd (but keyboard map compiled in kernel), wihout documentation, compressed man pages and without locales. I probably deleted some other stuff but not much. After stripping it weighed in at 182mb.

Good luck in what you want to do
 
Old 04-29-2005, 10:55 AM   #8
Andy Alkaline
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian-wheezy-amd64, LFS 7.1
Posts: 343

Rep: Reputation: 27
Try ttylinux on http://www.minimalinux.org/
I do some work on the site there, and have tried ttylinux briefly, but couldn't tell you if it can do all the things you want. It's small though. It comes with networking support.
 
Old 04-29-2005, 01:29 PM   #9
berell
LQ Newbie
 
Registered: Jan 2004
Location: Germany
Distribution: MyGeOs
Posts: 6

Rep: Reputation: 0
busybox and uclibc is perfect for minimal Linux
 
Old 04-29-2005, 02:36 PM   #10
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,174
Blog Entries: 4

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
Linux From Scratch is a distro all of it's own, this thread is moved to Linux-Distributions.
 
  


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
What is the ABSOLUTE minimum linux requirements? sj_mdk_linux Linux - Hardware 5 02-27-2005 08:36 PM
running applications from one Linux build in another Linux build bcottam Linux - Distributions 2 04-13-2004 12:08 AM
Minimum memory for Linux desktops iainr Linux - General 5 02-13-2004 07:33 PM
Bare Minimum Linux mymojo Linux - Newbie 5 10-11-2003 06:13 PM
minimum Linux with KDE luzi82 Linux From Scratch 6 04-27-2003 12:09 PM


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