ubuntu18.04安装tightvncserver

 apt-get install tightvncserver
 vncserver

解决灰屏问题

 sudo apt-get install gnome-panel
 vi ~/.vnc/xtsartup

#!/bin/sh                                                                       
 
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export XDG_MENU_PREFIX="gnome-flashback-"
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#gnome-terminal &    
#nautilus &   
gnome-session --session=gnome-flashback-metacity --disable-acceleration-check &

重启

vncserver -kill :1

vncserver -geometry 1920x1080  :1

你可能感兴趣的:(ubuntu,linux,运维)