LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-19-2008, 06:19 PM   #1
ghostofsin
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Rep: Reputation: 0
After exit the X system bash doesn't work.


Good day , I haven't noticed that when i exit the X ( fluxbox ) the bash doesn't work at all . The prompt is not the one that is in the .bashrc and the aliases don't work, i have to type bash to make the bash work and i was wondering how can i make the bash work after i exit the X. Cheers! people
 
Old 01-19-2008, 06:21 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That doesn't happen to me with Slackware and fluxbox. How are you starting fluxbox and what is the prompt you're left with when you exit fluxbox please?
 
Old 01-20-2008, 10:43 AM   #3
ghostofsin
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Red face

Quote:
Originally Posted by gilead View Post
That doesn't happen to me with Slackware and fluxbox. How are you starting fluxbox and what is the prompt you're left with when you exit fluxbox please?
You know it's wierd because this thing doesn't happen all the time i couldn't find out when happens. I start Flux from command line after i login as normal user i type startx the propt label is the one i hav ein the .bashrc :

Code:
PS1="\u@\h[\w]$:"
alias turnoff="sudo /sbin/poweroff"
alias restart="sudo /sbin/shutdown -r now"
WHen it doesn't work it displays : MyUsrName@Myhostname:$
 
Old 01-20-2008, 12:52 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If you run startx every time but the problem only happens sometimes, that is weird. The quickest workaround would be to run the following instead of just startx:
Code:
startx && bash -l
That will start a bash login shell after you exit fluxbox. The downside is that if you're not shutting down the box when you leave fluxbox, you'll need to exit that shell when you logout.

Have you made any changes to startx or is it the default version that comes with Slackware?
 
Old 01-21-2008, 11:18 PM   #5
ghostofsin
LQ Newbie
 
Registered: Mar 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by gilead View Post
If you run startx every time but the problem only happens sometimes, that is weird. The quickest workaround would be to run the following instead of just startx:
Code:
startx && bash -l
That will start a bash login shell after you exit fluxbox. The downside is that if you're not shutting down the box when you leave fluxbox, you'll need to exit that shell when you logout.

Have you made any changes to startx or is it the default version that comes with Slackware?
Noup! it's the original no modifications have been made, i'll give it a try with the commadn you sad and see what happens, thanks
 
  


Reply



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 command exit status humbletech99 Programming 12 07-06-2006 12:20 PM
Bash: Print usage statement & exit; otherwise continue using Bash shorthand operators stefanlasiewski Programming 9 02-07-2006 05:20 PM
Bash Script- command on exit PDock Programming 6 12-23-2005 07:03 PM
get exit status from a C-program in Bash Yoko Programming 1 07-12-2005 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:56 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
Open Source Consulting | Domain Registration