Willkommen bei Earlybite Linux Arch-Installation
Für die neuesten Inhalte drücken sie bitte 'F5', oder wählen sie im Menü 'Aktualisieren'...
Das ist Part 1...
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Hardware-Uhr im BIOS prüfen, ob UTC oder lokale Zeit, auf lokale Zeit einstellen
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Zum Abbrechen:
poweroff
// oder
reboot
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Tastatur:
// loadkeys de
// oder mit Akzent
// - = ß, y =z
loadkeys de-latin1 // y = z
// Partitionstabelle:
// Für GPT:
// gdisk /dev/sda
// Für MSDOS:
fdisk /dev/sda
// Identifier = 0x1e1127db
// a toggle a bootable flag
// b edit bsd disklabel
// c toggle the dos compatibility flag
// d delete a partition
// l list known partition types
// m print this menu
// n add a new partition
// o create a new empty DOS partition table
// p print the partition table
// q quit without saving changes
// s create a new empty Sun disklabel
// t change a partition's system id
// u change display/entry units
// v verify the partition table
// w write table to disk and exit
// x extra functionality (experts only)
Command (m for help): l
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Eventuell Partitionen löschen
Command (m for help): d
Partition number (1-4, default 1): Nummer der Partition
Command (m for help): p // ?
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// sda1 boot
Command (m for help): n
Partition type:
Select (default) p): p
Partition number (1-4, default 1): 1
First sector (2048-.., default 2048): enter
Last sector, +sectors or +size{K,M,G} (..): +1G
Partition 1 of type Linux and of size 1 GiB is set
// sda2 root
Command (m for help): n
Partition type:
Select (default) p): p
Partition number (1-4, default 1): 2
First sector (.....-.., default ......): enter
Last sector, +sectors or +size{K,M,G} (..): +25G
Partition 1 of type Linux and of size 25 GiB is set
// sda4 SWAP
Command (m for help): n
Select (default) p): p
Partition number (1-4, default 1): 4
First sector (......-.., default .......): enter
Last sector, +sectors or +size{K,M,G} (..): +4G
Partition 1 of type Linux and of size 4 GiB is set
// Command (m for help): t
// Partition number (1-4): 4
// Hex code (type L to list codes): 82
// sda3 home
Command (m for help): n
Partition type:
Select (default) p): p
Partition number (1-4, default 1): 3
First sector (.....-.., default .....): enter
Last sector, +sectors or +size{K,M,G} (..): +10G // (BZW. Den Rest!)
Partition 1 of type Linux and of size 10 GiB is set
Command (m for help): t
Partition number (1-4): 4
Hex code (type L to list codes): 82
Command (m for help): a
Partition number (1-4): 1
Command (m for help): p
Disk /dev/sda: 120 GiB, 536870912000 bytes, 1048576000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6cd4de2e
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 85985279 41943040 83 Linux
/dev/sda3 85985280 924846079 419430400 83 Linux
/dev/sda4 924846080 937428991 6291456 82 Linux swap / Solaris
Command (m for help): w
// The partition table has been altered.
// Calling ioctl() to re-read partition table.
// Syncing disks.
mkfs.ext2 -L boot /dev/sda1
mkfs.ext4 -L arch /dev/sda2 // frei wählbar
mkfs.ext4 -L home /dev/sda3 // sollte meines Erachtens immer home sein
mount /dev/sda2 /mnt
mkdir /mnt/boot
mkdir /mnt/home
mount /dev/sda1 /mnt/boot
mount /dev/sda3 /mnt/home
mkswap -L swap /dev/sda4
swapon /dev/sda4
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Netzwerkverbindung
ping -c3 www.individcore.de
// Bei unknown host
// ip link
// 1: lo: <LOOPBACK.....
// 2: enp4s0: <BROADCAST...
// dhcpcd Netzwerkkarten-Name
// Erneut testen
// ping -c3 www.individcore.de
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Basissystem installieren
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
nano /etc/pacman.d/mirrorlist
// mit STRG + k Zeilen löschen bis zum richtigen Spiegelserver
// mit STRG + o speichern
// mit STRG + x NANO verlassen
pacstrap /mnt base base-devel
genfstab -p /mnt > /mnt/etc/fstab
// oder mit Label
// genfstab -Lp /mnt > /mnt/etc/fstab
cat /mnt/etc/fstab
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Installationsmedium verlassen und das neuinstallierte System starten
arch-chroot /mnt/
sh-4.3#
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Systemkonfiguration
// Rechnername
echo <rechnername> > /etc/hostname
// Spracheinstellungen
echo LANG=de_DE.UTF-8 > /etc/locale.conf
// echo LC_COLLATE=C >> /etc/locale.conf
echo LANGUAGE=de_DE >> /etc/locale.conf
// Tastatur
echo KEYMAP=de-latin1 > /etc/vconsole.conf
// localtime
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
// locale.gen
nano /etc/locale.gen
// suchen von
// #de_DE.UTF-8 UTF-8
// #de_DE ISO-8859-1
// #de_DE@euro ISO-8859-15
// und von en_US.UTF-8
// und # am Anfang entfernen
// Hinweis: Suchen im Editor nano:
// <STRG>+<W>SUCHBEGRIFF<ENTER> Weitersuchen mit gleichem Suchbegriff erneut: <ALT>+<W>
// mit STRG + o speichern
// mit STRG + x NANO verlassen
locale-gen
// Generating locales...
// de_DE.UTF-8... done
// de_DE.ISO-8859-1... done
// de_DE.ISO-8859-15@euro... done
// Generation complete.
/etc/hosts
cat /etc/hosts
// <host / rechnername> ändern unter <hostname>
nano /etc/hosts
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Module (eventuell) laden
// lsmod // Module anzeigen
// nano /etc/modules-load.d/meinemodule.conf
// modul_1
// modul_2
// STRG + x
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
/etc/pacman.conf
nano /etc/pacman.conf
// Kommentarzeichen entfernen für 32bit-Bibliotheken
[multilib]
SigLevel = PackageRequired TrustedOnly
Include = /etc/pacman.d/mirrorlist
// Pacman Repository Datenbanken neu laden
pacman -Sy
// Mirrorlist aktualisieren
nano /etc/pacman.d/mirrorlist
// die # am Anfang der deutschen Server entfernen
// STRG + o
// mit STRG + x NANO verlassen
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Linux Kernel erzeugen
mkinitcpio -p linux
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// Root Passwort
passwd
Enter new UNIX password: geheim
Retype new UNIX password: geheim
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// GRUB installieren
pacman -S grub // (ACHTUNG INSTALLIERT NUR DEN INSTALLER!)
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
// Sollte eine Fehlermeldung kommen, wie z. Bsp.
// ...
// error: out of memory.
// error: syntax error.
// error: Incorrect command.
// error: syntax error.
// Syntax error at line 164
// ...
// Sollte
// # fix broken grub.cfg gen
// GRUB_DISABLE_SUBMENU=y
// Abhilfe schaffen und
// grub-mkconfig -o /boot/grub/grub.cfg neu aufrufen.
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
// einen Sym-Link anlegen für Autostart von dhcpcd
systemctl enable dhcpcd@<adapter>.service
// Arch Linux neu booten
exit
umount /dev/sda1
reboot
// UUIDFStab von Earlybite
// Rechnername login: root
// password: geheim
// [root@myhost ~]# _