LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2004, 06:17 PM   #1
curmudgeon42
Member
 
Registered: May 2004
Posts: 86

Rep: Reputation: 15
terminal prompts broken when using KDM


hello. i have KDE working with XDM/KDM activating upon boot to handle (automatic) logging into the system. yesterday (i've only had the system up for a couple of days) i noticed that the prompts in bash (through Konsole) were messed up. my current prompt is 'bash-2.05b$'. however, i then noticed that if i log off, tell KDM to go to the console, log in, and then type 'startx', KDE starts just fine and the Konsole/bash prompt is what I want: 'user@host directory$'. my question isn't about how to set the prompt up the way i want; i've done that before. what i want to know is why this particular thing is occuring. this means to me that some init script is running when i do 'startx' that isn't running when XDM starts with the system, or visa versa. what is the offending script?

Thanks for the help,

~ Justin
 
Old 08-16-2004, 09:34 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,989

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
It's in kdm or xdm or the script that starts your chosen display manager(dm), be it kdm, xdm or something else. You can start X w/o starting kdm or xdm but X must start first for kdm or xdm to run. It must be something in the init scripts that starts your dm that is causing the change. At least that's the first place I would look.
 
Old 08-17-2004, 07:25 AM   #3
curmudgeon42
Member
 
Registered: May 2004
Posts: 86

Original Poster
Rep: Reputation: 15
and what are the names of those scripts? are they in /etc/X11 or somewhere else?
 
Old 08-17-2004, 07:41 AM   #4
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
One place to look is in ~/.bashrc. You can set your prompt by changing the PSI variable like below. Just put this in your ~/.bashrc.
Code:
PS1='[\T][\u:\w]$ '
This should give you a prompt that looks like this: [10:03:45][me:~/bin]$
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding kdm to init.d so LFS boots to kdm StevePhM Linux From Scratch 4 08-08-2005 09:49 PM
Shell prompts and keymaps amnesty_puppy Linux - Newbie 8 08-17-2004 06:52 PM
KDM broken, reboots Xserver, no desktop environmen vdemuth Mandriva 2 06-28-2004 04:26 PM
boot up connfirmation prompts phil_anderer Linux - Newbie 2 02-12-2004 07:46 AM
RH9/Question about prompts in X. yukaputzer Linux - Newbie 1 12-16-2003 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:01 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