more Fedora Cookbook: VNC
Nikhil
mnikhil.juno at gmail.com
Sat Jan 5 14:14:07 UTC 2008
>>
On Fedora/RHEL clones I like to configure vnc thus:
[summer at potoroo ~]$ tail /etc/sysconfig/vncservers
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
VNCSERVERS="66:root 3:summer"
VNCSERVERARGS[3]="-geometry 1280x1024"
VNCSERVERARGS[66]="-geometry 1280x1024"
<<
Does the above VNCSERVERS declaration mean to limit the number of vncservers
to be 66... can it be increased if yes, how much beyond?
On 1/5/08, John Summerfield <debian at herakles.homelinux.org> wrote:
>
> Robert P. J. Day wrote:
> > yes, yes, it's really basic stuff but ...
> >
> > http://www.crashcourse.ca/wiki/index.php/Configuring_VNC
>
> Here are some things to play with once you have it up.
> 1.
> killall twm
> The window decorations vanish
> 2.
> startkde
> Play with kde for a while, then logout
> 3.
> gnome-session
> play with that for a while, then logout
> 4.
> kwin&
> kicker&
> 5.
> killall kwin
> twm&
>
> Note that when you don't have an active window manager, focus follows
> the mouse cursor.
>
> 6.
> vncserver -kill :1
>
> On Fedora/RHEL clones I like to configure vnc thus:
> [summer at potoroo ~]$ tail /etc/sysconfig/vncservers
> # Use "-nohttpd" to prevent web-based VNC clients connecting.
>
> # Use "-localhost" to prevent remote VNC clients connecting except when
> # doing so through a secure tunnel. See the "-via" option in the
> # `man vncviewer' manual page.
>
> VNCSERVERS="66:root 3:summer"
> VNCSERVERARGS[3]="-geometry 1280x1024"
> VNCSERVERARGS[66]="-geometry 1280x1024"
>
> [summer at potoroo ~]$
>
> On Debian, I use this approach:
> [summer at potoroo ~]$ tail /etc/sysconfig/vncservers
> # Use "-nohttpd" to prevent web-based VNC clients connecting.
>
> # Use "-localhost" to prevent remote VNC clients connecting except when
> # doing so through a secure tunnel. See the "-via" option in the
> # `man vncviewer' manual page.
>
> VNCSERVERS="66:root 3:summer"
> VNCSERVERARGS[3]="-geometry 1280x1024"
> VNCSERVERARGS[66]="-geometry 1280x1024"
>
> [summer at potoroo ~]$
> summer at mail:~$ cat /etc/init.d/vnc
> #!/bin/bash
> # If no config, do nothing
> #set -x
> [ -f /etc/vncserver.conf ] || exit 0
> function cfg()
> {
> sed </etc/vncserver.conf \
> -e 's=#.*$==g' \
> | grep -v '^$'
> }
>
>
> case "$1" in
> start)
> cfg | while read user port options
> do :
> echo Starting session for ${user} on ${port}
> eval passwdfile=~${user}/.vnc/passwd
> if [ ! -f ${passwdfile} ] ; then
> echo Cannot start session for ${user}, no passwd file
> continue
> fi
> P=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> [ "${user}" = "root" ] &&
>
> P=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
> su - ${user} -c "PATH=${P} vncserver ${options} ${port}"
> done
> ;;
> stop)
> cfg | while read user port options
> do :
> echo Stopping session for ${user} on ${port}
> eval passwdfile=~${user}/.vnc/passwd
> if [ ! -f ${passwdfile} ] ; then
> echo Cannot stop session for ${user}, no passwd file
> continue
> fi
> su - ${user} -c "vncserver -kill ${port}"
> done
> ;;
> restart)
> ${0} stop
> ${0} start
> ;;
> *)
> echo ${0} '[start|stop]'
> ;;
> esac
>
> summer at mail:~$
>
> which I organise to run in the appropriate runlevel(s).
>
>
>
>
> --
>
> Cheers
> John
>
> -- spambait
> 1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu
> -- Advice
> http://webfoot.com/advice/email.top.php
> http://www.catb.org/~esr/faqs/smart-questions.html
> http://support.microsoft.com/kb/555375
>
> You cannot reply off-list:-)
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20080105/83a750d5/attachment-0001.html
More information about the users
mailing list