The author is a front-end development, when learning Linux, encountered a problem — how to practice? Because my computer is installed on the Windows system, so I can’t practice when learning Linux, and typing instructions is the most efficient way to learn Linux, which requires me to install a Linux VIRTUAL machine or dual system. At first, I used a VMWare VIRTUAL machine to install Ubuntu. Later, Linux seemed to be really good, virtual machines were too expensive, and my Windows was getting tired, so I decided to install a dual system.
At the beginning, I still installed Ubuntu system. Later, I found that there were still many difficulties in using Ubuntu system for work and study. Firstly, QQ officially stopped supporting the development of Linux platform, so it was difficult to install QQ on Ubuntu. Second, Ubuntu’s fonts are not perfect enough for Chinese support. Moreover, netease Cloud Music does not perform well on Ubuntu (sudo Netease cloud-music is required for startup, otherwise clicking on the icon will not respond). In short, Ubuntu is not suitable for daily use by Chinese users (although they may not have developed it for daily use at all, let alone for Chinese people). In order to better learn Linux, after understanding, I decided to install Deepin as my daily use system. Developed by The Wuhan Shenzhidu Technology Company, Linux is tailormade for Chinese users. It comes preloaded with sogou input, QQ, netease Cloud Music and other popular software, as well as the app store (and even Steam… Although I haven’t used it, see below for details), it is very comfortable to use.
How to install Deepin?
Ok, so with that said, how exactly do we install Deepin dual systems?
Taking Windows7 as an example, it probably includes the following steps:
- (1) Disk management, partition a disk space of about 60G, do not need to allocate a drive letter. For how to partition the disk, refer to the tutorial.
- (2) Download the ISO image and the startup disk creation tool from Deepin’s official website.
- (3) Insert the boot disk, restart the computer, enter the BIOS, and select boot from the boot disk.
- (4) Complete the installation according to the instructions. Remember to select the disk divided before installation, and format it before installation.
- (5) Installation completed, Enjoy it!
This article was written on the Deepin system, so there is no way to go over the installation process, only an overview of the installation. For more details, see Deepin’s official installation tutorial, which also includes video demonstrations.
Two, things to do after installation
1. Modify the boot option
After installing the system, restart the computer and the boot screen will be displayed. After entering the boot screen, you can see that the first three are Deepin options and the fourth is called System Setup. When this item is selected, the system will report an error, because this item is prepared for starting Windows. Maybe due to the Deepin Bug, there was no Windows option at the beginning. We needed to modify it in the control center after entering the Deepin operating system.
You don’t have to do anything to change it. After entering Deepin, click “Control Center” to bring up the Settings screen in the right sidebar. Then select “System Info” and pull down to the bottom to see the “Startup menu”. Just do something, like turn a switch on and off… That will do. When you reboot again, you can see that the last TAB of the boot screen displays Windows correctly.
2. Set up the development environment
As a front-end developer, my most basic development environment includes VS Code, Git, Node, Python, Vim, etc. Now install these software.
Installing Git and Vim is relatively simple
sudo apt-get install git vim
Copy the code
It’s wide.
There are two ways to install VS Code: install it in the Deep Store, or download the.deb package from the VS Code website and use it
Sudo DPKG -i Specifies the package nameCopy the code
Just install it. The difference between the two is that the official website download is the latest version, the depth store version is behind the official website version.
There are also two ways to install Node. One is through the package manager installation, the other is the official website source installation. The difference is that after the package manager is installed, the package name is nodejs instead of Node. When the script is running, it is also nodejs command. If you want to change the package name, you need to use other commands to change it.
I use the source installation. Download the source code from Node.js Chinese. Use after download
tar -zxf node-vxx.x.x.tar.gz
Copy the code
Unzip the source code and use it
sudo apt-get install g++
Copy the code
Install the GCC source compiler.
Next, enter the unzipped source folder:
cd node-vxx.x.x
Copy the code
Run the configuration file:
./configure
Copy the code
Then start compiling:
make
Copy the code
Start installation after compiling:
make install
Copy the code
After the installation is complete, you can use node -v to check whether the installed version of Node is correct.
For Python, Deepin itself has Python installed, and both versions 2 and 3 are available. To run the script using Python 3.x, use the python3 command. Be sure not to uninstall Python version 2 of the system itself! In addition, if you want to debug Python Code in VS Code, please refer to my other blog post on how to write configuration files.
In addition, I recommend a garbage cleaning software called BleachBit, which can be installed directly in the Deepstore, as shown in the screenshot below: