This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tips:archlinux:install [2021/09/24 15:46] – [from archlinux 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 |
| </ | </ | ||
| - | ===== create arch zfs live ISO ===== | ||
| + | mount | ||
| < | < | ||
| - | yay archiso | + | mount $DISK-part1 /mnt |
| - | + | ||
| - | cd /tmp | + | |
| - | git clone https:// | + | |
| - | ./build.sh -v | + | |
| </ | </ | ||
| - | iso | + | install arch |
| < | < | ||
| + | pacstrap /mnt base linux-lts linux-firmware | ||
| + | genfstab -U /mnt >> / | ||
| </ | </ | ||
| - | + | follow https:// | |
| - | ===== from live antergos ISO ===== | + | |
| ==== ZFS ==== | ==== ZFS ==== | ||
| Line 81: | 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 101: | 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 161: | 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 192: | Line 162: | ||
| regenerate initram | regenerate initram | ||
| < | < | ||
| - | mkinitcpio -p linux | + | mkinitcpio -p linux-lts |
| </ | </ | ||
| Line 198: | 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 247: | 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 254: | 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 265: | Line 235: | ||
| < | < | ||
| + | exit | ||
| mount | grep -v zfs | tac | awk '/ | mount | grep -v zfs | tac | awk '/ | ||
| zpool export rpool | zpool export rpool | ||
| reboot | reboot | ||
| </ | </ | ||