LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-13-2022, 04:28 AM   #16
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,832
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638

Quote:
Originally Posted by Alfred-Augustus View Post
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?

Last edited by zeebra; 05-13-2022 at 04:39 AM.
 
Old 05-13-2022, 04:31 AM   #17
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,832
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by Alfred-Augustus View Post
Xorg.0.log (part 2)

The end.
You're right, there doesn't seem to be anything interesting there. Can you edit those posts and put the xorg.log in code tags?
 
Old 05-13-2022, 04:48 AM   #18
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by zeebra View Post
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.
 
1 members found this post helpful.
Old 05-13-2022, 04:49 AM   #19
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Code:
tpbox> cat .bash_profile 
# .bashrc

# Source global definitions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

Last edited by Alfred-Augustus; 05-13-2022 at 05:06 AM.
 
Old 05-13-2022, 04:55 AM   #20
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,832
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by Alfred-Augustus View Post
Yes. It is actually
Nice, it's not something seen so often these days

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 View Post
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.

Last edited by zeebra; 05-13-2022 at 05:00 AM.
 
Old 05-13-2022, 05:14 AM   #21
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by zeebra View Post
Nice, it's not something seen so often these days

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.
 
Old 05-13-2022, 05:14 AM   #22
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320
Basically, the xauthority files are in /tmp , with names like /tmp/xauth-1000-_0 .

Also the X11 server pipe files are into /tmp/.X11-unix directory with names like /tmp/.X11-unix/X0

Is something setup to mess with the /tmp files? Also, is the /tmp a standard directory or a tmpfs mountpoint?

Last edited by LuckyCyborg; 05-13-2022 at 05:55 AM.
 
Old 05-13-2022, 05:57 AM   #23
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by zeebra View Post
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.
 
Old 05-13-2022, 06:03 AM   #24
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by LuckyCyborg View Post

Is something setup to mess with the /tmp files?
I have not used the /tmp directory for anything.

Quote:
Originally Posted by LuckyCyborg View Post
Also, is the /tmp a standard directory or a tmpfs mountpoint?

I don't understand this question. I only have 3 partitions for Slackware: swap, / and /home. Here is my df -h output. Does that answer your question?
Code:
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            32M  1.4M   31M   5% /run
devtmpfs        8.0M     0  8.0M   0% /dev
/dev/sda5        51G   16G   33G  32% /
tmpfs           1.8G     0  1.8G   0% /dev/shm
cgroup_root     8.0M     0  8.0M   0% /sys/fs/cgroup
/dev/sda6        49G   12G   35G  25% /home
tmpfs           363M   12K  363M   1% /run/user/1000

Last edited by Alfred-Augustus; 05-16-2022 at 10:18 PM.
 
Old 05-13-2022, 06:07 AM   #25
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320
Quote:
Originally Posted by Alfred-Augustus View Post
I don't understand this question. But here is my df -h output. Does that answer your question?
Code:
tpbox> df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            32M  1.4M   31M   5% /run
devtmpfs        8.0M     0  8.0M   0% /dev
/dev/sda5        51G   16G   33G  32% /
tmpfs           1.8G     0  1.8G   0% /dev/shm
cgroup_root     8.0M     0  8.0M   0% /sys/fs/cgroup
/dev/sda6        49G   12G   35G  25% /home
tmpfs           363M   12K  363M   1% /run/user/1000
Yes, it answers. Your /tmp is a standard directory.

The question was regarding that some users mount into /tmp a (in memory) temporary filesystem, like is /run . Think about something like a ramdisk.
 
Old 05-13-2022, 08:16 AM   #26
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by LuckyCyborg View Post
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.

I followed the Beginners Guide to add new user:

Code:
useradd -m -g users -G wheel,floppy,audio,video,cdrom,plugdev,power,netdev,lp,scanner -s /bin/bash slacker
I switched to this user and started using Firefox. About 30 minutes, later, the same X-authority problem started again.
 
Old 05-13-2022, 08:23 AM   #27
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,100

Rep: Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176Reputation: 4176
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.
 
Old 05-13-2022, 09:12 AM   #28
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by ponce View Post
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.
 
Old 05-13-2022, 12:22 PM   #29
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 969

Rep: Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656
Quote:
Originally Posted by Alfred-Augustus View Post
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.

regards Henrik
 
Old 05-14-2022, 02:04 PM   #30
Alfred-Augustus
Member
 
Registered: May 2022
Posts: 91

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by henca View Post
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
export DISPLAY=:0, no protocol specified, can't open the DISPLAY=: :0 KristenU Linux - Newbie 2 05-24-2018 02:34 PM
[SOLVED] -display = "Xt error: Can't open display"? drewhead Slackware 5 11-15-2017 04:41 PM
we have vfd pole display detected as hiddev0. how to display data on the vfd display kpr_hrc Linux - Newbie 2 03-21-2016 06:03 AM
X: display remote session or "Can't open display" DBabo Linux - General 1 07-06-2015 12:28 AM
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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