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


Grex Helpers Item 4: Changing Shells
Entered by rcurl on Fri Jun 17 15:09:20 UTC 1994:

For helping users change shells.

25 responses total.



#1 of 25 by rcurl on Fri Jun 17 15:13:26 1994:

What is the status of the !change program, in regard to set-up of
.profile and .cshrc files? Is a default now installed, or do we tell
users asking about changing to csh or tcsh, to first copy someone
else's .profile and .cshrc?


#2 of 25 by kaplan on Fri Jun 17 17:57:10 1994:

I seem to remember that we decided that .profile, .cshrc, and .login could
be created by newuser for everyone so that users would be free to change
shells via the chsh command without worrying about creating or copying the
missing files.  What ever happened to that idea?


#3 of 25 by robh on Fri Jun 17 22:50:25 1994:

Curiously, someone asked me about this just this morning.

Right now, the "change" program is under repairs of some sort,
and cannot change shells.  You can use the Unix command "chsh"
instead, which will ask the user what login shell to change to.
It does the same thing that the change program would.

The default resource files for every shell are kept in the
sh script file /usr/local/noton/nu/protos.  Users can copy
this file to their directory and edit it down to the files
they need (and the file does tell you which ones you need
and which you don't for each shell), but it's probably
easier for them to copy someone else's resource files.

I'm toying with the idea of a Lynx option to copy generic
resource files into a user's home directory.  If I do this,
I'll keep copies in the Lynx directory, and I'll tell everyone
where I've stashed them.


#4 of 25 by robh on Sat Jun 18 00:05:10 1994:

Ignore my other post.  Folks, I found a default, generic .login
and .cshrc already in the Lynx directories.  Here are the
addresses:

        /usr/local/lib/lynx/popcorn/default.login.html
        /usr/local/lib/lynx/popcorn/default.cshrc.html

Have your new users copy these files to their home directory
with the names .login and .cshrc, respectively.

I should still do up a generic .profile file, though.


#5 of 25 by robh on Sat Jun 18 00:10:40 1994:

And ignore that post, I got the addresses wrong.  Instead, try:

        /usr/local/lib/lynx/local/popcorn/default.login.html
        /usr/local/lib/lynx/local/popcorn/default.cshrc.html


#6 of 25 by popcorn on Sun Jun 19 13:18:37 1994:

This response has been erased.



#7 of 25 by robh on Sun Jun 19 20:18:31 1994:

But once we get a bigger disk, it sounds like a good idea.


#8 of 25 by matthew on Sun Dec 31 20:46:15 1995:

I'm a little behind on these things, has anything been set up yet
so all newusers get a .profiel, .login, and .cshrc file yet ?


#9 of 25 by robh on Sun Dec 31 22:06:16 1995:

Nope.  There's been some concern that if people had both a .profile
and a .login, they might change their settings in the wrong file,
and then have no idea what was going wrong.  "But I change the term
type in my .login to vt100!  See, it's right there!  So why won't
it work?"  "Um, because you use the bbs shell..."


#10 of 25 by matthew on Sun Dec 31 22:19:54 1995:

So could someone present (in small simple words for my overwhelmed brain)
What is the process to change someone over to a new shell ? It's one
of teh things I'd like to know how to do, but haven't quite figured
out how to do yet.  Many  thanks and Happy New Year !


#11 of 25 by popcorn on Tue Jan 2 17:11:22 1996:

This response has been erased.



#12 of 25 by davel on Wed Jan 3 03:19:41 1996:

It may be wise to try running the desired shell (just as a command), and then
(under it) sourcing the startup files - just to catch any dumb syntax errors,
constructs valid only under other shells, etc.

To source a file under sh or bash, use a period followed by a space before
the file's name, for example:
. .profile

To source it under csh or tcsh, I think you'd do:
source .login



#13 of 25 by matthew on Mon Jan 8 15:42:39 1996:

Thanks you very very much !


#14 of 25 by rcurl on Mon Jan 8 16:13:01 1996:

chsh gives you the options (among others)
/bin/sh
/bin/csh
/usr/bin/sh
/usr/bin/csh
Do you want to use the longer or short forms?


#15 of 25 by davel on Tue Jan 9 02:19:01 1996:

/bin is a symbolic link to /usr/bin, so in practice it doesn't matter.
I don't know which is better in principle.


#16 of 25 by popcorn on Tue Jan 9 03:20:37 1996:

This response has been erased.



#17 of 25 by scg on Tue Jan 9 06:31:24 1996:

Is there any difference between /bin/csh and /usr/bin/csh other than the path?


#18 of 25 by davel on Wed Jan 10 00:48:40 1996:

I repeat that /bin is a symlink to /usr/bin.  So /bin/csh & /usr/bin/csh are
exactly the same file.
<goes off muttering>


#19 of 25 by scg on Wed Jan 10 05:44:42 1996:

Oops.  Sorry.  I missed that.


#20 of 25 by rcurl on Thu Jan 11 07:23:57 1996:

Then why not eliminate one of each set of alternatives in chsh, so users
don't have to know this? 



#21 of 25 by popcorn on Sun Jan 14 17:07:44 1996:

This response has been erased.



#22 of 25 by rcurl on Sun Jan 14 20:24:05 1996:

But why do you have to offer the (newbie) user the alternatives, and confuse
them? I mean just eliminate offering the choice of two reponses that do
the same thing. What's going on internally isn't the issue.


#23 of 25 by popcorn on Mon Jan 15 02:22:52 1996:

This response has been erased.



#24 of 25 by rcurl on Tue Jan 16 06:55:51 1996:

Heck, I thought you could do *anything* with computers....  B^P.


#25 of 25 by gelinas on Sat Jan 24 04:51:43 2004:

(Guessing at the deleted comments from the rsposnes is fun.)

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