Worf Tips

Welcome to Worf Tips. I'm your host, Andy Berkvam. Let me just take a minute to explain who I am and what Worf Tips is.

I worked for Information Technology as a "Computer Wizard". My boss was Tom Neuhauser, the system administrator of worf. For the most part, I was involved with Internet software here on campus. I also use UNIX a lot.

Worf is running a new version of UNIX called BSD/OS 1.1. I have been using Worf since it was first built. As I used BSDI UNIX more and more, I found that a lot of things weren't the same as they were on AT&T UNIX (the UNIX version on spu1 and helios). I also found a lot of things that might qualify as "neat". That is, they were things that didn't exist in any way on the old UNIX but were nice to have.

As I found out more and more about this system, I thought that it would be nice if I could pass on what I had learned. I talked with Tom Neuhauser about it and we decided that this file would be a good solution.

These tips were originally a plain text file on Worf. After I wrote the first version I got a lot of favorable response. But I didn't have much time to follow up and worf's future was questionable. Now I am starting to learn how to use the World Wide Web and I decided that the tips could be put on the Web.

Many users sent me tips. I'll be adding some of them in the future. I also know I have lost some of the tips people sent me. I would appreciate it if other users would talk to me. Email me questions and I'll try to solve them. Or just email me tips that you have found. I'll be happy to put them here.

These tips also will cover a variety of user experience. If a tip is talking about something that you don't know about or don't care about, just go to the next one.

Enough talk, on with the tips.


UNIX In General

What is UNIX?

UNIX is a computer operating system. The operating system of a computer is the most important software that runs on it. It handles input, output, keeping track of files, security, etc. All computers have operating systems. Some common ones are MS-DOS, OS/2, UNIX, and VMS.

UNIX is a powerful operating system that lets many people use a comuter at the same time. It has gained much popularity because it is available for many different types of computers and can easily be ported to new types of computers.

What is BSD/OS?

UNIX was first created in 1969 in Bell Labs. The source code was distributed in the 70s and many different versions were created. Two main variends survived; the more official AT&T System V versions and the Berkeley Systems Distribution versions. The Berkeley versions tended to be cheaper and have more user-contributed programs than the AT&T versions but had less support so the Berkeley versions grew popular in the educational world while AT&Ts were more popular in business environments.

BSDI stands for Berkeley Systems Distribution Inc. This group recently took over the development of the main Berkeley version and turned it into a commercial product with much more support and called it BSD/OS. This is the version that runs on Worf. If you would like to know more about BSDI and their products, they have a World Wide Web page at http://www.bsdi.com/.

Keyboard Problems

My backspace key doesn't work.

The problem is that your computer is sending a different code for that key than Worf is expecting. Most likely it's sending a DEL code instead of a BS code.

There is a quick and dirty solution to this and a longer, more permanent solution.

Quick and dirty - If you are just logging in quickly from a strange terminal, you may just want to use the quick and dirty solution. All you have to do is type

stty erase <BACKSPACE>

This tells Worf to use whatever your computer sends as the backspace key as the erase character. The only problem is that you have to do this every time you log in.

Longer and more permanant - A much better solution is to have your computer send the "correct" erase code. In most programs there should be an option screen for Terminal Setup. Look on this screen for an option like "Backspace key sends:". There should be two choices; Backspace or DEL. Choose Backspace and save this setup.

MS-Kermit is a little different. The Kermit command

set key \270 \8

has to be given to Kermit. This can be done by adding it to your MSCUSTOM.INI file with a text editor.

I'm used to AT&T UNIX. Do I still need to use the backslash before the at sign?

No.

For those of you who have used spu1 or other AT&T UNIX computers, you will be glad to know that all that silliness about the backslash (\) and at sign (@) doesn't apply anymore. If you type an at sign, you get an at sign. If you type a backslash, you get a backslash. This should make typing Internet addresses much easier.

Part of what caused this is the interrupt and kill characters. The interrupt character interrupts whatever you are doing. If you accidentally run a program that you don't know how to quit, the interrupt character will stop the program. The kill character will cancel everything that you have typed on the command line and will cancel a few other things. On spu1, the interrupt character was the <DELETE> key and the kill character was the at sign <@>. This lead to a problem with typing Internet addresses. Everytime you typed an at sign, you would cancel the entire line. You had to "escape" the at sign by typing a backslash first.

