Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi, when I start my redhat 4, there are always two xterm prompts. i just want to see a clean desktop when I start up. I checked my rc.local and ...
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    6

    remove xterm from startup

    Hi,
    when I start my redhat 4, there are always two xterm prompts. i just want to see a clean desktop when I start up. I checked my rc.local and .cshrc file. there is no clue on it. Can anyone help me to remove these two xterm? thanks.

  2. #2
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,096
    Quote Originally Posted by skyworld View Post
    Can anyone help me to remove these two xterm? thanks.
    Hello and welcome!

    I'm not running Red Hat so can't check for the exact file and location, but for system-wide use, look around in your /etc/X11 folder (and folders within it) for an xinitrc or xsession file that can be edited to remove unwanted startup apps, or add more if you wish. For individual users, look for the same file in your user's /home folder. Note that the file maybe a hidden file with the customary dot in front of it, such as:

    .xsession
    .xinitrc
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Are you saying you are seeing something like this:

    Code:
    [user@host /home/user]$ 
    [user@host /home/user]$
    or

    Code:
    [user@host /home/user]$ [user@host /home/user]$
    What shell are you using?

    If bash then look at /etc/bashrc
    Look at the PS1 lines

    If csh then take a look at /etc/csh.cshrc
    Look for set prompt=

    If another shell look for its config file in /etc

    You are looking for if there are repeats in those lines and if there are remove them.

    I would first suggest before yo make any changes that you backup the file in case you make a mistake so you can recover from it.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. #4
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    I don't think he's seeing two prompts in a shell window, I think he's seeing two shell windows.

    Can't you just close the windows and do a save session? That would work in Fedora, not sure about Redhat 4.

  5. #5
    Just Joined!
    Join Date
    Feb 2011
    Posts
    6
    Hi all,
    thanks for your reply. in fact I always see two shell windows and I don't want to see them every time I start up. I tried to close them when I shut down the computer. But next time when I start up, I see them again.
    As Ozar pointed, I checked X11 directory. but there are too many files and directory, such as initrc and initrc.d. I need to check them carefully. Thanks.

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    You could try to close the windows and then do a session save when you log out. This should/could stop the windows from opening when you log in again if they are being triggered by your account.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  7. #7
    Just Joined!
    Join Date
    Feb 2011
    Posts
    6
    Hi Lazydog,

    thanks for your idea. I tried applications -> More Preferences -> Sessions, and found it doesn't work.

  8. #8
    Just Joined!
    Join Date
    Feb 2011
    Posts
    6
    Hi Lazydog,
    at last I found the way to save the session. Thanks for your help very much.

  9. #9
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    You are welcome. So saving your session on exit solved the issue?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  10. #10
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Glad my suggestion worked for you. Shame you apparently didn't bother to read it.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...