LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2004, 06:51 AM   #1
praveenv
Member
 
Registered: Aug 2004
Location: India
Posts: 54

Rep: Reputation: 15
Unhappy .bash_profile


Hello Friends !

I echoed some messages in (.bash_profile) , but they are not executing when does this file execute ? (people says when i was logging ,but its not executing even that time also ) ,but (.bashrc ) is executing when I open terminal.

how to make .bash_profile get executed ?


Thanks in advance...........................
 
Old 08-14-2004, 06:56 AM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
.bash_profile gets executed when you start bash and you have to log in. So if you are using a graphical login screen (kdm,wdm,gdm, or xdm) it will never get executed.
 
Old 08-14-2004, 07:43 AM   #3
praveenv
Member
 
Registered: Aug 2004
Location: India
Posts: 54

Original Poster
Rep: Reputation: 15
Starting bash and logging in

How to start bash and how to to log into it ?

dont consider it silly .
Generally when system boots graphical desktop will come .so I dont want to go to graphical interface when system boots , but I want to go for prompt(CUI) directly , and also how to get graphical interface from prompt ?

how to do that ?

help..................................
 
Old 08-14-2004, 12:58 PM   #4
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
When the computer boots into the graphical login screen, you can press CTRL+ALT+F1 to get a textual login. There you can login using username & password, after which your shell starts (if it doesn't start bash but another shell, you can change that in the /etc/passwd file -- look at the last field).

Then bash will notice it acts as login shell and will execute the commands in .bash_profile.

You can even get other terminals by pressing CTRL+ALT+F2 etc. and in most distributions CTRL+ALT+F7 will be the graphical screen.

It is possible to prevent the graphical screen from coming up when booting, but this is very dependent on which distribution you use. For example, in some distributions you can boot into runlevel 3 (type a "3" on the prompt of your boot manager) and you will not get the graphical login. But, again, this depends on which distro you have.

Hope this helps!
nukkel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
.bash_profile dimi Linux - General 1 08-23-2005 08:00 PM
.bash_profile nguye103 Linux - Software 3 10-22-2004 01:48 PM
where is ~/.bash_profile? Jskill007 Slackware 4 09-17-2004 11:04 PM
.bash_profile sikandar Linux - Software 9 08-31-2003 10:01 AM
.bash_profile Wasim Haider Linux - General 2 09-16-2002 07:12 AM


All times are GMT -5. The time now is 12:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration