X11 and Graphics

x11vnc -display 0 -viewonly [-shared] -allow IPADDR -passwdfile ~/passfile.txt

Enabling Remote X11 (XDMCP) logins, KDM configuration:

On a Debian or Debian derivate such as Kubuntu, edit the following:

/etc/kde3/kdm/Xaccess, add a line with an asterisk on its own as follows:

Before:

After:
#* #any host can get a login window

#
# To hardwire a specific terminal to a specific host, you can

#* #any host can get a login window
*
#
# To hardwire a specific terminal to a specific host, you can

 

Edit /etc/kde3/kdm/kdmrc and change Xdmcp section from Enable=false to Enable=true

Before After

[Xdmcp]

Enable=false

[Xdmcp]

Enable=true

No, restart KDM service :

/etc/init.d/kdm restart

You can login from a remote host , when the X server shows a login screen, Click Menu=>Remote Login. Enter the IP address or hostname in the Host: field and login with a valid userid/password combination.

Security:

The setup above is for demo purpose. It is very insecure. Once you get to this point, just add restrictions and note that X11 traffic is all unencrypted and can be sniffed easily by anyone.

X-Windows Topics

XLive CD: Xwindow live CD for Windows desktops: ftp://ftp.ussg.indiana.edu/pub/xlivecd/xlivecd-20041201.iso http://xlivecd.indiana.edu/ Use just one keyboard and mouse to control your laptop and desktop at the same time: Install x2x on both machines. eg: apt-get install x2x On desktop: X -ac :0 & export DISPLAY=localhost:0 startkde & export DISPLAY=laptop:0 On laptop: From kde desktop, Open terminal x2x -west -to desktop:0


Nesting XWindows: sudo apt-get install xnest Xnest -ac :1 You should get a blank X win. This will be your DISPLAY #1. A client can set export DISPLAY=machine:1 and display into this window. See fluxbox running inside a window on KDE desktop

png Image

Remote X11 apps: On pc1: xhost +pc2 On pc2: export DISPLAY=pc1:0 xterm Xterm should be displayed on PC1 however it will consume computing resources from PC2 Remote X11 logins (XDMCP): Setup KDM or GDM to listen for XDMCP broadcasts. eg: edit /etc/kde3/kdm/kdmrc on Ubuntu Linux system running KDE.