You are not logged in.

#1 2015-04-04 22:34:30

rainbowdashdc
Member
Registered: 2015-04-04
Posts: 2

startx won't 'start X' unless root.

Just installed a fresh copy of arch linux, when attempting to start x it throws:

"(EE) xf86OpenConsole: Cannot open virtual console 2 (Permission Denied)"

Created user as such:

useradd -b /home -d /home/ciel -m ciel
usermod -aG users

.xinitrc

exec /usr/local/share/nw/nw

Even with the default xinitrc it fails, however.

Kernel version is: 3.19.2
running in qemu 2.2.1, (qemu-system-x86_64)


Any help would be appreciated.

Last edited by rainbowdashdc (2015-04-04 22:36:24)

Offline

#2 2015-04-04 23:21:16

rainbowdashdc
Member
Registered: 2015-04-04
Posts: 2

Re: startx won't 'start X' unless root.

I have got it running by doing this:

startx -- vt1

But is this truly a fix?

Offline

#3 2015-04-05 00:09:18

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

Re: startx won't 'start X' unless root.

startx uses the vt number defined in XDG_VTNR, so it would seem that variable is not set.  That variable is set by logind, so it would seem you do not have an active logind session.

Are you using an alternative init system, or are you running systemd?  When logged in as a regular user, is the XDG_VTNR defined?  What is the output of `loginctl`?


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

Offline

Board footer

Powered by FluxBB