boot loader
The boot loader is responsible for loading the kernel and initial ramdisk before initiating the boot process.
Image boot
Boot from arch installation image
Set Kernel Mode nomodeset
Since screen blackout could happen without this.
https://bbs.archlinux.org/viewtopic.php?id=244609
To avoid black screen, nomodeset has to be set.
https://wiki.archlinux.org/index.php/Systemd-boot#Kernel_parameters_editor_with_password_protection
Hot to set nomodeset
https://wiki.archlinux.org/index.php/kernel_mode_setting#Disabling_modesetting
Partition disk
check current partition
gdisk -l /dev/nvme0n1
partition swap disk
we allocate 8GB for swap
gdisk /dev/nvme0n1
format swap
mkswap /dev/nvme0n1p6
swapon /dev/nvme0n1p6
check swap is on
free -m
format /
gdisk /dev/nvme0n1
allocate rest of disk for linux system
format disk
mkfs.ext4 -L "Arch Linux" /dev/nvme0n1p7
since last time I got black screen after mounted partition and in the middle of installation process, I format disk again
mount the disk
mount /dev/nvme0n1p7 /mnt
Setup network
Wireless network setup
- show network cards
ip link
- setup netctl config
ls /etc/netctl
cp /etc/netctl/examples/wireless-wpa /etc/netctl
- Edit copied config
netctl start wireless-wpa
- check network is connected
ping -c 3 google.com
Install arch linux base
pacstrap /mnt base
mount efi partition
mkdir /mnt/boot/efi
mount /dev/nvme0n1p2 /mnt/boot/efi
generate fstab
# genfstab -U /mnt >> /mnt/etc/fstab
chroot
arch-chroot /mnt
change password
passwd root
set timezone
set locale
set network
hostname: y4suyuki-razer-arch
127.0.0.1 localhost
::1 localhost
127.0.0.1 y4suyuki-razer-arch.localdomain y4suyuki-razer-arch
https://wiki.archlinux.org/index.php/Network_configuration
install bootloader
install grub
install intel-ucode
pacman -Syu intel-ucode
pacman -Syu grub efibootmgr
grub-install --target=x86_64-efi --efi-directory=boot/efi --bootloader-id=GRUBb
grub-mkconfig -o /boot/grub/grub.cfg
reboot
After Installation
network
Man! I forgot to install wpa_supplicant so I can use wifi with netctl
swapon /dev/nvme0n1p6
mount /dev/nvme0n1p7 /mnt
mount /dev/nvme0n1p2 /mnt/boot/efi
arch-chroot /mnt
pacman -Syu wpa_supplicant
umount -R /mnt
reboot
Now, I can use wifi with netctl
Desktop Environtment
Display Manager
I choose LightDM
pacman -Syu lightdm lightdm-gtk-greeter
systemctl enable lightdm
LightDM failed on start. I don’t know why.
Switch to gdm
pacman -Syu gdm
systemctl enable gdm
Desktop Environment
pacman -Syu xfce4
General recommendation
Written with StackEdit.
0 件のコメント:
コメントを投稿