From owner-freebsd-questions@FreeBSD.ORG Fri Nov 5 13:46:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC03D16A4CE for ; Fri, 5 Nov 2004 13:46:31 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D93043D53 for ; Fri, 5 Nov 2004 13:46:31 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 5722 invoked from network); 5 Nov 2004 13:46:30 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 5 Nov 2004 13:46:30 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 3AF1C73; Fri, 5 Nov 2004 08:46:24 -0500 (EST) Sender: lowell@be-well.ilk.org To: Vittorio References: <200411051329.07849.v.demartino2@virgilio.it> From: Lowell Gilbert Date: 05 Nov 2004 08:46:24 -0500 In-Reply-To: <200411051329.07849.v.demartino2@virgilio.it> Message-ID: <44brecs91r.fsf@be-well.ilk.org> Lines: 44 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD newbye simple question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 13:46:31 -0000 Vittorio writes: > Experienced linux debian user, recently I smoothly moved to linux gentoo > (BSD compliant) AND to FreeBSD 5.2.1. > > 1) I want to tailor my freeBSD slice according to my machine (gentoo > experience is helpful!). Now, while i I know how to compile an > application in /usr/ports I cannot find sources of the "base system" I > had to install when starting the first installation from scratch. > > Where are those sources? The system sources are normally installed in /usr/src if they are installed. If they are not, you can install them from sysinstall, or keep up with the latest sources on any of several "branches" of FreeBSD. See the FreeBSD Handbook section on "The Cutting Edge." > 2) The questions' question: where can I read what are the options I can > use with a certain source package and how can I use them when > make(-ing) the program? Not clear what you mean, but "man ports" will give you some information about how things work in general. Many ports have a "config" target (so you can "make config" and set some config options). I often look at the port makefile to see what variables it supports. If you're not using the ports system, then naturally you're on your own; every third-party program can set its options any way the author wished. > 3) It goes without saying that many freebsd commands are the same as in > linux but I cannot find the freebsd command equivalent to the linux > command 'free' giving info about the size of memory used by the > system's cache, buffers, swap, etc. Try top(1), swapinfo(8), vmstat(8), and so on (and see the "SEE ALSO" sections in their manual pages). Also, if you're not highly knowledgeable in Virtual Memory architecture techniques, see the FAQ entries titled "FreeBSD uses far more swap space than Linux. Why?" and "Why does top show very little free memory even when I have very few programs running?". Good luck.