安装及卸载

Ubuntu、kubuntu、xUbuntu、lubuntu等版本区别及界面样式

远程xfe桌面

安装

1
2
3
4
5
# xfe桌面
su root
apt update
sudo apt install xfce4 xfce4-goodies
sudo apt install tightvncserver

卸载

1
2
apt remove tightvncserver
...待补充

远程安装ubuntu桌面

安装

  • 执行命令
1
2
3
4
# ubuntu桌面
su root
apt update && apt upgrade -y
sudo apt install tightvncserver
  • ubuntu桌面需要修改文件 ~/.vnc/xstartup为:
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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 &
  • 执行命令
1
2
3
apt-get install x-window-system-core
apt-get install ubuntu-desktop -y
apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal -y

卸载

1
2
3
apt remove ubuntu-desktop -y
apt remove tightserver -y
apt autoremove

远程安装Xubuntu

1
2
3
4
5
# Xubuntu桌面
su root
apt update && apt upgrade -y
apt install tightvncserver -y
apt install xfce4 xubuntu-desktop -y

本地安装ubuntu桌面

安装

1
2
3
4
5
6
# 本地安装ubuntu桌面
sudo apt update && sudo apt upgrade -y
sudo apt install ubuntu-desktop
sudo apt install lightdm
sudo service lightdm start #启动服务
cat /etc/X11/default-display-manager #检查显示管理器

安装lightdm,会让选择gdm3lightdm,二选一即可

阿里云轻量服务器Ubuntu图形化界面安装及桌面优化
注意

vnc需要使用端口5900+k6000+k

卸载

1
2
3
4
5
sudo apt remove ubuntu-desktop
sudo apt remove lightdm
sudo apt autoremove
sudo service lightdm stop #停止显示管理器
reboot

启动

1
vncserver :5

关闭

1
vncserver -kill :5

自定义分辨率

1080P

将以下配置保存为.vnc.sh,然后运行sh .vnc.sh即可

1
2
#!bin/bash
vncserver :51 -geometry 1920x1080 -depth 24

或者

1
vncserver -geometry 1920x1080 -depth 24 :51

4K

将以下配置保存为.vnc4.sh,然后运行sh .vnc4.sh即可

1
2
#!/bin/bash
vncserver -geometry 3840x2160 -depth 24

下载

VNC Viewer

官网只有最新下载地址,如果需要下载历史版本,更改下面的链接为对应版本即可。如6.21.406为MacOS 10.13.6最大支持版本。
https://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-6.21.406-MacOSX-x86_64.dmg

VNC Server

同理可下载历史版本
https://downloads.realvnc.com/download/file/vnc.files/VNC-Server-6.9.1-MacOSX-x86_64.pkg

云服务器安装桌面

腾讯云服务器安装桌面

如何在 Ubuntu 服务器上安装桌面环境(GUI

Reference

  1. vnc server配置、启动、重启与连接
  2. 18安装教程
  3. 常用命令
  4. 白屏
  5. Win10子系统-Ubuntu安装及配置VNC访问XFCE4桌面
  6. 给Ubuntu服务器版安装GNOME桌面
  7. 在服务器上安装图形化桌面