{"id":1844,"date":"2017-12-04T13:59:06","date_gmt":"2017-12-04T12:59:06","guid":{"rendered":"https:\/\/stls.eu\/blog\/?p=1844"},"modified":"2017-12-04T13:59:06","modified_gmt":"2017-12-04T12:59:06","slug":"arch-linux-2017-12-in-virtualbox-installation","status":"publish","type":"post","link":"https:\/\/stls.eu\/blog\/2017\/12\/04\/arch-linux-2017-12-in-virtualbox-installation\/","title":{"rendered":"Arch Linux 2017.12 in VirtualBox installation"},"content":{"rendered":"<p>Vom <a href=\"https:\/\/www.archlinux.de\/download\">Installationsmedium<\/a> booten und die Installations Architektur ausw\u00e4hlen (heute meistens x86_64)<br \/>\nTorrent: <a href=\"https:\/\/www.archlinux.org\/releng\/releases\/2017.12.01\/torrent\/\">https:\/\/www.archlinux.org\/releng\/releases\/2017.12.01\/torrent\/<\/a><br \/>\nGPG: <a href=\"https:\/\/www.archlinux.org\/iso\/2017.12.01\/archlinux-2017.12.01-x86_64.iso.sig\">4AA4767BBC9C4B1D18AE28B77F2D434B9741E8AC<\/a><br \/>\nMD5: d0ae8c4b4a037238e5f0880243d4619e<br \/>\nSHA1: ec5e7c58520d7e1be72bc27c669d3c5fc94d6947<\/p>\n<p>Installationsanleitung<br \/>\n<a href=\"https:\/\/wiki.archlinux.de\/title\/Arch_Install_Scripts\">https:\/\/wiki.archlinux.de\/title\/Arch_Install_Scripts<\/a><br \/>\n<a href=\"https:\/\/wiki.archlinux.org\/index.php\/Installation_guide\">https:\/\/wiki.archlinux.org\/index.php\/Installation_guide<\/a><\/p>\n<p>Sobald Terminal tty1 geladen ist folgendes ausf\u00fchren<\/p>\n<pre>loadkeys de-latin1<\/pre>\n<pre>pacman -Sy<\/pre>\n<p>jetzt sollten updates heruntergeladen werden &#8211; wenn nicht: Internetverbindung checken<\/p>\n<hr \/>\n<p>F\u00fcr remote SSH Setup (optional)<\/p>\n<pre>pacman -S openssh<\/pre>\n<pre>systemctl enable sshd.service\r\nsystemctl start sshd.service<\/pre>\n<p>jetzt sollte man sich \u00fcber die ip (<em>ip addr show<\/em>) per ssh einloggen k\u00f6nnen (Passwort setzen nicht vergessen &#8211; <em>passwd<\/em>)<\/p>\n<hr \/>\n<p>Festplatten &#8216;dos&#8217; partitionieren<\/p>\n<pre>cfdisk \/dev\/sda<\/pre>\n<p>\/dev\/sda1 &#8211; 1 GB &#8211; ext4 &#8211; \/boot<br \/>\n\/dev\/sda2 &#8211; * GB &#8211; luks &#8211; cryptcontainer<\/p>\n<p>Partitionen anlegen<\/p>\n<pre>mkfs.ext4 \/dev\/sda1\r\ncryptsetup luksFormat \/dev\/sda2\r\ncryptsetup luksOpen \/dev\/sda2 sda2_crypt\r\nmkfs.ext4 \/dev\/mapper\/sda2_crypt<\/pre>\n<p>Dateisysteme einh\u00e4ngen<\/p>\n<pre>mount -t ext4 \/dev\/mapper\/sda2_crypt \/mnt\r\nmkdir -p \/mnt\/boot\r\nmount -t ext4 \/dev\/sda1 \/mnt\/boot<\/pre>\n<p>Basissystem einrichten<\/p>\n<pre>pacstrap \/mnt base base-devel grub nano openssh net-tools lz4 virtualbox-guest-modules-arch virtualbox-guest-utils<\/pre>\n<p>System einrichten<\/p>\n<pre>genfstab -Lp \/mnt &gt; \/mnt\/etc\/fstab\r\n#cp \/etc\/resolv.conf \/mnt\/etc\/resolv.conf<\/pre>\n<pre>arch-chroot \/mnt \/bin\/bash<\/pre>\n<pre>echo \"ArchLinux\" &gt; \/etc\/hostname<\/pre>\n<pre>echo LANG=de_DE.UTF-8 > \/etc\/locale.conf\r\necho LC_COLLATE=C >> \/etc\/locale.conf<\/pre>\n<pre>echo KEYMAP=de-latin1 > \/etc\/vconsole.conf<\/pre>\n<pre>nano \/etc\/default\/grub<\/pre>\n<p>GRUB_CMDLINE_LINUX=&#8221;cryptdevice=\/dev\/md1:md1_crypt&#8221;<\/p>\n<p>ln -s \/usr\/share\/zoneinfo\/ZONE\/ORT \/etc\/localtime # Zone\/Ort anpassen<\/p>\n<pre>ln -s \/usr\/share\/zoneinfo\/Europe\/Berlin \/etc\/localtime\r\nsystemctl enable dhcpcd.service<\/pre>\n<p>Gew\u00fcnschte Sprachen in \/etc\/locale.gen auskommentieren, anschlie\u00dfend mit <em>locale-gen<\/em> erzeugen<\/p>\n<pre>en_US ISO-8859-1\r\nen_US.UTF-8 UTF-8\r\nde_DE ISO-8859-1<\/pre>\n<p>\/etc\/mkinitcpio.conf konfigurieren und Kernel-Image mit <em>mkinitcpio -p linux<\/em> erzeugen<br \/>\nz.B. zu HOOKS mdadm und zu MODULES raid1 hinzuf\u00fcgen<\/p>\n<pre>MODULES=(ext4)\r\nHOOKS=(base udev autodetect modconf block keyboard encrypt filesystems fsck)<\/pre>\n<pre>mkinitcpio -p linux<\/pre>\n<p>Bootloader Grub einrichten<\/p>\n<pre>grub-install --no-floppy \/dev\/sda\r\ngrub-mkconfig -o \/boot\/grub\/grub.cfg<\/pre>\n<pre>passwd\r\nuseradd UserName\r\npasswd UserName\r\nmkdir \/home\/UserName\r\nchown UserName:UserName \/home\/UserName<\/pre>\n<p>Gnome3 isntallieren<\/p>\n<pre>pacman -S xorg-server xorg-xinit gnome gnome-extra<\/pre>\n<pre>echo \"setxkbmap de-latin1\" >> \/home\/UserName\/.xinitrc\r\necho \"exec gnome-session\" >> \/home\/UserName\/.xinitrc<\/pre>\n<p>Fertig &#8211; nur noch sauber Beenden und Neu starten<\/p>\n<pre>exit\r\numount \/mnt\/boot\r\numount \/mnt\r\nreboot<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Vom Installationsmedium booten und die Installations Architektur ausw\u00e4hlen (heute meistens x86_64) Torrent: https:\/\/www.archlinux.org\/releng\/releases\/2017.12.01\/torrent\/ GPG: 4AA4767BBC9C4B1D18AE28B77F2D434B9741E8AC MD5: d0ae8c4b4a037238e5f0880243d4619e SHA1: ec5e7c58520d7e1be72bc27c669d3c5fc94d6947 Installationsanleitung https:\/\/wiki.archlinux.de\/title\/Arch_Install_Scripts https:\/\/wiki.archlinux.org\/index.php\/Installation_guide Sobald Terminal tty1 geladen ist folgendes ausf\u00fchren loadkeys de-latin1 pacman -Sy jetzt sollten updates heruntergeladen werden &#8211; wenn &hellip; <a href=\"https:\/\/stls.eu\/blog\/2017\/12\/04\/arch-linux-2017-12-in-virtualbox-installation\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,39],"tags":[],"class_list":["post-1844","post","type-post","status-publish","format-standard","hentry","category-archlinux","category-gnome-3"],"_links":{"self":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/1844","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/comments?post=1844"}],"version-history":[{"count":21,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/1844\/revisions"}],"predecessor-version":[{"id":1865,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/posts\/1844\/revisions\/1865"}],"wp:attachment":[{"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/media?parent=1844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/categories?post=1844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stls.eu\/blog\/wp-json\/wp\/v2\/tags?post=1844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}