Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

Cannot change VNC password

Open shwuhk opened this issue 1 year ago • 4 comments

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)

shwuhk avatar Jul 23 '24 20:07 shwuhk

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

SimonBard avatar Jul 25 '24 07:07 SimonBard

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 avatar Jul 25 '24 07:07 SimonBard

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 avatar Jul 25 '24 07:07 shwuhk

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 avatar Nov 22 '24 20:11 sleeyax