Discussion:
Problems with Xorg
Joshua Branson
2018-06-06 14:42:58 UTC
Permalink
Ok. I think that I am not suscribed to this list.
Do you can send link from the archive?
If you google it, you can probably find it. Also please not that
running the Hurd in virtual box is probably not the best way to do it.
All of the Hurd developers actually run the Hurd in qemu. :) It's much
better that way.
Now I will send the suscription
Thanks by your response
Where is the another thread?
On the bug-hurd mailing list.
Samuel
Samuel Thibault
2018-06-11 20:07:49 UTC
Permalink
Hello,

FI, I have uploaded a fixed package on debian-ports, so Xorg works
again.

Samuel
Almudena Garcia
2018-06-11 21:40:41 UTC
Permalink
Thanks!! Now Xorg runs correctly.
But It feels that there is a problem with "logout" option from Desktop
Environment or Window Manager.
When I press "logout" option, Xorg don't finish correctly, and mantains the
DE running, and don't allow to return to tty or open any program.
Post by Samuel Thibault
Hello,
FI, I have uploaded a fixed package on debian-ports, so Xorg works
again.
Samuel
Samuel Thibault
2018-06-11 21:55:32 UTC
Permalink
When I press "logout" option, Xorg don't finish correctly, and mantains the DE
running, and don't allow to return to tty or open any program.
That's a known issue, see the kill_setuid wiki page.

Samuel
Almudena Garcia
2018-06-11 22:00:17 UTC
Permalink
Thanks by the info.

I set a dirty patch adding support for ctrl_alt_backspace in xorg.conf.
When DE crash after logout, I simply press this keycomb to kill Xorg
process.
Post by Almudena Garcia
When I press "logout" option, Xorg don't finish correctly, and mantains
the DE
Post by Almudena Garcia
running, and don't allow to return to tty or open any program.
That's a known issue, see the kill_setuid wiki page.
Samuel
Samuel Thibault
2018-06-11 22:07:22 UTC
Permalink
Post by Almudena Garcia
Thanks by the info.
I set a dirty patch adding support for ctrl_alt_backspace in xorg.conf.
There is a documented way on
https://www.debian.org/ports/hurd/hurd-install

Samuel
Almudena Garcia
2018-06-11 22:10:44 UTC
Permalink
Yes, I used this document to add ctrl_alt_bksp support in xorg.conf, but I
didn't found any solution to logout problem in this.
Post by Samuel Thibault
Post by Almudena Garcia
Thanks by the info.
I set a dirty patch adding support for ctrl_alt_backspace in xorg.conf.
There is a documented way on
https://www.debian.org/ports/hurd/hurd-install
Samuel
Almudena Garcia
2018-06-11 22:08:18 UTC
Permalink
I've just installed xdm. If I start the DE session from this, the logout
returns correctly to the login screen
Post by Almudena Garcia
Thanks by the info.
I set a dirty patch adding support for ctrl_alt_backspace in xorg.conf.
When DE crash after logout, I simply press this keycomb to kill Xorg
process.
Post by Almudena Garcia
When I press "logout" option, Xorg don't finish correctly, and mantains
the DE
Post by Almudena Garcia
running, and don't allow to return to tty or open any program.
That's a known issue, see the kill_setuid wiki page.
Samuel
Samuel Thibault
2018-06-11 22:10:45 UTC
Permalink
Post by Almudena Garcia
I've just installed xdm. If I start the DE session from this, the logout
returns correctly to the login screen
Yes, because the X server does not need to be killed in that case :)

Samuel
Almudena Garcia
2018-06-11 22:14:19 UTC
Permalink
It's correct :)

But my solution cause another problem: If I want to return to tty, I have
to stop the xdm service from the same DE, which It's a bit bizarre ;)
Post by Samuel Thibault
Post by Almudena Garcia
I've just installed xdm. If I start the DE session from this, the logout
returns correctly to the login screen
Yes, because the X server does not need to be killed in that case :)
Samuel
Almudena Garcia
2018-06-12 10:56:43 UTC
Permalink
I tried a simple experiment, adding setuid to xinit file, with

chmod u+s /usr/bin/xinit

After do this, I stopped xdm and execute startx to run the DE directly.

And now Xorg finish correctly when I logout!! :-)
Post by Almudena Garcia
It's correct :)
But my solution cause another problem: If I want to return to tty, I have
to stop the xdm service from the same DE, which It's a bit bizarre ;)
Post by Samuel Thibault
Post by Almudena Garcia
I've just installed xdm. If I start the DE session from this, the logout
returns correctly to the login screen
Yes, because the X server does not need to be killed in that case :)
Samuel
Almudena Garcia
2018-06-12 11:04:09 UTC
Permalink
I've just check this, executing whoami in the terminal emulator, and It
returns my username, not root
Post by Almudena Garcia
I tried a simple experiment, adding setuid to xinit file, with
chmod u+s /usr/bin/xinit
After do this, I stopped xdm and execute startx to run the DE directly.
And now Xorg finish correctly when I logout!! :-)
Err, but is the session really running as normal user instead of root?
Samuel
Samuel Thibault
2018-06-12 11:12:51 UTC
Permalink
I've just check this, executing whoami in the terminal emulator, and It returns
my username, not root
Oh, interesting, xinit indeed does setuid(getuid()).

Samuel
Joshua Branson
2018-06-12 13:30:53 UTC
Permalink
Post by Almudena Garcia
I tried a simple experiment, adding setuid to xinit file, with
chmod u+s /usr/bin/xinit
After do this, I stopped xdm and execute startx to run the DE directly.
And now Xorg finish correctly when I logout!! :-)
Congrats!!! Haha. Are you running the Hurd in a vm? I think I've read
online somewhere that the Hurd can run X fairly reliably, if the Linux
host OS runs the X server, and the Hurd connects to the server as the
client.

If you decide to give this unsolicited advice a try, would you mind
reporting back how it works?
Post by Almudena Garcia
It's correct :)
But my solution cause another problem: If I want to return to tty, I have to stop the xdm service from the same DE, which It's a bit bizarre ;)
Post by Almudena Garcia
I've just installed xdm. If I start the DE session from this, the logout
returns correctly to the login screen
Yes, because the X server does not need to be killed in that case :)
Samuel
Loading...