*BSD News Article 77266


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!news.vbc.net!alpha.sky.net!news.sprintlink.net!news-chi-13.sprintlink.net!newsreader.sprintlink.net!news.sprintlink.net!news-chi-8.sprintlink.net!news.voicenet.com!netnews.upenn.edu!news.cc.swarthmore.edu!news.cse.psu.edu!uwm.edu!news.moneng.mei.com!bloom-beacon.mit.edu!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Obtaining and building a kernel as non-root
Date: 2 Sep 1996 07:41:07 GMT
Organization: Private BSD site, Dresden
Lines: 25
Message-ID: <50e32j$lrs@uriah.heep.sax.de>
References: <slrn52k7k1.p0q.jerijian@lightning.seas.ucla.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

jerijian@lightning.seas.ucla.edu (Arthur D. Jerijian) wrote:

> I've previously mentioned that I come from a Linux background, so I'm
> used to taking a Linux kernel source tree (say, linux-2.0.16.tar.gz),
> untarring it into my account as a non-root user, and proceeding to
> build it normally.  Can something like this be done with the FreeBSD
> 2.1.5 kernel, or does the kernel need to be built as root specifically
> in the /usr/src/sys directory?

The kernel can be built by any user.  All you need is the entire
/usr/src/sys subtree.  All dependencies are relative inside this tree.

Actually, i used to compile new kernels under the home directory of
user `bin' for a long time (non-standard /usr/home/bin, of course).  I
only gave up this method since my disk space in /usr/home was scarce
now, and since the original reason (maintaining local modifications to
the kernel) no longer required a separate tree now that i'm using CVS
at home.  (cvs update keeps local changes in the checked out tree.)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)