This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сервис_x_терминалов [2009/06/22 11:39] val |
сервис_x_терминалов [2013/05/22 13:50] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Сервис X терминалов ====== | ====== Сервис X терминалов ====== | ||
| + | |||
| + | [[http://ru.wikipedia.org/wiki/XDM]] | ||
| + | |||
| + | [[http://www.linux.org.ru/books/HOWTO/XDM-Xterm.html]] | ||
| ===== Установка компонентов сервера X терминалов ===== | ===== Установка компонентов сервера X терминалов ===== | ||
| Line 5: | Line 9: | ||
| ==== FreeBSD ==== | ==== FreeBSD ==== | ||
| <code> | <code> | ||
| + | [gate:~] # pkg_add -r xorg-libraries | ||
| + | |||
| [gate:~] # pkg_add -r xauth | [gate:~] # pkg_add -r xauth | ||
| Line 18: | Line 24: | ||
| ==== Ubuntu ==== | ==== Ubuntu ==== | ||
| <code> | <code> | ||
| - | root@gate:~# apt-get install xauth | + | root@gate:~# apt-get install xauth x11-apps xfonts-base xfonts-75dpi xfonts-100dpi xfonts-cyrillic |
| - | + | ||
| - | root@gate:~# apt-get install xeyes | + | |
| - | + | ||
| - | root@gate:~# apt-get install xfonts-base xfonts-75dpi xfonts-100dpi | + | |
| - | + | ||
| - | root@gate:~# apt-get install xfonts-cyrillic | + | |
| </code> | </code> | ||
| Line 30: | Line 30: | ||
| ==== Устанавливаем ПО ==== | ==== Устанавливаем ПО ==== | ||
| + | [[http://sourceforge.net/projects/xming/]] | ||
| <code> | <code> | ||
| Xming | Xming | ||
| Line 53: | Line 53: | ||
| ==== Настройка сервера X терминалов ==== | ==== Настройка сервера X терминалов ==== | ||
| - | <code> | + | |
| - | gate# grep X11 /etc/ssh/sshd_config | + | SSH вместо XDM ([[Сервис SSH]]) |
| - | ... | + | |
| - | X11Forwarding yes | + | |
| - | ... | + | |
| - | </code> | + | |
| ==== Подключаем X терминал к серверу X терминалов ==== | ==== Подключаем X терминал к серверу X терминалов ==== | ||
| Line 64: | Line 60: | ||
| Start->Run->c:\Progra~1\xming\xming.exe | Start->Run->c:\Progra~1\xming\xming.exe | ||
| - | Start->Run->c:\Progra~1\putty\putty.exe -X inetuser@intgate | + | Start->Run->c:\Progra~1\putty\putty.exe -X user1@gate |
| $ echo $DISPLAY | $ echo $DISPLAY | ||
| Line 108: | Line 104: | ||
| === FreeBSD === | === FreeBSD === | ||
| <code> | <code> | ||
| - | [gate:~] # pkg_add -r xdm | + | [gate:~] # pkg_add -r xdm xterm sessreg xrdb |
| - | [gate:~] # pkg_add -r twm | + | |
| - | [gate:~] # pkg_add -r xterm | + | [gate:~] # pkg_add -r xfce4 |
| - | [gate:~] # pkg_add -r sessreg | + | |
| - | [gate:~] # pkg_add -r xrdb | + | |
| [gate:~] # cd /usr/local/lib/X11/xdm/ | [gate:~] # cd /usr/local/lib/X11/xdm/ | ||
| Line 120: | Line 115: | ||
| <code> | <code> | ||
| root@gate:~# apt-get install xdm | root@gate:~# apt-get install xdm | ||
| - | root@gate:~# apt-get install twm | + | root@gate:~# apt-get install xfce4 |
| root@gate:~# apt-get install xterm | root@gate:~# apt-get install xterm | ||
| Line 128: | Line 123: | ||
| ==== Настройка xdm ==== | ==== Настройка xdm ==== | ||
| <code> | <code> | ||
| - | [gate:lib/X11/xdm] # cat xdm-config | + | gate# cat xdm-config |
| ... | ... | ||
| !DisplayManager.requestPort: 0 | !DisplayManager.requestPort: 0 | ||
| - | [gate:lib/X11/xdm] # cat Xaccess | + | gate# cat Xaccess |
| ... | ... | ||
| * | * | ||
| LISTEN intgate | LISTEN intgate | ||
| - | [gate:lib/X11/xdm] # cat Xservers | + | gate# cat Xservers |
| ... | ... | ||
| #:0 local /usr/local/bin/X :0 | #:0 local /usr/local/bin/X :0 | ||
| #:0 local /usr/bin/X :0 vt7 -nolisten tcp | #:0 local /usr/bin/X :0 vt7 -nolisten tcp | ||
| + | </code> | ||
| + | |||
| + | ==== Настройка запуска оконного менеджера ==== | ||
| + | <code> | ||
| + | gate# cat ~student/.xsession | ||
| + | /usr/local/bin/xfce4-session | ||
| </code> | </code> | ||
| Line 244: | Line 245: | ||
| Компонент Xming-fonts на windows клиенте можно деинсталлировать | Компонент Xming-fonts на windows клиенте можно деинсталлировать | ||
| + | <code> | ||
| + | C:\>notepad config.xlaunch | ||
| + | |||
| + | <?xml version="1.0"?> | ||
| + | <XLaunch WindowMode="Windowed" | ||
| + | ClientMode="XDMCP" | ||
| + | XDMCPHost="intgate" | ||
| + | Display="0" | ||
| + | Clipboard="false" | ||
| + | FontServer="intgate" | ||
| + | ExtraParams="-xkblayout us,ru -xkbvariant winkeys -xkboptions grp:alt_shift_toggle"/> | ||
| + | </code> | ||