Tid Bits for UNIX Users
on a KU Server
Korn Shell (ksh)
The UNIX server that support
KU e-mail provides csh as the default shell. This shell has many good features,
but, given my typing ability, I find the ksh, with it's command line editing
capability (I use vi), to be more suitable to me. You can spawn and
work in a ksh as follows.
-
add as the last line of your .cshrc
file (in your home directory), the command, ksh ${HOME}/.profile
-
create a .profile file in your home
directory and add the following lines to it:
export HISTFILE=${HOME}/.sh_history
# The next line can be changed
from, vi, to emacs if you prefer that editor
export EDITOR=vi
export SHELL=ksh
exec ksh
After this is done, log off of the
system and log in once again. After logging in to the e-mail server,
type q, to excape to the UNIX shell, which will now be the ksh. You
can now recall previously typed commands as well as edit them using the
vi commands (or emacs).
X-windows
You can use the xwindows software
on the UNIX machines directly from your PC. This requires some additional
effort on your part. Proceed as follows:
1. On your UNIX account
-
Make a bin directory under your
home directory.
-
Download the following Virtual Network
Computing (VNC) files, and add them to your bin directory. To find
out more about this VNC tool, go to http://www.uk.research.att.com/vnc/index.html
-
Then edit your .profile file in
your home directory and add the following line
export PATH=$PATH:${HOME}/bin:/usr/local/SUNWspro/SC4.2/bin:/usr/X/bin:/usr/local/SUNWspro/bin
Save the changes to .profile.
-
dot your .profile, i.e., type ".
.profile" (not typing the " characters). This executes your .profile
and exports your new PATH environment variable.
-
execute the vncserver command.
This will spawn a vncserver process. It will also ask you to set
a new password for logging in to this vncserver process. Remember
your password, as you will need it.
2. On your PC
-
Download (for windows2000) vncserver
pc_vncviewer
onto your PC. Unzip it (via winzip).
-
Put a shortcut to this viewer on
your desktop.
-
Double click on the desktop shortcut
to run the vncviewer on the PC.
-
When prompted for a system, type
the name of the process that was spawned on the UNIX machine, when you
typed vncserver on that system, e.g., pooh:1
-
When prompted for a password, enter
the password that you set on the UNIX machine (see last temp of 1. above).
-
You should be in the xwindows environment
at this point. You can open up additonal xwindows on the UNIX machine
by typing
xterm &
at any time. You can copy
and paste from one window to another and run workshop (a C/C++ software
development environment), etc.