arch linux: installation updated

master
tiyn 2 years ago
parent f6c361ac47
commit bdc7bdffbf

@ -101,31 +101,18 @@ Now the created filesystems will be mounted for the installation.
- `mount /dev/sda1 /mnt/boot` - Mount EFI partition - `mount /dev/sda1 /mnt/boot` - Mount EFI partition
- `swapon /dev/mapper/main-swap` - Mounting swap partition - `swapon /dev/mapper/main-swap` - Mounting swap partition
## 6. Prepare base installation (optional) ## 6. Starting base installation
In this step the country specific mirrorserver for the installation will be configured.
This will improve the download speed.
- `cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak` - Create a backup
of mirrorlist
- `grep -E -A 1 ".*Germany.*$" /etc/pacman.d/mirrorlist.bak | sed '/--/d' > /etc/pacman.d/mirrorlist`
- Example command to only use _German_ mirrors
- `cat /etc/pacman.d/mirrorlist` - Check if the file is to your liking. If it is
not, you can just recover by using `mirrorlist.bak`
## 7. Starting base installation
Now you need a working internet connection. Now you need a working internet connection.
Plug in your lan cable or use `wifi-menu` to get a wireless connection. Plug in your lan cable or use `wifi-menu` to get a wireless connection.
- `pacstrap /mnt base base-devel dosfstools gptfdisk lvm2 linux linux-firmware vim networkmanager` - `pacstrap /mnt base base-devel dosfstools gptfdisk lvm2 linux linux-firmware vim networkmanager`
- Installation of main system with needed tools
- `genfstab -Up /mnt > /mnt/etc/fstab` - creation of fstab - `genfstab -Up /mnt > /mnt/etc/fstab` - creation of fstab
- `arch-chroot /mnt` - Switch into the newly installed system - `arch-chroot /mnt` - Switch into the newly installed system
- `echo ArchLinux > /etc/hostname` - Assign hostname. `ArchLinux` can be changed - `echo ArchLinux > /etc/hostname` - Assign hostname. `ArchLinux` can be changed
for any name of your preference. for any name of your preference.
## 8. Set Region and Language ## 7. Set Region and Language
- `echo LANG=en\_US.UTF-8 > /etc/locale.conf` - Assign system Language to be - `echo LANG=en\_US.UTF-8 > /etc/locale.conf` - Assign system Language to be
english (you can use other languages, look into the `/etc/locale.gen` for a list of all available languages) english (you can use other languages, look into the `/etc/locale.gen` for a list of all available languages)
@ -139,14 +126,14 @@ en_US.UTF-8 UTF-8
- `locale-gen` - Generate languages - `locale-gen` - Generate languages
- `echo KEYMAP=de-latin1-nodeadkeys > /etc/vconsole.conf` - set the keymap - `echo KEYMAP=de-latin1-nodeadkeys > /etc/vconsole.conf` - set the keymap
- `cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime` - set your timezone - `ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime` - set your timezone
(select the first file accordingly to your location) (select the first file accordingly to your location)
- `date +%Y%m%d -s "<yyyymmdd>"` - set the current date (change - `date +%Y%m%d -s "<yyyymmdd>"` - set the current date (change
values accordingly) values accordingly)
- `date +%T -s "<hh:mm:ss>"` - set the current time (change values accordingly) - `date +%T -s "<hh:mm:ss>"` - set the current time (change values accordingly)
- `hwclock -w` - sync the current date and time with the hardware clock - `hwclock -w` - sync the current date and time with the hardware clock
## 9. Configure and create kernel-image ## 8. Configure and create kernel-image
- `vim /etc/mkinitcpio.conf` - `vim /etc/mkinitcpio.conf`
@ -157,12 +144,10 @@ en_US.UTF-8 UTF-8
- `mkinitcpio -p linux` - generate Kernel-Image - `mkinitcpio -p linux` - generate Kernel-Image
## 10. Install and configure UEFI bootloader ## 9. Install and configure UEFI bootloader
- `bootctl install` - Prepare bootloader - `bootctl install` - Prepare bootloader
- `ls -l /dev/disk/by-uuid` - find out the UUID - `ls -l /dev/disk/by-uuid` - find out the UUID of your root partition
- `lsblk -no UUID /dev/sda2 | head -n1 > /boot/loader/entries/arch.conf` - print
the UUID in your configuration file
- `vim /boot/loader/entries/arch.conf` - Create configuration - `vim /boot/loader/entries/arch.conf` - Create configuration
- Change the config to look similar to this: - Change the config to look similar to this:
@ -174,8 +159,8 @@ en_US.UTF-8 UTF-8
options cryptdevice=UUID=<enter your uuid here>:lvm:allow-discards root=/dev/mapper/main-root resume=/dev/mapper/main-swap rw quiet options cryptdevice=UUID=<enter your uuid here>:lvm:allow-discards root=/dev/mapper/main-root resume=/dev/mapper/main-swap rw quiet
``` ```
- `cp /boot/loader/entries/arch.conf /boot/loader/entries/arch-fallback.conf` - `cp /boot/loader/entries/arch.conf /boot/loader/entries/arch-fallback.conf` -
- Create a fallback create a fallback
- `vim /boot/loader/loader.conf` - Create loader configuration - `vim /boot/loader/loader.conf` - Create loader configuration
- Insert the following text - Insert the following text
@ -185,12 +170,12 @@ en_US.UTF-8 UTF-8
default arch default arch
``` ```
## 11. Finishing base installation ## 10. Finishing base installation
- `passwd` - set password for the root account - `passwd` - set password for the root account
- `systemctl enable NetworkManager.service` - `systemctl enable NetworkManager.service`
## 12. Finish the setup ## 11. Finish the setup
- `exit` - exit the installed system - `exit` - exit the installed system
- `umount /mnt/{boot,}` - unmount all partitions - `umount /mnt/{boot,}` - unmount all partitions
@ -201,7 +186,7 @@ en_US.UTF-8 UTF-8
If the system is installed in a virtual environment or a system with deactivated If the system is installed in a virtual environment or a system with deactivated
UEFI, don't forget to enable the EFI option, otherwise the system won't boot. UEFI, don't forget to enable the EFI option, otherwise the system won't boot.
## 13. Further steps and graphical environment ## 12. Further steps and graphical environment
Now you can follow the recommended larbs installation script of this wiki Now you can follow the recommended larbs installation script of this wiki
(`curl -o larbs.sh https://raw.githubusercontent.com/tiyn/larbs/master/larbs.sh`) (`curl -o larbs.sh https://raw.githubusercontent.com/tiyn/larbs/master/larbs.sh`)

Loading…
Cancel
Save