PDA

View Full Version : HOWTO: VNC Client / Server setup



mikekgr
09-16-2003, 10:49 PM
Dear Sirs,
I found very interesting the "vnc way" to connect (using local network) a knoppix box with a m$ box.
Bacause I am not very experienced on subject, is it possible for someone to guide me in a step by step manner and using as much details as necessary to be able to do that???
Please include the steps that required to configure my m$ box (as VNC viewer) and knoppix box (as VNC Server).

For your info the required programs (RealVNC Viewer + RealVNC Server) it is already installed at m$ box and my knoppix box but not configured yet.

Thanks a lot for your time and your help.

Best Regards
Mike Kranidis

Fabianx
09-16-2003, 11:18 PM
Dear Sirs,
I found very interesting the "vnc way" to connect (using local network) a knoppix box with a m$ box.
Bacause I am not very experienced on subject, is it possible for someone to guide me in a step by step manner and using as much details as necessary to be able to do that???
Please include the steps that required to configure my m$ box (as VNC viewer) and knoppix box (as VNC Server).

For your info the required programs (RealVNC Viewer + RealVNC Server) it is already installed at m$ box and my knoppix box but not configured yet.

Thanks a lot for your time and your help.

Best Regards
Mike Kranidis

Knoppix:

K, System, "Share Desktop" or similar ... In german its "Arbeitsfläche freigeben"

ready!

On MS Box, point your viewer to the ip of the knoppix box ...

cu

Fabian

mikekgr
09-16-2003, 11:23 PM
Dear Fabianx,

thanks a lot for your reply. Seems very easy!!!

I will tried tomorrow.

Best Regards
Mike Kranidis.

Dave_Bechtel
09-17-2003, 09:19 AM
--If sharing the KDE desktop doesn't work:

' jstar ~/.vncrc '


$vncStartup = "~/.vnc/XSession";


' mkdir ~/.vnc '
' jstar ~/.vnc/XSession '


#!/bin/sh
#
# Based on /etc/X11/Xsession
#
# global Xsession file -- used by display managers and xinit (startx)

# initialize variables for use by all session scripts

OPTIONFILE=/etc/X11/Xsession.options

SYSMODMAP=/etc/X11/Xmodmap
USRMODMAP=$HOME/.Xmodmap
SYSRESOURCES=/etc/X11/Xresources
USRRESOURCES=$HOME/.Xresources

SYSSESSIONDIR=/etc/X11/Xsession.d
STARTUP=$HOME/.xsession
ALTSTARTUP=$HOME/.Xsession
ERRFILE=$HOME/.xsession-errors

xrdb $HOME/.Xresources
xsetroot -solid grey
# XXX You can also use ' xloadimage ' to load pics instead

#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
#icewm &
#/opt/gnome/bin/sawfish &
##/usr/bin/sawfish &
xset s off

rxvt -geometry 80x34+10+10 -ls -title "$VNCDESKTOP Desktop" &

# XXX load desired windowmanager here
/usr/bin/sawfish &
# Note: See ~/.xsession for which window manager to load!


' chmod +x ~/.vnc/XSession ' == Make sure it's executable

--You need to set a one-time password:
' vncpasswd '

--Now, to start the X window session on the Linux side:
' vncserver :2 -geometry 900x700 ' == Or whatever size you want

# Connect using vncviewer linuxbox:5902 - OR - http://linuxbox:5802

#vncserver -kill :2 == To bring VNC down

# IF ssh -2 -C -L 5992:linuxbox:5902 linuxbox
# THEN vncviewer localhost:5992

--In my experience you will get much better response when using a compressed ssh session as indicated above. Also dink around with the VNCviewer options on the windows side - different encodings can give faster displays. I've gotten good results over compressed ssh with RRE encoding and restricting pixels to 8-bit, even when running over 100Mb Ethernet. You can gauge the response by window-shading (in Sawfish, double click on a window titlebar and it rolls up like a window shade) and then unshading the window, and seeing how long it takes for the display to resolve itself. Using a slow encoding can take several seconds!

--A couple of notes:
o DO NOT run vncserver as root! Always run as a less-privileged user, for security and safety reasons.

o By starting vncserver as :2, you have room for an extra X-session locally on the Linux box (default is :0, and if you want you can still startx -- :1 as another user.)

--Where to get "putty", an SSH client for Windows:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

! Edit 2003.1002 Added some comments for xloadimage and how to load WM


Dear Fabianx,

thanks a lot for your reply. Seems very easy!!!

I will tried tomorrow.

Best Regards
Mike Kranidis.

mikekgr
09-17-2003, 11:35 AM
Dear Dave_Bechtel,

thanks a lot for your time to write this very detailed answer to me.
I will try this after 5 or so hours (when home) and if a hit to a problem I will post again.

Again thank you and appreciate your great help.

Best Regards
Mike Kranidis

mikekgr
09-17-2003, 08:55 PM
Dear Dave_Bechtel,
your receipt is 100% working solution for me.

Many many thanks for your help

Best Regards
Mike Kranidis

Dave_Bechtel
09-18-2003, 12:43 AM
--Thanks, that made my day! 8)


Dear Dave_Bechtel,
your receipt is 100% working solution for me.

Many many thanks for your help

Best Regards
Mike Kranidis