[vnc_server] password protection not working

Hello,

Today I was trying out the vnc_server package from @jschlatow and noticed that it wasn’t working when requires_password was set to “yes”. Even having a passwd file next to the config file.

From the logs it reported a warning about missing route to the passwd and then error obtaining ROM from parent (or smth. like that).

Looking into runtime file I noticed that indeed it has no route to passwd.

Trying to solve it I just went to the local depot and added it manually, hoping this will work out.

...
		<start name="vnc_server" caps="1000">
			<resource name="RAM" quantum="130M"/>
			<route>
				<service name="ROM" label="config">
					<child name="fs_rom" label="vnc.config"/>
				</service>
				<service name="ROM" label="passwd">
					<child name="fs_rom" label="passwd"/>
				</service>
				<service name="Nic">
					<parent label="vnc"/>
				</service>
				<any-service> <parent/> <any-child/> </any-service>
			</route>
		</start>
...

(Note the second <service>…</service> entry)

After re-deploying the vnc_server it worked! :smiley:

So in case you need to have a password protected vnc_server you have to manually add a route to the runtime file after the package is extracted. :ok_hand:

Cheers!

2 Likes

Your fix makes perfect sense! Thank you for sharing your solution, I’ll update the vnc_server runtime accordingly.

The missing route somehow slipped through :face_with_peeking_eye: because, for testing, I’m using a runtime that comes with a static passwd ROM (which is reached via <any-service> <parent/> </any-service).

2 Likes