Posts: 7
patrick
Joined: 19 Sep 2017
#1
Antix 17 beta 3 Net Install, terminal only system, that is, no desktop GUI or apps, etc., before installing xorg and openbox.  No errors.  Reboot.  Login as user.  Startx fails with"Access Denied" to X Server., but works if you run startx as root.  Antix 16.2 installed the same way, user run startx works just fine.

Bug because 17 is a Beta or something else?

Installed in VirtualBox 5.1.28 with 5.1.28 Extension Pack on a Debian Wheezy 64-bit host, fully up-to-date, 3.2.0-4-amd64 kernel.  No Guest Additions installed.  No point.  

Thanks.

 Patrick
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#2
This thread explains the problem:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://debian.2.n7.nabble.com/Bug-833182-xserver-xorg-core-regression-on-Intel-HD-Graphics-drmSetMaster-Permission-denied-td39 01124.html"
linktext was:"xserver-xorg-core regression on Intel HD Graphics: drmSetMaster(): Permission denied."
====================================



I regularly use startx as a normal use on my Gentoo system.  

I made some progress on a antiX-pre-rc1_386-full live system (booting into runlevel 3) by running:

Code: Select all

make-xorg-conf intel | sudo tee /etc/X11/xorg.conf
X would start but then the system would freeze and I  need to use the big red switch.  

On my Gentoo system /usr/bin/Xorg is suid so X runs as root even when I run startx as a normal user.  I tried running:

Code: Select all

sudo chmod u+x /usr/bin/Xorg
but that didn't change anything.   I think the problem is upstream with Debian and/or X.org and/or freedesktop.org.   You can probably explore this further but it might be faster/easier to install slim or lightdm or some other display manager that you can start as an init.d service.
Posts: 7
patrick
Joined: 19 Sep 2017
#3
BitJam wrote: This thread explains the problem:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://debian.2.n7.nabble.com/Bug-833182-xserver-xorg-core-regression-on-Intel-HD-Graphics-drmSetMaster-Permission-denied-td39 01124.html"
linktext was:"xserver-xorg-core regression on Intel HD Graphics: drmSetMaster(): Permission denied."
====================================



I regularly use startx as a normal use on my Gentoo system.  

I made some progress on a antiX-pre-rc1_386-full live system (booting into runlevel 3) by running:

Code: Select all

make-xorg-conf intel | sudo tee /etc/X11/xorg.conf
X would start but then the system would freeze and I  need to use the big red switch.  

On my Gentoo system /usr/bin/Xorg is suid so X runs as root even when I run startx as a normal user.  I tried running:

Code: Select all

sudo chmod u+x /usr/bin/Xorg
but that didn't change anything.   I think the problem is upstream with Debian and/or X.org and/or freedesktop.org.   You can probably explore this further but it might be faster/easier to install slim or lightdm or some other display manager that you can start as an init.d service.
Thanks for your quick response, advice and the bug link.  Although, I don't think the bug report applies (and it's a year old), but I'll read it more thoroughly later.  I might glean something useful.

My thinking now is this startx failure is an Antix 17 Beta glitch and not an upstream Debian Stretch or xorg problem.  I've tested Stretch in VirtualBox under numerous configurations -- systemd init, sysv and runit inits with and without systemd components -- installed the same way as I did Antix and never experienced any startx problems.

I don't want to install a display manager as I want the system to boot to a standard terminal and not X as many times I only need a terminal.  And to be as"light' and fast as possible.  Traditional Desktops which I abandoned about 6 years ago are such leviathans and CPU gluttons, and no more useful than a good window manager and a single panel.

Thanks, again.

Patrick
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#4
I web-searched this and found multiple reputed causes/solutions.
Further, the troubleshooting varies, depending whether the exact error was"Access denied" (vs"connection refused").
debian startx access denied
KMS is mentioned, nomodeset is mentioned, as is xorg and (vs) x11 and...
Antix 17 Beta glitch and not an upstream Debian Stretch or xorg problem
...and you'll find bug reports similar/identical to yours are spread across users of debian9 and recent ubuntu (which suggests"is upstream, not just a antix17beta quirk")
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#5
patrick wrote:Thanks for your quick response, advice and the bug link.  Although, I don't think the bug report applies (and it's a year old), but I'll read it more thoroughly later.  I might glean something useful.
I found that bug report and others by running startx as the demo user on antiX-17-pre-rc1 live and looking in the Xorg.0.log file for error messages.
My thinking now is this startx failure is an Antix 17 Beta glitch and not an upstream Debian Stretch or xorg problem.  I've tested Stretch in VirtualBox under numerous configurations -- systemd init, sysv and runit inits with and without systemd components -- installed the same way as I did Antix and never experienced any startx problems.
Very interesting.  It could well be we're at fault but AFAIK we don't do anything extra with this stuff, we just install the Debian packages.  This is especially true if you started with the core system.   That's why the best I have to offer is to try it here and the Google the error messages from the log file.   One reason I am suspicious of upstream is that it seems almost every year it is a struggle to cope with the changes they make which make it harder to boot OOTB on older systems, but that is an emotional argument, not a rational one.
I don't want to install a display manager as I want the system to boot to a standard terminal and not X as many times I only need a terminal.  And to be as"light' and fast as possible.
I personally use startx instead of a display manager and what you want is in accord with the antiX"lean and mean" motto.

