Linux - SoftwareThis 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
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.
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.
I want to trim Linux distribution (fedora/mandriva). Trim, I mean removing modules that I don't need. For example I want to setup web server powered by Apache, now it requires only glibc (c-runtime), file system modules, basic core kernel layer module, Ethernet driver, and other necessary modules for admin commands. Physical constraints are disk space not more than 100MB and 20 MB memory size.
Suggest me; is this achievable? If yes then how? Reference
Is this, somehow related to making my own distribution e.g. FC 3 distribution Compact Linux version.
this will be really hard, because you will likely install bare-bones Fedora, then remove all the packages that you don't want. Then install the extra ones you want. Then re-compile the kernel to optimize for size. This will be the hard-bit, because kernel-sources is about 100 meg (at least in suse).
You may want to try another distro, look at www.distrowatch.com for suggestions.
Originally posted by qadria
I want to trim Linux distribution (fedora/mandriva)... Physical constraints are disk space not more than 100MB and 20 MB memory size.
Suggest me; is this achievable?
No.
I once tried to install RH 7.2 (???) on a 32 Meg system with 2 Gig hard disk. Never got through the initial build.
With so much bloat-ware (in the way of non-essential services) in those distros, I don't believe you have any chance.
I used to run Fedora Core 3 on my server with 128 MB memory. It worked reasonably well when I removed all services not associated with the particular servers I needed (there were about 5-6 still running including samba and apache). Memory usage got down to ~64 MB on idle (much higher when complex PHP scripts were served). I don't think its possible to trim it down further unless you recompile, and then it's no point using Fedora. I agree with heema, try DSL instead. And anyway, 20 MB RAM is just not enough to run a web server with any kind of efficiency, at least not with scripting. If you really need to, try a simpler web server. I know of Hypercube (http://www.anakata.hack.se/coding/hypercube/) and Xerver (http://www.javascript.nu). Maybe they are sufficient for your needs?
This would be a trivial matter with Slackware. Do an 'expert' install and only choose what is needed for a basic webserver and choose the lowmem kernel.
Seeing as how you won't need KDE or Gnome, you'd only need to download the first installation cd.
I think it will be hard to achieve. Even Damn Small Linux suggests that you have 250MB hard disk space available. As for memory, I can run Mandrake9.1 with Apache, IceWM, vim, and Firefox, having only 32MB RAM, on my Linux laptop. So for Apache only, 20MB RAM should be enough.
Anyway, I suggest you rather start from a tiny Linux distribution, such as Damn Small Linux (can be made to use Debian packages), or one of those distributions tailored for handhelds (see http://www.handhelds.org/)
Yet if you decide to actually trim a bigger distribution, I suggest you try that with Mandrake/Mandriva. It has a tool named "urpmi-find_leaves" or something like that, that enables you to easily find packages that are not required by any other packages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.