> ----Original Message-----
> From: Bruce Lilly [mailto:[EMAIL PROTECTED]]
> 
> I've managed to get a shared VNC session on Linux such that
> the session started at the root X window (a.k.a. console)
> is sharable via VNC.  It is fairly easy to do (once one
> figures out some of the undocumented features and options
> of vncserver).  Here's the procedure for SuSE Linux 8.0
> (Intel), using kdm as the display manager:

Verry nice setup. It's something I was trying to do (but could not find any
time). I only like to add my ideas.

> 1. (obviously) the vnc package, X, and a suitable display
>     manager need to be installed. xfstt is also helpful.

xfstt??? What's that (I have not found time to get a SuSE 8 copy.)

> 2. configure xfstt to run in run levels 3 and 5. The
>     YaST2 system -> run level editor can be used.

For RedHat (and others?) `chkconfig xfstt on`

> 3. edit the vncserver (in /usr/X11/bin) script to
>     configure a suitable default color depth, default
>     xstartup file contents, and font paths.
>     I use a depth of 16 and the following for the font path:
> $cmd .= " -fp /usr/lib/X11/fonts/misc/";
> $cmd .= ",/usr/lib/X11/fonts/misc:unscaled";
>>>>>>>>>>>>>>>>>> fontpath details removed <<<<
> $cmd .= ",/usr/lib/X11/fonts/75dpi";
> $cmd .= ",tcp/localhost:7101";

The last line adds the local font server. Best to choose between the
fontserver and a fully specified fontpath. My idea, only specify the
fontserver here (-fp tcp/localhost:7101)
Other users: read the console fontpath from the local xserver with `xset -q`
and specify that here. I found "-fp unix/:7100"

>     YMMV (the last is for use with xfstt). I use the
>     following for the default xstartup (edit $HOME/.vnc/xstartup
>     also if vnc has already been used):

Since the vnc is to be used in place of the normal Xserver, use the Xserver
login. Do not use the vncserver script but assemble your own call to Xvnc.
Add the next to invoke a login session: `Xvnc .... -query localhost`

> 4. put a shell script named vnc in /usr/X11/bin,
>     containing the following three lines (edit the
>     geometry and dpi arguments to suit local conditions):
> #!/bin/sh
> vncserver -geometry 1024x768 -once -alwaysshared -dpi 94

better read the vncserver script to see what call to Xvnc is created and put
that one here. Include the '-query localhost' too.

> vncview
> 5. put a shell script named vncview in /usr/X11/bin,
>     containing the following 3 lines:
> #!/bin/sh
> display=$(ls -t $HOME/.vnc/*:*.* | head -1 | cut -d: -f2 | > cut -d. -f1 )
> vncviewer -fullscreen -passwd $HOME/.vnc/passwd :$display

Since the Xvnc is started with a forced display number (if local X11 is not
started you can also use :0 !!) you can use the same number here.

> 6. Add three entries to the login session manager via
>     the KDE Control Center, System -> Login Manager
>     "Sessions" tab. The entries should be "vnc",
>     "vncview", and "vncviewer".
> 7. Add "vnc" to the list of window managers in
>     /usr/X11/bin/wmlist (in case startx is used).
> 


Some alternate routes to accuire similar behavoure:
For XF86 version 4 users: http://xf4vnc.sourceforge.net/. This includes the
acceleration of the standard X11 server. Problem here (for the momemt): Only
linux, Only intel, not all display drivers are supported at the moment.

An alternate route: setup machine to use the framebuffer at the console
(kernel parameter). Use Xvnc as default Xserver (don't use XFree86). Use
framebuffer vnc viewer (sorry, cannot find my link) to see the display at
the local console.

For most of the above, to have a decent login in the vncserver, see
http://www.sourcecodecorner.com/articles/vnc/linux.asp .

CBee
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to