lk/distros/arch/basic-install.md

119 lines
1.9 KiB
Markdown
Raw Normal View History

2020-01-02 00:04:35 +00:00
Keyboard layout changed.
> ls /usr/share/kbd/keymaps/**/*.map.gz
> loadkeys uk.map.gz
Check if boot mode is UEFI
> ls /sys/firmware/efi/efivars
Without efivars, the system must boot with BIOS.
# Check network's up
> ping archlinux.org
Set system clock properly
> timedatectl set-ntp true
Check disks
> lsblk
Make partition
2021-05-20 04:06:50 +00:00
> parted -s /dev/sda mkpart primary ext2 2512 100%
2020-01-02 00:04:35 +00:00
2021-05-20 04:06:50 +00:00
> parted -s /dev/sda set 1 boot on
2020-01-02 00:04:35 +00:00
Use pacstrap to get the base install.
> mount /dev/sda3 /mnt/
> mkdir /mnt/home
> mkdir /mnt/boot
> mount /dev/sda3 /mnt/home
> mount /dev/sda1 /mnt/boot
> pacstrap /mnt base base-devel vim linux linux-firmware
2020-01-02 00:04:35 +00:00
Make fstab notes for new system.
> genfstab -U /mnt >> /mnt/etc/fstab
> arch-chroot /mnt
> echo 'en_GB.UTF-8' > /etc/default/locale
> pacman -Sy networkmanager grub
For legacy:
2020-01-02 00:04:35 +00:00
> grub-install --target=i386-pc /dev/sda
For EFI:
> sudo pacman -S efibootmgr
> mkdir /boot/efi
> grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --remmovable
2020-01-02 00:04:35 +00:00
> grub-mkconfig -o /boot/grub/grub.cfg
set local time
> ln -sf /usr/share/zoneinfo/Europe/Belgrade /etc/localtime
Find the desired locale's and uncomment them.
> vi /etc/locale.gen
> locale-gen
Make your keyboard changes permenent with:
> vi /etc/vconsole.conf
Then set: `KEYMAP=uk.map.gz`
2020-01-02 00:04:35 +00:00
unsure about this bit - is this name just for the loadkeys function?
Make a hostname
2020-01-02 00:04:35 +00:00
> echo pc > /etc/hostname
2020-01-02 00:04:35 +00:00
Set hostnames for network, or at least your own.
> vi /etc/hosts
# This should have the following, at least:
127.0.0.1 localhost
::1 localhost
127.0.1.1 [hostname].localdomain [hostname]
If the system has a permanent IP address, it should be used instead of localhost.
Ping some sites to make sure the network's working
> passwd
> exit
> umount -R /mnt
Remove retarded beep sound:
> sudo echo "blacklist pcspkr" >> /etc/modprobe.d/nobeep.conf
> rmmod pcspkr
# Fonts
sudo pacman -S ttf-hack ttf-font-awesome ttf-fira-mono