Article Directory
Forgot password
Use the vncpasswd command to modify.
You can also delete ~/.vnc/passwd and restart vnc.
Setting locale failed
When starting the vnc service, I encountered the following error on Ubuntu 16.04, but not on Ubuntu 18.04.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
In fact, this warning has no effect . The solution is to add in the ~/.bashrc file
export LANGUAGE=en_US.utf8
export LC_ALL=en_US.utf8
Then make the ~/.bashrc file effective
source ~/.bashrc
Font not found
The log and pid files will appear in the ~/.vnc folder. In the log file
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
In fact, these errors have no effect and do not need to be resolved.
If you have to solve it, the path /usr/X11R6/lib/X11/fonts does not exist. The path of fonts in the system is located at /usr/share/fonts/X11, but there is no Speedo, 75dpi and 100dpi, but the latter two can installation
sudo apt install xfonts-75dpi xfonts-100dpi
If there is no misc, you can install it
sudo apt install xfonts-base
Then manually create the folder /usr/X11R6/lib/X11 and set the soft link
sudo mkdir -p /usr/X11R6/lib/X11
cd /usr/X11R6/lib/X11
sudo ln -s /usr/share/fonts/X11 fonts
Although this problem is solved, there are still many other errors and warnings on the log file in the ~/.vnc folder, but they do not affect the use of the desktop...