OK tough guy, you asked for it:
I use KDE 3.1 so that's what I'll tell you how to use. We'll be using KDE's Desktop Sharing (for #1) which is located in KMenu -> Settings -> Control Center -> Internet & Network -> Desktop Sharing. Open Control Center, expand Internet & Network, select Desktop Sharing. Check "Allow uninvited connections" and "Allow uninvited connections to control desktop". Set a password. Go to the network tab and set the port to 5901. We will be using 5900 for inetd connections (#3) to get fresh new desktop sessions on each connect. Hit Apply, then close Control Center.
You should now be able to go to work and screw around encrypted-style with your paused game at home by doing:
ssh -l username -L 5901:127.0.0.1:5901 servername
then open a vncviewer and connect to 127.0.0.1:1
There's #1.
For #3 I'll just paste my lil' tutorial about kdm, XDMCP, VNC and inetd on Slackware 9.1:
----------------------------------------
Remote Server Setup (Xvnc Server Machine)
----------------------------------------
----------inetd Configuration----------
--------------------
/etc/inetd.conf
--------------------
The following line added to /etc/inetd.conf will need to be modified according to your desired resolution, color depth and system's paths to Xvnc and fonts.
Add the following line near the end of the file:
vnc stream tcp nowait root /usr/local/sbin/Xvnc Xvnc -inetd -query localhost -once -geometry 800x600 -depth 24 -fp /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/
--------------------
--------------------
/etc/services
--------------------
Find the sequential spot in /etc/services to put the following port:
vnc 5900/tcp #TightVNC Viewer Port
--------------------
----------XDMCP Configuration----------
--------------------
Check for existence:
/etc/X11/xdm/Xwilling
--------------------
--------------------
/etc/X11/xdm/xdm-config
--------------------
Comment this line with a !
! DisplayManager.requestPort: 0
Point this attribute in /etc/X11/xdm/xdm-config to the Xwilling script:
DisplayManager.willing: su noboby -c /etc/X11/xdm/Xwilling
--------------------
--------------------
/etc/X11/xdm/Xaccess
--------------------
Uncomment the line:
* #any host can get a login window
Uncommenting the following line seems the only reason XDMCP didn't work:
#* CHOOSER BROADCAST #any host can get a chooser
LEAVE THIS COMMENTED!
--------------------
--------------------
/opt/kde/share/config/kdm/kdmrc
--------------------
Change from false to true:
[xdmcp]
Enable=true (or 1 in some distributions)
Port=177
--------------------
--------------------
/etc/X11/XF86Config
--------------------
Add if it doesn't exist with other FontPaths
FontPath "unix/:7100"
--------------------
--------------------
/etc/X11/xdm/Xservers
--------------------
Run the command:
chmod 444 /etc/X11/xdm/Xservers
--------------------
--------------------
/etc/X11/xdm/Xsetup_0
--------------------
--------------------
Run the command:
chmod 755 /etc/X11/xdm/Xsetup_0
--------------------
--------------------
Configure user login shell:
On the vncserver machine, go to KDE User Manager in KMenu -> System -> KUser
Double-click the user you will login as in kdm
Select the default login shell (/bin/bash)
Log out of KDE
Run these commands in the console:
killall Xvnc
killall inetd
killall kdm
kdm
inetd
--------------------
----------------------------------------
Local Client (Xvnc Viewer Machine)
----------------------------------------
--------------------
Run the command:
ssh -l <username> -L 5900:127.0.0.1:5900 <remotehost>
Open 127.0.0.1:0 in an Xvnc Viewer.
Login through kdm in VNC.
--------------------
----------------------------------------
Resources
----------------------------------------
--------------------
http://www.tldp.org/HOWTO/XDMCP-HOWTO/procedure.html
http://www.faqs.org/docs/Linux-HOWTO...HOWTO.html#GDM
http://www.dei.isep.ipp.pt/~andre/extern/ixvnc.htm
http://www.realvnc.com/swish-e/searc...&submit=Search
--------------------