Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
788 stars 188 forks source link

Dynamic connection #716

Open Snify89 opened 2 years ago

Snify89 commented 2 years ago

I would like to use the vncviewer automatic connect via: SESSION_#_TYPE_SERVER=someiporhostwithdynamicport

But is it possible to use a shell script or similar to "calculate" my connection port dynamically?

For example: My Thinstation has gotten an IP-Address via DHCP: 172.16.99.110 This station needs to connect via VNC to 172.16.99.9:10 (Display 10/Port 5910)

another Thinstation has gotten an IP-Address via DHCP: 172.16.99.120 This station needs to connect via VNC to 172.16.99.9:20 (Display 20/Port 5920)

and so on...

Also I don't need a window manager at all. Just the vncviewer. Any way that this is possible (e.g. via bash (std)output?)

Thank you in advance.

Doncuppjr commented 1 year ago

make a script called vncviewer.options and put it into /build/packages/vncviewer/etc/cmd/.

Do not specify a server in your config, but rather figure it out via script in vncviewer.options file.