Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!swing.iinet.net.au!news.uoregon.edu!news.corpcomm.net!dkirk
From: "Eric L. Hernes" <erich@lodgenet.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: where is Linux emulator?
Date: Fri, 03 Nov 1995 14:24:40 -0600
Organization: Corporate Communications
Lines: 68
Message-ID: <309A7A88.41C67EA6@lodgenet.com>
References: <DHF7vK.MpA@zorch.SF-Bay.ORG> <47bm8b$m0t@dracula.hybrid.com>
NNTP-Posting-Host: lodgenet.iw.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0b1 (X11; I; FreeBSD 2.2-CURRENT i386)
Kenneth Coley wrote:
>
> No wait a second. why would anyone make an emulator of a piece of software
> which is really an emulation of another piece of software (i.e. Unix).
> Break down and buy a cheap PC and get a copy of linux and be done with it.
>
Well, it's not really an emulator, its a compatibility option. It doesn't
emulate linux, it allows you to execute linux binaries. Here's the cliff notes
on how to get it running:
1) make sure you're running on a kernel whose config file
has `options COMPAT_LINUX' in it. If not, then re-config, rebuild,
and reboot.
2) make sure you have a set of linux shared libraries. Friday
afternoon I intend to import my port of linux libraries.
then it should just be to make install from
/usr/ports/emulators/linux_lib. or get the port from the port
ftp/www server.
At any rate, your linux libraries must be installed in
/compat/linux/{lib,usr/lib}.
NOTE: linux libraries *must* be ZMAGIC, although it appears that
binaries can be either ZMAGIC or QMAGIC.
3) make sure you have a /usr/bin/linux, if not do a `make all install'
from /usr/src/lkm/linux. run /usr/bin/linux (as root). You
should get output something like:
(jake)$ type linux
linux is /usr/bin/linux
(jake)$ sudo linux
Linux emulator installed
Module loaded as ID 2
(jake)$
4) run your favorite linux binaries. I have personally run
doom, Wingz, Xess, and Maple. I've made ports of Wingz, and
Maple.
Here's a sample run of a linux kermit:
(jake)$ uname -a
FreeBSD jake 2.2-CURRENT FreeBSD 2.2-CURRENT #0: Mon Oct 30 14:57:30 CST 1995
erich@jake:/usr/src/sys-atalk/compile/JAKE i386
(jake)$ file kermit
kermit: setgid Linux/i386 demand-paged executable (ZMAGIC) not stripped
(jake)$ ./kermit
C-Kermit 5A(190), 4 Oct 94, for Linux
Copyright (C) 1985, 1994,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
C-Kermit>quit
(jake)$
> --
> Kenneth Coley Voice: 408-725-3250 Ext 843
> Senior Systems Engineer Fax: 408-725-2439
> Hybrid Networks, Inc. Email: coley@hybrid.com
eric.
--
erich@lodgenet.com
erich@rrnet.com