800M

16 object(s)
 

Ubuntu安装桌面环境并配置VNC远程连接

开通Linux系统的云服务器之后,没有用户界面可以自己配置,在Ubuntu16.04、Ubuntu18.04等系统上,可以快速配置桌面环境,使用VNC远程连接,支持火狐上网、Office办公、扫雷游戏等。

一、更新

apt-get update

二、安装桌面环境

apt-get install x-window-system-core
apt-get install gdm #Ubuntu18上安装失败,没多大影响
apt-get install ubuntu-desktop
apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

三、配置VNC

apt-get install vnc4server
vncserver #设置密码、生成~/.vnc/xstartup文件
vi ~/.vnc/xstartup

#!/bin/sh
# Uncomment the following two lines for normal desktop:
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
unset DBUS_SESSION_BUS_ADDRESS
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

四、重启VNC并连接

vncserver -kill :1
vncserver :1
远程端口:5901