VNC remote desktop - screen is black

Solution 1:

It turns out that the solution is to remove the Anaconda framework from the $PATH environment variable. So in my case the users /home/<username>/.bashrc file needs the following field commented out to look something like:

#__conda_setup="$('/home/<username>/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
#if [ $? -eq 0 ]; then
#    eval "$__conda_setup"
#else
#    if [ -f "/home/<username>/anaconda3/etc/profile.d/conda.sh" ]; then
#        . "/home/<username>/anaconda3/etc/profile.d/conda.sh"
#    else
#        export PATH="/home/<username>/anaconda3/bin:$PATH"
#    fi
#fi
#unset __conda_setup

Run source .bashrc. Remote desktop is then possible. Once the connection is established and you are on the remote desktop, uncomment the above lines and run source .bashrc to be able to use Anaconda within the remote desktop session.