Arch Linux Installation Summary

Source: Internet
Author: User
Tags locale arch linux

The purpose of this essay:

This is my re-installation today, I think every time to see others to copy, too troublesome, each time to solve some of their problems, and can not be recorded in a timely manner, resulting in a disorderly search every time, it is certainly faster than the first time to start searching, but still a waste of time, so I decided to write essays, Keep a record of my own solved problems. In the article, a lot of people are learning from others, and then solve my own problems. Every time I install the arch Linux, different computers, the same computer, will encounter different problems, even the same computer. Some of these are configuration files, some of which are caused by other factors. Documenting my own solutions, my original intention was to quickly solve the problems that have been solved for me. So, if you see in the post which question is similar to your situation, please contact me by email. We explore together. [Email protected].

In the operation of the parted, for the disk with important data, must be careful, I was too careless, resulting in important data loss. Want to cry without tears. My heart is not only stuffed, cool a big half. A lesson to learn.

As for I mistakenly deleted the reason: is in the operation of a hard disk, accidentally put the above partition table, 10M about the size of a is not my own division out of the area to be deleted (exactly, I do not know that is not a partition table, I just deleted the area after my data, immediately in the parted, There is no display on Fdisk). Spent an all-nighter, still did not find back. Count it, life has to go on. I don't know the exact reason, if you know the reason, please tell me under the rumor

Update record:

2017-04-16: The first day to update, write down the installation process to the command, from the top to the bottom of the process, is the approximate sequence of installation time, is almost no explanation, very good analysis, need to look on the wiki. Or a lot of people interested, I sent another installation tutorial. This is not considered a tutorial. The second part is when I installed today, I always think about the software that solves my problem is called, so I write down the software I used

Current directory:

The purpose of the essay: To describe why I was writing this thing.

Updated records: Describe what I have added to the day.

Installation process: Log the approximate command of the installation process

Common software: Record some software that solves my problem

Installation process:

Reference pages:

https://bbs.archlinuxcn.org/viewtopic.php?id=1037

I recorded the commands I would normally use: refer to the various web pages.

Sync Time:

# Timedatectl SET-NTP True

Selecting a source for China and then updating it will be much faster:

# sed-i '/score/{/china/!{ n;s/^/#/}} '/etc/pacman.d/mirrorlist# pacman-syy

Partition command:

I divide the efi,/and the/home,/ to be bigger, because I own to use to look at the code, the LXR index will be very big, will surpass 50g# parted/dev/SDX (parted) Mklebel Gptmkpart primary Start endmkfs.vfat-f32/dev/sdxmkfs.ext4/dev/sdxmkswap/dev/sdxswapon/dev/sdxmount/dev/sdx <mount_ point>     

The original will be more detailed explanation:

A hanging example, I often get mixed up with EFI's location:

# Mount/dev/sda2/mnt    # mount Root # mkdir/mnt/home    # Create/Home mount point # mount/dev/sda3/mnt/home    # Mount/  home# mkdir-p/mnt/boot/EFI    # Create UEFI mount point # mount/dev/sda1/mnt/boot/efi    # mount UEFI partition   

Install the base system:

# pacstrap-i/MNT Base Base-devel

Generate Fstab:

# Genfstab-u < root mount points > >> < root mount points >/etc/fstab Be sure to check the # Cat < root mount point >/etc/fstab

Configure the base system:

# Arch-chroot < root mount points >/bin/bash

Configure Local:

# nano/etc/Locale.gen    # Anti-annotation required locale# locale-Gen    # build locale# echo lang=<locale>  >/etc/ LOCALE.CONF # Setting the default locale 

To configure the time zone:

This sentence is the configuration of the Chinese area # ln-s/usr/share/zoneinfo/asia/shanghai/etc/localtime

Hardware time Configuration:

(recommended) UTC time (just someone recommended, I don't know what to do this time): # Hwclock--SYSTOHC--UTC

Configure host Name:

# Echo < host name > >/etc/hostname# nano/etc/hosts    # Fill in the host name

What to look like after the configuration is complete:

# cat/etc/hostname< Host name ># cat/etc/hosts#<ip-address> :: 1   localhost.localdomain localhost < host name > 

Before the network is self-good, but this reload, found no, opened this just line

# Systemctl start DHCPCD    # connection # # Systemctl enable DHCPCD to connect automatically

To set the root password:

# passwd

To install the bootloader:

# Pacman-S dosfstools grub efibootmgr# grub-install--target=x86_64-efi--efi-directory=<efi partition mount point >-- Bootloader-id=arch_grub--recheck# grub-mkconfig-o/boot/grub/grub.cfg 

To exit the restart:

# Exit    # Return to installation Environment # Umount-r </mount point >    # Uninstall new Partition # reboot    # reboot # # Remember to remove the installation media

To create your own user:

# useradd-m-G users-s/bin/bash < username ># # This command creates a user named < user name >, specifies that the login shell is bash, the owning primary user group users, and the user folder is located in the/ho me/< User name >. # passwd < username >   # set Password 

Install video driver: Need more information, is need to browse the wiki, or I quoted the URL

Pacman-s xf86-video-Intel pacman-s nvidia

Sound card drivers are common, but my desktop does not, so I need to install them.

Pacman-s alsa-utils

Install xorg (as to what xorg is, need to understand, in fact, I do not understand) only know that xfce4 these desktops, is the need to rely on this, it is to use the graphics driver to display

# pacman-s Xorg-server xorg-server-utils    # install xorg server# pacman-s xf86-input-synaptics    # Optional, touchpad support

Install Chinese fonts (additional details are available later):

# pacman-s Ttf-dejavu Wqy-microhei

Installation Window System: The Xfce4, I personally like the reason, not fancy, fast enough. Multi-window, more open cards

Pacman-s Xfce4 xfce4-goodies

Install application software such as Chinese input, according to the following situation, use Pacman to install

After the installation of various issues:

Common software:

Reference page: http://blog.chinaunix.net/uid-26495963-id-3309581.html

Http://blog.sina.com.cn/s/blog_b3ef80f90101f5gz.html

Decompression: Unzip, Unrar, File-roller, P7zip, Unace, Lrzip,

Input method: Fcitx-im, Fcitx-configtool, Fcitx-libpinyin

Fonts: Wqy-microhei, Ttf-arphic-ukai, ttf-arphic-uming

Desktop environment: Xfce4 xfce4-goodies

Code management: Git

Browser: Chromium Pepper-flash

PDF Browser: okular

No sound:

To add a group:usermod -aG audio <user>

The main is the default sound card configuration force, you need to add the following configuration:

Add the following configuration to the system-level/etc/asound.conf or user-level ~/.ASOUNDRC file. If the file does not exist, you can create it manually. Each of these IDs, please adjust according to the actual situation:

defaults.pcm.card 1defaults.pcm.device 0defaults.ctl.card 1

Reference pages: 1190000002918394

Why is it not possible to use shutdown and restart under Xfce4?

Because there is no root privilege, you need to add the following under Sudoers:

Username localhost = nopasswd:/usr/lib/xfsm-shutdown-helper

Username localhost = nopasswd:/usr/bash

Give the permissions of these commands to the

Lxdm why not be able to start Xfce4:

You need to add the. Xprofil under your own user folder to add Exec Startxfce4 to the file

Using SSH:

Pacman-s OpenSSH

Systemctl start sshd

How do I automatically hang the MTP device?

Pacman-s GVFS-MTP

Two graphics cards, two monitors, how to solve?

Xrandr--setprovideroutputsource 1 0

Xrandr--auto

Xrandr--output--left-of VGA-0 vga-1-1

Arch Linux Installation Summary

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.