Index

Subject : Re: LUG: newbie ish question (.bashrc on eos?)

From : Gary Gatling <gsgatlin@ncsu.[redacted]>

Date : Thu, 02 Feb 2012 11:37:32 -0500

Parent


Also, if you are curious, some stuff happens before your stuff runs on Realm Linux (Eos) in:

/etc/realmuser.d/*

for tcsh, you should not alter ~/.cshrc

for bash, you shold not alter ~/.bashrc

Instead alter ~/.mycshrc or ~/.mybashrc depending on which shell you use.

When you first login, you will get tcsh. At the % prompt you could type:

something% bash

which would change your prompt to

something$

And then your aliases or whatever should be available.

I do not believe there is an easy way to get that changed so that bash is your default since the data is stored in LDAP. So chsh command won't work.

As others have pointed out, tcsh is the default shell for mostly historical reasons. (It has to do with MIT and project Athena) So we are working to get bash more supported and useful with Realm Linux here on campus.

I am responsible for supporting the Linux lab machines in the various Eos labs and am also responsible for the " remote.eos.ncsu.edu " pool of machines. We have had some tickets come in where students have asked for a way to use bash instead of tcsh.

I could bring it up at our meeting next week if there is still interest in a bash shell here on campus?

Or do people really love tcsh? ;)

Cheers,

Gary Gatling      | ITECS Systems
ITECS, BOX 7901   | Operations and Systems Analyst
NCSU, Raleigh, NC | Email: gsgatlin@ncsu.[redacted]
27695-7901        | Phone: (XXX) 513-4572 (5C Page Hall)


On Thu, Feb 2, 2012 at 10:39 AM, Gary Gatling < gsgatlin@ncsu.[redacted] > wrote:
Hello,

I believe the files for bash shell that Realm Linux (A.K.A. the eos systems) will care about are:

~/.mybashrc
~/.mybash_login

If you log in and get a tcsh shell and then run bash at the prompt, these files will be sourced and you will have a familiar bash prompt. Not sure that this can be done automatically yet. At least when I tried it didn't work.

Many ITECS lockers are "addable" but some others ("add matlab") are not yet working. :(

We are working to try to get this fixed and also make it possible so that students would get bash as the default shell instead of tcsh. Or at least be able to choose bash as an option. Hopefully we can make some progress on this front in the spring semester. (I spoke with one of the sysadmins about this very topic last week at lunch)  Perhaps there could be a web page a student could choose a shell in as the command line tool (E.G. Red Hat's chsh command)  does not work with our environment for technical reasons.

Cheers,

Gary Gatling      | ITECS Systems
ITECS, BOX 7901   | Operations and Systems Analyst
NCSU, Raleigh, NC | Email: gsgatlin@ncsu.[redacted]
27695-7901        | Phone: (XXX) 513-4572 (5C Page Hall)



On Wed, Feb 1, 2012 at 10:29 PM, Alex Ray < alexjray.ncsu@gmail.[redacted] > wrote:
double check your shell.  NCSU accounts default to tcsh.  Use that RC file, or change your default shell.

Cheers

On Wed, Feb 1, 2012 at 10:22 PM, Stephen Smith < smsmit18@ncsu.[redacted] > wrote:
Hey all,
I'm trying to set up some .bashrc aliases on my eos directory.  Is this possible?  I can obviously create the file in my home directory and put bunches of lovely stuffs in there, but I can't get the aliases to 'activate'.  Any help would be appreciated.  I can alias one line at a time, but I think they go away when I log out.
-Stephen



--