SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In runlevel=3 with -current (up to date) and Plasma5
I have recently developed a problem that startx does not start KDE5
but pauses and finally gives a timeout message from xauth.
Pressing ctrl-C two or three times starts X-- it seems to break what ever is hung and then kde starts and runs normally.
I created a new user and the new account does not have this problem.
What is the cause and how to fix it?
I have searched around and tried the various fixes recommended.
Last edited by Regnad Kcin; 01-17-2021 at 10:30 PM.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818
Rep:
Quote:
Originally Posted by Regnad Kcin
In runlevel=3 with -current (up to date) and Plasma5
I have recently developed a problem that startx does not start KDE5
but pauses and finally gives a timeout message from xauth.
Pressing ctrl-C two or three times starts X-- it seems to break what ever is hung and then kde starts and runs normally.
I created a new user and the new account does not have this problem.
What is the cause and how to fix it?
I have searched around and tried the various fixes recommended.
Have you tried diffing the config files for the new account with the one that's having the problem? Try:
(Maximizing your terminal window -- if currently running X -- helps a lot when doing this.) Check the manpages if necessary to explain what differences are indicated.
If you've done an upgrade recently, it could be that something in an existing desktop config file is no longer compatible with the newer desktop software.
I'd suggest to have a look at your home permissions.
I recently had that after an upgrade + recompile. Couldn't hunt the culprit but might be some malformed slackbuilds that made root own top level of my home (chown root:root /home/$USER without -R flag)
One Error in the Xorg.0.log
[ 5630.715] (EE) Failed to open authorization file "/home/ewj/.serverauth.5913": No such file or directory
I am not sure that this error is meaningful...
Last edited by Regnad Kcin; 01-18-2021 at 06:21 AM.
1. Use xwmconfig and select any other window manager (I would chose twm)
2. $ startx
If it works then looks like KDE specific, which is beyond me.
If you get the same error, try these (no real order).
See if anything is running in background, maybe a detached GUI application is doing something odd ? Or even ssh could be holding something. I doubt any of that is the case but odd things can happen.
Also try removing ~/.Xauthority and maybe any files named ~/.serverauth* and try again with a twm and if twm works, try kde.
good luck
Last edited by jmccue; 01-18-2021 at 02:18 PM.
Reason: grammer
One Error in the Xorg.0.log
[ 5630.715] (EE) Failed to open authorization file "/home/ewj/.serverauth.5913": No such file or directory
I am not sure that this error is meaningful...
THis is very common and usually harmless:
Assuming that you run startx from ~ (as you should), make sure all files (including hidden ones are owned by you as regular user, not by root. As an aside this is one of the reasons to always use 'su -' not just 'su')
rm ~/.serverauth.* as suggested by jmccue
Las resort (not recommended) comment out this line in /usr/bin/startx:
Code:
enable_xauth=1
or set enable_xauth to 0.
Last edited by Didier Spaier; 01-18-2021 at 03:33 PM.
Assuming that you run startx from ~ (as you should), make sure all files (including hidden ones are owned by you as regular user, not by root. As an aside this is one of the reasons to always use 'su -' not just 'su')
rm ~/.serverauth.* as suggested by jmccue
Las resort (not recommended) comment out this line in /usr/bin/startx:
Code:
enable_xauth=1
or set enable_xauth to 0.
I had already tried deleting .Xauthority and .serverauth ...
The problem does appear to be a KDE problem so I am suspecting some KDE configuration issues. Fluxbox is my fallback environment when KDE has trouble and it starts fine.
Killing xauth not only fixed the problem but gives me sort of a sense of satisfaction hearing it crunch, a sort of scapegoat carrying my frustrations away with it. I had tried running xauth from the command line. It seems a strange bird. From reading its man page I am not sure why we need it anyway...?
Quote:
DESCRIPTION
The xauth program is used to edit and display the authorization information used in connecting to the X server. This pro‐
gram is usually used to extract authorization records from one machine and merge them in on another (as is the case when us‐
ing remote logins or granting access to other users). Commands (described below) may be entered interactively, on the xauth
command line, or in scripts. Note that this program does not contact the X server except when the generate command is used.
Normally xauth is not used to create the authority file entry in the first place; the program that starts the X server (of‐
ten xdm or startx) does that.
But...as Mellencamp noted, "I fight authority; Authority always wins.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.