You are not logged in.
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
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
Head_on_a_Stick
Well, thanks for responding.
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:
...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. ![]()
~...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-sessionAgain, thanks for responding. By the way, "Top" shows nothing x related running.
Last edited by zahn01 (2015-08-22 22:41:56)
Offline
Can someone tell me why the xserver in “Arch Linux” has become so embarrassing unreliable?
PEBKAC.
Offline
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
fiFWIW 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
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
Did you copy /etc/X11/xinit/xserverrc to ~/.xserverrc?
https://wiki.archlinux.org/index.php/Xi … FWM_choiceYou 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 fiFWIW 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
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
Does this work:
startx /usr/bin/openbox-sessionJin, Jîyan, Azadî
Offline
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
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
Does this work:
startx /usr/bin/openbox-session
Also, this works again too:
startx /usr/bin/startxfce4Head_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
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
Because, as your log shows, X is already running for the other account.
Offline
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
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
Apologize if you maybe already have seen this:
https://wiki.archlinux.org/index.php/Xi … FWM_choice
Offline