I haven't used ubuntu for so long, I forgot everything. Because I want to use the server, I asked my senior to help me to create a VNC Viewer interface window. I suddenly wanted to switch users, but using Switchuser was ineffective, so I made a logout at the dead point, so this is the interface below, and I can't enter it again.
Fortunately, there are a lot of great gods on the Internet, and I found the solution at once. However, because I am really too naive, I still encountered some details. I will record it and hope that I will not have the next opportunity to open this blog.
solution:
1. Xshell login to the server;
2. Close the existing link, that is, the one that is stuck;
command: vncserver -kill :3 (my session number is 3, pay attention to the space between kill and :)
The correct execution result:
没打空格报错:
Couldn’t start Xtightvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn’t start Xtightvnc process.
3. Create a new link;
command: vncserver: 3 (I want to create a session number of 3, the default default is 1)
The correct execution result:
At this time, go to VNC Viewer to log in normally.