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.
Just 5 minutes ago, I got the errors again. So I had to Cntl-Alt-Backspace to kill X and get back to console. Once in console, I did startx. Now X is working perfectly.
This is because a new xorg authority is created when you do that. The question is, why do you lose your xorg authority in the first place.
From what I can see there is nothing interesting in /var/log/messages, and neither is /var/log/secure because it just shows you opening /var/log/secure with sudo..
Do you find anything interesting(in your opinion) in /var/log/secure if you look into it?
Well, the error message is typically a message that you get when you have no authority to open an xorg window or use xorg. This typically happens if you try to open something as another user.
Something could have triggered you the owner an xorg authority in the running instance to drop/lose the authority, which would lead to a scenario like the one you describe.
What puzzles me though is your prompt
Code:
tpbox>
What kind of prompt is that? Is that a custom bash prompt you made in .bash_profile/bashrc?
PS1="$USER> "
Yes. It is actually xxx>. I changed it to tpbox> in the above posts.
I think I got this bashrc file from Fedora.
Code:
$ cat .bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
PS1="$USER> "
############################################################################
############################################################################
s() { echo ; echo -n "bat "; cat /sys/class/power_supply/BAT0/capacity ; echo ; }
alias cp='cp -i'
alias mv='mv -i'
alias ffplay='ffplay -autoexit'
Last edited by Alfred-Augustus; 05-16-2022 at 10:19 PM.
Well, there isn't anything useful in the logs as of yet. But to me it seems that you somehow drop your xauthority, and the question is why this happens. It shouldn't happen is the easy answer.
I know this might sound silly, but is there a particular pattern of things that you tend to do right before this error happens? I mean, something could potentially trigger this issue to happen. But what?
Quote:
Originally Posted by Alfred-Augustus
Code:
ksiu> cat .bash_profile
I don't think bashrc and bash_profile is relevant to the issue. It's not impossible, but IMO very unlikely, but I don't have good enough eyes to exclude errors in bashrc.
Well, there isn't anything useful in the logs as of yet. But to me it seems that you somehow drop your xauthority, and the question is why this happens. It shouldn't happen is the easy answer.
I know this might sound silly, but is there a particular pattern of things that you tend to do right before this error happens? I mean, something could potentially trigger this issue to happen. But what?
I don't think bashrc and bash_profile is relevant to the issue. It's not impossible, but IMO very unlikely, but I don't have good enough eyes to exclude errors in bashrc.
My bashrc file really only just change the user prompt.
/etc/bashrc does not exist, so nothing is done there.
~/.basrc.d also does not exist.
So, I agree bash is irrelevent here.
I know this might sound silly, but is there a particular pattern of things that you tend to do right before this error happens? I mean, something could potentially trigger this issue to happen. But what?
On this Slackware, I have mostly use Firefox (Youtube and forums), Xterm and Mplayer. I haven't identified any pattern.
Last edited by Alfred-Augustus; 05-13-2022 at 12:03 PM.
I recommend you to create a new user with "adduser" and to set the default groups for it, then to see if you can reproduce the issue while using this new user account.
Does this happens if you switch to a different WM like kde/xfce using xwmconfig (and do a startx again)?
Don't forget to backup your ~/.xinitrc in case you have customized it.
Does this happens if you switch to a different WM like kde/xfce using xwmconfig (and do a startx again)?
Don't forget to backup your ~/.xinitrc in case you have customized it.
yes, it hapens in KDE, Fvwm2, and Fluxbox.
yes, i use xwmconfig to switch WM.
yes, it hapens in KDE, Fvwm2, and Fluxbox.
yes, i use xwmconfig to switch WM.
As you were unable to find any clue in your log files, what about the output from startx in the console where X was started? My guess is that you at least there should find error messages about being unable to open display when you fail to start some application from the menus. X applications started from a terminal window will put their stderr with error messages to that terminal but applications started from the window manager will probably put their errors to stderr of the console where startx was run.
If you instead of using startx log in to some graphic environment like kdm you might get your error messages in a file ~/.xsession-errors
Is there any difference in the output from "xauth list" when you can open new windows and after it fails?
Just to make sure, check the output of "df -h" when opening new windows fails, a filled home partition might make it impossible to open new windows.
As you were unable to find any clue in your log files, what about the output from startx in the console where X was started? My guess is that you at least there should find error messages about being unable to open display when you fail to start some application from the menus. X applications started from a terminal window will put their stderr with error messages to that terminal but applications started from the window manager will probably put their errors to stderr of the console where startx was run.
If you instead of using startx log in to some graphic environment like kdm you might get your error messages in a file ~/.xsession-errors
Is there any difference in the output from "xauth list" when you can open new windows and after it fails?
Just to make sure, check the output of "df -h" when opening new windows fails, a filled home partition might make it impossible to open new windows.
regards Henrik
No error message in the console, after the X-can't-open-display.
But there is a always this message after I execute startx...
Code:
$ startx
xauth: file /home/tpbox/.serverauth.xxxx does not exist
The xxxx is some 4 digit number.
I didn't experience the problem today. So, I couldn't try "xauth list".
Last edited by Alfred-Augustus; 05-16-2022 at 10:18 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.