LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2003, 05:01 PM   #1
Greg21
Member
 
Registered: Jan 2002
Posts: 72

Rep: Reputation: 15
Gnome terminal


I've read the help files, I've searched this forum, I've even googled it.

My Gnome Termnial doesn't act like my normal terminal does. It does not color code the fonts, the promt is "bash-2.05b$" instead of "username@hostname: current_path$".

What am I missing? Is there a easy way to fix this problem? I feel kindof stupid asking this as it should be straight forward ... guess im just dumb

Greg
 
Old 06-11-2003, 05:41 PM   #2
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Rep: Reputation: 30
i can give the solution to your second problem:
run gnome-terminal, go to edit -> current profile.
select the 'title and command' tab, and check the
'run command as login shell' box, and click close.
 
Old 06-11-2003, 06:24 PM   #3
Greg21
Member
 
Registered: Jan 2002
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks, that solved both of my problems.
Greg
 
Old 06-12-2003, 06:08 AM   #4
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Rep: Reputation: 15
Greg21, here's an explanation for that strange behavior. bash can start in two modes, a login shell and a non-login shell. When you login at the CLI, bash starts a login shell. Normally, when you start up a gnome terminal, bash starts a non-login shell.

In a login shell, bash looks at /etc/profile and the first of ~/.bash_profile, ~/.bash_login, and ~/.profile

In a non-login shell, bash looks at ~/.bashrc

That's why your gnome terminal prompt, colors, and other stuff looked different from what you normally get when you log in at the CLI.

As neenee has pointed out, you can set gnome terminal to start up as a login shell, which you have found acts just as described above.
 
Old 06-12-2003, 02:13 PM   #5
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Rep: Reputation: 30
good to hear it's fixed.
 
  


Reply

Tags
gnometerminal, login, shell



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing environment variable for gnome session from gnome-terminal pymehta Linux - Software 1 10-11-2005 05:19 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM
Gnome 2.6 problems (gnome-terminal) ababkin Linux - Software 1 04-05-2004 12:57 PM
GNOME Terminal rambharv Linux - Newbie 2 12-17-2003 01:55 PM
Gnome terminal Hone101 Linux - Newbie 9 11-21-2003 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration