Penguin

Differences between version 10 and revision by previous author of XFree86Notes.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 10 Last edited on Saturday, January 10, 2004 4:22:57 pm by JohnMcPherson Revert
Older page: version 1 Last edited on Tuesday, August 5, 2003 5:09:20 am by AristotlePagaltzis Revert
@@ -1,14 +1,22 @@
+!!! X Server configuration  
+!! Default bitmap depth (number of colours)  
+Instead of starting the [XServer] with "-depth 16" for 16 bits per pixel (which requires editing your gdm/xdm/kdm startup scripts), you can add  
+ !DefaultDepth 16  
+into the "Screen" section of the XF86Config(5x) file (normally in the /etc/X11 directory).  
+  
 !!! Security 
  
 !! X Auth 
  
 xauth(1) is the new way to allow access to your X display. xauth(1) uses tokens (called cookies) to determine if a connection to the X server (eg [XFree86]) is allowed. These cookies are stored in the __~/.Xauthority__ file. 
  
-The old xhost(1) way of doing things is deprecated due to lack of security. 
+The old xhost(1) way of doing things is deprecated due to lack of security. xhost works on your X server (your local machine) and allows connections based on machine name/IP address, which can be insecure due to spoofing and other things. These days, most distributions start the X server with "-nolisten tcp" which means the x server won't accept connections from other machines
  
-You need xauth(1) installed if you want to run graphical programs of a machine to a remote display (for example via [ X11 over ssh| SSHNotes]). Under DebianLinux (if you don't already have X installed) you need to: 
+You need xauth(1) installed if you want to run graphical programs of a machine to a remote display (for example via X11 over ssh - see [ SSHNotes]). Under DebianLinux (if you don't already have an X server installed) you need to: 
  $ apt-get install xbase-clients 
+  
+The remote machine will also need xauth, so needs xbase-clients installed.  
  
 To view the individual cookies, you can do: 
  $ xauth list 
 but you probably don't care about the data. 
@@ -35,59 +43,25 @@
  serverargs="-nolisten tcp" 
  
 Now when X is started with startx(1), the server will not be listening on any ports. 
  
-!!! Mouse hardware support under [XFree86 ]  
-  
-!! Side buttons on 7-button mice  
-  
-Mice like the MS Intellimouse Explorer have 5 buttons, besides the wheel, which means a total of 7 buttons as far as [XFree86] is concerned. Here's a summary of how to get the extra buttons working, as outlined in the [official XFree developer documentation|http://www.xfree86.org/4.2./mouse.html].  
-  
-Under XFree86 4.2.x and later, add/change settings in your mouse !InputDevice section of /etc/X11/XF86Config(-4):  
-  
- Protocol "ExplorerPS/2" # instead of plain "IMPS/2"  
- Options "Buttons" "7"  
- "ZAxisMapping" "6 7"  
-  
-Verify that it works by using xev(1) and clicking on the various buttons after restarting your display manager (xdm(1)/gdm(1)/kdm(1)/wdm(1)/...).  
-  
-You'll probably notice that your mouse wheel doesn't work any more, but the two side buttons act as wheel up/down now. The reason for this is that the application widget sets (eg [QT] and [GTK]) assume buttons 4 and 5 are generated by a wheel, in the same way that they assume a button 3 message was generated by the 3rd mouse button. For some reason the Explorer driver and/or hardware assigns 4 and 5 to the side buttons, and 6 and 7 to the wheel.  
-  
-To fix this, change the button order:  
- xmodmap -e "pointer = 1 2 3 6 7 4 5"  
-  
-To have this happen automatically, you could  
-# add it to your __.xsession__ or __.xinitrc__, which only works per user  
-# assuming you're using gdm(8), add it to /etc/gdm/!PreSession/Default which affects everyone using gdm(8)  
-# assuming you're using kdm(8), add it to ??? - AddToMe  
-  
-MozillaNotes has examples on how to use these extra buttons for things like going forward/backwards in a browser. Many games also support them.  
-  
-!! Using your Keyboard as a mouse  
-  
-Should you happen to find yourself without a mouse for one reason or another you can use the numpad on your keyboard as a substitute. To enable this feature simply press __Shift-!NumLock__ (various people report their keyboards' !NumLock keys even have mouse icons on them - check yours!), which gives you two beeps to signify it's active.  
-  
-Use 2/4/6/8 as down/left/up/right, respectively. 5 clicks a mouse button, + toggles whether it's the left or right one. * produces a middle-click.  
-  
-!! Changing the mouse cursor speed  
-  
-[GNOME] and [KDE] have applets/config settings to change the mouse speed settings. If you prefer to do it manually, or you are running a different window manager/environment, you can use the xset(1) command.  
- $ xset m 2 4  
-sets the acceleration to 2 and the threshold to 4. This means that the mouse cursor will be accelerated to double speed when the cursor passes over 4 pixels in a "short time". This means that if you are moving the mouse slow enough (under the threshold), the mouse moves at normal speed, but over the threshold and the cursor is moved faster than normal. The acceleration can be a fraction, eg  
- $ xset m 5/2 8  
-will make the cursor go 2.5 times normal speed if the cursor moves over 8 pixels in a short time.  
-  
-!!! Mouse cursor  
+!! [IPv6 ] Support needed  
  
-Some games on linux (such as Quake2 or [BzFlag ]) don 't change the mouse pointer , meaning you get the mouse arrow in the middle of your game
+If you have [IPv6 ] enabled X, but your machine doesn 't have IPv6 enabled , you might see something like the following error:  
+ _X11TransSocketOpen: socket() failed for tcp  
+ _X11TransSocketOpenCOTSClient: Unable to open socket for tcp  
+ _X11TransOpen: transport open failed for tcp/localhost:10  
+ xterm Xt error: Can't open display: localhost:10 .  
  
-You can change the shape of the cursor using standard programs that come with [XFree86]. X also comes with lots of bitmaps for this purpose. The xsetroot (1 ) program does this. If you give it the __-cursor__ option, the first argument is an xbm to use for the cursor and the second argument is a transparency mask.  
+In this particular case I'm doing X11Forwarding from another machine (via ssh -X hostname ). Strace confirms this as an [IPv6] related bug:  
  
-A good , minimalist pointer is:  
+ strace xterm  
+ ...  
+ socket(PF_INET6 , SOCK_STREAM, ) = -1 [EAFNOSUPPORT] (Address  
+ family not supported by protocol)  
  
- $ BMPATH=/usr/X11R6/include/X11/bitmaps  
- $ xsetroot -cursor $BMPATH/opendot $BMPATH/opendot  
+loading [IPv6] support on the remote machine fixes this.  
  
-To restore the cursor back to the original pointer:  
  
- $ BMPATH=/usr/X11R6/include/X11/bitmaps  
- $ xsetroot -cursor $BMPATH/left_ptr $BMPATH/left_ptrmsk  
+See [XFree86KeyboardMouseNotes] for information on Keyboards and Mice under [XFree86]  
+----  
+[CategoryXFree86Notes]