[GH-ISSUE #789] Cannot change VNC password #605

Open
opened 2026-02-27 23:01:16 +03:00 by kerem · 4 comments
Owner

Originally created by @shwuhk on GitHub (Jul 23, 2024).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/789

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). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/789 ``` 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.

<!-- gh-comment-id:2249610349 --> @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

<!-- gh-comment-id:2249612348 --> @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?

<!-- gh-comment-id:2249667001 --> @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!

<!-- gh-comment-id:2494698908 --> @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.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#605
No description provided.