Re: more Fedora Cookbook: VNC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>
On Fedora/RHEL clones I like to configure vnc thus:
[summer@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@xxxxxxxxxxxxxxxxxxxxxx> 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@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@potoroo ~]$

On Debian, I use this approach:
[summer@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@potoroo ~]$
summer@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@mail:~$

which I organise to run in the appropriate runlevel(s).




--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- 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@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux