Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-28-2005, 03:31 PM
|
#1
|
LQ Newbie
Registered: Apr 2005
Posts: 4
Rep:
|
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!
|
|
|
04-28-2005, 03:35 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
how much linux experience do you have??
|
|
|
04-28-2005, 04:05 PM
|
#3
|
LQ Newbie
Registered: Apr 2005
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
04-28-2005, 04:14 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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
|
|
|
04-28-2005, 04:59 PM
|
#5
|
LQ Newbie
Registered: Apr 2005
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
04-28-2005, 05:50 PM
|
#6
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
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.
|
|
|
04-29-2005, 10:30 AM
|
#7
|
Member
Registered: Mar 2004
Location: Valencia, espaņa
Distribution: Slack, Gentoo, Custom
Posts: 162
Rep:
|
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
|
|
|
04-29-2005, 10:55 AM
|
#8
|
Member
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528
Rep:
|
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.
|
|
|
04-29-2005, 01:29 PM
|
#9
|
LQ Newbie
Registered: Jan 2004
Location: Germany
Distribution: MyGeOs
Posts: 6
Rep:
|
busybox and uclibc is perfect for minimal Linux
|
|
|
04-29-2005, 02:36 PM
|
#10
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
Linux From Scratch is a distro all of it's own, this thread is moved to Linux-Distributions.
|
|
|
All times are GMT -5. The time now is 11:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|