Ubuntu18.04安装Xfce桌面与vnc
1: 安装前更新系统
sudo apt-get update
2: 安装Xfce
sudo apt-get install xfce4
3: 安装VNC前也更新一下系统
sudo apt-get update
4: 安装VNC Server
sudo apt-get install vnc4server
5: 启动VNC Server
vncserver
6: 修改xstartup文件
vim ~/.vnc/xstartup
将原内容修改为:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
7: 关闭VNC Server
vncserver -kill :1
8: 启动VNC Server
vncserver
VNC Server在启动时还有其他参数可以配置(如分辨率),可用vncserver -h指令查看。
No comments:
Post a Comment