From owner-freebsd-hackers Tue May 23 23:52: 4 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.tesserae.com (freebsd.tesserae.com [209.157.194.69]) by hub.freebsd.org (Postfix) with ESMTP id 4C03C37B89C for ; Tue, 23 May 2000 23:52:01 -0700 (PDT) (envelope-from pwiley@cadabra.com) Received: by freebsd.tesserae.com (Postfix, from userid 1000) id 016FB498; Tue, 23 May 2000 23:52:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by freebsd.tesserae.com (Postfix) with ESMTP id F191E497; Tue, 23 May 2000 23:52:00 -0700 (PDT) Date: Tue, 23 May 2000 23:52:00 -0700 (PDT) From: "Preston S. Wiley" X-Sender: pwiley@freebsd.tesserae.com To: "Jordan K. Hubbard" Cc: Mohit Aron , Dan Feldman , freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD kernel as a replacement for Linux kernel In-Reply-To: <24142.959140502@localhost> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Perhaps we should go just a bit further with that approach and make > things _write_ into that hierarchy first as well, e.g. if you run > /compat/linux/bin/bash and then install something with rpm, it will > install (as far as it's concerned) into /usr/bin, /usr/lib, etc. but > really be chrooted into the /compat/linux hierarchy and only affect > things there. Actually, I'm pretty sure that this does work as has since the 3.2 tree, when I thought to try it and see if it would. You actually have 2 options. 1. You can run /compat/linux/bin/bash and then you in a sort of Linux/FreeBSD directory mix. The root directory looks just like your FreeBSD root, but changing to a directory that is in /compat/linux, like /bin, will put in the linux tree of this directory, but changing to a directory that doesn't exist, like /home, will keep you in the FreeBSD structure. This is very close to being able to run FreeBSD and Linux at the same time (/bin/csh in one xterm and /compat/linux/bin/bash in another). Within this, you can do an rpm or any linux command and you will be operating on the Linux/FreeBSD mix directory structure. 2. Just run /compat/linux/bin/rpm (or any other command in /compat/linux) and you will be operating on the Linux directory structure as described above. I've found the Linux emulation on FreeBSD to be one of the best, most integrated emulation I've ever seen of anything. I've messed around with it quite a bit and discovered quite a few nifty tricks you can do. I've never actually tried it, but I think you could probably compile Linux binaries under FreeBSD by installing the Linux version of gcc and using it. Very cool stuff. Keep up the excellent work! ----------------------------------------------------------------------- Preston Wiley GoTo.Com, Inc. Systems Administrator 1820 Gateway Drive, Suite 300 pwiley@cadabra.com San Mateo, CA 94404 650/403-2227 http://www.cadabra.com ----------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message