My hope is that maybe most of this can be fixed with a well-placed chown -R or chmod -R command.   Having similar systems that work may make debugging easier.  Another approach is to run Xorg with the strace command.  It generates a copious list of all system calls which will show all the files that are being accessed.  It's likely that the problem boils down to some of those files having the wrong ownership or permissions.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#6
I continued to follow up on the"modeset drmsetmaster failed permission denied" error message.  The second hit is from June this year:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.linuxquestions.org/questions/gentoo-87/exceptionally-frustrated-funtoo-noob-4175607353/"
linktext was:"[Solved] Exceptionally frustrated funtoo noob"
====================================


One suggestion is to run:

Code: Select all

X :3 -configure
sudo cp xorg.conf.new /etc/X11/xorg.conf
startx
This works around the aforementioned bug in the modesetting driver and X starts but then the system freezes.   Basically the same result as when I used"make-xorg-conf intel" to make an xorg.conf file.
Posts: 7
patrick
Joined: 19 Sep 2017
#7
skidoo wrote: I web-searched this and found multiple reputed causes/solutions.
Further, the troubleshooting varies, depending whether the exact error was"Access denied" (vs"connection refused").
debian startx access denied
KMS is mentioned, nomodeset is mentioned, as is xorg and (vs) x11 and...
Antix 17 Beta glitch and not an upstream Debian Stretch or xorg problem
...and you'll find bug reports similar/identical to yours are spread across users of debian9 and recent ubuntu (which suggests"is upstream, not just a antix17beta quirk")
I rechecked:  The error is"Connection Refused" by X Server NOT"Access Denied."  Sorry.

Well, whatever is causing this with Antix 17 Beta is not causing it in Debian Stretch regardless of the init used (systemd, sysvinit or runit) or whether systemd components are present or purged after setting up sysvinit or runit.

Of course, this could be a VirtualBox glitch.  I've had it happen.  Do a real install on a hard drive and everything is fine.

Patrick
Posts: 7
patrick
Joined: 19 Sep 2017
#8
BitJam wrote:
patrick wrote:Thanks for your quick response, advice and the bug link.  Although, I don't think the bug report applies (and it's a year old), but I'll read it more thoroughly later.  I might glean something useful.
I found that bug report and others by running startx as the demo user on antiX-17-pre-rc1 live and looking in the Xorg.0.log file for error messages.
My thinking now is this startx failure is an Antix 17 Beta glitch and not an upstream Debian Stretch or xorg problem.  I've tested Stretch in VirtualBox under numerous configurations -- systemd init, sysv and runit inits with and without systemd components -- installed the same way as I did Antix and never experienced any startx problems.
Very interesting.  It could well be we're at fault but AFAIK we don't do anything extra with this stuff, we just install the Debian packages.  This is especially true if you started with the core system.   That's why the best I have to offer is to try it here and the Google the error messages from the log file.   One reason I am suspicious of upstream is that it seems almost every year it is a struggle to cope with the changes they make which make it harder to boot OOTB on older systems, but that is an emotional argument, not a rational one.
I don't want to install a display manager as I want the system to boot to a standard terminal and not X as many times I only need a terminal.  And to be as"light' and fast as possible.
I personally use startx instead of a display manager and what you want is in accord with the antiX"lean and mean" motto.

My hope is that maybe most of this can be fixed with a well-placed chown -R or chmod -R command.   Having similar systems that work may make debugging easier.  Another approach is to run Xorg with the strace command.  It generates a copious list of all system calls which will show all the files that are being accessed.  It's likely that the problem boils down to some of those files having the wrong ownership or permissions.
I mentioned in another reply that this startx problem could be a VirtualBox glitch.  I've had similar"problems" happen before.  But for now I installed lightdm, and X and Openbox load and work fine after logging in.  True, I don't boot to a terminal, but I'm just testing and evaluating now.  My Wheezy system is headed for End Of Life May 2018, and I want to get a replacement system installed and ready to go by that time.  Whether that will be Antix 17 or Debian Stretch with or without systemd stuff or something else entirely remains to be seen.

Patrick
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
Installing xserver-xorg-legacy fixes it for me.
Posts: 7
patrick
Joined: 19 Sep 2017
#10
anticapitalista wrote: Installing xserver-xorg-legacy fixes it for me.
I'll look into that.  My primary system and host for VirtualBox tests was built almost 11 years ago, but has been upgraded numerous times since.  Even so, most would consider it an antique, but if it ain't broke, don't fix it.

Patrick