Fedora Linux Support Community & Resources Center
  #1  
Old 28th May 2008, 07:59 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,696
Micro Fedora

OK - there was a BSD troll thread a few days ago. The guy didn't understand that modern Linux is really built from set of packages (plus an installer). So I decided to see how low I could go - how minimal a Fedora install I could create.

I started with the F9-i386 installer, and when it got the packages I selected customize now.
I deselected Gnome & all Apps and all the extra sysadm utilities. The installer claimed is was installing 253 package, but when I rebooted and did a yum list | I found 305 packages actually installed and about 600MB in use. Oh yeah - I selected busybox for installation too.

I typed a shell command that tried to remove each package - but I prevented removal of critical bits; kernel, yum, busybox, grub and the bits these depend on. I ended up with only 78 packages left. I rebooted to check I hadn't gone too far.

Next I make links for busybox and editted a new strtup script & inittab for busybox syntax. It took a few tries but I got the system to reboot using busybox startup.

I removed the initscript, coreutil. Then the big enchilada - I tried to do a yum erase on one of the low level dependency libs for yum. It *should* have removed all but 4 of the remaining packages - but as you would expect yum failed once the rpmlibs were removed. It seemed to leave abt 4 or 5 packages incompletely removed.

Anyway after a little manual janitorial work I had it down to kernel+busybox.
(note - busybox is statically linked so I dumped glibc).. Busybox is a great little embedded tool - a functional version of 100+ utilities. I got the network up w dhcp, the busybox shell was OK, getty on the other console ttys - the entire userland was busybox - really pretty functional.

The minimalFedora system weighed in at 67MB. 58MB was in /lib/modules. I could easily pare that down to a few MB, remove unused drivers with a little work. Another 6.5MB was in /boot and 1.7MB in busybox. Aside from the homemade inittab and rcS (init script) it was all from the Fedora distro,

I've done the opposite (built an embedded Linux up from nothing) dozens of times, but I've never stripped a distro down so far. It is possible and not even very hard even.

==
A few odd things. I de-selected Gnome & X, but there were still half a dozen gnome- and xorg- packages installed. Yum has a *lot* of dependencies ~55-60 packages. Actually busybox has an "rpm" feature but it doesn't support the "-e erase" option ... too bad would have been easier.


Too bad the package selector in the installer doesn't have a list feature like pirut. I believe you could just install kernel, grub, busybox, then reboot the installer DVD in rescue mode and make the busybox links & the inittab & initscript.
Reply With Quote
  #2  
Old 28th May 2008, 08:55 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
I thought this thread was gonna be a F9 rant about microwaving the install disk after numerous frustrations.

So it was only slightly more crazy then
Reply With Quote
  #3  
Old 28th May 2008, 09:02 PM
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,291
@stevea:

So, when can we expect the re-spin to be available?

V
Reply With Quote
  #4  
Old 28th May 2008, 09:15 PM
Zero-Override Offline
Registered User
 
Join Date: May 2005
Posts: 741
yeah :P i would also love to try it
__________________
LINUX NUMBER 389596
machine number 290131
Reply With Quote
  #5  
Old 28th May 2008, 09:30 PM
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 64
Posts: 2,552
How much RAM does it need? I have an old laptop with a 3 Gig hard disk, maxed out at 96Meg RAM. I'd be vastly amused to be able to use a reasonably-modern Linux on it instead of Win98SE.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #6  
Old 29th May 2008, 02:08 AM
StephenH Offline
Registered User
 
Join Date: Jul 2004
Location: Wake Forest, NC
Age: 60
Posts: 1,359
Sounds like a good candidate for my new EeePC 900.

StephenH
Reply With Quote
  #7  
Old 29th May 2008, 02:34 AM
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Sounds like someone who develops embedded systems. Oh, you do.

Wow, that is a small install. It would be interesting if you made it into a spin. If you do, please post it.

Off topic, re that thread you mention, it might be worth pointing out the official FreeBSD position on such things, taken from their advocacy "Myths" page, since I think that left a bad taste for many people.
Quote:

*BSD is better than (insert other system)
This is user opinion only.

(insert some other system) is better than *BSD
This is user opinion only.
Just so folks know, that really isn't typical.

This is user opinion only.
Reply With Quote
  #8  
Old 28th August 2008, 03:58 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
Hello everybody,

I tried this yesterday. Or nearly this. I didn't do the total lobotomy that was done here. I hatched the idea when I decided to try a lightweight DE such as XFCE and thought while I was at it I would try to lighten the whole system. I remembered this thread was here.

I started with "Customize now" in Fedora 8's anaconda package selections and unselected everything (and I really mean everything). About two minutes later it was over and anaconda reported that it installed 124 packages instead of my usual 1000+ packages. I used a LiveCD and its yum with the --installroot=root option to install yum and dhclient. After that I could log in and ping the Internet from the command prompt. Yum installed the XFCE and X Windows groups. After editing the runlevel in /etc/inittab and rebooting, I went through the firstboot stuff and had a desktop and a user account. Next came the packages that I wanted. I use only about two dozen apps with any regularity. After the final adjustments and tweaks to config files, I had a good looking and functional system.

I'm keeping my big systems, but so far I kinda like installing this way. It's considerably smaller package-wise than usual, and I didn't try really hard to control or minimize extraneous packages (I used the wildcard on some package names). I haven't really studied or compared any other differences like disk space, memory use, etc. Anyway, if anyone ever wants to try trimming down, this is a good way to do it without busting things. For example, deleting stuff like Gnome after it has been installed is not as trouble-free as not installing it in the first place. If other things need Gnome packages, they will bring them with them.

