Kubuntu: X2X Keyboard connections (KDE)

  • warning: include(/tmp/fortune.txt): failed to open stream: No such file or directory in /home/mohawksoft/org/www/htdocs/includes/common.inc(1696) : eval()'d code on line 1.
  • warning: include(): Failed opening '/tmp/fortune.txt' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/mohawksoft/org/www/htdocs/includes/common.inc(1696) : eval()'d code on line 1.

If you want to use X2X, a program that allows one keybard and mouse to span multiple computers using the X window protocol, you have to edit /etc/kde3/kdm/kdmrc, there are two entries: “ServerCmd” and ServerArgsLocal. By default, they look like this:
# The command line to start the X-server, without display number and VT spec.
# This string is subject to word splitting.
# Default is "/usr/bin/X -br"
ServerCmd=/usr/bin/X -br
# Additional arguments for the X-servers for local sessions.
# This string is subject to word splitting.
# Default is ""
ServerArgsLocal=-nolisten tcp
Step one: Remove “-nolisten tcp” from ServerArgsLocal.
Step two: (if you dare) add “-ac” to the ServerCmd line, mine looks like:
ServerCmd=/usr/bin/X -br -ac
This allows anyone to connect and control the machine. If you are behind a firewall, this isn't too dangerous, but if you want more security, use the “xhost” program to allow individual machines.