Skip to content

Instantly share code, notes, and snippets.

@arfr
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arfr/82d522ef07cbd937c1c5 to your computer and use it in GitHub Desktop.
Save arfr/82d522ef07cbd937c1c5 to your computer and use it in GitHub Desktop.
# Arch Linux Installation
dd if=/dev/zero of=/dev/sda count=1000
cfdisk
/dev/sda1 <- boot IS Bootable, /boot
/dev/sda2 <- /swap, /swap
/dev/sda3 <- /, /root
/dev/sda4 <- /home, /home
[WRITE] and Q
mkfs.ext4 /dev/sda1
mkswap /dev/sda2
mkfs.ext4 /dev/sda3
mkfs.ext4 /dev/sda4
swapon /dev/sda2
mount /dev/sda3 /mnt
mkdir /mnt/boot
mkdir /mnt/home
mount /dev/sda1 /mnt/boot
mount /dev/sda4 /mnt/home
pacman -Syu
pacstrap /mnt base base-devel grub-bios xorg xorg-server xorg-xinit xorg-server-utils mesa gnome vim
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
echo "localhost.localdomain" >> /etc/hostname
vi /etc/vconsole.conf
KEYMAP="de-latin1"
vi /etc/locale.gen
de_DE
en_US
vi /etc/locale.conf
LANG=de_DE.UTF-8
locale-gen
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc --utc
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
passwd
useradd -m -G audio,video,lp,optical,storage,wheel,floppy,power joe
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/g' /etc/sudoers
passwd joe
systemctl enable dhcpcd
systemctl enable gdm.service
exit
umount -R /mnt/boot
umount -R /mnt/home
umount -R /mnt
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment