Unfortunately, Ubuntu 23.04 no longer supports VNC out of the box, only RDP.
Previous support was based on vino. You can enable this from the command line with the following instructions.
Create a password that you want to use for logging into vnc and save it in a variable:
password=$(echo "some-password" | base64)