Ubuntu install gnome desktop and remote connection vnc

 

Install gnome desktop

sudo apt-get install gnome-core

Install vnc

sudo apt-get install vnc4server

Start vnc

vncserver

Set about passwords

 

Then set about profiles

vim ~ / .vnc / Xstartup

change into

#!/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 &

gnome-panel &
gnmoe-settings-daemon &
metacity &
nautilus &

Then restart the vnc

-kill vncserver: 1 // Close 

vncserver: 1 // open

 

Fill ip when vnc connection with the address bar: 1 and then enter the password just set you can enter the

 

If the desktop appears gray phenomenon, try the following method

Gray Desktop solve the problem:

wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh

The reason is that some components are not installed gnome

Guess you like

Origin www.cnblogs.com/blowhail/p/12080855.html