From owner-freebsd-questions@FreeBSD.ORG Fri May 18 15:21:29 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 97D7116A409 for ; Fri, 18 May 2007 15:21:29 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.freebsd.org (Postfix) with ESMTP id 5A2A113C45E for ; Fri, 18 May 2007 15:21:29 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 26583 invoked by uid 0); 18 May 2007 15:21:27 -0000 Received: from unknown (HELO Grumpy.DynDNS.org) (216.186.148.249) by smtp6.knology.net with SMTP; 18 May 2007 15:21:27 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 7C12328425; Fri, 18 May 2007 10:21:27 -0500 (CDT) Date: Fri, 18 May 2007 10:21:27 -0500 From: David Kelly To: bsenthil Message-ID: <20070518152127.GA72690@Grumpy.DynDNS.org> References: <464DAE46.8000505@adventnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <464DAE46.8000505@adventnet.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: customized strip down freebsd OS (less than 50MB) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 15:21:29 -0000 On Fri, May 18, 2007 at 07:16:46PM +0530, bsenthil wrote: > Hi, > > I am looking for mini freebsd customized OS (less than 50MB). Is it > possible to customize the freebsd to below 50MB? > > The list of modules i run over freebsd OS > 1. TCP/IP stack > 2. package installation. > 3. File read and write operation > 4. Apache server > > What is the minimum size of the stripped freebsd OS ? In years past I got FreeBSD 4.4 down to about 10 MB. Then added Apache on top, PHP, Perl, etc. Interesting that each was roughly another 10 MB. > Please let me know detail/link how to customize freebsd OS. Start with a block of granite and remove everything that doesn't look like your sculpture. Believe I started with information found here: http://www.minibsd.org/download.php I played with the FreeBSD build system and was building world in a different location than stock, with compiler options special for a bottom end Soekris board. Built everything dynamically linked that I could, traditionally everything in /bin was statically linked. Built ports chrooted in my new virtual world built above. Used scripts originating with minibsd to cross reference runtime libraries and application dependencies so that only the necessary libraries were moved to my CF card. I kept a file listing all the files I considered mandatory. Had several Makefiles, one for each stage of the build. Started by using "cvs checkout" to start with fresh source code. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.