Find the answer to your Linux question:
Results 1 to 6 of 6
Whenever I try to log in to my KDE desktop something quite intriguing happens. When I attempt to login it goes black as if it's about to boot into KDM... ...
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Location
    NC, USA
    Posts
    43

    Cannot log in to KDE

    Whenever I try to log in to my KDE desktop something quite intriguing happens. When I attempt to login it goes black as if it's about to boot into KDM... then goes right back to the login screen. This happens no matter who I log in as.

    If I ctrl+alt+F1 to the command line I am able to log in. If I then issue the stop command for KDM, followed by the start command, it takes me back to the login screen. The only difference is that under switch users it shows me loged on twice. if I switch it just takes me back to the command line. Under session it shows nothing selected, I'm not sure if this is normal or not. If I select a KDE session and then attempt to login the same thing happens, and it reverts back to no selection under session.

    Am very confused.

  2. #2
    Just Joined!
    Join Date
    Apr 2005
    Location
    NC, USA
    Posts
    43
    If I log into console mode and run 'startx' I get the following error:

    Code:
    /etc/X11/xinit/xinitrc: line9: /etc/X11/Xsession: No such file or directory

  3. #3
    Just Joined!
    Join Date
    Apr 2005
    Location
    NC, USA
    Posts
    43
    OK, so I tried making an empty file at /etc/X11/Xsession. The error message regarding that file no longer shows up. I now get the following:

    Code:
    Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'

  4. #4
    Just Joined!
    Join Date
    Apr 2005
    Location
    NC, USA
    Posts
    43
    Some more, hopefuly helpful, info:

    The file /etc/X11/xinit/xinitrc is as follows:

    Code:
    #!/bin/sh
    #$Xorg:xinitrx.cpp,v 1.3 2000/08/17
    #/etc/X11/xinit/xinitrx
    #
    #global xinitrc file, used by all X sessions started by xinit (startx)
    #invoke global Xsession script
    ./etc/X11/Xsession
    The output of slocate Xsession is:

    Code:
    /etc/X11/Xsession (the one I created)
    /etc/X11/Xsession.options
    /etc/X11/Xsession.d
    /etc/X11/Xsession.d/30xorg-common_xresources
    /etc/X11/Xsession.d/50xorg-common_determine-startup
    /etc/X11/Xsession.d/90xorg-common_ssh-agent
    /etc/X11/Xsession.d/99xorg-common_start
    /etc/X11/Xsession.d/20xorg-common_process-args
    /etc/kde3/kdm/Xsession
    /usr/share/man/man5/Xsession.5.gz
    /usr/share/man/man5/Xsession.options.5.gz
    I tried using cp to move the Xsession file at /etc/kde3/kdm/Xsession to /etc/X11/Xsession. X will now start but only goes to a gray screen with an X for a curser.

  5. #5
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    To get startx to work all you need to do is create a .xinitrc file.
    And put one line in it.

    Code:
    nano .xinitrc
    add this line

    Code:
    exec startkde
    Ctrl + x to quit, then save your work.
    Now startx will work.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  6. #6
    Just Joined!
    Join Date
    Jan 2006
    Posts
    71
    The best bet is to check the logs. The log for X should be under /var/log/<whatever X your using>.x.log
    If you tail it, you will see what the error is. Repost that and it may be a little easier to troubleshoot

Posting Permissions

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