Содержание

Ключевые слова: Х-терминал, linux, LTSP, Linux Terminal Server Project, терминальный linux-сервер, бездисковая станция, ПК без жесткого диска, использование старых компьютеров, diskless workstation, thin client, asplinux, использование Linux в офисе, X-terminal

Приложение A. Реальный пример внедрения Х-терминалов (продолжение)

И наконец главный конфигурационный файл проекта LTSP - /opt/ltsp/i386/etc/lts.conf:

#
# Config file for the Linux Terminal Server Project (www.ltsp.org)
#

[Default]
        SERVER             = 192.168.1.1
	DISABLE_ACCESS_CONTROL = Y
        XSERVER            = auto
	X_MOUSE_PROTOCOL   = "PS/2"
	X_MOUSE_DEVICE     = "/dev/psaux"
	X_MOUSE_RESOLUTION = 400
	X_MOUSE_BUTTONS    = 3
	XkbLayout	= "ru_UA"
	X_COLOR_DEPTH	= 16
	X_MODE_0	= 800x600
	USE_XFS            = Y
	LOCAL_APPS         = N
        RUNLEVEL           = 5

#------------------------------------------------------------------------------

[sergx]
        XSERVER            = auto
	RCFILE_01 = floppyd
	XkbLayout	= "ru"
	X_MOUSE_PROTOCOL   = "IntelliMouse"
	X_MOUSE_DEVICE     = "/dev/ttyS0"
	X_MOUSE_EMULATE3BTN = Y
	X_HORZSYNC	   = "30-60"
	X_VERTREFRESH	   = "56-60"
        USE_NFS_SWAP       = Y
        SWAPFILE_SIZE      = 48m
	X_MODE_0	= 1024x768
	# Sound ES1688F ISA not tested
	
[natax]
	RCFILE_01 = floppyd
        XSERVER            = auto
	X_MOUSE_PROTOCOL   = "IMPS/2"
        USE_NFS_SWAP       = N
        SWAPFILE_SIZE      = 8m
	X_VERTREFRESH	   = "50-85"
	MODULE_01 = usb-uhci
	MODULE_02 = printer
	PRINTER_0_DEVICE = /dev/usb/lp0
	PRINTER_0_TYPE = S

[manalx]
	RCFILE_01 = floppyd
        XSERVER            = XF86_S3
	X_MOUSE_PROTOCOL   = "IntelliMouse"
	X_MOUSE_DEVICE     = "/dev/ttyS0"
	X_MOUSE_EMULATE3BTN = Y
        USE_NFS_SWAP       = Y
        SWAPFILE_SIZE      = 64m
	PRINTER_0_DEVICE   = /dev/lp0
        PRINTER_0_TYPE     = P		# P-Parallel, S-Serial

[mihmurx]
	RCFILE_01 = floppyd
        XSERVER            = XF86_S3
	X_MOUSE_EMULATE3BTN = Y
        USE_NFS_SWAP       = Y
        SWAPFILE_SIZE      = 64m
	PRINTER_0_DEVICE   = /dev/lp0
        PRINTER_0_TYPE     = P		# P-Parallel, S-Serial

[irax]
	RCFILE_01 = floppyd
        XSERVER           = XF86_S3
	X_MOUSE_PROTOCOL   = "IntelliMouse"
	X_MOUSE_DEVICE     = "/dev/ttyS0"
	X_MOUSE_EMULATE3BTN = Y
	X_VERTREFRESH	   = "50-84"
        USE_NFS_SWAP       = Y
        SWAPFILE_SIZE      = 64m

[adminx]
        RUNLEVEL           = 3
	RCFILE_01 = floppyd
	X_MOUSE_PROTOCOL   = "IMPS/2"
	X_MOUSE_RESOLUTION = 250
	X_MOUSE_BAUD = 9600
        USE_NFS_SWAP       = Y
        SWAPFILE_SIZE      = 64m
	X_MODE_0	= 1024x768
	X_HORZSYNC	   = "30-96"
	X_VERTREFRESH	   = "50-160"
	X_DisplaySize = "320 240"
	SOUND              = Y
        SOUND_DAEMON       = esd   # This can be 'nasd', or 'esd' at this time
        VOLUME             = 100    # Speaker & WAVE volume pecentage
	SMODULE_01         = soundcore
	SMODULE_02         = sound
        SMODULE_03         = ad1848
	SMODULE_04         = uart401
	SMODULE_05         = opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0

[pxeadmin]
        RUNLEVEL           = 3
	XSERVER            = vesa
#	RCFILE_01 = floppyd
	X_MOUSE_PROTOCOL   = "IMPS/2"
	X_MOUSE_BAUD = 9600
	X_MODE_0	= 1024x768
	X_HORZSYNC	   = "30-96"
	X_VERTREFRESH	   = "50-160"

[ulax]
	RCFILE_01 = floppyd
	X_MOUSE_PROTOCOL   = "IMPS/2"
        USE_NFS_SWAP       = Y
        SWAPFILE_SIZE      = 92m
	X_HORZSYNC	   = "30-96"
	X_VERTREFRESH	   = "50-160"
#	SOUND              = N
#        SOUND_DAEMON       = esd   # This can be 'nasd', or 'esd' at this time
#        VOLUME             = 50    # Speaker & WAVE volume pecentage
#	SMODULE_01         = soundcore
#	SMODULE_02         = sound
#	SMODULE_03         = ad1848
#	SMODULE_04         = uart401
#	SMODULE_05         = cs4232 irq=5 io=0x220 dma=1
	PRINTER_0_DEVICE   = /dev/lp0
        PRINTER_0_TYPE     = P		# P-Parallel, S-Serial

[pashax]
        XSERVER            = XF86_S3
	X_MOUSE_EMULATE3BTN = Y
	X_VERTREFRESH	   = "60-84"
	X_MOUSE_PROTOCOL   = "IntelliMouse"
	X_MOUSE_DEVICE     = "/dev/ttyS0"
        USE_NFS_SWAP       = Y
        SWAPFILE_SIZE      = 92m

[overx]
	X_MODE_0	= 1024x768
	X_MOUSE_EMULATE3BTN = Y
        USE_NFS_SWAP       = N


[yanax]
        USE_NFS_SWAP       = Y
        SWAPFILE_SIZE      = 32m
	RCFILE_01 = floppyd
	X_MOUSE_PROTOCOL   = "IMPS/2"

Интересно, что работающий сервер Х-терминалов регистрирует в системном журнале сообщения от всех Х-терминалов локальной сети. Для примера приведу результат выполнения команды на реальной системе:

# tail /var/log/messages
Mar 29 16:44:19 irax dhclient: DHCPACK from 192.168.1.1
Mar 29 16:44:19 irax dhclient: bound to 192.168.1.18 -- renewal in 10800 seconds.
Mar 29 16:44:24 irax -- MARK --
Mar 29 16:45:43 xtserver su(pam_unix)[6743]: session opened for user root by mikola(uid=501)
Mar 29 16:52:17 pxeadmin -- MARK --
Mar 29 16:52:19 xtserver gconfd (ira-6498): GConf server is not in use, shutting down.
Mar 29 16:52:19 xtserver gconfd (ira-6498): Exiting
Mar 29 16:52:22 natax -- MARK --
Mar 29 16:54:14 xtserver su(pam_unix)[6848]: authentication failure; logname=mikola uid=501 euid=0 tty= ruser=mikola rhost=  user=root
Mar 29 16:54:21 xtserver su(pam_unix)[6849]: session opened for user root by mikola(uid=501)

Пока интересно, читаем дальше!

Авторское право © Сеник Николай, 2004-2006