From owner-freebsd-small Tue Jul 2 15:24:37 2002 Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D9E237B422 for ; Tue, 2 Jul 2002 15:24:30 -0700 (PDT) Received: from wotsit.thingy.com (wotsit.thingy.com [212.21.100.67]) by mx1.FreeBSD.org (Postfix) with SMTP id AF3C743E0A for ; Tue, 2 Jul 2002 15:24:28 -0700 (PDT) (envelope-from howie@thingy.com) Received: (qmail 8190 invoked from network); 2 Jul 2002 22:24:10 -0000 Received: from unknown (HELO jubjub) (212.19.79.186) by wotsit.thingy.com with SMTP; 2 Jul 2002 22:24:10 -0000 Message-ID: <002601c22217$79482a80$fa37a8c0@jubjub> From: "Howard Jones" To: "Manuel Kasper" Cc: References: <000201c22194$171e66e0$8c7da8c0@CNMKA> Subject: Re: Guide to reducing FreeBSD (a.k.a miniBSD :) Date: Tue, 2 Jul 2002 23:25:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I did more or less the same, although with more trial and error (I started with just a kernel and init, and added files until I got a login: prompt :) ) - my current flash-booting desktop workstation has Zebra, DHCP client support, SNMP, X, an mp3 player, NFS to mount other drives from the fileserver, thttpd, telnet and an assortment of utilities (ipfw, vi, grep etc), all in about 12Mb of a 32Mb flash device. It's a mixed bag because I was aiming towards two goals at once - I have a second one of these running the firewall/NAT for my wireless DSL connection.. The intention was to have full routing/firewall/shaping stuff through dummynet, and some sort of web interface using thttpd - I didn't get that part done, although the kernel stuff for it is all in, and SNMP for stats works fine. It could probably be smaller if I switched to using all shared libraries - I have some stuff in a big crunched binary, and other things added later have shared libraries (the same libraries as the static stuff, even). As someone else pointed out ldd is your friend for picking out binaries to ignore when reducing your system size - some of the small /usr/bin utilities are linked with a surprising number of big libraries. The hardware side is an ASUS TUSI-M board with a fanless C3/866 processor, although it's likely to change to an Eden processor and mini-iTX sometime soon (no fans at all, not even the PSU!). Anyway, it's good to see a little more info on the web about how to do this. I still don't really understand what the difference is between this and picobsd - is it just the ramdisk vs normal fs, or is there some other dividing line? Regards, Howie ----- Original Message ----- From: "Manuel Kasper" To: Sent: Tuesday, July 02, 2002 7:45 AM Subject: Guide to reducing FreeBSD (a.k.a miniBSD :) Hi all, I've just finished my guide on how to strip FreeBSD of "unnecessary" things without going as minimalistic as e.g. PicoBSD. I wanted something in between a FreeBSD "minimal" install (which still takes up about 80 MB) and PicoBSD. If you're interested, it's available on http://neon1.net/misc/minibsd.html I now have FreeBSD 4.6 running on my net4501 embedded PC from Soekris Engineering (on which the guide is based); the operating system takes up about 31 MB on the 64 MB CF card (including frills like perl, thttpd, dhcpd, ...); without perl it works out to about 21 MB - so there's ample space left for user data. I've tried not to sacrifice any important funcionality, and so you can ssh/ftp in like on a normal FreeBSD system, and most commands are available. I welcome any suggestions/feedback on how this guide could be improved. Greets, Manuel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message