arch dual boot (UEFI) === change screen size (when grub selection) === ``` video=1600x900 ``` change font size --- ```shell # setfont ter-i16n # setfont ter-i18n # setfont ter-i24n # setfont ter-i32n ``` verify the computer support UEFI --- ```shell # ls /sys/firmware/efi/efivars ``` if something is printed, you are good check network connection --- > use DHCP FTW ```shell # curl google.com ``` sync system clock via NTP --- ```shell # timedatectl set-ntp true ``` then check time ```shell # timedatectl status ``` disk partition --- - check disk ```shell # fdisk -l ``` - use fdisk to deal with partition ```shell # fdisk <disk> e.g. # fdisk /dev/sda ``` - format partition ```shell # mkfs.fat -F32 /dev/sda1 # mkswap /dev/sda2 # swapon /dev/sda2 # mkfs.ext4 /dev/sda3 ``` - check format ```shell # lsblk -f ``` mount --- ``` # mount /dev/sda3 /mnt # mkdir -p /mnt/boot/efi # mount /dev/sda1 /mnt/boot/efi ``` (Optional) Enable pacman's Parallel Downloads --- - edit `/etc/pacman.conf` ```diff CheckSpace -#VerbosePkgLists -#ParallelDownloads = 5 +VerbosePkgLists +ParallelDownloads = 10 ``` install basic package --- ```shell # pacstrap /mnt base linux linux-firmware vim ``` fstab --- ```shell # genfstab -U /mnt >> /mnt/etc/fstab ``` chroot --- ```shell # arch-chroot /mnt ``` (Optional) Enable pacman's Parallel Downloads --- - edit `/etc/pacman.conf` ```diff CheckSpace -#VerbosePkgLists -#ParallelDownloads = 5 +VerbosePkgLists +ParallelDownloads = 10 ``` timezone --- ```shell # ln -sf /usr/share/zoneinfo/Asia/Taipei /etc/localtime # hwclock --systohc ``` locale --- - edit `/etc/locale.gen` ```diff -#en_US.UTF-8 UTF-8 +en_US.UTF-8 UTF-8 ``` ```shell # locale-gen ``` - edit `/etc/locale.conf` ```diff +LANG=en_US.UTF-8 ``` - save and quit host --- - edit `/etc/hostname` (change `myHostname` to whatever you want, e.g. `jonzArch`) ``` myHostname ``` - edit `/etc/hosts` (change `myHostname` to match `/etc/hostname`) ``` 127.0.0.1 localhost ::1 localhost 127.0.1.1 myHostname.localdomain myHostname ``` add user --- ```shell # useradd -G wheel,audio,video -m jonz94 # passwd jonz94 ``` sudo --- - install `sudo` or `base-devel` ```shell # pacman -Syu sudo or # pacman -Syu base-devel ``` - use `visudo` to comment out this line: ```diff - # %wheel ALL=(ALL) ALL + %wheel ALL=(ALL) ALL ``` network manager --- - install ```shell # pacman -Syu networkmanager ``` - enable service ```shell # systemctl enable NetworkManager ``` gnome --- - install ```shell # pacman -Syu xorg gnome ``` - enable gdm ```shell # systemctl enable gdm ``` grub --- ```shell # pacman -Syu grub efibootmgr os-prober # lsblk -f # grub-install --target=x86_64-efi \ --efi-directory=/boot/efi \ --bootloader-id=GRUB \ /dev/sda1 # grub-mkconfig -o /boot/grub/grub.cfg ``` :::info If you dual-boot with Windows, sometimes Windows will not show up after first reboot. The solution is login into Linux, and then run `sudo grub-mkconfig -o /boot/grub/grub.cfg` command again. ::: pppoe --- - install `rp-pppoe` exit, umount, reboot --- :::warning After reboot, you may want to go into BIOS to check the order of boot menu. GRUB should be the first one in the order. :::
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up