My hardware configuration

The operating system is getting bigger and more complex. Not long ago, I bought a second-hand Intel Nuc8 with 16GB of memory and 1TB of hard disk to test whether I could use the computer completely under the Linux system. After I bought it, I installed A Win10 to check if there were any problems with the machine. Knowing archLinux was very simple, I chose it as my test system. I didn’t wipe out Windows 10 and install ArchLinux for dual systems. I mainly refer to this article and this video. The video is single system, but the explanation is very detailed, you can watch the video first, then read the article, compare with each other.

Set a time

After installing the system according to the above article, I found that my system time zone is correct, but the system time is wrong. I executed this command to synchronize the network time:

timedatectl set-ntp true
Copy the code

Then execute this command to synchronize hardware time:

hwclock --systohc 
Copy the code

In fact, the above article mentioned that single system can be operated in this way, and I do not know what impact such a direct operation has on double systems, so carefully imitate.

Text editor

I used the Nano, which is relatively easy to operate. If you haven’t downloaded it, you can download it. You’ll need a text editor to modify the file.

sudo pacman -S nano
Copy the code

Configuring download Sources

During the installation, the source address of the domestic mirror has been placed first in the /etc/pacman.d/mirrorlist file. Do not know why, and online tutorials are not the same, I did not start the file will mirror source address in accordance with the country, there is no domestic mirror source address, domestic mirror source address I was his hand hit up. I also changed the /etc/pacman.conf file to add the Arch Linux Chinese community repository address, the reasons and the changes mentioned in the previous article. After adding, you need to install the key

sudo pacman -S archlinuxcn-keyring
Copy the code

Wifi connection

Wpa_supplicant = wPA_supplicant = wPA_supplicant = Wpa_supplicant = Wpa_supplicant = Wpa_supplicant

sudo pacman -S wpa_supplicant
Copy the code

Window manager DWM

After watching several videos of up main TheCW in the video above, I’m going to install a window manager first. Check out his two videos 1 and 2 on what DWM is and how it works. How to install from scratch I refer to these two videos 1 and 2.

Here are my installation steps

  1. To install DWM, you need to download the DWM source code. I installed Git to pull up the latest source code for DWM.
    Sudo pacman -s git / / install git git clone https://git.suckless.org/dwm -- the depth = 1 / / download codeCopy the code
  2. Download some components related to the desktop environment
    sudo pacman -S xorg-server
    sudo pacman -S xorg-apps
    sudo pacman -S xorg-xinit
    Copy the code
  3. Download the font, otherwise there will be an error when starting DWM. I didn’t install this at first, but only installed it when I found the error.
    sudo pacman -S noto-fonts-cjk
    Copy the code
  4. Go to DWM’s folder, compile and install DWM
    sudo make clean install
    Copy the code
  5. Edit the ~/.xinitrc file to add this line
    exec dwm
    Copy the code
  6. Enter the following command to start DWM
    startx
    Copy the code
  7. DWM can’t do anything now, press Shift + Alt + Q to exit DWM.

Terminal st

In order to run programs in DWM, you need to install a terminal. DWM’s default terminal is ST. Watch this video on what a terminal is and watch this video on what st is.

Here are my installation steps

  1. Download st source code
    git clone https://git.suckless.org/st --depth=1
    Copy the code
  2. According to the aboveSt videoModify the config.mk file
    X11INC = /usr/include/x11 X11INC = /usr/include/x11 X11INC = /usr/include/x11 X11INC = /usr/include/x11 X11INC = /usr/include/x11 X11INC = /usr/include/x11Copy the code
  3. Compile and install st
    sudo make clean install
    Copy the code

After installing ST, enter DWM again, then Alt + Shift + Enter to open terminal ST. This is when you can play in DWM.

The browser chrome

The information on the Internet says that domestic warehouse has Chrome, install it

sudo pacman -S google-chrome
Copy the code

After installation, the terminal enters the following command to launch the browser

google-chrome-stable
Copy the code

Modify the font and font size of st

At the beginning, the font of ST was a little small, and there was a problem of blocking between letters on my computer. You can modify the font by modifying the config.h file under the ST directory. Open the file as shown below and find the underlined line of codeI’ve changed the underlined part

Source Code Pro:pixelsize=24
Copy the code

Source Code Pro is a font that pixelSize =24 changes the font size. Save the file and exit, re-run sudo make clean install to compile and install ST, then exit DWM and restart DWM.