On Wed, May 30, 2012 at 1:42 PM, Reindl Harald <h.reindl@xxxxxxxxxxxxx> wrote: > > > Am 30.05.2012 22:33, schrieb Tommy Pham: >> I still can't seem to get this right :(. This is what I have. >> >> [root@ogx280 init.d]# rpm -qa|grep -i vnc >> gtk-vnc2-0.5.0-2.fc17.i686 >> gtk-vnc-0.5.0-2.fc17.i686 >> gvnc-0.5.0-2.fc17.i686 >> tigervnc-license-1.1.0-5.fc17.noarch >> libvncserver-0.9.8.2-4.fc17.i686 >> tigervnc-server-minimal-1.1.0-5.fc17.i686 >> gtk-vnc-python-0.5.0-2.fc17.i686 >> x11vnc-0.9.13-3.fc17.i686 > > you are missing "tigervnc-server-module"! > > no idea what "x11vnc" is but this are my > vnc-related packages while "tigervnc" is > the client to connect to remote-machines > > [root@srv-rhsoft:~]$ rpm -qa | grep vnc > tigervnc-license-1.1.0-3.fc16.noarch > tigervnc-server-module-1.1.0-3.fc16.x86_64 > tigervnc-1.1.0-3.fc16.x86_64 > > "/usr/bin/vncpasswd" for create "/root/.vnc/passwd" > is contained in "tigervnc-server-minimal" which can > even be uninstalled after all works! > > http://rpm.pbone.net/index.php3/stat/4/idpl/17378318/dir/fedora_16/com/tigervnc-server-minimal-1.1.0-3.fc16.x86_64.rpm.html > > well, this is a F16 link / system, but i am using this config > since years on several machines while iptables is blocking the > vnc-port and connect is done with a shell-script creating a > ssh-tunnel and fire up "vncviewer" with the needed params > > _______________________________________ > > [root@srv-rhsoft:~]$ cat /etc/X11/xorg.conf.d/02-vnc.conf > Section "Module" > Load "vnc" > EndSection > > Section "Screen" > Identifier "Screen0" > Option "passwordFile" "/root/.vnc/passwd" > EndSection > _______________________________________ > > Name : tigervnc-server-module > Architektur : x86_64 > Version : 1.1.0 > Ausgabe : 3.fc16 > Größe : 606 k > Repo : installed > Zusammenfassung : TigerVNC module to Xorg > URL : http://www.tigervnc.com > Lizenz : GPLv2+ > Beschreibung : This package contains libvnc.so module to X server, allowing others > : to access the desktop on your machine. > > Hi, I just installed that package prior to your response and rebooted. Still no luck :( [root@ogx280 ~]# rpm -qa|grep -i vnc gtk-vnc2-0.5.0-2.fc17.i686 gtk-vnc-0.5.0-2.fc17.i686 gvnc-0.5.0-2.fc17.i686 tigervnc-license-1.1.0-5.fc17.noarch libvncserver-0.9.8.2-4.fc17.i686 tigervnc-server-1.1.0-5.fc17.i686 tigervnc-server-minimal-1.1.0-5.fc17.i686 gtk-vnc-python-0.5.0-2.fc17.i686 x11vnc-0.9.13-3.fc17.i686 [root@ogx280 ~]# cat /etc/X11/xorg.conf.d/00-system-setup-vnc.conf # This file is to share the root screen via VNC Section "Module" Load "vnc" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" Option "SecurityTypes" "VncAuth" Option "UserPasswdVerifier" "VncAuth" # Option "passwordfile" "/root/.vnc/passwd" EndSection [root@ogx280 ~]# ls /lib/systemd/system/*vnc* /lib/systemd/system/vncserver@.service [root@ogx280 multi-user.target.wants]# ll /etc/systemd/system/multi-user.target.wants/*vnc* lrwxrwxrwx. 1 root root 38 May 30 14:09 /etc/systemd/system/multi-user.target.wants/vncserver@:0.service -> /lib/systemd/system/vncserver@.service [root@ogx280 multi-user.target.wants]# cat /etc/systemd/system/multi-user.target.wants/vncserver@:0.service # The vncserver service unit file # # Quick HowTo: # 1. Copy this file to /etc/systemd/system/vncserver@:<display>.service # 2. Edit <USER> and vncserver parameters appropriately # ("runuser -l <USER> -c /usr/bin/vncserver %i -arg1 -arg2") # 3. Run `systemctl daemon-reload` # # DO NOT RUN THIS SERVICE if your local area network is # untrusted! For a secure way of using VNC, you should # limit connections to the local host and then tunnel from # the machine you want to view VNC on (host A) to the machine # whose VNC output you want to view (host B) # # [user@hostA ~]$ ssh -v -C -L 590N:localhost:590M hostB # # this will open a connection on port 590N of your hostA to hostB's port 590M # (in fact, it ssh-connects to hostB and then connects to localhost (on hostB). # See the ssh man page for details on port forwarding) # # You can then point a VNC client on hostA at vncdisplay N of localhost and with # the help of ssh, you end up seeing what hostB makes available on port 590M # # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP. # # 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. [Unit] Description=Remote desktop service (VNC) After=syslog.target network.target [Service] Type=forking # Clean any existing files in /tmp/.X11-unix environment ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i" ExecStop=/sbin/runuser -l root -c "/usr/bin/vncserver -kill %i" [Install] WantedBy=multi-user.target -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org