Install graphical interface environment for Ubuntu server 18.04

Time:2021-2-4

The menu bar of virtual machine running in VirtualBox is hidden. What should I do?

This problem may be due to our careless openingAuto zoom mode
Solution version: just pressRight Ctrl + cthat will do

Uuntu18 source swapping

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

Installation of graphical interface environment for ubuntu-server 18.04

1. The foundation of installing X-Windows

sudo apt-get install -fy x-window-system-core

2. Install Gnome foundation

 sudo apt-get install -fy gnome-core

3. Install Chinese display (recommended)

apt install language-pack-gnome-zh \
language-pack-zh language-support-zh-hans language-support-zh-hant language-support-zh

4. Install Chinese input method

apt install ibus-pinyin
apt install ibus-libpinyin
apt install fcitx 

5. Enter the graphical interface: startx
6. Exit graphic desktop: Ctrl + Alt + backspace
7. Uninstall GNOME desktop environment

 sudo apt-get –purge remove liborbit2

Delete Ubuntu desktop

sudo apt-get remove xfce4*
sudo apt-get remove xubuntu*
sudo apt-get autoremove
sudo apt-get clean

Install Google Chrome stable

  • Download DEB installation file

wget https://dl.google.com/linux/d…

  • Execute installation command in terminal

sudo dpkg -i google-chrome-stable_current_amd64.deb

  • The installation failed by executing the following command

apt-get install -fy

Reference link:
Manual installation of X11 GUI in Ubuntu