Installing the ArchLinux system

Source: Internet
Author: User
Tags locale

#进入安装界面, create a partition
Fdisk/dev/sda

#格式化分区
Mkfs.ext4/dev/sda1

Under #挂载分区到/mnt
Mount/dev/sda1/mnt

#启动dhcp, get the IP address, and then ping Baidu can pass, the rear installation system need to network
Dhcpcd
Ping baidu.com


#配置安装的源
Echo-e ' Server = http://mirrors.163.com/archlinux/$repo/os/$arch ' >/etc/pacman.d/mirrorlist

#刷新源
Pacman-syy

Under #开始安装系统到/mnt
PACSTRAP/MNT Base Base-devel

#把分区信息写到文件中
Genfstab-u-p/mnt >>/mnt/etc/fstab

#查看分区信息是否正确
Cat/mnt/etc/fstab

#配置系统
Arch-chroot/mnt/bin/bash

#配置locale
Echo-e ' en_US. UTF-8 UTF-8\NZH_CN. UTF-8 UTF-8\NZH_TW. UTF-8 UTF-8 ' >/etc/locale.gen

#生成locale信息
Locale-gen

#创建locale. conf
Echo ' Lang=en_us. UTF-8 ' >/etc/locale.conf


#设置时区
Ln-s/usr/share/zoneinfo/asia/shanghai/etc/localtime

#设置硬件时间
Hwclock--SYSTOHC--UTC

#设置主机名, ArchLinux is your host name.
echo ArchLinux >/etc/hostname

#安装grub
#双系统的用户需要安装os-prober
Pacman-s Grub Os-prober Grub-bios
Grub-install--target=i386-pc--RECHECK/DEV/SDA
Grub-mkconfig-o/boot/grub/grub.cfg
#如果这里不能把Win系统的引导加入grub the. cfg file, and then use Grub-mkconfig-o after rebooting to the ArchLinux system/boot/grub/ Grub.cfg, so that the boot of the win system was successfully added to the Grub.cfg file.


#退出arch-chroot, and uninstall/mnt, and finally restart

Exit

Umount/mnt

Reboot


#第一次进入系统直接输入root即可
#启动dhcpcd服务, get the IP address
Dhcpcd
Systemctl Enable DHCPCD

#安装sshd服务
Pacman-s OpenSSH
Systemctl start sshd
Systemctl Enable sshd

#bash智能补齐, very powerful.
Pacman-s bash-completion

#安装sudo权限管理, and authorized to ordinary users
Pacman-s sudo
Useradd-m Xiaomo
passwd Xiaomo
Sed-i '/^root/a Xiaomo all= (All) Nopasswd:all '/etc/sudoers


#安装声卡驱动
Pacman-s alsa-utils

#安装显卡驱动, dual graphics cards are installed on all two video cards
#如果你的显卡是NVIDIA显卡驱动
Pacman-s Xf86-video-nouveau

#这个显卡驱动是通用的驱动
Pacman-s Xf86-video-vesa

#如果你的显卡是Intel显卡驱动
Pacman-s Xf86-video-intel

#安装X窗口服务, install the desktop environment prerequisites
Pacman-s xorg-server xorg-server-utils xorg-xinit xorg-utils

#3D加速支持
Pacman-s Mesa

#笔记本触摸板, if you need a touchpad, you can choose to install
Pacman-s Xf86-input-synaptics


#安装图形界面, graphical interface with gnome/kde/xfce4/lxde/cinnamon/enlightenment and so on

Pacman-s Gnome

Systemctl Enable GDM


#安装办公软件office, not necessary.
Pacman-s LIBREOFFICE-FRESH-ZH-CN


#安装图像处理软件, equivalent to the PS tool under Windows, powerful
Pacman-s GIMP

#安装视频播放器
Pacman-s VLC


#安装virtualbox, not necessary.
Pacman-s VirtualBox virtualbox-host-modules Qt4
#加载模块, if you do not want to load the module every time, can be written in the ~/.BASHRC file
echo "Modprobe vboxdrv" >> ~/.BASHRC
echo "Rcvboxdrv" >> ~/.BASHRC

#安装输入法, not necessary.
Pacman-s FCITX Fcitx-googlepinyin Fcitx-configtool


#安装常用软件
Pacman-s xarchiver Firefox firefox-i18n-zh-cn firefox-adblock-plus flashplugin ntfs-3g gvim

#firefox是火狐浏览器


#安装常用字体
Pacman-s Ttf-dejavu Wqy-zenhei Wqy-microhei

#至此, System installation complete, restart the machine
Reboot




Pacman Command Detailed:
#安装和升级
Pacman-s package_name

#如果软件有多个版本, you can select one of the
Pacman-s Extra/package_name
Pacman-s Extra1/package1_name

#删除, the configuration file is backed up
Pacman-r package_name

#删除, the configuration file is not backed up
Pacman-rn package_name

#删除, resolving dependencies
PACMAN-RSN package_name

#升级系统
Pacman-syu

#查看包数据库
Pacman-ss package_name

#查询已安装的软件包
Pacman-qs package_name

#获取软件包更详细的信息
Pacman-si package_name
Pacman-qi package_name

#获取软件包的文件列表
PACMAN-QL package_name #相当于rpm-ql package_name

#查询某个文件属于哪个软件
Pacman-qo package_name #相当于rpm-qf/path/to/file_name

#列出所有不再作为依赖的软件包
Pacman-qdt

#查询本地软件包数据库
Pacman-q--help

#查询远程软件包数据库
Pacman-s--help

#下载软件但安装
PACMAN-SW package_name

#安装一个本地软件, not installed from source
Pacman-u/path/to/package_name

#安装一个远端软件, not installed from source
Pacman-u Http://url/package_name

#清理当前未被安装软件包的缓存,/var/cache/pacman/pkg
Pacman-sc

#完全清理包缓存
Pacman-scc

ArchLinux's repository includes:
Core-Core Package
extra-Other common software
community-community packages, such as MySQL
testing-is in the beta phase and has not yet formally joined the source package. Usually the software version is relatively new, but not very stable
release-packages that have been released
unstable-Informal packages that may include previous versions of software or test software

This article is from "Little Madness" blog, please make sure to keep this source http://xiaofengmo.blog.51cto.com/10116365/1734244

Installing the ArchLinux system

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.