home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d3xx
/
d381
/
sksh.lha
/
SKsh
/
Install.doc
< prev
next >
Wrap
Text File
|
1990-10-20
|
7KB
|
265 lines
Installation Guide to
SKsh
A ksh-like Shell for the Amiga
Version 1.6
(Copyright) 1989, 1990
Steve Koren
October 4, 1990
Installing SKsh
This section descibes how to install SKsh. It is vitally im-
portant that all the steps be performed. If they are not,
SKsh will not operate correctly. In addition, SKsh requires
version 1.3 of AmigaDos to operate correctly.
Please examine this file for each release, as it may change at
any time.
1) First, copy the .skshinit and .skshrc files to the
's:' directory. SKsh needs these two files to start
correctly. Their location can be changed by changing
the SKSH: device (see below). Note that ONLY .skshrc
IS FOR USER MODIFICATION. The .skshinit file should
be used as supplied and re-installed with each new
release.
2) Edit your startup-sequence and insert:
assign SKSH: s:
This controls the location in which SKsh looks for the
startup files.
3) Copy the sksh binary itself to a location in your
AmigaDos search path. You can be fairly sure the 'c:'
directory is in your search path. If you have modi-
fied your path, there may be other potential locations
as well.
4) Set the pure bit on the SKsh binary:
protect c:sksh rep
5) Make sure that 't:' points to a fast device suitable
for storing temporary files. A sub-directory on a ram
disk is best. For example,
makedir ram:tmp
assign t: ram:tmp
You will probably want to insert some commands like
these into your startup-sequence, if they are not al-
ready there. SKsh uses temporary files only when ab-
solutely necessary, but some types of SKsh commands
will not function properly without them (see command
subtitution, for example).
SKsh Amiga Shell Page 2 Installation Guide
6) SKsh needs a stack size of at least 6000 bytes in or-
der to run properly. You can manually set the stack
size to 6000 bytes using the AmigaDos stack command
before you run SKsh, or you can insert 'stack 6000'
into your startup sequence (recommended). If you do
not have sufficient stack space, SKsh *will* crash.
7) The following files need to be copied to a location
which is in your SKsh search path (although not neces-
sarily in your AmigaDos search path):
cat cmp cp crc cut
du encr fgrep find grep
head indent join num srun
strings tail tee view wc
window xd
You can create a directory called "sys:bin" which con-
tains these commands. The supplied .skshrc file auto-
matically adds this directory to the search path.
8) This step is optional, but recommended. The default
name for the ram disk is "RAM DISK:". The space will
make some things difficult to do (but not impossible)
in SKsh. I recommend that you change the default name
of the ram disk in your startup-sequence to something
like the following:
relabel ram: RAM_DISK
The only difference is that the space has been re-
placed by an underscore, and it will make your life
much easier.
9) Insure that your AmigaDos ENV: device is set up
properly. If you are not sure how to do this, see the
AmigaDos manual.
10) You must have arp.library installed in your system in
the LIBS: directory. If you are not sure how to do
this, see the arp documentation. arp is available on
most Amiga BBS systems. It is best to use the most
recent available arp.library, since SKsh will not run
correctly with some early versions.
SKsh Amiga Shell Page 3 Installation Guide
11) The pure bit should be set on all of the SKsh external
commands. This can be accomplished with either the
SKsh chmod command or the AmigaDos protect command.
This is necessary if the external commands are to be
made resident. If all the external commands are in a
single directory, and this directory contains no other
files, then the SKsh command:
chmod +p *
will set the pure bit provided that you are cd'ed to
the proper directory.
12) If the script bit is not set on the Check_?.?.sksh
file (where ?.? is the version number of this SKsh),
set it with "chmod +s Check_?.?.sksh". Then, execute
this script by cd'ing to the directory containing it
and typing the name. It will prompt you for the
locations of your SKsh files, and verify that they
have been installed correctly. If not, it will print
and error message for each offending file.
SKsh Amiga Shell Page 4 Installation Guide