ArchLinux Toss record and feeling (middle)
I was excited to see that arch was booted from the local hard drive and was able to connect to the WiFi successfully.
However, this is just the beginning.
Next, you need to configure the basic graphical interface, browser, font, IME, window manager, File Manager ... Customize a lightweight operating system dedicated to your own.
Basic System Configuration
Create a desktop user for daily use and add root privileges 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, use (zsh configuration) [http://www.cnblogs.com/ma6174/archive/2012/05/08/2490921.html] configuration file for this page
Install Xwindow. Xorg is an open source implementation of version 11 of the X Window System, providing a basic graphical user interface framework.
# pacman -S xorg-server xorg-apps
If you do not use the login manager to start X, you need to install the package Xorg-xinit
The StartX and Xinit commands will start the X server and the client (StartX script is the front end of the more General Command Xinit). In order to determine which client to run, startx/xinit resolves the ~/.xinitrc file in the user directory first, and if ~/.XINITRC does not exist, uses the default/ETC/X11/XINIT/XINITRC, where the Twm window manager is used by default. Xterm Terminals and Xclock
Installing the video driver
This step is special and needs to be done with actual hardware. This machine is an example, with integrated graphics and ATI discrete graphics
# pacman -S xf86-video-intel xf86-video-ati
Installing the window Manager i3
# pacman -S i3-wm
Edit ~/.xinitrc, add
exec i3
The STARTX boot i3 can now be executed directly on the TTY.
# startx
Keyboard ctrl
+ enter
. The i3 is assembled and the original X interface containing the xterm is displayed.
Installing the browser
# pacman -S firefox firefox-i18n-zh-cn# firefox &
After loading and running the browser, you will be able to access the Arch wiki page, view the document in real time, and install, Debug and configure the required system components and software.
However, you should be able to find that Firefox is very poor at this time to browse Chinese, there will be jagged display, this is because the system Chinese fonts are not configured.
Install the Chinese locale, locale.conf
set the global valid locale through the file
LANG=en_US.UTF-8
It is not recommended to set the Chinese locale here, which will cause TTY garbled, and can display and input Chinese under TTY, but need to install CCE, Zhcon or Fbterm
You can set the Chinese locale separately in ~/.XINITRC or ~/.xprofile. Add the following to the most front-end comments of the above file (if you are unsure which file to use, you can add it)
export LANG=zh_CN.UTF-8export LANGUAGE=zh_CN:en_USexport LC_CTYPE=en_US.UTF-8
If you want to put this three lines in ~/.xinitrc, be careful to place them before the exec _example_wm_or_de_ line
Install fonts
Input
# pacman -S fcitx fcitx-sunpinyin
FCITX is a GPL-published input Method platform, Fcitx-sunpinyin is a good effect of Chinese input. It is also necessary to include in the .xinitrc
file:
export GTK_IM_MODULE=fcitxexport QT_IM_MODULE=fcitxexport XMODIFIERS="@im=fcitx"fictx &
If you can't switch the Chinese input method in Firefox, you can follow the fctix -diagnose
prompts to troubleshoot the error.
File Manager
# pacman -S thunar
A simple, lightweight system to this basic configuration, you can see in the top of the memory occupancy rate of less than 15%. Richer functionality also requires the installation of a familiar application.
In the next article will be more extensive common software installation, configuration introduction.
4-5-archlinux