You are not logged in.

#1 2015-08-22 22:06:06

zahn01
Member
Registered: 2015-06-07
Posts: 54

[Solved]Arch xserver fails and is unreliable, once again, yet again.

Hello,
Problem originally solved here: https://bbs.archlinux.org/viewtopic.php?id=200643
The problem has returned. Please see below.
Background
Weeks ago, I modified my xinitrc in accordance with the Arch Linux wiki to enable starting from the .xinitrc. Obviously, I do not use a login manager. That modification was prompted by the fact that I posted a forum help post requesting to know how to avoid “blah-blah, xserver cannot start, can't establish listening sockets, blah-blah, check log, @ blah-blah.

Now once again, on one account, the Arch Linux xserver will not start.

Question:

Will someone please tell me what you need from me so that we can solve this embarrassing debacle once and for all. Obviously, I am writing this from another account since I don't have lynx or links installed, and the Arch Linux xserver has failed yet again.

Other Thoughts
Once upon a time, Arch Linux was the fastest, most stable system that taught me 80% of what I know about computers. Today, none of the above is true, unfortunately. No longer can one reliable start Arch Linux from .xinitrc like in the old days, prior to 2014. Can someone tell me why the xserver in “Arch Linux” has become so embarrassing unreliable?

Now Arch Linux has an unreliable, time-wasting, xserver in the 21st century. Never had an xerver problem with any other distro ever! Distros used for six months or more between 2007 and now:
Ubuntu, Arch Linux (until 2013) Linux Mint.
Distros used for less than three months with no xserver problems ever! Debian, Opensuse, tinycore, pclinox, (or is it pclinux) Slax, Kubuntu, slackware, Freebsd (zfs inside of geli encryption, software raid10 via device striping and mirrors) on msdos and gpt. Oh and the small Linux distro from France.

Yeah, yeah! I know it's free, but and others have given countless hours.
The only reason, I stopped using Arch in 2013 was the whole kernel tobias pgp thing. I wasted way too much time for no gain. I was not about to email a forum where 1/3 of the people would not respect one's request for help sans the helpee communicating as though they had a  computer science degree and logs from every corner of the OS.
Thanks in advance

Last edited by zahn01 (2015-10-06 00:35:29)

Offline

#2 2015-08-22 22:13:57

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

Rather than ranting, prhaps you should try to provide some useful information instead.

the Arch Linux xserver will not start

is not much to go on.

Please post the Xorg log for the failed session.

Please also post your .xinitrc


Jin, Jîyan, Azadî

Offline

#3 2015-08-22 22:37:41

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

Head_on_a_Stick
Well, thanks for responding.

Head_on_a_Stick wrote:

Rather than ranting, prhaps you should try to provide some useful information instead.

the Arch Linux xserver will not start

is not much to go on.

Please post the Xorg log for the failed session.

Please also post your .xinitrc


Of course, but first quoting myself:

zahn01 wrote:

...Question:

Will someone please tell me what you need from me so that we can solve this embarrassing debacle once and for all. Obviously, I am writing this from another account since I don't have lynx or links installed, and the Arch Linux xserver has failed yet again...

In other words, whatever someone request is what I will provide. I had no idea what would fix this. Hence my unwillingness to waste time providing that which has either failed to provide a Permanent solution or might not be needed this time. smile

~...Xorg

[   254.884] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[   254.887] _XSERVTransMakeAllCOTSServerListeners: server already running
[   254.889] (EE) 
Fatal server error:
[   254.894] (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) 
[   254.896] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   254.904] (EE) Please also check the log file at "/home/localuser01/.local/share/xorg/Xorg.0.log" for additional information.
[   254.906] (EE) 
[   254.908] (EE) Server terminated with error (1). Closing log file.


The .xinitrc is a copy and paste from the wiki sans some deletions and the old .xinitrc being commented out

# Here Xfce is kept as default
session=${1:-xfce4}

case $session in
    
    xfce|xfce4        ) exec startxfce4;;
    #kde              ) exec startkde;;
    openbox           ) exec openbox-session;;
    # No known session, try to run it as command
    *) exec $1;;
