18 Mar

This will allow you to run XDM over a network..
It will allow you to connect your Xserver from a windows machine to a Linux machine.

Install X
Install KDE or Gnome
Install gdm

You can do all this from rpm.

Edit /etc/X11/xdm/xdm-config:
Change: DisplayManager.requestPort: 0
To: ! DisplayManager.requestPort: 0
(i.e. comment it out – this tells xdm to listen for XDMCP connections)

Edit /etc/X11/xdm/Xaccess:
Change: ! * #any host can get a login window
To: * #any host can get a login window
(i.e. uncomment it – allow all connections)

Edit /etc/X11/gdm/gdm.conf:
Also uncomment “Port=177” at the end of the [xdmcp] section.

Edit /etc/inittab:
Change: id:3:initdefault:
To: id:5:initdefault:

Edit /etc/init.d/xfs:
Change: daemon xfs -droppriv -daemon
To: daemon xfs -droppriv -daemon -port 7100
(This gets your font server listening for other connections)

Edit /etc/X11/fs/config, comment out this line:
# don’t listen to TCP ports by default for security reasons
#no-listen = tcp

– restart XFS

Edit /etc/X11/XF86Config-4:
Change: FontPath “unix/:-1”
To: FontPath “unix/:7100”

Chmod some files:
chmod 444 /etc/X11/xdm/Xservers
chmod 755 /etc/X11/xdm/Xsetup_0

Remember to go to runlevel 5 (X11): /sbin/telinit 5
Remember to drop iptables!

To connect to this using Cygwin, you will need to use a command like:
C:\Cygwin\usr\X11R6\bin\XWin.exe -clipboard -rootless -notrayicon -query

– I had to link: sudo ln -s /usr/lib/qt-3.1/lib/libqt-mt.so.3 /usr/lib/
When using KDM for it to work.

– Check /var/log/kdm.log

– Make sure you are allow Port 177 UDP through in Iptables


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: