Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Partition
- =========
- BIOS ::
- cfdisk
- ---
- /dev/sda1 bootable
- /dev/sda2 swap
- ---
- mkfs.ext4 /dev/sda1
- mkswap /dev/sda2
- swapon /dev/sda2
- UEFI ::
- # Confirm UEFI
- ls /sys/firmware/efi/efivars
- # Get name of disk (example /dev/sda)
- lsblk
- gdisk /dev/sda
- # Press x, z then y to confirm wipe out GPT
- cgdisk /dev/sda
- ---
- Size GUID Name
- 1024MiB EF00 boot
- 6GiB 8200 swap
- default default root
- ---
- mkfs.fat -F32 /dev/sda1
- mkswap /dev/sda2
- swapon /dev/sda2
- mkfs.ext4 /dev/sda3
- Install
- ========
- Internet ::
- # Set up wifi if there is no Ethernet
- wifi-menu
- # Choose server Vietnam
- nano /etc/pacman.d/mirrorlist
- BIOS ::
- mount /dev/sda1 /mnt
- UEFI ::
- mount /dev/sda3 /mnt
- mkdir /mnt/boot
- mount /dev/sda1 /mnt/boot
- Install ::
- pacstrap /mnt base base-devel intel-ucode
- genfstab -U /mnt >> /mnt/etc/fstab
- # Change root into new system
- arch-chroot /mnt /bin/bash
- Configuration
- ==============
- UTF-8 ::
- nano /etc/locale.gen
- ---
- en_US.UTF-8 UTF-8
- ---
- locale-gen
- echo LANG=en_US.UTF-8 > /etc/locale.conf
- Time ::
- ln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
- hwclock --systohc
- timedatectl set-ntp true
- Host name ::
- echo arch-del > /etc/hostname
- Root password ::
- passwd
- User ::
- useradd -m -G wheel -s /bin/bash user
- passwd user
- EDITOR=nano visudo
- ---
- %wheel ALL=(ALL) ALL
- BIOS ::
- pacman -S grub os-prober
- grub-install /dev/sda
- grub-mkconfig -o /boot/grub/grub.cfg
- UEFI ::
- bootctl install
- nano /boot/loader/entries/arch.conf
- ---
- title Arch Linux
- initrd /intel-ucode.img
- linux /vmlinuz-linux
- initrd /initramfs-linux.img
- options root=/dev/sda3 rw quiet loglevel=3
- For connect to Internet, use connman,
- remember to disable netctl and dhcpcd service
- Connman ::
- sudo pacman -S connman wpa_supplicant gnome-keyring
- sudo systemctl enable connman.service
- # Use commands
- connmanctl technologies
- connmanctl disable/enable wifi/ethernet
- connmanctl services
- connmanctl connect ...
- connmanctl tether wifi on/off
- connmanctl tether wifi ssid password
- Reboot ::
- exit
- umount /mnt
- reboot
- Confirm boot successfully :)
- If there is no Internet, boot with USB
- then chroot to install package in new system.
Add Comment
Please, Sign In to add comment