Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


tightvnc_and_configs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tightvnc_and_configs [2012/09/15 19:57] juckinstightvnc_and_configs [2012/09/15 22:45] juckins
Line 14: Line 14:
 </code> </code>
 Set up a password when script asks you to do so. \\ 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 \\ chkconfig vncserver on \\
 service vncserver restart \\ 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: 
 + 
 +<code> 
 +# netstat -tpln | grep "5902" 
 +</code>
  
 More instructions: \\ More instructions: \\
 +[[http://fedorasolved.org/Members/zdenek/tigervnc-server]]
 +
 [[http://forums.fedoraforum.org/showthread.php?p=1262910#post1262910]] [[http://forums.fedoraforum.org/showthread.php?p=1262910#post1262910]]
  
Line 27: Line 40:
 Install TightVNC client on local machine to view remote machine. \\ Install TightVNC client on local machine to view remote machine. \\
  
 +Connect to display :0 (the Root Desktop)\\
 +[[https://wiki.archlinux.org/index.php/X11vnc]]
 +
 +[[http://wiki.centos.org/HowTos/VNC-Server#head-4d3002833b106148eb6e5013b0a8cdccaf3a6cec | 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:
 +
 +<code>
 +$ x11vnc -display :0 -clip 1366x700+0+0 -rfbauth /path/to/passwd_file
 +$ x11vnc -display :0 -scale 1366x768 -rfbauth /path/to/passwd_file 
 +</code>
  
 +Then use TightVNC viewer and connect to remote host from the client PC.
tightvnc_and_configs.txt · Last modified: 2012/09/16 20:33 by juckins