Wednesday, June 06, 2007

XDMCP Configuration in linux

http://wmltd.co.uk/index.php/products/nomachine_thin_client/setting_up_x



这篇文章里介绍了各个发行版的linux的XDMCP Configuration,在Suse底下的最简单,只要把防火墙打开就可以了,我用的是OpenSuse10.2,KDE,下面这个只是参考:



OpenSUSE 10.1


Assumptions: gdm is the display manager, as it is by default for OpenSUSE 10.x.


Firewall


Login as your normal user and  run Yast (Applications Menu ->
"System" -> "YaST"). You'll be prompted for your password. Go to the
Firewall configuration section ("Security and Users" -> "Firewall".
The firewall was running on my default install of OpenSUSE, so it's
necessary to allow access for xdmcp packets. In the left hand window,
click on "Allowed Services". In the right hand window, choose "Remote
Access to Display Manager" from the "Service to Allow" drop-down menu
and then press the "Add" button (This opens port 177/tcp+udp). You're
allowing access for the "External Zone" if it's a simple single network
interface PC. That is, you're allowing packets into your computer from
the outside LAN/world. Now press "Next" then "Accept". The firewall is
now configured.


Display Manager


There are two files which need to be edited for a default install of
OpenSUSE. The first can be edited in YaST - go to "System" ->
"/etc/sysconfig Editor". You'll get a window with a tree of all the
settings on the left. Choose "Desktop" -> "Display Manager" then
highlight the DISPLAYMANAGER_REMOTE_ACCESS setting. In the right window
you can now set this to "yes" and press the "Finish" button.

Now you
need to close YaST and open a terminal window, and type "su" to become
the root user. edit /etc/opt/gnome/gdm/gdm.conf (I used nano to edit
the file) and scroll down to about line 229 and set Enable=true within
the [xdmcp] section of the file.

Now you need to re-start xdm to
make the changes stick. Logout, then either reboot, or: Press
Ctrl-Alt-F1 to get a text terminal. Login as the root user, then type:


/etc/init.d/xdm restart


The display manager will re-start and you can now point your WML
Linux Thin Client at your OpenSUSE server and get a login window. Note
that if you want the remote login window to look the same as the local
login window, then go back to /etc/opt/gnome/gdm/gdm.conf and look for
the relevant setting to change.







Powered by ScribeFire.

No comments: