User talk:Dislikeyou

From ArchWiki
Jump to navigation Jump to search

Changes to Beginners' Guide

Hi, please have a look at Talk:Beginners' Guide#Edits to UEFI booting and plan the future edits to the Beginners' Guide together with the other users who are contributing there. I'd also suggest to have a look at and possibly take part in it.

Lastly, please from now on always remember to use the Edit Summary when editing an article, it's the text field just above the "Save page" button: you are supposed to write there briefly what you've done and, even more importantly, why.

Thank you for collaborating :) -- Kynikos (talk) 11:23, 8 July 2013 (UTC)

Work in progress

Note: A fast guide for installing Arch on UEFI motherboards. For lazy people. This page is in progress....

Do these steps in order...

Note: This guide is created for my own system, if you use WiFI, have built in sound card, US keyboard etc.. then you should skip those parts of this guide and look here for your needs: Beginners'_Guide and Installation_Guide.

Test Internet Connection
# ping -c 3

List HDD's / Partitions
# lsblk
# lsblk -f /dev/sda
Note: This is optional.

Partition HDD
# cgdisk /dev/sda
Note: You can use lsblk to list all HDD's on your PC or use lsblk -f /dev/sda to list partitions
Note: First create a 50MB or more in size EFI partition and then use the remaining size to create a root partition with the Linux Filesystem.
Note: You can also create a home partition but you don't have to.

Format Partitions
# mkfs.vfat -F32 /dev/sda1
# mkfs.ext4 /dev/sda2
Note: sda1 EFI partition sda2 root partition

Mount Partitions
# mount /dev/sda2 /mnt
# mkdir -p /mnt/boot
# mount /dev/sda1 /mnt/boot

Edit Repo Mirrors
# nano /etc/pacman.d/mirrorlist
Note: CTRL+K Cut CTRL+U Paste CTRL+X Exit
Note: Move the mirror for your or closest country to the top, for fastest download speeds.

Install System
# pacstrap -i /mnt base base-devel

Generate Fstab
# genfstab -p /mnt >> /mnt/etc/fstab
# nano /mnt/etc/fstab
Note: You don't have to edit fstab but I recommend doing it to make it look better cosmetically.

# arch-chroot /mnt /bin/bash

Configure Locale
# nano /etc/locale.gen

Uncomment en_US.UTF-8

# locale-gen
# echo LANG=en_US.UTF-8 > /etc/locale.conf
# export LANG=en_US.UTF-8

Configure Clock/Time
# ln -s /usr/share/zoneinfo/Europe/Stockholm /etc/localtime
# hwclock --systohc --utc


Enable Multilib Repo
# nano /etc/pacman.conf

Uncomment [multilib]

# pacman -Sy
Note: Enable only if you want to use 32 bit libs / software.

Add Users
# passwd
# useradd -m -g users -G wheel,storage,power -s /bin/bash arch
# passwd arch

Allow users to use Sudo command
# pacman -S sudo
# EDITOR=nano visudo

Uncomment "%wheel ALL=(ALL) ALL"

EFI Stub Loader
# pacman -S efibootmgr
# efibootmgr -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/sda2 ro quiet initrd=/initramfs-linux.img"

Exit Chroot
# exit
# umount /mnt

Setup Static IP Network
# ip link
# systemctl stop dhcpcd.service
# ip link set "nic"
# ip addr add dev "nic"
# ip route add default via
# nano /etc/resolv.conf


# Google nameservers

Install Nvidia Drivers
# pacman -S nvidia

Install XINIT
# pacman -S xorg-xinit

Install XFCE
# pacman -S xfce4
# pacman -S xfce4-goodies

Auto StartX
$ cp /etc/skel/.bash_profile ~/.bash_profile
# nano ~/.bash_profile


[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startxfce4
Replace FAM with Gamin
# pacman -Rd fam
# nano /etc/rc.conf [DAEMONS fam] *
# pacman -S gamin
Note: This is optional.

Enable Auto Log In
# cp /usr/lib/systemd/system/getty@.service /etc/systemd/system/autologin@.service
ExecStart=-/sbin/agetty --noclear -a USERNAME %I 38400


# systemctl daemon-reload
# systemctl disable getty@tty1
# systemctl enable autologin@tty1
# systemctl start autologin@tty1
# systemctl enable
# systemctl stop autologin@tty1.service
Note: This is optional.


Setup Keyboard
# nano /etc/X11/xorg.conf.d/10-keyboard.conf


   Section "InputClass"
   Identifier             "Keyboard Defaults"
   MatchIsKeyboard           "yes"
   Option                 "XkbModel" "pc101"
   Option                   "XkbLayout" "se"
Note: This is optional.


Change Default Sound Device
# nano /etc/modprobe.d/alsa-base.conf


options snd slots=snd_usb_audio
options snd_usb_audio index=0
$ speaker-test -c 2 test if speakers working
Note: This is optional.
Other Stuff

Bash Completion

# pacman -S bash-completion
Note: This is optional.