Get XDMCP set up on remote system

Here the remote system is a SUSE system teapot and we are using kdm as displaymanager.

XDMCP needs to be enabled in /etc/sysconfig/displaymanager and in /usr/share/kde4/config/kdm/kdmrc.

Once this is done we can use for example Xnest -query teapot :1 to get teapot's kdm in a window.

Using Xephyr and getting fullscreen display on one monitor only in a dual setup

Xephyr has an option -output. To find possible values for this:

$ xrandr -q | grep " connected"
DP-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 477mm x 268mm
DP-3 connected primary 1920x1200+0+0 (normal left inverted right x axis y axis) 550mm x 344mm

So this does what I want (run from an xterm on the DP-3 monitor):

Xephyr -query teapot :1 -output DP-3

Alternatively this puts it fullscreen on the other monitor (run from an xterm on the DP-2 monitor):

Xephyr -query teapot :1 -output DP-2