-
Notifications
You must be signed in to change notification settings - Fork 5
/
INSTALL.Octopus
179 lines (128 loc) · 4.94 KB
/
INSTALL.Octopus
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
ABOUT THE OCTOPUS
----------------------
See http://lsub.org/ls/octopus.html for further information.
NOTE: If you use just the octopus binaries as distributed,
the version of the standard Inferno modules must match the one
we used (the one from google code as of 20080416).
Otherwise, you'll get typecheck errors when trying to load
some Inferno modules. If you are using the Inferno bundled
in the Octopus distribution there is no need to worry about it.
INSTALLATION INSTRUCTIONS FOR THE PC
---------------------------------
Download the .tgz file containing this INSTALL file to
the directory where you want to install a new Inferno with
the octopus. Unpack it, and execute the install script for your
system:
1. create a directory where to install all this, and change to it.
mkdir /n/src/octopus
cd /n/src/octopus
2. retrieve the distribution if you do not have it yet; unpack it.
hget http://lsub.org/export/o.zip >.zip
unzip o.zip
3. execute the install script for your system.
That, is run EITHER
; rc ./usr/octopus/lib/Install.Plan9.rc
OR
$ sh ./usr/octopus/lib/Install.Unix.sh
depending on the system you are using
4. you are done.
you may restart your Inferno and execute
o/pcrc
from a shell to bring up your octopus PC.
The last section in this file mentions some scripts
you may use to let the PC start automatically, without
requiring your intervention.
INSTALLATION INSTRUCTIONS FOR A TERMINAL
-------------------------------------
The easiest way is to copy the Inferno you have
installed for the PC, perhaps to a memory stick, and
use it at the terminal machine to run o/termrc
To install a fresh terminal:
1. create a directory where to install all this, and change to it.
mkdir /n/src/octopus
cd /n/src/octopus
2. retrieve the distribution if you do not have it yet; unpack it.
hget http://lsub.org/export/o.zip >.zip
unzip o.zip
3. execute the terminal install script for your system.
That, is run EITHER
./usr/octopus/lib/Installterm.Plan9.rc
OR
./usr/octopus/lib/Installterm.Unix.sh
4. you are done.
you may restart your Inferno and execute
o/termrc
on a shell window to start your octopus terminal.
The last section in this file mentions some scripts
you may use to let the PC start automatically, without
requiring your intervention.
INSTALLATION DETAILS FOR THE PC
----------------------------
Should the scripts fail for you, or should you use a different
system as your native OS, you might have to do by hand what the
installation script does. It's not hard:
1. create your home directory
mv usr/inferno usr/YOURLOGIN
2. configure the /lib/ndb/local
Editing the words written in UPPERCASE to match your
local configuration would suffice.
3. setup nvram
Write your secret to keydb/nvr (plaintext, sorry) so that
the PC may start unattended. Or don't do it if you don't want
risks, but you'll have to provide this secret each time the PC boots.
echo -n secret > keydb/nvr
chmod 600 keydb/nvr
cp /dev/null keydb/keys
4. Start inferno
Plan9/386/bin/emu -r /n/src/octopus
(or MacOSX/386/bin/emu, or whatever, depending on the system
you are using. Also, replace /n/src/octopus with the root directory
for the installation).
All remaining steps must be done using the Inferno shell.
5. Configure authentication and create your account
This creates a signer key for the machine
auth/createsignerkey YOURSYSNAME.YOUR.DOMAIN.NAME
Now start authentication services...
ndb/cs
svc/auth -n /keydb/nvr # or just svc/auth if you don't have nvr
...and create an account for you
auth/changelogin YOURUSERNAME
6. Obtain a ticket for your server account
This gives the processes in the PC your ticket, so they can auth without
requiring you to do this, so remember to save the ticket to a file.
getauthinfo default
7. You are done.
You may now kill the Inferno and start it again for normal operation.
To start the Octopus PC you must run
o/pc
from a shell.
To start the terminal you must run
o/termrc
instead. Note that the pc start script runs the termrc start
script as well, to let you use the pc as a terminal.
But you might what to customize your $home/lib/wmsetup let
the system start automatically.
COMPILING FROM SOURCE
--------------------
Within Inferno:
cd /usr/octopus
OCTOPUS=/usr/octopus
cd port
mk install
...
mk clean
(At a terminal, /usr/octopus would be /pc/user/octopus instead).
EXAMPLE SCRIPTS AND PROGRAMS
---------------------------
Read the scripts before using them. You may want to customize
some variables to your needs (eg., the install directory).
You may copy usr/octopus/lib/wmsetup to $home/lib/wmsetup
to let Inferno start the PC or the termiinal when you login, without
requiring your intervention. Edit the variable PC to be the address
of your PC.
A script for Plan 9 to start Inferno from the shell may be found at
usr/octopus/lib/octopus.rc
A script for UNIX to start Inferno from the shell may be found at
usr/octopus/lib/octopus.sh
Finally, 9octopus.tgz contains several Plan 9 programs for
use with the Octopus.