Professional Documents
Culture Documents
Update existing software Remove unwanted software Updating the system Update package list Update system Searching for packages Search by package name Search by pattern Search by file name List installed packages Configuring access to software repositories List repositories Add repository Remove repository
pacman Arch
pacman -Ss pkg pacman -Ss pattern pacman -Qo file pacman -Q
Ci t c bn.
1. # wifi-menu (th: ping c 3 google.com.vn) 2. # cfdisk 3. # mkfs.ext4 /dev/sda? & # mkswap /dev/sda?? # swapon /dev/sda?? 4. Kim tra: # lsblk /dev/sda 5. # mkdir /mnt/home # mount /dev/sda? /mnt # mount /dev/sda??? /mnt/home 6. # nano /etc/pacman.d/mirrorlist 7. # pacstrap -i /mnt base base-devel 8. # genfstab -U -p /mnt >> /mnt/etc/fstab ( kim tra: # nano /mnt/etc/fstab) 9. # arch-chroot /mnt 10. # nano /etc/locale.gen # locale-gen
# echo LANG=en_US.UTF-8 > /etc/locale.conf # export LANG=en_US.UTF-8 11. # ln s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime # hwclock w u 12. # nano /etc/pacman.conf b comment (~ b: #) trc dng: [multilib] Include = /etc/pacman.d/mirrorlist sau : # pacman Sy 13. # echo X200 > /etc/hostname Tip theo: # nano /etc/hosts
# nano /etc/hosts # # /etc/hosts: static lookup table for host names # #<ip-address> 127.0.0.1 ::1 # End of file <hostname.domain.org> localhost.localdomain localhost.localdomain <hostname> localhost localhost X200
14. Ci t wifi-menu: # pacman S dialog wpa_supplicant 15. (B qua mkinitcpio khi to bin mi trng) 16. # passwd 17. To user (tham kho: https://wiki.archlinux.org/index.php/Users_and_groups#User_management) # useradd -m -g users -G wheel,storage,power -s /bin/bash nhimaku # passwd nhimaku Nu c sudo th: # EDITOR=nano visudo cp quyn cho group wheel, uncomment: %wheel ALL=(ALL) ALL (cha c th ci ^^) 18. # pacman -S grub-bios # grub-install --target=i386-pc --recheck /dev/sda Ci thm gi automatically search for other operating systems ^^
# pacman -S os-prober