From owner-freebsd-ports Sat Jan 12 16: 7: 9 2002 Delivered-To: freebsd-ports@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id 245F337B402 for ; Sat, 12 Jan 2002 16:06:58 -0800 (PST) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id DAA11901; Sun, 13 Jan 2002 03:13:44 +0300 (MSK) Message-Id: <200201130013.DAA11901@aaz.links.ru> Subject: Re: ports/33818: Bootable ITS image for KLH-10 PDP-10 emulator In-Reply-To: <200201121940.g0CJe7Z25243@freefall.freebsd.org> from "Alan Eldridge" at "Jan 12, 2 11:40:07 am" To: alane@geeksrus.net Date: Sun, 13 Jan 2002 03:13:44 +0300 (MSK) Cc: freebsd-ports@FreeBSD.ORG From: "."@babolo.ru MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Alan Eldridge writes: > The following reply was made to PR ports/33818; it has been noted by GNATS. > > From: Alan Eldridge > To: Kenneth Stailey > Cc: > Subject: Re: ports/33818: Bootable ITS image for KLH-10 PDP-10 emulator > Date: Sat, 12 Jan 2002 14:29:55 -0500 > > On Sat, Jan 12, 2002 at 11:01:03AM -0800, Kenneth Stailey wrote: > > > >>Description: > > Bootable ITS image for KLH-10 PDP-10 emulator. Disregart prior > >submission. The image is rather large. 45MB compressed download and > >170MB uncompressed. The port tries not to store two uncompressed copies > >during installation ever. > > Urghh ... you know that all the stuff in libexec is read-only, right? > > Just thought of that.... > > How's this supposed to be run? Root only? > > Maybe you ought to put the disk image in, oh, ${PREFIX}/spool/klh10/images. > Then at least it's somewhere that's expected to be writable. > > Anybody else got any ideas on that? For lot of emulated systems (RT-11 vXX, UNIX vXX so on) I have scripts that copy disk image to user's TMPDIR, for example: #!/bin/sh echo 'type "unix" first, login as root' cp /usr/contrib/sim/unix_v5_rk.dsk ${TMPDIR}/unix5-$$ echo "set cpu 18b" > ${TMPDIR}/unix5-$$-c echo "att rk0 ${TMPDIR}/unix5-$$" >> ${TMPDIR}/unix5-$$-c echo "boot rk" >> ${TMPDIR}/unix5-$$-c exec nice -5 pdp11 ${TMPDIR}/unix5-$$-c (and deleted (ports/sysutils/) runs on every user's TMPDIR) It is impossible to share single image disk between user's emulators for sanity. I don't know about net functions of ITS. Is it possible to start emulator as daemon and let users login in it via telnet? If so, then unmodified image must be kept in /usr/local/ hierarhy and start script must copy image to some nonclearing in reboot directory if absent or use ... sorry, my English is bad: itstmpdir="${TMPDIR}" # some dir in /tmp or /var hierarhy not cleared in reboot if [ ! -w ${itstmpdir}/image ]; then cp /usr/local/..../image ${itstmpdir}/image # Exact path there chmod u+w ${itstmpdir}/image fi and use this image for daemonised emulator -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message