The interrupt and kill characters are different on worf. Interrupt is ^C (Control-C) and kill is ^U (Control-U). This should interfere with typing less and be closer to what you are used to. You can even change this is you want to. The stty command will let you change these characters. For example, to change interrupt to the <DELETE> key and the kill to <@>, the command would be

stty intr <DELETE> kill @

NOTE: Press the <DELETE> key where it says <DELETE>. "^?" should appear on the screen on most terminals.

To change them back, the command would be

stty intr ^C kill ^U

NOTE: For the stty command, to indicate <Control-C> type the <^> key and then <C>, not <Control-C>.

Rehashing the path

I have my own directory called /usr/wiz/aberkvam/bin. I keep all my executable scripts in this directory. I have added this directory to my path so I can run these files no matter what directory I am in.

When I created new scripts, I found a problem. After I created the script, I couldn't run it. But after I logged out and in again, I could run it. It turns out that the C Shell does something called hashing your path.

When you log in, the C Shell finds every file in your path and remembers where it is. This way, it can run the files very quickly without looking for them. The problem is, when a file is added in your path, the hash tables don't know about it. You have to update the tables. You can do this by simply typing "rehash". This updates the hash tables so the new file can be found.

If you would rather not have your path hashed, just use the "unhash" command. This will turn off hashing. Your programs will start a little slower though.

Changing your finger information

Many of you are probably familiar with the finger command. If you type finger and then someone's Internet address, you will get information about them. Usually this information is just basic information about the person; full name, phone number, office, the last time they were on, etc. But more information can be displayed.

If the files ".project" and ".plan" exist in a user's home directory, they will be displayed along with the usual information. ".project" and ".plan" are just text files. They can contain anything you want. Traditionally the ".project" file is one line and the ".plan" file ranges from a few lines to several pages.

To get an idea of what some more ambitious people have done with their ".plan" and ".project" files, run the "fingerinfo" command (Just type "fingerinfo" at the UNIX prompt (no quotes)). FingerInfo is a menu of interesting addresses to finger. It is compiled and regularly updated by a Milwaukee resident named Scott Yanoff.

To create your own ".project" and ".plan" files, just type "pico .project" or "pico .plan" at the UNIX prompt. This will start the PICO text editor. Then you can just type whatever you want for your ".project" and ".plan" files.

There is one last step to making your files available. You have tell UNIX that you want the entire world to be able to see those files. The command "chmod go+r .plan .project" will make those files available for the world to view.

Manual pages

Sometimes you may want to know how to use a command that you have forgotten or only heard about, or you may want to know a little more about the commands that you use. How do you find out about commands? Well, worf has man pages. "What are man pages?" you ask. They are actual pages from the UNIX manual that are available on-line. They will tell you all the options of a command and other information about that command.

To use the man pages, just type "man <command name>". For example, "man finger" will bring up all the options for the finger command.

One of the most useful man pages is probably the csh man page. It covers all the commands of the C Shell (the default shell on worf). Many of these commands are different than the old Bourne Shell (sh) that you may be used to. Take a look. It could help you a lot.

Disk Quotas

In order to keep the disk space on worf from being used up, disk quotas are being used. On worf, you are currently limited to five megabytes of disk space. You can temporarily use up to six megabytes, but you will get warnings that you will have to delete some files.

You are also limited to 750 files, with a temporary limit of 1000.

To find out how close to you limits you are, just type "quota". You will be shown how much disk space you are using, how many files you own, and the limits for you.

PICO

For those of you that have tried to use vi, ed or other UNIX text editors, you will be glad to know that we have a much better text editor on worf. It's called PICO and it comes with the PINE email program. It should work like a lot of the DOS text editors that you are used to. You can use arrow keys, there are no "modes" (the annoying ESCAPE key and a, i, o, etc. to insert text), there is a spell checker, and there is a small menu and on-line help, just to name a few features.

To run PICO, just type "pico". If you want to, you can also type the file name ("pico my-file").

Screen Repainting

If your screen ever becomes "corrupted" (things don't look right anymore) because someone tried to "talk" to you, you got an email notification, etc., try typing CTRL-L. In most UNIX programs, this will repaint the screen, removing all the old junk from the screen, just leaving what should be there.
Well, I think that this is about it for the first edition of Worf Tips. Please let me know what you think. I hope to hear from you soon.
[Andy] Andy's Home Page
Andy's Pages are brought to you courtesy of CORE Digital Communication Services.