esac
#
#old ~.xinitrc entries:
# .xinitrc for localuser01
#exec startkde
#exec openbox-session

Again, thanks for responding. By the way, "Top" shows nothing x related running.

Last edited by zahn01 (2015-08-22 22:41:56)

Offline

#4 2015-08-22 22:47:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

zahn01 wrote:

Can someone tell me why the xserver in “Arch Linux” has become so embarrassing unreliable?

PEBKAC.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-08-22 23:00:28

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

zahn01 wrote:

The .xinitrc is a copy and paste from the wiki sans some deletions and the old .xinitrc being commented out

# Here Xfce is kept as default
session=${1:-xfce4}

case $session in
    
    xfce|xfce4        ) exec startxfce4;;
    #kde              ) exec startkde;;
    openbox           ) exec openbox-session;;
    # No known session, try to run it as command
    *) exec $1;;
esac
#
#old ~.xinitrc entries:
# .xinitrc for localuser01
#exec startkde
#exec openbox-session

Did you copy /etc/X11/xinit/xserverrc to ~/.xserverrc?
https://wiki.archlinux.org/index.php/Xi … FWM_choice

You won't have a dbus session running with that .xinitrc

Try adding this to the start of the file:

#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/?*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

FWIW I copy, rename & modify /usr/bin/startx to call .xinit files for various window managers directly and then set ~/.zprofile to lauch a different WM for each TTY.


Jin, Jîyan, Azadî

Offline

#6 2015-08-22 23:10:08

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

jasonwryan wrote:
zahn01 wrote:

Can someone tell me why the xserver in “Arch Linux” has become so embarrassing unreliable?

PEBKAC.

thanks for responding. However, the response leads to nothing for a mere mortal sans a computer degree to apply. In this is systemd, I don't know where these files are, so I could not compare them and restore from backup. Even if I solved that, so what. What is the permanent fix. Also, this is a "no go." All I read is that it may be a bug. It may not be a bug. Oh, and it's not a bug, Allan McRae.

References:
https://bbs.archlinux.org/viewtopic.php?id=200993
https://bugs.archlinux.org/task/45972
https://bbs.archlinux.org/viewtopic.php … 2#p1552712

Offline

#7 2015-08-22 23:25:34

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

Head_on_a_Stick wrote:

Did you copy /etc/X11/xinit/xserverrc to ~/.xserverrc?
https://wiki.archlinux.org/index.php/Xi … FWM_choice

You won't have a dbus session running with that .xinitrc

Try adding this to the start of the file:

#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/?*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

FWIW I copy, rename & modify /usr/bin/startx to call .xinit files for various window managers directly and then set ~/.zprofile to lauch a different WM for each TTY.

I copied /etc/X11/xinit/xserverrc to ~/.xserverrc? becasue that was in the wiki.

I have seen .xinitrc files with scripts at the beginning, so that makes sense. Modifying zprofile and /usr/bin/startx is beyond my knowledge level.
Also the other account works fine without the script you suggested.
Jasonwryan has done a lot of writing over the years, yet he did not suggest what you suggested.
If I understand your zprofile suggestion, I do not want different window managers running on different TTYs. All I want is to be able to start either xfce4 or openbox whenever I want, period. I do not need openbox on TTY1 and xfce4 on a different TTY, if that is what you're suggesting.


IF I am misunderstanding you, please clarify.
Again, thanks for responding.

Offline

#8 2015-08-22 23:32:29

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

zahn01 wrote:

All I want is to be able to start either xfce4 or openbox whenever I want, period. I do not need openbox on TTY1 and xfce4 on a different TTY, if that is what you're suggesting.

If you just want an X-based environment, install lightdm, a greeter for it, and set it to autologin to your preferred environment?  Autologin handles the messy details and you end up in a correctly spawned session.

Offline

#9 2015-08-22 23:32:31

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

Does this work:

startx /usr/bin/openbox-session

Jin, Jîyan, Azadî

Offline

#10 2015-08-22 23:40:46

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

headkase wrote:
zahn01 wrote:

All I want is to be able to start either xfce4 or openbox whenever I want, period. I do not need openbox on TTY1 and xfce4 on a different TTY, if that is what you're suggesting.

