Debian Linux notes


Compiling GNU Emacs with Anti-aliased Fonts

[2009/11]

GNU Emacs 23 provides anti-aliasing using Xft on Linux and BSD.

cvs -z3 -d:pserver:[email protected]:/sources/emacs co emacs
apt-get install libgif-dev
./configure --prefix=/opt/emacs --with-x-toolkit --with-xft --without-dbus --without-sound

Xresources file:
emacs.FontBackend: xft

Configuring Wacom Intuos Tablet

[2009/11]

  1. Install Wacom tools:

    apt-get install wacom-tools xserver-xorg-input-wacom

  2. Linux device drivers:

    modprobe wacom
    Debian 5 will auto-load the "wacom" driver. BTW, GIMP and Blender are able to use the Linux wacom driver even if X fails to recognize it.

  3. Skipping ahead a step, after editing is done:

    Run: xidump -l

    If the Wacom tablet is recognized by X, xidump should list the "stylus" etc devices. If not, then xsetwatcom won't work ("Can't open device" error), which means buttons cannot be configured, so verify xorg.conf was modified correctly.

    Virtual core keyboard          keyboard
    Virtual core pointer           disabled
    Keyboard0                      unknown
    Mouse0                         unknown
    stylus                         unknown  # Wacom tablet
    eraser                         unknown  # Wacom tablet
    cursor                         unknown  # Wacom tablet
    pad                            unknown  # Wacom tablet
    
  4. Edit 2 parts of xorg.conf:
    1. Insert these lines into the ServerLayout section:
      ................................................................................
      Section "ServerLayout"
          Identifier     "Layout0"
          Screen      0  "Screen0" 0 0
          InputDevice    "Keyboard0" "CoreKeyboard"
          InputDevice    "Mouse0" "CorePointer"
      #--jimb--
          InputDevice    "stylus"    "SendCoreEvents"  # Wacom tablet
          InputDevice    "eraser"    "SendCoreEvents"  # Wacom tablet
          InputDevice    "cursor"    "SendCoreEvents"  # Wacom tablet
          InputDevice    "pad"                         # Wacom tablet
      #--jimb--
      EndSection
      ................................................................................
      
    2. Append these sections at the end:
      #-- Wacom tablet ---------------------------------------------------------------
      #--jimb--
      Section "ServerFlags"
       Option "AutoAddDevices" "False"
      EndSection
      Section "InputDevice"
        Driver        "wacom"
        Identifier    "stylus"
        Option        "Device"        "/dev/input/wacom"
        Option        "Type"          "stylus"
        Option        "USB"           "on"
      EndSection
      Section "InputDevice"
        Driver        "wacom"
        Identifier    "eraser"
        Option        "Device"        "/dev/input/wacom"
        Option        "Type"          "eraser"
        Option        "USB"           "on"
      EndSection
      Section "InputDevice"
        Driver        "wacom"
        Identifier    "cursor"
        Option        "Device"        "/dev/input/wacom"
        Option        "Type"          "cursor"
        Option        "USB"           "on"
      EndSection
      Section "InputDevice"
        Driver        "wacom"
        Identifier    "pad"
        Option        "Device"        "/dev/input/wacom"
        Option        "Type"          "pad"
        Option        "USB"           "on"
      EndSection
      #--jimb--
      #-- Wacom tablet ---------------------------------------------------------------
      
  5. To remap buttons of the tablet:
    xsetwacom set pad Button1 "core button 3"
    xsetwacom set pad Button3 "core key shift"
    


index   home