Skip to content

Instantly share code, notes, and snippets.

@dnepangue
Created November 17, 2017 15:06
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 dnepangue/9fb9f526989f2b93be1de6a9f4a5788e to your computer and use it in GitHub Desktop.
Save dnepangue/9fb9f526989f2b93be1de6a9f4a5788e to your computer and use it in GitHub Desktop.
Installing ArchLinux
Installing ArchLinux
#check internet connection (use wired to make it easy)
ping -c 3 google.com
#update pacman database
pacman -Syy
#install a reflector
pacman -S reflector
#setup reflector
reflector -c "US" -f 12 -l 10 -n12 --save /etc/pacman.d/mirrorlist
#check for partitions
fdisk -l
#repartition hard drive (erase all partitions make one that takes up the whole disk, make it the primary partition, then make it bootable. Write the changes.
cfdisk (location of hard drive)
#Format the disk to ext4
mkfs.ext4 (location of disk with partition number)
#mount disk to system
mount (disk location with paertition number) /mnt
#install base system
pacstrap -i /mnt base base-devel
#generate fstab file
genfstab -U -p /mnt >> /mnt/etc/fstab
#login to new system as root
arch-chroot /mnt /bin/bash
#set location of system (uncomment en_US.UTF-8 UTF-8)
nano /etc/locale.gen
#generate local
locale-gen
#set the clock (replace US and Mountain if you arnt in the mountain time zone)
ln -sf /usr/share/zoneoinfo/US/Mountain /etc/localtime
hwclock --systohc --utc
#give computer a name
Echo (computer name) > /etc/hostname
#edit host file add 127.0.1.1 to ipaddress, localhost.localdomain to hostmane.domain.ort, and pc name to hostname
nano /etc/hosts
#enable network service
systemctl enable dhcpcd
#set password for root
passwd
#install the bootloader grup
pacman -S grup
#install grub bootloader to hdd
grub-install (location of hard drive)
#generate configuration file
grub-mkconfig -o /boot/grub/grub.cfg
#logout of the system
exit
#unmount the system
umount-R /mnt
#reboot take disk or usb out of the computer
reboot
#log into root using the password you set
#create a new user
useradd -m -g users -G wheel -s /bin/bash (username)
#assign a password to user
passwd (username)
#add new user to sudo group (uncomment %wheel ALL=(ALL) ALL)
EDITOR=nano visudo
#logout of root
exit
#login as new user
#install audio packages
sudo pacman -S pluseaudio pluseaudio-alsa
#install xorg server (leave the first option the default, the second one need to be 1 if you're using integrated graphics)
sudo pacman xorg -S xorg xorg-xinit
#create file of initiation for GUI
echo "(gui of choice)" > ~/.xinitrc
sudo pacman -S plasma-desktop
xfce:
"exec startxfce4"
sudo pacman -S xfce4
gnome:
"exec gnome-session"
sudo pacman -S gnome
cinnamon:
"exec cinnamon-session"
sudo pacman -S cinnamon
mate:
"exec mate-session"
sudo pacman -S mate
unity:
"exec unity"
Unity installation is tricky - see https://wiki.archlinux.org/index.php/...
openbox:
"exec openbox-session"
sudo pacman -S openbox
i3:
"exec i3"
sudo pacman -S i3
awesome:
"exec awesome"
sudo pacman -S awesome
deepin
"exec startdde"
sudo pacman -S deepin
LXDE
"exec startlxde"
sudo pacman -S lxde
#install aditional packages like a file manager, terminal inulater, web browser, and text editor
sudo pacman -S konsole dolphin firefox kate
#start gui
startx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment