Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:archlinux:install [2021/09/24 15:47] – [from live antergos ISO] scipio | tips:archlinux:install [2022/10/03 12:23] (current) – [from archlinux iso] sscipioni | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== from archlinux iso ===== | ===== from archlinux iso ===== | ||
- | * [[https:// | + | install on archiso zfs system from https:// |
+ | < | ||
+ | curl -s https:// | ||
+ | </ | ||
+ | ===== ext4 ===== | ||
+ | |||
+ | |||
+ | create partition | ||
< | < | ||
- | systemctl enable dhcpd | + | DISK=ata-SSDPR-CX400-256-G2_GY3042305 |
+ | sgdisk --clear -g $DISK | ||
+ | |||
+ | sgdisk | ||
+ | parted $DISK set 3 bios_grub on | ||
+ | sgdisk | ||
</ | </ | ||
- | install on archiso zfs system from https:// | + | format |
- | < | + | < |
- | curl -s https:// | + | mkfs.ext4 |
</ | </ | ||
+ | mount | ||
+ | < | ||
+ | mount $DISK-part1 /mnt | ||
+ | </ | ||
+ | |||
+ | install arch | ||
+ | < | ||
+ | pacstrap /mnt base linux-lts linux-firmware | ||
+ | genfstab -U /mnt >> / | ||
+ | </ | ||
+ | follow https:// | ||
==== ZFS ==== | ==== ZFS ==== | ||
Line 66: | Line 89: | ||
zfs mount rpool/ | zfs mount rpool/ | ||
zfs create -o setuid=off rpool/home | zfs create -o setuid=off rpool/home | ||
+ | |||
+ | zpool set bootfs=rpool/ | ||
</ | </ | ||
Line 86: | Line 111: | ||
- | ===== from existing linux ===== | ||
- | |||
- | * https:// | ||
- | * https:// | ||
- | * https:// | ||
- | |||
- | ==== base ZFS ==== | ||
- | |||
- | |||
- | < | ||
- | cd /tmp | ||
- | wget https:// | ||
- | sudo install -m 755 arch-bootstrap.sh / | ||
- | </ | ||
- | |||
- | < | ||
- | zfs create rpool/ | ||
- | zfs set atime=off rpool | ||
- | zfs set relatime=on rpool | ||
- | zfs set mountpoint=/ | ||
- | |||
- | arch-bootstrap /arch | ||
- | |||
- | [ -f / | ||
- | mkdir -p / | ||
- | cp / | ||
- | </ | ||
- | |||
- | < | ||
- | cd /arch | ||
- | mount -t proc none proc | ||
- | mount -t sysfs none sys | ||
- | mount -o bind /dev dev | ||
- | mount -o bind /dev/pts dev/pts | ||
- | cp -L / | ||
- | </ | ||
- | |||
- | syncro packages and install base | ||
- | < | ||
- | chroot . bash | ||
- | </ | ||
===== Install system ===== | ===== Install system ===== | ||
Line 146: | Line 130: | ||
pacman-key --lsign-key F75D9D76 | pacman-key --lsign-key F75D9D76 | ||
pacman -Syyu | pacman -Syyu | ||
- | pacman --noconfirm -S zfs-linux | + | pacman --noconfirm -S linux-lts linux-lts-headers linux-firmware |
+ | pacman --noconfirm -S zfs-dkms | ||
systemctl enable zfs.target | systemctl enable zfs.target | ||
systemctl enable zfs-import-cache | systemctl enable zfs-import-cache | ||
Line 177: | Line 162: | ||
regenerate initram | regenerate initram | ||
< | < | ||
- | mkinitcpio -p linux | + | mkinitcpio -p linux-lts |
</ | </ | ||
Line 183: | Line 168: | ||
< | < | ||
pacman -S grub os-prober | pacman -S grub os-prober | ||
- | grub-install --target=i386-pc /dev/sda | + | ZPOOL_VDEV_NAME_PATH=1 |
ZPOOL_VDEV_NAME_PATH=1 grub-mkconfig -o / | ZPOOL_VDEV_NAME_PATH=1 grub-mkconfig -o / | ||
</ | </ | ||
Line 232: | Line 217: | ||
< | < | ||
- | pacman -S gnome gnome-extra gnome-tweak-tool chrome-gnome-shell | + | pacman -S gnome gpaste network-manager-applet |
systemctl enable NetworkManager.service | systemctl enable NetworkManager.service | ||
systemctl enable gdm | systemctl enable gdm | ||
Line 239: | Line 224: | ||
nvidia | nvidia | ||
< | < | ||
- | pacman -S nvidia | + | pacman -S nvidia-dmks |
</ | </ | ||
others | others | ||
< | < | ||
- | pacman -S zsh rsync openssh | + | pacman -S fish rsync openssh |
pacman -S libreoffice-fresh-it | pacman -S libreoffice-fresh-it | ||
</ | </ | ||
Line 250: | Line 235: | ||
< | < | ||
+ | exit | ||
mount | grep -v zfs | tac | awk '/ | mount | grep -v zfs | tac | awk '/ | ||
zpool export rpool | zpool export rpool | ||
reboot | reboot | ||
</ | </ |