tips:archlinux:install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips:archlinux:install [2019/04/27 09:04] – [from live antergos ISO] scipiotips:archlinux:install [2022/10/03 12:23] (current) – [from archlinux iso] sscipioni
Line 3: Line 3:
 ===== from archlinux iso ===== ===== from archlinux iso =====
  
-  * [[https://github.com/helmuthdu/aui|script installer]]+install on archiso zfs system from https://github.com/eoli3n/archiso-zfs 
 +<code>  
 +curl -s https://raw.githubusercontent.com/eoli3n/archiso-zfs/master/init bash 
 +</code>
  
 +===== ext4 =====
 +
 +
 +create partition
 <code> <code>
-systemctl enable dhcpd+DISK=ata-SSDPR-CX400-256-G2_GY3042305 
 +sgdisk --clear -g $DISK 
 + 
 +sgdisk     -n3:1M:+512M -t3:EF00 $DISK # boot partition or efi partition 
 +parted $DISK set 3 bios_grub on  
 +sgdisk     -n1:0:0 -t1:8300 $DISK
 </code> </code>
-===== create arch zfs live ISO ===== 
  
 +format
 <code> <code>
-yay archiso+mkfs.ext4 -L ROOT $DISK-part1 
 +</code>
  
-cd /tmp +mount 
-git clone https://github.com/reconquest/archiso-zfs.git +<code> 
-./build.sh -v+mount $DISK-part1 /mnt
 </code> </code>
  
-iso+install arch
 <code> <code>
 +pacstrap /mnt base linux-lts linux-firmware 
 +genfstab -U /mnt >> /mnt/etc/fstab
 </code> </code>
  
- +follow https://wiki.archlinux.org/title/installation_guide
-===== from live antergos ISO =====+
  
 ==== ZFS ==== ==== ZFS ====
Line 76: Line 89:
 zfs mount rpool/ROOT/arch zfs mount rpool/ROOT/arch
 zfs create -o setuid=off rpool/home zfs create -o setuid=off rpool/home
 +
 +zpool set bootfs=rpool/ROOT/arch rpool
 </code> </code>
  
Line 96: Line 111:
  
  
-===== from existing linux ===== 
- 
-  * https://wiki.archlinux.org/index.php/Install_from_existing_Linux#Method_B:_Using_the_LiveCD_image 
-  * https://golem.linux.it/wiki/Installare_Arch_Linux_su_ZFS 
-  * https://ramsdenj.com/2016/06/23/arch-linux-on-zfs-part-2-installation.html (great !!!!) 
- 
-====  base ZFS ==== 
- 
- 
-<code> 
-cd /tmp 
-wget https://github.com/tokland/arch-bootstrap/raw/master/arch-bootstrap.sh 
-sudo install -m 755 arch-bootstrap.sh /usr/local/bin/arch-bootstrap 
-</code> 
- 
-<code> 
-zfs create rpool/ROOT/arch 
-zfs set atime=off rpool 
-zfs set relatime=on rpool 
-zfs set mountpoint=/arch rpool/ROOT/arch 
- 
-arch-bootstrap /arch 
- 
-[ -f /etc/zfs/zpool.cache ] || zpool set cachefile=/etc/zfs/zpool.cache rpool 
-mkdir -p /arch/etc/zfs 
-cp /etc/zfs/zpool.cache /arch/etc/zfs/zpool.cache 
-</code> 
- 
-<code> 
-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 /etc/resolv.conf etc/ 
-</code> 
- 
-syncro packages and install base 
-<code> 
-chroot . bash 
-</code> 
  
 ===== Install system ===== ===== Install system =====
Line 156: 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  intel-ucode 
 +pacman --noconfirm -S zfs-dkms 
 systemctl enable zfs.target systemctl enable zfs.target
 systemctl enable zfs-import-cache systemctl enable zfs-import-cache
Line 187: Line 162:
 regenerate initram regenerate initram
 <code> <code>
-mkinitcpio -p linux+mkinitcpio -p linux-lts
 </code> </code>
  
Line 193: Line 168:
 <code> <code>
 pacman -S grub os-prober pacman -S grub os-prober
-grub-install --target=i386-pc /dev/sda+ZPOOL_VDEV_NAME_PATH=1 grub-install --target=i386-pc /dev/sda
 ZPOOL_VDEV_NAME_PATH=1 grub-mkconfig -o /boot/grub/grub.cfg ZPOOL_VDEV_NAME_PATH=1 grub-mkconfig -o /boot/grub/grub.cfg
 </code> </code>
Line 204: Line 179:
 mount -t efivarfs efivarfs /sys/firmware/efi/efivars mount -t efivarfs efivarfs /sys/firmware/efi/efivars
 pacman --noconfirm -S  grub efibootmgr pacman --noconfirm -S  grub efibootmgr
-grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB+ZPOOL_VDEV_NAME_PATH=1 grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=arch
 </code> </code>
  
Line 242: Line 217:
  
 <code> <code>
-pacman -S gnome gnome-extra gnome-tweak-tool chrome-gnome-shell gpaste gdm network-manager-applet+pacman -S gnome gpaste network-manager-applet
 systemctl enable NetworkManager.service systemctl enable NetworkManager.service
 systemctl enable gdm systemctl enable gdm
Line 249: Line 224:
 nvidia nvidia
 <code> <code>
-pacman -S nvidia+pacman -S nvidia-dmks
 </code> </code>
  
 others others
 <code> <code>
-pacman -S zsh rsync openssh+pacman -S fish rsync openssh
 pacman -S libreoffice-fresh-it pacman -S libreoffice-fresh-it
 </code> </code>
Line 260: Line 235:
  
 <code> <code>
 +exit
 mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -i{} umount -lf {} mount | grep -v zfs | tac | awk '/\/mnt/ {print $3}' | xargs -i{} umount -lf {}
 zpool export rpool zpool export rpool
 reboot reboot
 </code> </code>
  • tips/archlinux/install.1556348657.txt.gz
  • Last modified: 2019/04/27 09:04
  • by scipio