Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2002 03:13:44 +0300 (MSK)
From:      "."@babolo.ru
To:        alane@geeksrus.net
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: ports/33818: Bootable ITS image for KLH-10 PDP-10 emulator
Message-ID:  <200201130013.DAA11901@aaz.links.ru>
In-Reply-To: <200201121940.g0CJe7Z25243@freefall.freebsd.org> from "Alan Eldridge" at "Jan 12, 2 11:40:07 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Alan Eldridge writes:
> The following reply was made to PR ports/33818; it has been noted by GNATS.
> 
> From: Alan Eldridge <alane@geeksrus.net>
> To: Kenneth Stailey <kstailey@yahoo.com>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201130013.DAA11901>