Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


tightvnc_and_configs

TightVNC Documentation
TigerVNC Documentation
Remove presently-installed vnc client/server:

# yum remove vnc
# yum remove vnc-server

Download and install tightvnc client/server (note it has been replaced by tigervnc as of Fedora 11)

# yum install tigervnc
# yum install tigervnc-server
# vncserver

Set up a password when script asks you to do so.
run “vncpasswd” as each user who will run the VNC service.
edit /etc/sysconfig/vncservers - start with “1”
chkconfig vncserver on
service vncserver restart
ps -ef |grep vnc (then find active ports where service is running) add appropriate ports to a firewall rule as accepted

May need to do iptables -L or service iptables stop to test connections.

Can see what ports are active with this command:

# netstat -tpln | grep "5902"

More instructions:
http://fedorasolved.org/Members/zdenek/tigervnc-server

http://forums.fedoraforum.org/showthread.php?p=1262910#post1262910

http://forums.fedoraforum.org/archive/index.php/t-244496.html

http://www.talk.web.id/2011/07/minimum-install-vnc-remote-desktop-server-on-centos/

Install TightVNC client on local machine to view remote machine.

Connect to display :0 (the Root Desktop)
https://wiki.archlinux.org/index.php/X11vnc

X11VNC for CentOS6

http://ubuntuforums.org/showthread.php?t=363236

Using x11vnc

Install package.
Ssh into remote system using a PuTTY window.
Start service with x11vnc -display :0
x11vnc -storepasswd (set password one time, accept default location)
x11vnc -rfbauth /path/to/password/file
Use TightVNC or TigerVNC viewer to connect to remote system.

Notes:
Geometry will match host machine; the client machine may be too small.

Sample commands to be made via PuTTY window on remote machine:

$ x11vnc -display :0 -clip 1366x700+0+0 -rfbauth /path/to/passwd_file
$ x11vnc -display :0 -scale 1366x768 -rfbauth /path/to/passwd_file 

Then use TightVNC viewer and connect to remote host from the client PC.

Update 16 Sept 2011
Best software for displaying the Root Display (:0) is NoMachine and selecting the “Shadow” Desktop…this is also called Desktop Sharing. Several tutorials are available on the NoMachine website at http://nomachine.org/ar/view.php?ar_id=AR11B00098

tightvnc_and_configs.txt · Last modified: 2012/09/16 20:33 by juckins