Created
March 23, 2018 15:20
-
-
Save delfer/f80fb9e04a2f5635073d410eee7f0279 to your computer and use it in GitHub Desktop.
Arch install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #disk | |
| fdisk /dev/vda # vda1 512M vda2 .. | |
| vgcreate vg /dev/vda2 | |
| lvcreate vg -l 100%FREE --name rootfs | |
| mkfs.ext4 /dev/vda1 | |
| mkfs.ext4 /dev/mapper/vg-rootfs | |
| mount /dev/mapper/vg-rootfs /mnt | |
| mkdir /mnt/boot | |
| mount /dev/vda1 /mnt | |
| #install base system & chroot to it | |
| pacstrap /mnt base | |
| genfstab -U /mnt >> /mnt/etc/fstab | |
| arch-chroot /mnt | |
| #config lvm2 | |
| vim /etc/mkinitcpio.conf #add lvm2 before filesystems in HOOKS | |
| mkinitcpio -p linux | |
| #config | |
| ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime | |
| hwclock --systohc | |
| vi /etc/locale.gen | |
| ru_RU.UTF-8 UTF-8 | |
| locale-gen | |
| vi /etc/locale.conf | |
| LANG=ru_RU.UTF-8 | |
| vi /etc/vconsole.conf | |
| KEYMAP=ruwin_alt_sh-UTF-8 | |
| FONT="ter-v16n" | |
| vi /etc/hostname | |
| #intel microcode, grub $ i18n | |
| pacman -S intel-ucode | |
| pacman -S grub | |
| pacman -S terminus-font kbd | |
| grub-mkconfig -o /boot/grub/grub.cfg | |
| grub-install /dev/vda | |
| passwd | |
| exit | |
| umount -R /mnt | |
| reboot | |
| #Config lan | |
| vi /etc/systemd/network/wired.network | |
| [Match] | |
| Name=enp0s18 | |
| [Network] | |
| Address=192.168.72.40/26 | |
| Gateway=192.168.72.50 | |
| DNS=192.168.72.50 | |
| DNS=8.8.8.8 | |
| systemctl enable systemd-networkd | |
| systemctl start systemd-networkd | |
| systemctl enable systemd-resolved | |
| systemctl start systemd-resolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment