Benutzer:PMay/T430s Setup: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
Keine Bearbeitungszusammenfassung
 
(39 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 10: Zeile 10:


== Tastatur ==
== Tastatur ==
* loadkeys de-latin1-nodeadkeys
loadkeys de-latin1-nodeadkeys


== Festplatte ==
== Festplatte ==
  # Festplatte partitionieren
   fdisk /dev/sda
   fdisk /dev/sda


Zeile 18: Zeile 19:
* +13G für Swap (/dev/sda2)
* +13G für Swap (/dev/sda2)
* Rest für / (/dev/sda3)
* Rest für / (/dev/sda3)
* Partitionstyp anpassen (code 82 für Swap, 83 (Default) für Linux)


  # Filesystem anlegen
   mkfs.ext4 /dev/sda1
   mkfs.ext4 /dev/sda1
   mkfs.ext4 /dev/sda3
   mkfs.ext4 /dev/sda3
   mkswap /dev/sda2
   mkswap /dev/sda2
  # mounten
   swapon /dev/sda2
   swapon /dev/sda2
   mount /dev/sda3 /mnt
   mount /dev/sda3 /mnt
Zeile 27: Zeile 32:
   mount /dev/sda1 /mnt/boot
   mount /dev/sda1 /mnt/boot


== Strap ==
== Boot-Strap ==
* edit /etc/pacman.d/mirrorlist
  #Mirror auswählen
* pacstrap /mnt base base-devel
  nano /etc/pacman.d/mirrorlist
* pacstrap /mnt syslinux
 
  pacstrap /mnt base
  pacstrap /mnt base-devel
  pacstrap /mnt syslinux


== Config ==
== Config ==
* genfstab -p /mnt >> /mnt/etc/fstab
  genfstab -p /mnt >> /mnt/etc/fstab
* arch-chroot /mnt
 
* /mnt/etc/fstab prüfen
* Only the root (/) partition needs 1 for the last field. Everything else should have either 2 or 0 (see fstab#Field definitions).
 
  arch-chroot /mnt
 
* Write your hostname to /etc/hostname.
* Write your hostname to /etc/hostname.
* Symlink /etc/localtime to /usr/share/zoneinfo/Zone/SubZone. Replace Zone and Subzone to your liking. For example:  
* Symlink /etc/localtime to /usr/share/zoneinfo/Zone/SubZone. Replace Zone and Subzone to your liking. For example:  
Zeile 44: Zeile 57:
* Uncomment the selected locale in /etc/locale.gen and generate it with locale-gen.
* Uncomment the selected locale in /etc/locale.gen and generate it with locale-gen.
* Configure /etc/mkinitcpio.conf as needed (see mkinitcpio) and create an initial RAM disk with:  
* Configure /etc/mkinitcpio.conf as needed (see mkinitcpio) and create an initial RAM disk with:  
  # Anpassungen sollte nicht notwendig sein wenn man nicht mit Verschüsselung arbeitet
  # eventuell erste Zeile trotzdem rein, aber an hooks nichts ändern
   MODULES="ext4"
   MODULES="ext4"
   HOOKS="base udev autodetect pata scsi sata usb encrypt filesystems usbinput fsck"
   HOOKS="base udev autodetect pata scsi sata usb encrypt filesystems usbinput fsck"
** create
* create
   mkinitcpio -p linux
   mkinitcpio -p linux
* Configure the bootloader: refer back to the appropriate article from the bootloader installation section.  
* Configure the bootloader: refer back to the appropriate article from the bootloader installation section. Konfigurationsdatei /boot/syslinux/syslinux.cfg ist selbsterklärend
** Konfigurationsdatei /boot/syslinux/syslinux.cfg ist selbsterklärend
  # nicht notwendig wenn man ohne dateisystemverschlüsselung arbeitet
   APPEND cryptdevice=/dev/sda2:cryptroot root=/dev/mapper/cryptroot ro
   APPEND cryptdevice=/dev/sda2:cryptroot root=/dev/mapper/cryptroot ro
** Install Syslinux
* Install Syslinux
   syslinux-install_update -i -a -m
   syslinux-install_update -i -a -m
* Set a root password with passwd.
* Set a root password with passwd.


== Mehr ==
== Mehr ==
* /etc/hosts
* /etc/hosts (Note: There is no need to edit /etc/hosts. https://wiki.archlinux.org/index.php/Beginners%27_Guide)
* /etc/vconsole.conf
* /etc/vconsole.conf
   KEYMAP=de-latin1-nodeadkeys
   KEYMAP=de-latin1-nodeadkeys
Zeile 67: Zeile 82:
* Neustart
* Neustart
   reboot
   reboot
== Netzwerk nach Neustart wieder aktivieren ==
systemctl start dhcpcd@<interface_name>.service
* use this command to list all available interface names:
  # ip link
# zum Beispiel
systemctl start dhcpcd@eth0.service
* siehe auch https://wiki.archlinux.org/index.php/Network_Configuration#Run_DHCP_at_boot
* You can use the command ip link to discover the names of your interfaces. --> enp0s25


== Adduser ==
== Adduser ==
* adduser
* add a user: https://wiki.archlinux.org/index.php/Users_and_Groups#User_management
 
== Gnome (oder Xfce [siehe unten]) ==
* install xorg: https://wiki.archlinux.org/index.php/Xorg (pacman -S xorg-server)
* install GNOME: https://wiki.archlinux.org/index.php/Gnome (pacman -S gnome)
* Grafiktreiber installieren (zum Beispiel "pacman -S xf86-video-intel" für Intel)
** https://wiki.archlinux.org/index.php/Xorg#Driver_installation
* -> ist schon mit gnome da: -pacman -S gdm
* -> alt -- in /etc/rc.conf unter DEAMONS dbus einfügen vor network
* -> alt -- 2 Stellen in /etc/inittab bearbeiten (Kommentare ändern)
* zum Start siehe https://wiki.archlinux.org/index.php/Gdm#GDM_as_the_default_greeter (systemctl enable gdm.service)
* pacman -S xf86-input-synaptics
* -> ist schon mit gnome da: https://wiki.archlinux.org/index.php/NetworkManager#GNOME


== Xorg ==
== Xfce (oder Gnome [siehe oben]) ==
* https://wiki.archlinux.org/index.php/Xorg
* https://wiki.archlinux.org/index.php/Xorg
 
* https://wiki.archlinux.org/index.php/Xfce
== GNOME ==
* https://wiki.archlinux.org/index.php/SLiM
* https://wiki.archlinux.org/index.php/Gnome
* pacman -S gdm
* pacman -S xf86-video-intel
* pacman -S xf86-video-intel
* in /etc/rc.conf unter DEAMONS dbus einfügen vor network
* 2 Stellen in /etc/inittab bearbeiten (Kommentare ändern)
* pacman -S xf86-input-synaptics
* pacman -S xf86-input-synaptics
* https://wiki.archlinux.org/index.php/NetworkManager#GNOME


== MEI ausschalten ==
== systemd ==
* https://wiki.archlinux.org/index.php/Systemd#Basic_systemctl_usage
* https://wiki.archlinux.org/index.php/Systemd#Running_DMs_under_systemd
 
  # entweder dieses für gnome
  systemctl enable gdm.service
  # oder dieses für xfce
  systemctl enable slim.service
  # und
  systemctl enable NetworkManager
 
== etc. ==
* https://wiki.archlinux.de/title/Arch_Linux_auf_Deutsch_stellen#X.org
 
== MEI ausschalten (vermutlich nichtmehr notwendig) ==
Da es beim Booten zu einer Race Condition beim laden zweier Watchdogs kommt
Da es beim Booten zu einer Race Condition beim laden zweier Watchdogs kommt
* bearbeite /etc/modprobe.d/blacklist.conf
* bearbeite /etc/modprobe.d/blacklist.conf

Aktuelle Version vom 7. Dezember 2013, 12:57 Uhr

BIOS Settings

  • Zeit auf lokale Zeit minus 2 Stunden
  • Fn und Strg tauschen
  • beide Virtualisierungsoptionen an -> wegen VirtualBox

Booten und Netzwerk prüfen

  • vor dem Booten Ethernet-Kabel anschließen
  • nach dem Booten etwas warten und dann Netzwerkzugriff prüfen
 ping heise.de

Tastatur

loadkeys de-latin1-nodeadkeys

Festplatte

 # Festplatte partitionieren
 fdisk /dev/sda
  • +100M für /boot (/dev/sda1)
  • +13G für Swap (/dev/sda2)
  • Rest für / (/dev/sda3)
  • Partitionstyp anpassen (code 82 für Swap, 83 (Default) für Linux)
 # Filesystem anlegen
 mkfs.ext4 /dev/sda1
 mkfs.ext4 /dev/sda3
 mkswap /dev/sda2
 # mounten
 swapon /dev/sda2
 mount /dev/sda3 /mnt
 mkdir /mnt/boot 
 mount /dev/sda1 /mnt/boot

Boot-Strap

 #Mirror auswählen
 nano /etc/pacman.d/mirrorlist
 pacstrap /mnt base
 pacstrap /mnt base-devel
 pacstrap /mnt syslinux

Config

 genfstab -p /mnt >> /mnt/etc/fstab
  • /mnt/etc/fstab prüfen
  • Only the root (/) partition needs 1 for the last field. Everything else should have either 2 or 0 (see fstab#Field definitions).
 arch-chroot /mnt
  • Write your hostname to /etc/hostname.
  • Symlink /etc/localtime to /usr/share/zoneinfo/Zone/SubZone. Replace Zone and Subzone to your liking. For example:
 ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
  • Set locale preferences in /etc/locale.conf.
 # siehe auch: http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3
 LANG="en_US.UTF-8"
 LC_TIME="de_DE.UTF-8"
  • Uncomment the selected locale in /etc/locale.gen and generate it with locale-gen.
  • Configure /etc/mkinitcpio.conf as needed (see mkinitcpio) and create an initial RAM disk with:
 # Anpassungen sollte nicht notwendig sein wenn man nicht mit Verschüsselung arbeitet
 # eventuell erste Zeile trotzdem rein, aber an hooks nichts ändern
 MODULES="ext4"
 HOOKS="base udev autodetect pata scsi sata usb encrypt filesystems usbinput fsck"
  • create
 mkinitcpio -p linux
  • Configure the bootloader: refer back to the appropriate article from the bootloader installation section. Konfigurationsdatei /boot/syslinux/syslinux.cfg ist selbsterklärend
 # nicht notwendig wenn man ohne dateisystemverschlüsselung arbeitet
 APPEND cryptdevice=/dev/sda2:cryptroot root=/dev/mapper/cryptroot ro
  • Install Syslinux
 syslinux-install_update -i -a -m
  • Set a root password with passwd.

Mehr

 KEYMAP=de-latin1-nodeadkeys

Neustart

  • type exit or press Ctrl+D
  • unmount
 umount /mnt/boot
 umount /mnt
  • Neustart
 reboot

Netzwerk nach Neustart wieder aktivieren

systemctl start dhcpcd@<interface_name>.service
  • use this command to list all available interface names:
 # ip link
# zum Beispiel
systemctl start dhcpcd@eth0.service

Adduser

Gnome (oder Xfce [siehe unten])

Xfce (oder Gnome [siehe oben])

systemd

 # entweder dieses für gnome
 systemctl enable gdm.service
 # oder dieses für xfce
 systemctl enable slim.service
 # und
 systemctl enable NetworkManager

etc.

MEI ausschalten (vermutlich nichtmehr notwendig)

Da es beim Booten zu einer Race Condition beim laden zweier Watchdogs kommt

  • bearbeite /etc/modprobe.d/blacklist.conf
 blacklist mei