Xorg

Debugging Xorg Problems

When you get messages such as "Connection refused" or "No protocol specified" when trying to start X:

  • Check the permissions on ~.Xauthority (should be 600, owned by your user)
  • If that does not help, try removing ~.Xauthority
  • If that does not help try removing the "$@" argument in /etc/X11/xinit/xserverrc:
exec /usr/bin/X -nolisten tcp "$@"

becomes

exec /usr/bin/X -nolisten tcp

Opening x applications after su to other user

You need to allow the other user to access your x server. If the other user's name is heinz you can achieve that by running

xhost si:localuser:heinz
su heinz
# test e.g. with
xlock