Ubuntu14.04 solve the problem by using VNC gnome-session-is-accelerated: No composite extension

Source: Internet
Author: User
Tags require

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.