No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 96: Quick ref for changing "term" and "shell" values
Entered by albaugh on Thu Jan 13 23:25:12 UTC 1994:

Since newly registering, where I set the terminal type to "ansi" and
the "shell" type to "bbs", I would like to change these values to "vt100"
and "shell" respectively.  I have scanned the help texts, and don't see
how to do that.  Could someone give me a quick reference on how to do it,
and also where to look in the future to find answers to do these sorts of
things?  Also, since I originally said "shell" was "bbs", when I entered
the "unix" command, which shell was I given:  cshell, Bourne, or other?
(It looks like it was the Bourne...).

TIA for your help,
KLA

10 responses total.



#1 of 10 by scg on Fri Jan 14 00:29:00 1994:

You can change the shell by typing "!chsh" at a bbs prompt, or "chsh" at a 
shell prompt.  If I'm remembering correctly, it will tell you what to do
after that.  To change the terminal emulation, edit your .profile file, and
change wherever it says "ansi" to "vt100".


#2 of 10 by davel on Fri Jan 14 02:01:06 1994:

And the default shell on this & most Unix systems is sh (the Bourne shell),
so that is indeed what you get if Picospan is your login shell.

Since the new machine has apropos (yay!), you could do something like
apropos change
But I see that the relevant line you get (out of all those irrelevant ones)
lists passwd, chfn, and chsh and says "change local or NIS password
information".  I don't think that would have been enough for me if I didn't
already know about chsh.  Still, that's a way to scan for man entries
relating to some topic.  (Then you do
man chsh
to find out about the chsh command - which I expect you already know.)


#3 of 10 by srw on Fri Jan 14 02:57:16 1994:

One problem encountered by some of my friends is that when they ran
newuser, they said bbs. Then later, they changed their minds, and
when they changed to shell (csh in their case, as that's all we use
at work) by using !chsh, they found that they did not wind up with
reasonable starting .cshrc and .login files.

If they had chosen csh during newuser, they would have gotten a
reasonable starting point. What can one do to ease the setting up of
.cshrc and .login files for users changing via chsh to csh (or tcsh)
from bbs?

Does this same problem occur if you're chsh'ing to sh or bash?


#4 of 10 by popcorn on Fri Jan 14 04:07:57 1994:

This response has been erased.



#5 of 10 by albaugh on Fri Jan 14 07:10:56 1994:

(From the originator):  I'm happy enough with the Bourne shell.  So what I
need to know, since I originally registered with "bbs" as what gets invoked
when I login, is what command to execute or file to edit to invoke "sh"
instead.  Again, TVMIA!  :-)


#6 of 10 by davel on Fri Jan 14 10:07:09 1994:

Steve, the .profile created if you chose bbs originally is quite adequate for
using sh.

Kevin, from the bbs prompt just run !chsh.  Or do unix and then chsh.

Valerie, what's the difference between /bin/sh and /usr/bin/sh or between
/bin/csh and /usr/bin/csh?  (In general, I mean - I now note that they're
hard links for the same files here on Grex.)  I've often wondered about
this.


#7 of 10 by remmers on Fri Jan 14 11:35:29 1994:

On the Sun-3, /bin is a symbolic link to /usr/bin, so the two directories
have identical contents.


#8 of 10 by carl on Fri Jan 14 13:01:36 1994:

Back when I was experimenting with other shells, I'd look at the
system files of other users who were using the shells.  From there
I'd edit my own files.


#9 of 10 by albaugh on Fri Jan 14 19:27:42 1994:

I have successfully changed my "after login shell" to "sh", using the chsh
program.  Note that for the value of "old shell" it displayed just the 2
characters "/b"; I had registered originally using "bbs".  Is /b a 
legitimate value, or possibly a truncation of something in /bin ?
Note that there is no "bbs" choice listed in /etc/shells.  FYI, KLA


#10 of 10 by davel on Fri Jan 14 21:03:41 1994:

/b is what you get if you choose bbs, I think.  It seems to be a script that
runs .profile, sets up a couple of things, and then does
exec /usr/local/bin/bbs

So you're getting bbs, just packaged a little.

Response not possible - You must register and login before posting.

No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss