Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-29-2004, 03:40 PM   #1
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
starting bash as a login shell every time

I upgraded slack to current and found that now when I start an X based terminal it loads bash as a non-login interactive shell. This means that bash does not load /etc/profile or ~.bash_profile, only .bashrc. How can I make bash start as a login shell everytime it is executed, or everytime it is executed by an X based terminal?

-Thanks in advance.
Old 04-29-2004, 04:38 PM   #2
Registered: Feb 2004
Location: Denmark
Distribution: Gentoo
Posts: 136

Rep: Reputation: 15
Use a command-arg like:
konsole --ls
xterm -ls

It does not allways work however, for example when using an integrated terminal. Personally I modified my modified my .bashrc-script and added an "export PS1".
Old 04-29-2004, 05:44 PM   #3
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
I simply added:

source /etc/profile
source ~/.bash_profile
to .bashrc to achieve the same effect more easily than changing every shortcut in every wm for a terminal to a login shell.

This way, you can just leave .bashrc with those two commands, and add all your aliases, functions and whatnot to .bash_profile and have them load for login shells and subshells.

Old 04-30-2004, 03:55 PM   #4
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Original Poster
Rep: Reputation: 30
Thanks. You're awsome man.

-Thanks again.


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
Starting gdm instead of shell login calcon Slackware 1 04-10-2005 11:17 AM
login directly to bash shell openart Linux - Newbie 5 10-27-2004 09:05 AM
Rare problem - cant login into bash shell Xris718 Linux - General 2 07-16-2004 02:07 AM
pesky bash shell error every time I log in illiniguy3043 Linux - Newbie 1 06-12-2004 02:54 PM
How to login to bash shell inarin Linux - Newbie 1 10-07-2003 03:45 PM > Forums > Linux Forums > Linux - Distributions > Slackware

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

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