Write custom directory title here
- Windows10 installation Ubuntu20.04 and graphical interface
-
- 1. Windows configuration before installation
- Two, ubuntu20.04 system installation
- 3. Replace Tsinghua University source with ubuntu 20.04
- 4. Sinicization of Chinese
- Five, install the graphical interface, VcXsrv way to install the GUI
- 6. Install the desktop environment in Ubuntu
- configure ccsm
- The terminal calls the ubuntu graphical interface
- Terminal calls to view the directory under ubuntu
Windows10 installation Ubuntu20.04 and graphical interface
At present, ubuntu in the microsoft store of the windows 10 system has been updated to version 20.04.
1. Windows configuration before installation
Update windows.
Open the developer mode
to enable or disable the windows function, check the following two options.
Downloading the ubuntu20.04 system is the same as downloading software. I use this one.
Two, ubuntu20.04 system installation
After downloading and installing, ubuntu will appear on the taskbar.
Click Start to set the user name and password. The user name cannot be capitalized. When entering the password, you must remember to switch to English input. It is normal that the password cannot be seen when you enter it.
Root permission after installation, sudo -s
lsb_release -a
to view the installation version number
3. Replace Tsinghua University source with ubuntu 20.04
Tsinghua University source address:
https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
If you can’t open the URL, just copy the source below.
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
source update added
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vim /etc/apt/sources.list
Press "i" to enable edit mode.
After editing, press "Esc" to close the editing mode, switch to a new line, enter ":wq" (: wq!), press Enter to save
update
sudo apt update
sudo apt upgrade -y
4. Sinicization of Chinese
sudo apt install language-pack-zh-han* -y
sudo locale-gen zh_CN.GB18030 && sudo locale-gen zh_CN.GB2312 && sudo locale-gen zh_CN.UTF8
sudo apt install fontconfig -y
sudo apt install ttf-mscorefonts-installer -y
sudo apt install -y --force-yes --no-install-recommends fonts-wqy-microhei
sudo apt install -y --force-yes --no-install-recommends ttf-wqy-zenhei
sudo dpkg-reconfigure locales
sudo dpkg-reconfigure locales
Enter the menu, select zh_CN UTF.8 UTF.8
restart after completion
Five, install the graphical interface, VcXsrv way to install the GUI
Install the GUI in the way of VcXsrv, the download address is https://sourceforge.net/projects/vcxsrv/.
If the download speed is slow, use Xunlei.
Thunder download link for this article: https://udomain.dl.sourceforge.net/project/vcxsrv/vcxsrv/1.20.9.0/vcxsrv-64.1.20.9.0.installer.exe
After downloading, press the following configuration to install all the way.
Start vcxsrv, this interface is always open!
6. Install the desktop environment in Ubuntu
The download is slow, turn on your phone's hotspot! ! ! ! !
A total of 597 packages! ! ! !
Patience, patience, patience! ! ! !
sudo apt-get install ubuntu-desktop unity compizconfig-settings-manager
configure ccsm
export DISPLAY=localhost:0
#执行下面这条命令之前,确保你上一步的XLaunch是开着的并且配置好了
ccsm
Check gnome, other defaults, just close
The terminal calls the ubuntu graphical interface
export DISPLAY=localhost:0
sudo compiz
Perfect call to realize parallel operation of windows10 and ubuntu20.04 dual systems.
Terminal calls to view the directory under ubuntu
A directory is a network address
Explorer.exe .