Installation
Install Arch Linux
Pull up Arch Linux Installation Guide
Scroll down to Connect to the Internet.
Verify internet is working
ping google.com
timedatectl set-ntp true
timedatectl status
Partition the disks using
cfdisk
instead offdisk
Run
lsblk
to verify the disk you want to partitionIn Virtual Machine I am partitioning
sda
Run
cfdisk
Select Label Type
dos
Choose
New
Create 2 partitions (1
main
and 1swap
)Main partition needs to be
primary
Move
tab
toBootable
which adds an*
underBoot
Move down to
Free space
and create anotherNew
space for theswap
partitionAdd rest of memory
Choose
primary
orextended
. I choseprimary
Click on the tab
Type
Change
Type
from83 Linux
to82 Linux swap / Solaris
and clickenter
Now move
tab
toWrite
and hitenter
Type
yes
and clickenter
Now move
tab
toQuit
and hit enter
Make the file system
mksf
with typeext4
to location of the partition/dev/sda1
.In the
terminal
typemkfs.ext4 /dev/sda1
Run
lsblk
to make sure partitionssda1
andsda2
are correct.Now make
swap
mkswap /dev/sda2
Now run command
swapon /dev/sda2
mount /dev/sda1 /mnt
Edit
etc/pacman.d/mirrorlist
nano /etc/pacman.d/mirrorlist
Delete all lines using
ctrl + k
that arent in the United States. Only keep about6
or7
.Press
ctrl + x
to exit nano.Click
y
for yes to save modified buffer.Click
enter
again to save filename
Install the Base Packages Installs the base arch linux system
In the terminal type
pacstrap /mnt base
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
Time Zone (to search for timezone
ls /usr/share/zoneinfo/America
ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
hwclock --systohc
locale-gen
nano /etc/locale.conf
Add
LANG=en_US.UTF-8
Exit
ctrl + x
Click
y
to saveClick
enter
to save file name
nano /etc/hostname
Enter desired hostname. I used
jh
Exit
ctrl + x
Click
y
to saveClick
enter
to save file name
nano /etc/hosts
Add
127.0.0.1
tab over and writelocalhost
Add
::1
tab over and writelocalhost
Add
127.0.1.1
tab over and writejh.localdomain
tab over again and writejh
.jh
is the hostname I chose in the1st
step underNetwork Configuration
Exit
ctrl + x
Click
y
to saveClick
enter
to save file name
passwd
and hitenter
set your root password
retype your root password
Enable DHCPCP (starts internet on boot)
systemctl enable dhcpcd
Add username
useradd -m joseph
Change password for user
joseph
passwd joseph
Install sudo
pacman -S sudo
Add joseph to Group with admin privileges
usermod -aG wheel,audio,input,optical,storage,video joseph
Verify groups you belong too
groups joseph
Add vim
pacman -S vim
Add joseph to sudoers file
visudo
vim movement
j - down
k - up
h -left
l -right
Look for line
## Uncomment to allow members of group whell to execute any command
Move cursor under
#
of# %wheel ALL=(ALL) ALL
andClick
x
to delete the#
to uncomment that line.
Quit out of vim
click
:
and typewq
and clickenter
Install GRUB (boot loader)
Download grub
pacman -S grub
Install grub to disk grub will be going on (not
sda1
)grub-install /dev/sda
Create grub config file
grub-mkconfig -o /boot/grub/grub.cfg
Reboot (You're Finished!)
Install Graphical Environment
Install Xorg
sudo pacman -S xorg
Install Gnome
Verify you have sudo privilages
sudo pacman -Syyu
Install
reflector
to get the fastest mirrors and backup the current mirrorlist and generatte a new onesudo pacman -S reflector
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
sudo reflector --verbose --latest 10 --sort rate --save /etc/pacman.d/mirrorlis
Install
Xorg
and neededvideo drivers
sudo pacman -S xorg-server xterm xorg-xinit xf86-video-vesa bash-completion nvidia
Check if
X
worksstartx
Exit out of
X
exit
sudo pacman -S gnome gdm
Enable the
GDM
service so it starts on bootsudo systemctl enable gdm
Reboot your machine! You're Done!
reboot
Last updated