{"id":2078,"date":"2024-02-12T11:13:10","date_gmt":"2024-02-12T09:13:10","guid":{"rendered":"https:\/\/www.fotoandnet.de\/wp\/?p=2078"},"modified":"2024-02-12T12:51:21","modified_gmt":"2024-02-12T10:51:21","slug":"neues-linux-arch-setup-meine-um790-pro","status":"publish","type":"post","link":"http:\/\/www.fotoandnet.de\/wp\/?p=2078","title":{"rendered":"Linux Arch Setup meines UM790 Pro Barebone"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">F\u00fcr meinen neuen Minisforum Barebone der Venus Serie UM790 Pro, habe ich mir \u00fcberlegt, wie ich diesen Nach einem Stromausfall neu aufsetze. Wichtig war mir beim Filesystem, dass es eines ist, welches eigenst\u00e4ndig eine Checksumme \u00fcber die FS legt und damit erkennt, ob die Integrit\u00e4t der Dateien gegeben ist und sie am Besten auch gleich reparieren kann. Die beiden Protagonisten sind dabei ZFS und BTRFS. Da dieses leidige Lizenzthema bei ZFS eine Installation mit Custome-Kernel oder DKMS erzwingen und dieses beide scheue habe ich mich f\u00fcr BTRFS entschieden. Bei der Installation habe ich mal die wesentlichen Befehle mit geschrieben. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Neofetch sieht mein System nach der Installation wie folgt:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"843\" height=\"346\" src=\"http:\/\/www.fotoandnet.de\/wp\/wp-content\/uploads\/2024\/02\/neofetch.png\" alt=\"\" class=\"wp-image-2084\" srcset=\"http:\/\/www.fotoandnet.de\/wp\/wp-content\/uploads\/2024\/02\/neofetch.png 843w, http:\/\/www.fotoandnet.de\/wp\/wp-content\/uploads\/2024\/02\/neofetch-300x123.png 300w, http:\/\/www.fotoandnet.de\/wp\/wp-content\/uploads\/2024\/02\/neofetch-768x315.png 768w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>loadkeys de-latin1\n---\ntimedatectl\ntimedatectl show-timesync --all\ntimedatectl set-ntp true\ntimedatectl status\ntimedatectl timesync-status\n---\nsudo wipefs -a \/dev\/sdX\n---\n\nfdisk -l\nMount point\t\tPartition\t\t\tPartition type\t\tSuggested size\n\/mnt\/boot\t\t\/dev\/efi_system_partition\tEFI system partition\tAt least 1GiB.\n&#091;SWAP]\t\t\t\/dev\/swap_partition\t\tLinux swap\t\t32GiB\n\/mnt\t\t\t\/dev\/root_partition\t\tLinux x86-64 root (\/)\tRemainder of the device. At least 23\u201332 GiB.\n---\nmkfs.fat -F 32 -n UEFI \/dev\/nvme0n1p1 \u2013 Formatieren der EFI-Partition\nmkswap -L SWAP \/dev\/nvme0n1p2 - swap_partition\nmkfs.btrfs -L LINUXARCH --csum sha256 \/dev\/nvme0n1p3\nmount \/dev\/nvme0n1p3 \/mnt\n-----\nbtrfs subvolume create \/mnt\/@\nbtrfs subvolume create \/mnt\/@home\nbtrfs subvolume create \/mnt\/@snapshots\nbtrfs subvolume create \/mnt\/@cache\nbtrfs subvolume create \/mnt\/@libvirt\nbtrfs subvolume create \/mnt\/@log\nbtrfs subvolume create \/mnt\/@tmp\nbtrfs subvolume list \/mnt\n\numount \/mnt\n\nexport sv_opts=\"rw,noatime,ssd,compress=zstd:1,discard=async,space_cache=v2\"\nmount -o ${sv_opts},subvol=@ \/dev\/nvme0n1p3 \/mnt\n\nmkdir -p \/mnt\/{boot,home,.snapshots,var\/cache,var\/lib\/libvirt,var\/log,var\/tmp}\nmkdir -p \/mnt\/boot\/efi\n\nmount -o ${sv_opts},subvol=@home \/dev\/nvme0n1p3 \/mnt\/home\nmount -o ${sv_opts},subvol=@snapshots \/dev\/nvme0n1p3 \/mnt\/.snapshots\nmount -o ${sv_opts},subvol=@cache \/dev\/nvme0n1p3 \/mnt\/var\/cache\nmount -o ${sv_opts},subvol=@libvirt \/dev\/nvme0n1p3 \/mnt\/var\/lib\/libvirt\nmount -o ${sv_opts},subvol=@log \/dev\/nvme0n1p3 \/mnt\/var\/log\nmount -o ${sv_opts},subvol=@tmp \/dev\/nvme0n1p3 \/mnt\/var\/tmp\nmount \/dev\/nvme0n1p1 \/mnt\/boot\/efi\n---\npacman -Syy\npacman -S  --noconfirm --needed reflector\ncp \/etc\/pacman.d\/mirrorlist \/etc\/pacman.d\/mirrorlist.bak\nreflector --verbose --protocol https --latest 5 --sort rate --country Germany --save \/etc\/pacman.d\/mirrorlist\n\n---\ngrep vendor_id \/proc\/cpuinfo\nexport microcode=\"amd-ucode\"\npacstrap \/mnt base base-devel ${microcode} btrfs-progs linux linux-firmware sof-firmware bash-completion htop man-db mlocate neovim nano networkmanager openssh pacman-contrib pkgfile reflector sudo dhcpcd iwd terminus-font tmux man-pages efibootmgr grub grub-btrfs grub-customizer ntfs-3g lm_sensors mesa\n---\ngenfstab -U -p \/mnt &gt;&gt; \/mnt\/etc\/fstab\n--\narch-chroot \/mnt \/bin\/bash\nln -sf \/usr\/share\/zoneinfo\/Europe\/Berlin \/etc\/localtime\nhwclock --systohc\necho \"Cthulhu\" &gt; \/etc\/hostname\n--\ncat &gt; \/etc\/hosts &lt;&lt;EOF\n127.0.0.1   localhost\n::1         localhost\n127.0.1.1   foobox.localdomain foobox\nEOF\n--\nexport locale=\"de_DE.UTF-8\"\n#sed -i \"s\/^#\\(${locale}\\)\/\\1\/\" \/etc\/locale.gen\nnano \/etc\/locale.gen\necho \"LANG=${locale}\" &gt; \/etc\/locale.conf\nlocale-gen\n--\necho \"FONT=ter-v24n\" &gt; \/etc\/vconsole.conf\necho \"KEYMAP=de-latin1\" &gt;&gt; \/etc\/vconsole.conf\necho \"EDITOR=nano\" &gt; \/etc\/environment &amp;&amp; echo \"VISUAL=nano\" &gt;&gt; \/etc\/environment\n--\npasswd\n\nuseradd -m -G wheel -s \/bin\/bash admin\npasswd admin\n\nsed -i \"s\/# %wheel ALL=(ALL:ALL) ALL\/%wheel ALL=(ALL:ALL) ALL\/\" \/etc\/sudoers\nsystemctl enable NetworkManager\nsystemctl enable sshd.service\n---\nSet necessary MODULES and HOOKS in \/etc\/mkinitcpio.conf:\nMODULES=(btrfs)\nHOOKS=(base udev keyboard autodetect keymap consolefont modconf block btrfs filesystems fsck shutdown)\n\nmkinitcpio -p linux\ngrub-install --target=x86_64-efi --efi-directory=\/boot\/efi --bootloader-id=GRUB\ngrub-mkconfig -o \/boot\/grub\/grub.cfg\nreboot\n\n--- TRIM\nlsblk --discard\nThe util-linux package provides fstrim.service and fstrim.timer systemd unit files. Enabling the timer will activate the service weekly. The service executes fstrim(8) on all mounted filesystems on devices that support the discard operation.\n----\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">   <\/p>\n","protected":false},"excerpt":{"rendered":"<p>F\u00fcr meinen neuen Minisforum Barebone der Venus Serie UM790 Pro, habe ich mir \u00fcberlegt, wie ich diesen Nach einem Stromausfall neu aufsetze. Wichtig war mir beim Filesystem, dass es eines ist, welches eigenst\u00e4ndig eine&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":2085,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2078"}],"version-history":[{"count":4,"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2078\/revisions"}],"predecessor-version":[{"id":2086,"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2078\/revisions\/2086"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=\/wp\/v2\/media\/2085"}],"wp:attachment":[{"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2078"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.fotoandnet.de\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}