Last edited by stoat; 5th September 2008 at 05:41 PM.
Reply With Quote
  #9  
Old 28th August 2008, 06:59 PM
Finalzone Offline
Community Manager
 
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,465
stevea,
I hope you don't mind I post this topic to Fedora development mail list. You may be an asset. =)
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 20 Heisenbug x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 20 Heisenbug x86-64 and Microsoft Windows 7 64-bit Home Premium Power output bust.
Reply With Quote
  #10  
Old 29th August 2008, 04:34 AM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,550
Hello again everybody,

I just wanted to add to the record that I did this Micro Fedora thing again today just like I described earlier but this time with Fedora 9 and XFCE. I probably am missing stevea's point in this thread entirely because he is always talking way over my head, but it won't matter because I like what it's doing for me and Fedora 9 anyway. I gave up on F9 early on. I just didn't think I had the patience for all that busted Gnome stuff and everything else going on this time around. But my Micro Fedora 9 XFCE is working nicely so far. I think this is going to be okay, and I will probably migrate my work over to it soon. I have all my usual apps and utilities installed and updated. Everything seems to be normal. It's just XFCE instead of Gnome which I have used for years and liked. Maybe the Gnome rewrite will smooth out soon, and I can go back to it for version 10. But for now I'm happy and keeping up with everybody.

P.S.: I am aware of the fact that I can customize the package selection somewhat by going through all those package groups in Anaconda and checking and unchecking stuff. But for now, I just kinda like doing it this way for several reasons. First, even if only a single optional package is wanted and selected in one of those package groups in Anaconda, several to many other non-optional packages in the group may also be installed. However this way, I can install just that single optional package if that is all I wanted from that entire package group. Second, I like to maintain a local repository of the RPMs that I have installed, and this method allows me to possess all but the initial 100 or so packages by configuring yum to keep the downloaded packages. I wouldn't have those packages if I used Anaconda to install them (until and unless they get updated later). Third, installing many packages from the DVD usually results in a giant update download anyway (especially when installing later in the version's life cycle). This method installs the latest packages from the very beginning.

UPDATE 9/3/2008: Just for the record, I wanted to say that this lightweight system is still doing well, and I use it everyday. It boots faster. It halts faster. And in between those two events I can do everything that I always have done with Fedora day to day. A couple of the most annoying issues have been settled down: 1) sound and the sound mixer GUI for an ordinary user, 2) auto-mounting and ejecting DVDs. I have used Gnome since forever and still think it is a wonderful and sophisticated DE. But I have no intentions of abandoning this neat lightweight F9 operating system.

UPDATE 11/4/2008: Still using it. All work, files, emails, etc. migrated over. I initially thought my Micro Fedora 9 XFCE experiment was just that (only an experiment). Not so now. I like it so much now that I intend to repeat it with Fedora 10. My affections for Gnome and the bloated Fedora installed by default have faded enough now.

UPDATE 8/12/2009: I'm still installing by this method. And I did use it for Fedora 10 with no problems. Now it's Fedora 11 and the only difference is my LiveCD idea doesn't work any more because of version incompatibilities in the two systems' yum packages. Since this computer is a wireless desktop on the other side of the house from the router and modem, this time I had to establish a wireless Internet connection the old fashioned way with iwconfig, ifconfig, and dhclient in runlevel 3 to do the yum install steps for the packages I wanted. No problems. In fact, it was kinda fun.

UPDATE 7/10/2011: Still using it. Fedora 15 now.
Attached Thumbnails
Click image for larger version

Name:	Screenshot3.jpg
Views:	268
Size:	18.0 KB
ID:	17439   Click image for larger version

Name:	fedora_15.jpg
Views:	109
Size:	47.5 KB
ID:	21416  

Last edited by stoat; 12th August 2009 at 07:40 PM.
Reply With Quote
  #11  
Old 29th August 2008, 04:39 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,696
Quote:
Originally Posted by Finalzone
stevea,
I hope you don't mind I post this topic to Fedora development mail list. You may be an asset. =)

No problem at all.
"asset" - I'm sometimes called something similar.
Reply With Quote
  #12  
Old 29th August 2008, 03:56 PM
David Quigley Offline
Registered User
 
Join Date: Aug 2008
Posts: 1
I'm just wondering if you stripped out the SELinux support in this spin. We have heard from a lot of people who want small spins like this but with SELinux support included for embedded devices. If you have kept SELinux support it would be interesting to see how much space and memory it is taking up for you. Also since you have slimmed down the spin quite a bit it might be possible to cull a lot of the policy that comes with Fedora by default to get a smaller footprint on disk and in memory.
Reply With Quote
  #13  
Old 29th August 2008, 05:23 PM
LDC Offline
Registered User
 
Join Date: Mar 2008
Posts: 986
micro fedora...my dream @,@
audio + fluxbox @,@
__________________
Money couldn't buy friends, but you get a better class of enemy.

Linux Registered User #476391
Reply With Quote
  #14  
Old 24th February 2010, 02:30 AM
meffordm Offline
Registered User
 
Join Date: Mar 2008
Posts: 13
windows_7firefox
stevea,

Did you ever produce a spin for this micro-fedora? I have a laptop from 2002 that I'm having trouble installing anything on due to graphics (I think). I would really like to try a spin of what you created if you have one.


Michael.
Reply With Quote
  #15  
Old 24th February 2010, 02:48 AM
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,291
linuxopera
http://spins.fedoraproject.org/lxde/

V
Reply With Quote
Reply

Tags
fedora, micro

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trend Micro Interscan Messaging Security Suite 5.5 on Fedora Core creiter Using Fedora 0 25th May 2004 06:52 PM


Current GMT-time: 03:05 (Saturday, 26-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat