Differences between version 15 and predecessor to the previous major change of XFree86Notes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 15 | Last edited on Sunday, March 13, 2005 3:12:04 am | by JanHolstJensen | Revert |
Older page: | version 12 | Last edited on Thursday, August 26, 2004 10:15:01 pm | by JohnMcPherson | Revert |
@@ -18,9 +18,13 @@
To make use of the xrandr(1) program (or the [GNOME] or [KDE]
front ends), it appears you need to have
Load "xtrap"
-in the "Module" Section of your X configuration file.
+in the "Module" Section and
+ Option "RandR" "on"
+in the "!ServerFlags
" Section of your X configuration file.
+
+It doesn't seem to work if Xinerama is loaded though
.
!! Not starting on boot
If you want to get X to not start automatically when your system boots:
@@ -50,8 +54,19 @@
Then you can ssh to the remote machine and run, say, an xterm to connect to my local display with a command like:
ssh <remote-host> DISPLAY=$DISPLAY /usr/X11R6/bin/xterm &
Of course, you should do ssh-based X forwarding (see ssh(1) and/or [SSHNotes] for info), but that doesn't always work. xauth also works in other situations where ssh may not.
+
+To let other local users connect to your display, do the following. E.g: You are logged in as my_self and after doing "su - other_user" you get "Can't open display" whenever you try to start an X application. First, as my_self, export your magic cookie:
+
+ xauth extract - $DISPLAY > xauth.key
+
+Make the file xauth.key readable by other_user, and then as other_user do:
+
+ export DISPLAY=:0.0
+ xauth merge /home/my_self/xauth.key
+
+You should now be able to run X applications as other_user even though you are logged in as my_self.
If your __.Xauthority__ file gets wiped out (for example, your home directory's partition becomes full) then you won't be able to open any new X windows. Even xhost(1) won't help as it needs to authenticate to the Xserver before changing permissions:
$ xhost +
Xlib: connection to ":0.0" refused by server