ArchLinux Toss record and feeling (up)

Source: Internet
Author: User

ArchLinux Toss record and feeling (up)

No more than 10 times Linux, don't say you played Linux.

The first time I heard that ArchLinux was a few weeks ago, the awe of the command-line installation system, the lack of fragmented spare time, and the poor campus network environment gave me no courage and energy to toss.

This time remove Ubuntu, Daoteng up archlinux, not oneself idle egg ache. Mainly, Ubuntu desktop is too bloated, with a kind of Windows feel, can not win convenience, customization is not strong enough. In particular, I now desperately desire:

    1. A window manager like a cool thing to replace the bloated gnome&kde
    2. Re-recognize the solution disk partition
    3. Deep understanding of the main boot sector (MBR), boot loader (bootloader), multiboot grub, boot details
    4. Basic concepts of Xwindow and graphical interface
    5. What is hidden behind the graphical interface during installation

I never knew the concept of a window manager before I touched ArchLinux.

Just as learning a programming language may not be a daily use, but can be more understanding of a way of thinking, after all, a language can be developed, inevitably condensed countless development of wisdom, and solved some practical application problems.

With a learning mentality, after backing up more than 40 g of personal data in Win7, the adventure began.

Basic System Installation

Arcklinux Wiki is the best tutorial

Before starting the installation, I repeated the beginner's guide on the wiki page four or five times and wrote the installation commands for each step on the paper again. The full preparation work aroused my heart to the confidence of success.

This also explains why I can take the archlin idea from germination to check the documentation on to the installation success, only in two days time.

  1. Burning the boot disk with PowerISO
  2. Re-see the chapter of the disk partition, pick up the main partition, extended partition, logical partition concept, familiar with the Fdisk tool
  3. # wifi-menu, connect to a wireless network for download Basic package use
  4. # lsblk -f, view the partition layout, and locate the partition you want to install. This machine, for example,/DEV/SDA8
  5. # mount /dev/sda8 /mnt, mount the partition you want to install to the/MNT location
  6. # vi /etc/pacman.d/mirrorlist, modify the mirror source. Cancel 163 of the mirror source comments (preferably first)
    Server = http://mirrors.163.com//archlinux/ r e p o / o s / Arch
  7. # pacman /mnt base base-devel, install the basic system for the SDA8 partition that is mounted in the/MNT directory. You need to download more than 190 m of packages.
  8. # genfstab -U -p /mnt >> /mnt/etc/fstab, generates a fstab file that configures the partition that the system mounts by default during startup, and can modify the file to change the default mount of the system partition.
  9. # arch-chroot /mnt /bin/bash, enter the new system
  10. Configuration language

    # vi /etc/locale.gen取消掉该文件中的下面几行的朱思en_US.UTF-8zh_CN.UTF-8zh_TW.UTF-8# echo LANG+en.US.UTF-8 > /etc/locale.conf
  11. Configuration time

    # ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime# hwclock --sysytohc --localtime
  12. Configure the Network

    # ip link 查看网络接口,lo代表本地环回,en有线网络(Enther Net),wl无线网络(wireless)以本机为例,eno1为有线。由于是校园网,动态获取ip,所以此步只需执行# systemctl enable [email protected]

    !!! Note that Wi-Fi connection packages are required for wireless networks and there are no wifi-menu programs in the new system

    # pacman -S iw wpa_supplicant dialog wpa_actiond靠iw wpa_supplicant来连网,dialog是用来添加无线网的,靠wap_actiond自动连接
  13. # passwd, set the root password

  14. Configure Bootloader

    # pacman -S grub# grub-install --target=i386-pc --recheck /dev/sda如果需要做双系统,下面一部很重要,下载os-prober识别其他系统# pacman -S os-prober# grus-mkconfig -o /boot/grub/grub.cfg
  15. exit & reboot, exit Chroot and restart, you can remove the U-disk at this time.

Problems and Solutions

There is a problem in the middle of the installation, there is no installation of Wifi-menu. Although the USB drive system is connected to the WiFi, but the new system is not Wifi-menu program, because there is no installation of the relevant package.

The first floating solution is to start again t_t.

Calmness plays a role in key times. Considering that, since the U-disk system can be connected to the WiFi, why not go to the U-Disk system connected to the WiFi supplement installation. So the question comes, presumably you will think, if the direct execution pacman of the command, the package is not installed on the U disk, and the new hard disk system, will still have nothing.

Review the previous steps, why, before there is a mount/dev/sda8 to/mnt process. Simple thinking, you will find that the reason for this is that the U-disk system will be/mnt as the root of the new system, all the commands executed thereafter pacman is to deploy the package on the new system of the hard disk.

Written in the last

Let's look back at the crap I've got in the beginning of the article.

The entire installation process basically answers the five questions I raised at the outset.

The system configuration and basic software installation configuration will be expanded in the next section to be detailed.

ArchLinux Toss record and feeling (up)

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.