Orange Pi (orangepi) vnc connection gray screen

After opening vnc on Orange Pi, I found a gray screen when connected with vnc viewer.

Solution:

1. First install the gnome desktop

sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal gnome-session-flashback

sudo apt install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal -y

2. Then change the xstartup file: sudo nano ~/.vnc/xstartup

Change to the following content:

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &


dbus-launch gnome-panel &
dbus-launch gnome-settings-daemon &
metacity &
nautilus &
dbus-launch gnome-terminal &

Then it can run perfectly.

Guess you like

Origin blog.csdn.net/qqliuzhitong/article/details/114328181