From owner-freebsd-questions@FreeBSD.ORG Fri May 18 16:54:07 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 8B6F716A403 for ; Fri, 18 May 2007 16:54:07 +0000 (UTC) (envelope-from bsenthil@adventnet.com) Received: from alps.manageengine.org (alps.manageengine.org [203.193.155.110]) by mx1.freebsd.org (Postfix) with ESMTP id 89E9013C44B for ; Fri, 18 May 2007 16:54:06 +0000 (UTC) (envelope-from bsenthil@adventnet.com) Received: from smtp.india.adventnet.com (smtp.india.adventnet.com [192.168.4.41]) by alps.manageengine.org (8.13.8/8.13.4/Debian-3) with ESMTP id l4IGs3oZ005060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 18 May 2007 22:24:03 +0530 Received: from [192.168.111.179] (bsenthil.india.adventnet.com [192.168.111.179]) by smtp.india.adventnet.com (8.13.4/8.13.4/Debian-3) with ESMTP id l4IGrufs022233; Fri, 18 May 2007 22:23:57 +0530 Message-ID: <464DD96A.1080103@adventnet.com> Date: Fri, 18 May 2007 22:20:50 +0530 From: bsenthil User-Agent: Mozilla Thunderbird 1.0.6-6mdk (X11/20050322) X-Accept-Language: en-us, en To: David Kelly References: <464DAE46.8000505@adventnet.com> <20070518152127.GA72690@Grumpy.DynDNS.org> In-Reply-To: <20070518152127.GA72690@Grumpy.DynDNS.org> Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.1/3266/Fri May 18 01:43:04 2007 on mail-hub.india.adventnet.com X-Virus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 16:54:07 -0000 Thanks for all your inputs.... Yea.. I downloaded miniBSD.tgz file and extract the same. A readme in the tgz which is not readable. It contains lot of scripts files... I don't know how to proceed... David Kelly wrote: 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: [1]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. References 1. http://www.minibsd.org/download.php