9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "R. J. Bradley" <druid@stonecircle.freeserve.co.uk>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Installing without graphics ?
Date: Mon, 26 Jun 2000 20:41:56 +0100	[thread overview]
Message-ID: <20000626204156.A663@localhost.localdomain> (raw)
In-Reply-To: <86r99ke2uy.fsf@gollum.esys.ca>; from lyndon@messagingdirect.com on Mon, Jun 26, 2000 at 12:03:49PM -0600

[-- Attachment #1: Type: text/plain, Size: 2228 bytes --]


Since a few people requested them Ill post them here.

Getting the install scripts to run without rio present is
not a major task but it requires a bit of ed or sed to
prune the scripts.

The install scripts seem to live in /rc/bin/dist and I had
to hack 4 or 5 of them to get plan9 to install with the
plan9.9gz file located on my windows c: drive but it should work
for any local disk install. If you install via network you might
need to prune the network install scripts as well.

The two things you need to do are remove any lines that send commands
to /dev/wctl (there are two in defs) as there is no rio to service these
requests. You also need to remove any redirection of output that goes to
/srv/log, I just removed the >>/srv/log and >>[2]/src/log bits from the
scripts so that they echo to the screen where I can see whats going on.
I think /srv/log is provided by a process rio runs so that it can have
a log window for the install.

The files I hacked were

configlocal
defs
mountfs
reamfs
unpack

And then you can run mainloop which will guide you through the process
of installing almost like if rio was running.

I have attatched an rc script that might make the changes I have discussed
here to the right files and then run mainloop. However I have not tested this.
It should give you an example of the sed code I used however.

You can copy the script to your c: drive if you have windows  and mount it
by typing c: at the rc prompt and then accessing the script from /n/c: or
you could try copying it to the plan9 install floppy and mounting it from
there using a: at the rc prompt and then use /n/a: to access it.

I hope that this help people install without rio. However the system is
a pain to use without rio as there is no real terminal handleing. I'm
starting to be able to use ed for a few things now which is quite worrying.
I must recomend the b command though under ed as the install disks dont
include p for viewing scripts. So load the scripts in ed and use 1b to
start viewing the file a screen at a time.

You could try exporting the scripts to your c: drive and then editing
them there which might be easier.

Hope this helps

Robin



[-- Attachment #2: mod --]
[-- Type: text/plain, Size: 455 bytes --]

#!/bin/rc

cd /rc/bin/dist
mv configlocal configlocal.o
sed 's/\>\>\[2\]\/srv\/log//' configlocal.o > configlocal

mv defs defs.o
sed 's/\>\>\/srv\/log//' defs.o > defs
mv defs defs.o
sed '/\/dev\/wctl/d' defs.o > defs

mv mountfs mountfs.o
sed 's/\>\>\[2\]\/srv\/log//' mountfs.o > mountfs

mv reamfs reamfs.o
sed 's/\>\>\[2\]\/srv\/log//' reamfs.o > reamfs

mv unpack unpack.o
sed 's/\>\>\/srv\/log//' unpack.o > unpack

./mainloop

  reply	other threads:[~2000-06-26 19:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-14 20:36 Russ Cox
2000-06-24 19:42 ` R. J. Bradley
2000-06-26  4:44   ` Richard
2000-06-26 14:46   ` Xavier Bertou
2000-06-26 18:03   ` Lyndon Nerenberg
2000-06-26 19:41     ` R. J. Bradley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-06-25  2:36 Russ Cox
2000-06-14 20:18 R. J. Bradley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000626204156.A663@localhost.localdomain \
    --to=druid@stonecircle.freeserve.co.uk \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).