On 09/04/2016 01:12 PM, Thanos Baloukas wrote:
> Try this:
>
> XDG_VTNR must be set.
> $ echo $XDG_VTNR
>
> Put in ~/.xserverrc
>
> #!/bin/sh
>
> exec /usr/bin/Xorg -nolisten tcp "$@" vt$XDG_VTNR
>
>

Thank you, Thanos. This did work. Turns out the problem exists when I try to start the X session on an unused terminal. Using this method sets XDG_VTNR to the terminal that I run startx from. See below for more information. Thanks again for your help.

On 09/04/2016 04:11 PM, Douglas R. Reno wrote:
Hi Paul,

You need to build re-build systemd with the instructions in BLFS, which
adds support for the full logind as well as polkit and Linux-PAM, and
then rebuild Xorg-Server *without* "--disable-systemd-logind
--enable-install-setuid". I'd recommend rebuilding D-Bus as well after
Xorg, but that is just a personal preference and only depends on what
you're doing next.



Thank you, Douglas. That is close to what I had already tried. I built Linux-PAM then rebuilt shadow and systemd (blfs instructions) before building the Xorg chapter. I then built Polkit and tried rebuilding Xorg-server to see if that made any difference. I tried rebuilding systemd, Xorg-server and D-Bus after getting your response, but it didn't change anything.

What I finally figured out, after getting Thanos' suggestion, is the sed command in the Xinit section that modifies startx to use the first unused virtual terminal is causing the problem for me. If I don't apply the sed command, startx works as a normal user. If I apply the sed, I get the following error:

parse_vt_settings: Cannot open /dev/tty0 (Permission denied)

Is this expected behavior or did I miss something somewhere? Is there something else that can be done to allow a normal user to start the X session on an unused VT?

Thanks again for everyone's help.

Paul


--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to