You are not logged in.

#1 2015-02-05 23:31:02

paulfxh
Member
Registered: 2008-03-11
Posts: 33

Terminal launches with Xorg.wrap complaint and 15s delay to prompt.

I've just installed 64-bit Arch on an upgraded Dell Dim. E520 and it works "almost" perfectly.

However, opening a terminal (I've tried LXterminal, Xterm, Yakuake, and any TTY) displays "/usr/bin/Xorg.wrap: Only console users are allowed to run the X server"
followed by a 15 second delay when xinit announces, in turn, that it's "giving up, unable to connect to X server: Connection refused, server error, Couldn't get a file descriptor referring to the console".
Thereafter, the command prompt appears and the terminal may be used as normal.

Additional information:
1. If I launch LXTerminal as root, it goes straight to the command (root) prompt suggesting a permissions issue
2. If I modify /etc/X11/Xwrapper.config to make xorg run with root privileges and for any user (as explained on this page) and then launch LXTerminal, a more elaborate error message, including "no screens found" appears before ending in the same error as before, albeit with the same fully usable command prompt.
3. I've changed permissions on /usr/bin/Xorg.wrap from 4755 to 755 but this made no difference.
4. I had the very same problem with Arch 32-bit which I had installed about a week ago on the same computer.

Can anybody help me eliminate this issue and open a terminal straight to a command prompt as I've been doing in various Linux OSes (including Arch) over the past 10 years?
(I know this is probably a systemd issue but my knowledge of systemd is currently not even rudimentary. Sorry smile).

Offline

#2 2015-02-05 23:50:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Terminal launches with Xorg.wrap complaint and 15s delay to prompt.

How exactly are you trying to run these tty emulators? How are you starting X? Post your ~/.xinitrc.
Why does you tty complain about X? Are you starting X automatically on every tty?

What's the output of

loginctl show-session $XDG_SESSION_ID

?

Last edited by karol (2015-02-05 23:52:02)

Offline

#3 2015-02-06 00:11:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Terminal launches with Xorg.wrap complaint and 15s delay to prompt.

It's not a permissions issue - you are trying to launch X from your shell rc file, but it looks like you are doing it wrong.  Post that file here and we can help.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2015-02-06 17:02:28

paulfxh
Member
Registered: 2008-03-11
Posts: 33

Re: Terminal launches with Xorg.wrap complaint and 15s delay to prompt.

@karol, @Trilby
Thank you for your replies.
Well, the problem is solved thanks to your suggestions.
And it had nothing at all to do with either systemd or permissions.
Turns out I had inadvertently left "startx" at the bottom of my .bashrc after I had installed LXDE which inserted "exec startlxde" into .xinitrc.
Taking out the startx line from .bashrc resolved everything.
Too embarrassed to say any more  sad

Offline

Board footer

Powered by FluxBB