s-esk
25 August 2023 14:10
#1
Hello,
When I’m connected to my machine with VNC, the AML-VNC server shows the wrong hostname in VNC client. However I’ve changed the hostname of the machine, there must be a parameter on the vnc server side but I can’t find it.
Do you have an idea?
Thank you,
vpeter
25 August 2023 15:04
#2
I think the name is hardcoded here
void initVncServer(int argc, char **argv) {
vncbuf = calloc(screenformat.width * screenformat.height, screenformat.bitsPerPixel/CHAR_BIT);
assert(vncbuf != NULL);
vncscr = rfbGetScreen(&argc, argv, screenformat.width, screenformat.height, 0 /* not used */ , 3, screenformat.bitsPerPixel/CHAR_BIT);
assert(vncscr != NULL);
vncscr->desktopName = "CoreELEC";
vncscr->frameBuffer =(char *)vncbuf;
vncscr->port = VNC_PORT;
vncscr->ipv6port = VNC_PORT;
vncscr->kbdAddEvent = dokey;
vncscr->newClientHook = (rfbNewClientHookPtr)clientHook;
if (strcmp(VNC_PASSWORD, "") != 0) {
char **passwords = (char **)malloc(2 * sizeof(char **));
passwords[0] = VNC_PASSWORD;
passwords[1] = NULL;
which means currently it is not possible to set the name without sources change.
s-esk
28 August 2023 10:39
#3
Thank you for your reply.
This is probably it.
Are there really no other solutions ?
vpeter
28 August 2023 10:44
#4
Let me add proper solution later today. Which CE image you are using so I can give you addon for test?
s-esk
28 August 2023 12:24
#5
I tried modifying the file with HEX editor, which worked fine.
I use version 20.1.
Yes, It’s possible to test it.
s-esk
31 August 2023 07:39
#6
Hello, have you had time to work on a proper solution?
vpeter
31 August 2023 07:43
#7
Actually I already did push all the changes: aml-vnc: add option to set desktop name (hostname by default) · CoreELEC/aml-vnc@e18f13e · GitHub
But you didn’t wrote if you use NG or NE version so I can make you addon.
s-esk
31 August 2023 08:23
#8
Oh yes, I missed it. I use NG version.
vpeter
31 August 2023 08:35
#9
s-esk
31 August 2023 10:03
#10
Thank you very much it’s work, you are the best !
1 Like
system
Closed
14 September 2023 10:03
#11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.