Difference between revisions of "TightVNC"
From WPKG | Open Source Software Deployment and Distribution
Line 1: | Line 1: | ||
− | I | + | I prefer TightVNC over UltraVNC, essentially because they have viewers also for other operating systems and I'm not stuck on browser/java viewer under my preferred OS. |
I install and manage TightVNC with the following XML package description: | I install and manage TightVNC with the following XML package description: | ||
Line 52: | Line 52: | ||
exit 0 | exit 0 | ||
− | tightvnc.reg contains the setup of the server, most notably the access password, | + | tightvnc.reg contains the setup of the server, most notably the access password, i.e. I can use as a registry patch: |
REGEDIT4 | REGEDIT4 | ||
Line 60: | Line 60: | ||
"PasswordViewOnly"=hex:99,aa,bb,cc,dd,ee,ff,00 | "PasswordViewOnly"=hex:99,aa,bb,cc,dd,ee,ff,00 | ||
− | '''NOTE''' that | + | '''NOTE''' that passwords are crypted, but this is no a paranoid setup, someone can easily have access to the registry patch and try to decrypt the password. |
[[Category:Silent Installers]] | [[Category:Silent Installers]] |
Revision as of 17:10, 6 December 2006
I prefer TightVNC over UltraVNC, essentially because they have viewers also for other operating systems and I'm not stuck on browser/java viewer under my preferred OS.
I install and manage TightVNC with the following XML package description:
<package id="tightvnc" name="TightVNC server" revision="129" priority="50" reboot="false"> <check type="uninstall" condition="exists" path="TightVNC 1.2.9" /> <install cmd="%SOFTWARE%\WPKG\tightvnc-1.2.9-setup.exe /sp- /verysilent" /> <install cmd="%ProgramFiles%\TightVNC\WinVNC.exe -reinstall" /> <install cmd="%ProgramFiles%\TightVNC\WinVNC.exe -servicehelper" /> <install cmd='netsh firewall add allowedprogram program = %ProgramFiles%\TightVNC\WinVNC.exe name = "Launch TightVNC Server"' /> <upgrade cmd='%SOFTWARE%\WPKG\tightvnc-1.2.9-setup.exe /sp- /verysilent' > <exit code="0" reboot="true" /> </upgrade> <remove cmd='%ProgramFiles%\TightVNC\unins000.exe /SP- /VERYSILENT' /> </package> <package id="tightvnc-settings" name="TightVNC server settings" revision="3" priority="5" reboot="false" execute="once"> <depends package-id="tightvnc"/> <install cmd="%WPKGROOT%\packages\tightvnc.bat" /> <upgrade cmd="%WPKGROOT%\packages\tightvnc.bat" /> <remove cmd='echo "nothing"' /> </package>
TightVNC is a simple batch script that setup TightVNC server and restart it:
:: start, restart or apply settings to tightvnc :: net stop "VNC Server" regedit /s %WPKGROOT%\packages\tightvnc.reg net start "VNC Server" :: For some unknown reason the servicehelper does not restart. :: %ProgramFiles%\TightVNC\WinVNC.exe -servicehelper :: we ignore errors... :: exit 0
tightvnc.reg contains the setup of the server, most notably the access password, i.e. I can use as a registry patch:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default] "Password"=hex:11,22,33,44,55,66,77,88 "PasswordViewOnly"=hex:99,aa,bb,cc,dd,ee,ff,00
NOTE that passwords are crypted, but this is no a paranoid setup, someone can easily have access to the registry patch and try to decrypt the password.