Cannot change VNC password #604

Open
opened 2025-12-29 01:22:54 +01:00 by adam · 4 comments
Owner

Originally created by @shwuhk on GitHub (Jul 23, 2024).

docker run -i
--device /dev/kvm
-p 50922:10022
-p 5999:5999
-v /mnt/wslg/.X11-unix:/tmp/.X11-unix
-e "DISPLAY=${DISPLAY:-:0.0}"
-e EXTRA="-display none -vnc 0.0.0.0:99,password=on"
-e GENERATE_UNIQUE=true
-e CPU='Haswell-noTSX'
-e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on'
-e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom-sonoma.plist'
sickcodes/docker-osx:sonoma

Using the following command to run, when I type change vnc password username, it didn't prompt for a password. And also, whenever I type enter, two lines of (qemu) comes out, is that normal?

(qemu) change vnc password userd
change vnc password userd
(qemu)
(qemu)
Originally created by @shwuhk on GitHub (Jul 23, 2024). ``` docker run -i --device /dev/kvm -p 50922:10022 -p 5999:5999 -v /mnt/wslg/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e EXTRA="-display none -vnc 0.0.0.0:99,password=on" -e GENERATE_UNIQUE=true -e CPU='Haswell-noTSX' -e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on' -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom-sonoma.plist' sickcodes/docker-osx:sonoma ``` Using the following command to run, when I type change vnc password username, it didn't prompt for a password. And also, whenever I type enter, two lines of (qemu) comes out, is that normal? ``` (qemu) change vnc password userd change vnc password userd (qemu) (qemu) ```
Author
Owner

@SimonBard commented on GitHub (Jul 25, 2024):

You changed the password to "userd"
You do not specify a user.

@SimonBard commented on GitHub (Jul 25, 2024): You changed the password to "userd" You do not specify a user.
Author
Owner

@SimonBard commented on GitHub (Jul 25, 2024):

This happens if you really cannot set a password, its just happening to me:

(qemu) change vnc password justanexample
Error: Could not set password

And please format the text next time for readability

@SimonBard commented on GitHub (Jul 25, 2024): This happens if you really cannot set a password, its just happening to me: ``` (qemu) change vnc password justanexample Error: Could not set password ``` And please format the text next time for readability
Author
Owner

@shwuhk commented on GitHub (Jul 25, 2024):

This happens if you really cannot set a password, its just happening to me:

(qemu) change vnc password justanexample
Error: Could not set password

And please format the text next time for readability

Thanks for your help.
Question is updated for readbility.

I can login now with "userd".

I saw from the others that this placement should be the username and password is prompt next, is it changed or it was always behave like this?

@shwuhk commented on GitHub (Jul 25, 2024): > This happens if you really cannot set a password, its just happening to me: > > ``` > (qemu) change vnc password justanexample > Error: Could not set password > ``` > > And please format the text next time for readability Thanks for your help. Question is updated for readbility. I can login now with "userd". I saw from the others that this placement should be the username and password is prompt next, is it changed or it was always behave like this?
Author
Owner

@sleeyax commented on GitHub (Nov 22, 2024):

This happens if you really cannot set a password, its just happening to me:

(qemu) change vnc password justanexample
Error: Could not set password

And please format the text next time for readability

Had the same issue. Solved by entering change vnc password instead. It then prompts for your new password. I don't know what the username is supposed to be though.

Edit: never mind, I simply forgot to enable VNC when running the container. RTFM folks!

@sleeyax commented on GitHub (Nov 22, 2024): > This happens if you really cannot set a password, its just happening to me: > > ``` > (qemu) change vnc password justanexample > Error: Could not set password > ``` > > And please format the text next time for readability Had the same issue. Solved by entering `change vnc password` instead. It then prompts for your new password. I don't know what the username is supposed to be though. Edit: never mind, I simply forgot to enable VNC when running the container. RTFM folks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#604