Ubuntu14.04 only has one terminal when using VNC. After checking the log, the following error is found:
$ Cat/home/brett/. vnc/bt-desktop: 1.log
......
Gnome-session-is-accelerated: No composite extension.
Gnome-session-check-accelerated: Helper exited with codes 256
Gnome-session-is-accelerated: No composite extension.
Gnome-session-check-accelerated: Helper exited with codes 256
** (Process: 6694): WARNING **: software acceleration check failed: Child process exited with code 1
** (Gnome-session: 6694): CRITICAL **: We failed, but the fail whale is dead. Sorry ....
......
After a brief look, it may be because gnome-session cannot recognize OpenGL hardware acceleration. This problem is common on most DELL series servers.
Solution:
$ Sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
$ Vim ~ /. Vnc/xstartup # Modify the file and write the following content
#! /Bin/sh
Export XKL_XMODMAP_DISABLE = 1
Unset SESSION_MANAGER
Unset DBUS_SESSION_BUS_ADDRESS
Gnome-panel &
Gnome-settings-daemon &
Metacity &
Nautilus &
Gnome-terminal &
Restart the VNC terminal.
You can also install KDE/XFCE to solve this problem.:
$ Sudo apt-get install gnome-core xfce4 firefox
$ Vim ~ /. Vnc/xstartup # Modify the file and write the following content
#! /Bin/sh
Unset SESSION_MANAGER
Unset DBUS_SESSION_BUS_ADDRESS
Startxfce4 &
# Gnome-session -- session = gnome-flashback &
[-X/etc/vnc/xstartup] & exec/etc/vnc/xstartup
[-R $ HOME/. Xresources] & xrdb $ HOME/. Xresources
Xsetroot-solid gray
Vncconfig-iconic &
After a VNC connection is successfully connected to the desktop, the S key and D key are opposite to the Alt key.Solution:
# Operations must be performed on a GUI terminal and cannot be performed on a remote terminal
Gsettings set org. gnome. desktop. wm. keybindings panel-main-menu "['<Alt> F1']"
Gsettings set org. gnome. desktop. wm. keybindings switch-applications "['<Alt> Tab']"
Gsettings set org. gnome. desktop. wm. keybindings show-desktop "['<Alt> d']"
Gsettings set org. gnome. desktop. wm. keybindings maximize "['<Alt> up']"
Gsettings set org. gnome. desktop. wm. keybindings unmaximize "['<Alt> low']"
# You can also run dconf-editor to expand the specified items in the GUI to modify them.
The following error occurs in the VNC log:
Error opening security policy file/etc/X11/xserver/SecurityPolicy
Cocould not init font path element/usr/share/fonts/X11/cyrillic, removing from list!
Cocould not init font path element/usr/share/fonts/X11/100 dpi/: unscaled, removing from list!
Cocould not init font path element/usr/share/fonts/X11/75 dpi/: unscaled, removing from list!
Cocould not init font path element/usr/share/fonts/X11/100 dpi, removing from list!
Cocould not init font path element/usr/share/fonts/X11/75 dpi, removing from list!
Cocould not init font path element built-ins, removing from list!
Solution:
Sudo aptitude install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
Regarding the failure to connect to Ubuntu 14.04 VNC in windows, I found a solution on the Internet (refer to the article), but I tried it and it seems to be unsuccessful:
# Operations must be performed on a GUI terminal and cannot be performed on a remote terminal
Sudo apt-get install dconf-tools
Sudo dconf write/org/gnome/desktop/remote-access/require-encryption false
Gsettings set org. gnome. Vino require-encryption false
Change the background image:
# Operations must be performed on a GUI terminal and cannot be performed on a remote terminal
Sudo dconf write/org/gnome/desktop/background/picture-uri file: // usr/share/backgrounds/Forever_by_Shady_S.jpg
Gsettings set org. gnome. desktop. background draw-background false
Gsettings set org. gnome. desktop. background picture-uri file: // usr/share/backgrounds/Forever_by_Shady_S.jpg
Gsettings set org. gnome. desktop. background draw-background true