Re: Configure Windows TightVNC-Server with configuration file instead of registry keys

Patrick Shoaf <[email protected]> Wed, 13 Apr 2022 13:06:25 -0400
Newsgroups gmane.network.tight-vnc.general
Organization Model Cleaners Uniforms & Apparel
Message-ID <[email protected]>
I use Linux daily.  I have multiple VNC server sessions running, a 
different port for each user.  I could see a Windows Server with Remote 
Dekkstop for different users wanting a VNC Server running for each each 
user to "SHARE" their desktop.

In the past, I have had issues where the Server froze when both VNC 
Server & Remote Desktop were both in use on a machine.  I don't know if 
that problem still occurs or not, I gave up on Windows Remote Desk Top 
and VNC on the same machine.

*Patrick Shoaf*
IT Special Projects
[email protected]

*Model Cleaners, Uniforms & Apparel
100 Third Street
Charleroi, PA 15022
Direct Dial: 724-565-2033
724-489-4386 Fax
www.modelcleaners.com <http://www.modelcleaners.com>
www.modelapparel.com <http://www.modelapparel.com>
www.modeluniforms.com <http://www.modeluniforms.com>
*

On 4/13/2022 10:29 AM, Stanislav Kogan wrote:
> Correct me if I'm wrong, but I don't really see a way to run multiple 
> VNC servers under Windows. There is, after all, only one physical 
> screen, right? ;)
>
> Quoting Thorsten Südbrock <[email protected]>:
>
>> Thanks for the reply! Maybe I should have described my scenario more 
>> thoroughly.I am not afraid of the registry, but of its limitations.
>>
>> I do not want to use the registry, because there can only be one 
>> value for a setting at a given time. I have a machine, where I would 
>> like to start multiple TightVNC-Servers with different configurations.
>>
>> Let us say, the user is already running a TightVNC server with 
>> specific settings (port number and so on) - those are stored in the 
>> registry. I have a program that should start a new TightVNC server 
>> process on a different port and with different settings. To do this I 
>> would need to overwrite the settings in the registry for this user 
>> account and restore them after my program is finished. This seems to 
>> be an akward solution, e.g. when my program crashes and does not 
>> restore the previous settings the user wonders who changed his 
>> configuration.
>>
>> So I would rather like to read the configuration options for port and 
>> permissions (view / change) from a different file or provide them via 
>> command line arguments. I did not find any documentation on this and 
>> wonder if this is possible.
>>
>>
>> Another possibility would be, if I could point the TightVNC server 
>> instance to a specific registry hive which I create for my program. 
>> So the configuration would still be stored in the registry - just as 
>> a different "profile" in a different location. Is this possible with 
>> some undocumented switch?
>>
>>
>> On 13.04.22 14:37, Stanislav Kogan wrote:
>>> Hi.
>>>
>>> The registry (HKLM or HKCU) is actually much easier to configure 
>>> than it seems. Check this out:
>>>
>>> https://blog.securestrux.com/applying-configuration-with-microsofts-lgpo-utility 
>>> This utility is actually not only for applying GPO, but any registry 
>>> entries.
>>>
>>>
>>> Quoting Thorsten Südbrock <[email protected]>:
>>>
>>>> Hi there,
>>>>
>>>> I wonder if there is any way (or plan) to make the TightVNC-Server 
>>>> for Windows systems configurable via a configuration file - 
>>>> something like a "server.ini". If I understand the documentation 
>>>> correctly, on Windows systems all configuration options are stored 
>>>> in the Registry.
>>>>
>>>> Either in the HKLM tree - for the system wide service. Or in the 
>>>> HKCU tree - for a server process started by a user.
>>>>
>>>>
>>>> I know there are some command line options (documented here: 
>>>> https://www.tightvnc.com/doc/win/TightVNC_2.7_for_Windows_Server_Command-Line_Options.pdf), 
>>>> but all changes are still save to the registry.
>>>>
>>>> I found a feature request from 2017, but I do not see any 
>>>> indication if this is on the roadmap for a release 
>>>> (https://sourceforge.net/p/vnc-tight/feature-requests/727/). There 
>>>> is a mentioning of a "beta" version with this feature, yet I do not 
>>>> know where to find this "beta". Do I have to compile a current 
>>>> working branch myself to get this "beta" version?
>>>>
>>>>
>>>> My goal is to start a TightVNC-Server from the command line and 
>>>> configure it completely *without* using registry keys. I want to 
>>>> set the port, password, mode and so on. Is something like this 
>>>> possible?
>>>>
>>>> Any help is be appreciated, thank you for your efforts!
>>>>
>>>>
>>>> -- 
>>>> PerFact Signatur
>>>>
>>>> With best regards
>>>>
>>>> Thorsten Südbrock
>>>
>>>
>>>
>
>
>
----------
Mail sent via Barracuda

___________________________________________________________
TightVNC mailing list, [email protected]
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list
pshoaf.vcf (text/vcard, 364 B)
begin:vcard
fn:Patrick Shoaf
n:Shoaf;Patrick
org:Model Cleaners Uniforms & Apparel;IT Dept
adr:;;100 Third Street;Charleroi;PA;15022;USA
email;internet:[email protected]
title:Special Projects Manager
tel;work:724-565-2033
tel;fax:724-565-2110
tel;cell:724-366-9154
x-mozilla-html:TRUE
url:http://www.modelcleaners.com
version:2.1
end:vcard