.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 13 Feb 2012 17:06:41 +0200
changeset 314 d1a4574fa534
parent 277 38c4ac60b6fb
permissions -rw-r--r--
This option was disabled to simplify use of port forwarding. You can enable it and pass "-s none" to ssh.

#!/bin/sh

# http://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html

if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then
  # Probably under Cygwin.
  exec XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle" "$@"
elif [ -f /etc/debian_version ]; then
  exec /usr/bin/X -nolisten tcp "$@"
else
  exec X -nolisten tcp "$@"
fi