Archlinux tossing records and feelings (in)

Source: Internet
Author: User
Tags install window

Archlinux tossing records and feelings (in)
Archlinux tossing records and feelings (in)

I was very excited when I saw Arch boot from a local hard disk and connected to wifi.

However, this is just the beginning.

Next, you need to configure the basic graphic interface, browser, Font, input method, Window Manager, file manager... Customizes your own lightweight operating system.

Basic System Configuration

Create a daily desktop user, add root permissions to the user, and use zsh as the terminal

# pacman -S zsh# useradd -m -g users -G audio,video,floppy,network,rfkill,scanner,storage,optical,power,wheel,uucp -s /usr/bin/zsh archie

Configure zsh and use zsh to configure the configuration file on this page

Install Xwindow. Xorg is an open-source implementation of X Window System 11 and provides a basic graphic user interface framework.

# pacman -S xorg-server xorg-apps

If you do not need to log on to the manager to start X, install the software package xorg-xinit.

# pacman -S xorg-init 

The startx and xinit commands will start the X server and client (the startx script is the frontend of the xinit command ). To determine the client to run, startx/xinit first parses the client in the user directory ~ /. Xinitrc file, if ~ /. Xinitrc does not exist. Use the default/etc/X11/xinit/xinitrc, where the Twm Window Manager, Xterm terminal, and Xclock are used by default.

Install the graphics card driver

This step is special and requires actual hardware operations. This machine is used as an example. It has integrated graphics card and ATI independent graphics card.

# pacman -S xf86-video-intel xf86-video-ati

Install window manager i3

# pacman -S i3-wm

Edit ~ /. Xinitrc, add

exec i3

Now you can run startx to start i3 on tty.

# startx

Press ctrl + enter. In this case, the generated i3 contains the xterm's original X interface.

Install a browser

# pacman -S firefox firefox-i18n-zh-cn# firefox &

After installing and running the browser, you can go to the arch wiki page, view documents in real time, and install, debug, and configure the required system components and software.

However, you should be able to find that firefox's browsing of Chinese is very poor at this time, and the browser will display a sawtooth display, because the Chinese font of the system is not properly configured yet.

Install locale in Chinese. Use the locale. conf file to set a globally valid locale.

LANG=en_US.UTF-8

It is not recommended to set the Chinese locale here, which may cause tty garbled characters. Chinese characters can also be displayed and entered under tty, but cce, zhcon, or fbterm must be installed.

You can ~ /. Xinitrc or ~ /. Xprofile set Chinese locale separately. Add the following content to the front-end comment of the above file (if you are not sure which file to use, you can add it all)

export LANG=zh_CN.UTF-8export LANGUAGE=zh_CN:en_USexport LC_CTYPE=en_US.UTF-8

If you want to add these three rows ~ /. Xinitrc. Place it before the exec _ example_WM_or_DE _ row.

Font installation

Chinese font: # pacman-S wqy-microhei wqy-zenhei English Font: # pacman-S ttf-dejavu

Input Method

# pacman -S fcitx fcitx-sunpinyin

Fcitx is a GPL-based input method platform. fcitx-sunpinyin is a good Chinese input method. You also need to add the following to the. xinitrc file:

export GTK_IM_MODULE=fcitxexport QT_IM_MODULE=fcitxexport XMODIFIERS="@im=fcitx"fictx &

If the Chinese input method cannot be switched in firefox, run fctix-diagnose to troubleshoot the error as prompted.

File Manager

# pacman -S thunar

The basic configuration of a simple and lightweight system is complete. You can see in top that the memory usage is less than 15% at this time. You also need to install applications that you are familiar.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.