If you just want an X-based environment, install lightdm, a greeter for it, and set it to autologin to your preferred environment?  Autologin handles the messy details and you end up in a correctly spawned session.

I appreciate and sincerely thank you for the response, but I never used a login manager with Arch during the four or so that I used it, and I've no intention of doing so now.

Offline

#11 2015-08-22 23:46:33

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

Head_on_a_Stick wrote:

Does this work:

startx /usr/bin/openbox-session

That was once what I always used for this install. The problem was that after shutting down from openbox, the next day I might choose to run /usr/bin/startkde, which would cause problems. The wiki was supposed to solve this for people such as myself who frequently switch desktops. All was working until today. I will try it again and then, I'll try your script.

Offline

#12 2015-08-23 00:15:29

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

Head_on_a_Stick wrote:

Does this work:

startx /usr/bin/openbox-session

Also, this works again too:

startx /usr/bin/startxfce4

Head_on_a_Stick, you solved this problem, so a big THANK YOU. However, due to the following, I will not be marking this thread as solved for at least two weeks.

Between 2009 - 2013, once my .xinitrc file was complete, All I had to type was "xinit gnome3" or "xinit ck-xfce4-session."
Returning to Arch Linux in 2015, xinit NEVER worked. However, "startx" worked when openbox was the only window manager (WM) sans other WMs or desktops. Of course my .xinitrc read "exec /usr/bin/openbox-session," which worked in Freebsd too.

Upon installing kde I had to then update my .xinitrc and add "exec /usr/bin/startkde." That edit meant that "startx /usr/bin/openbox-session" and "startx /usr/bin/startkde" was how I chose and then started the two desktops. Then this began to fail, forcing me to use the forum, which led to the Arch Linux xinitrc wiki. The Arch Linux xinitrc wiki functioned until today, which forced me to post here.

Now I am where I started, but at least I can start the window manager and desktop of my choice.

Again, Thanks.

Last edited by zahn01 (2015-08-23 02:58:38)

Offline

#13 2015-08-23 03:09:25

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

On one account, to log into openbox or xfce4, the xinitrc wiki suffices with respect to logging-in from run level 3 is it? However, on the other account, from run level 3, the .xinitrc fails if one follows the wiki to log in from .xinitrc.

Offline

#14 2015-08-23 03:12:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

Because, as your log shows, X is already running for the other account.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2015-08-23 19:48:15

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

jasonwryan wrote:

Because, as your log shows, X is already running for the other account.

How is the xserver running in the other account?

You said that my log shows that the xserver is running in the other account.
Once upon a time when localuser1 would not go from runlevel3 to runlevel5 for the reason that prompted me to post in the past, I would run top and then “kill -9 xserver-pid. Afterwards, I could use startx again.

I interpret your words to mean that should the log look like that which I've posted in the above, under the condition that I cannot go from runlevel3 to runlevel5 and top shows no xserver running from localuser1, then I should then bring up another tty, su into the other account (localuser2) and then check for a running x process?

Can I also assume that if “startx /home/localuser1/.xinitrc startxfce4” fails, from runlevel3, then I can switch to “startx/usr/bin startxfce4”? That assumption functioned and is the reason why I am typing from localuser1.

Thanks for giving me something to think about.

Offline

#16 2015-10-06 00:34:57

zahn01
Member
Registered: 2015-06-07
Posts: 54

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

I am going to mark this as solved even though for the life of me I cannot fathom: After I power-up the computer, I then log-in. However, there is a small chance that the xserver from another account will start, for some unknown reason, which of course prevented x from starting for me. How/why I may never know. In fairness, I don't use a log-in manager.
the following all function:
startx ~/.xinitrc startkde
startx ~ .xinitrc startopenbox-session
If the above faile, then use the following:
startx /usr/bin/openbox-session
startx /usr/bin/starkde

Offline

#17 2015-10-07 05:31:14

boban_dj
Member
Registered: 2015-03-17
Posts: 150

Re: [Solved]Arch xserver fails and is unreliable, once again, yet again.

Apologize if you maybe already have seen this:
https://wiki.archlinux.org/index.php/Xi … FWM_choice

Offline

Board footer

Powered by FluxBB