Friday, July 8, 2011

Linux Terminal Server Config

Below you can find the sample lts.conf file for USB keyboard and USB mouse

[default]
#X_COLOR_DEPTH=16
X_COLOR_DEPTH=24
LOCALDEV=True
SOUND=True
NBD_SWAP=True
SYSLOG_HOST=server
XKBLAYOUT=us
LDM_GLOBAL_DMRC=/etc/ltsp/ldm-global-dmrc

# XKBLAYOUT=us
#LDM_NUMLOCK=true
# X_COLOR_DEPTH=24
X_MODE_0=1024x768
SCREEN_01=shell
#SCREEN_02=shell
#SCREEN_03=rdesktop
#SCREEN_04=shell
#SCREEN_05=shell
#SCREEN_06=shell
SCREEN_07=shell
#VOLUME=90
#p
#HEADPHONE_VOLUME=90
#PCM_VOLUME=90
#CD_VOLUME=90
#FRONT_VOLUME=90
#TIMEZONE=UTC
#TIMESERVER=clock.redhat.com
#LOCAL_APPS_MENU=True
#LOCAL_APPS_WHITELIST="/usr/bin/foo /usr/bin/bar"

# LDM_DIRECTX=yes is very insecure, but it is faster and more scalable
LDM_DIRECTX=yes
# LDM_DEBUG=yes writes to /var/log/ldm.log during client runtime
LDM_DEBUG=yes


[00:50:56:ac:06:da]
#PRINTER_0_DEVICE=/dev/usblp0
#XSERVER = auto
SCREEN_03=rdesktop -f -a 24 -g 1024x768 -N 10.0.0.1
SCREEN_04=kdm
SCREEN_05=ltsp-localapps /usr/bin/kdm
X_COLOR_DEPTH=24
X_MODE_0=1024x768

#for USB mouse and keyboard
[00:1E:43:de:06:63]

SCREEN_02=rdesktop -f -a 24 -g 1680x1050 -N 10.0.0.2
X_COLOR_DEPTH=24
X_MODE_0=1680x1050
# X_MODE_0=1280x1024
# X_MODE_0=1024x768
MODULE_01 = usb-uhci
MODULE_02 = usbmouse
MODULE_03 = mousedev
MODULE_04 = usbkbd
MODULE_05 = keybdev
MODULE_06 = usbcore
X_MOUSE_DEVICE = "/dev/input/mice"
X_MOUSE_PROTOCOL = "IMPS/2"

[00:1E:43:de:06:6d]

MODULE_01 = usb-uhci
MODULE_02 = usbmouse
MODULE_03 = mousedev
MODULE_04 = usbkbd
MODULE_05 = keybdev
MODULE_06 = usbcore
X_MOUSE_DEVICE = "/dev/input/mice"
X_MOUSE_PROTOCOL = "IMPS/2"
X_MODE_0=1024x768
X_COLOR_DEPTH=24
SCREEN_02=rdesktop -f -a 24 -g 1024x768 -N 10.0.0.3