[SOLVED] Arch install on UEFI
Welcome, Guest.
“Theory and practice sometimes clash. And when that happens, theory loses. Every single time.” ― Linus Torvalds

Author Topic: [SOLVED] Arch install on UEFI  (Read 1737 times)

Offline Santo_101

  • Jr. Member
  • ***
  • Posts: 38
  • I don't suffer from insanity. I enjoy every second
    • Skype
[SOLVED] Arch install on UEFI
« on: April 04, 2018, 03:20:00 PM »
Ever since I started out with linux for my daily drive os, I kept searching for something that suited me perfectly. Debian and it's derivatives was awesome to use, even Manjaro that opened my eyes for Arch, was awesome. But still I needed something that would feel satisfactory enough for me. Arch was that for me, but my main issue back then was getting it installed on my UEFI system. This was truly a pain in the neck to say the least. That being said, it was worth the effort when I booted into my desktop for the first time. It goes something like this:

1.Arch Install
(partition the drive suitable for your self and format it likewise)
Code: [Select]
cfdisk
mkfs.vfat -F32 /dev/sda1
mkfs.ext4 /dev/sda2
mkfs.ext4 /dev/sda3
mkswap /dev/sda4
swapon /dev/sda4
2. Mounting the drives
Code: [Select]
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
mkdir /mnt/home
mount /dev/sda3 /mnt/home
3.Mirror Lists
Code: [Select]
nano /etc/pacman.d/mirrorlist4. Pacstrap /mnt base base-devel
Code: [Select]
pacstrap /mnt base base-devel5. Genfstab -U -p /mnt >> /mnt/etc/fstab
Code: [Select]
genfstab -U -p /mnt >> /mnt/etc/fstab
nano /mnt/etc/fstab
6. arch-chroot /mnt
Code: [Select]
arch-chroot /mnt7. nano /etc/locale.gen
Code: [Select]
nano /etc/locale.gen
locale-gen ln -s /etc/share/zoneinfo/yourtimezone/town /etc/localtime
hwclock --systohc --utc
8. echo chosenhostname > /etc/hostname
Code: [Select]
echo chosenhostname > /etc/hostname9. mkinitcpio -p linux
Code: [Select]
mkinitcpio -p linux
nano /etc/mkinitcpio.conf
10. passwd (choose a suitable password thats strong, this is honestly root your setting the password for)
Code: [Select]
passwd11. pacman -S grub efibootmgr dialog iw wpa_supplicant
Code: [Select]
pacman -S grub efibootmgr dialog iw wpa_supplicant12. Install Grub
Code: [Select]
grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=grub --grub-
directory=$esp --recheck --debug
grub-mkconfig -o /boot/grub/grub.cfg
13. exit
Code: [Select]
exit14. umount /mnt/boot /mnt/home
Code: [Select]
umount /mnt/boot /mnt/home
umount /mnt
15. reboot
Code: [Select]
shutdown -r now16. add user
Code: [Select]
useradd -m -g users -s /bin/bash (username)
passwd (username)
17. Configure Pacman
Code: [Select]
nano /etc/pacman.conf
Uncomment multilib
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
18. Sync and update
Code: [Select]
pacman -Syu19. EDITOR=nano visudo (add username)
Code: [Select]
EDITOR=nano visudo (add username)20. install AUR helper
Code: [Select]
pacman -S yaourt21. Logout and sign in with your own username
22. Xorg
Code: [Select]
sudo pacman -S xorg-server xorg-server-utils xorg-xinit xorg-twm xorg-xclock xterm mesa
lspci | grep vga
sudo pacman -S xf86-video-ati (for ati drivers)
sudo pacman -S xf86-video-mesa
23. install more
Code: [Select]
sudo pacman -S xfce4 xfce4-goodies lightdm-gtk-greeter lightdm-gtk-greeter-settings
sudo systemctl enable lightdm.service
24. Additional stuff
Code: [Select]
Sudo pacman -S ttf-dejavu opendesktop-fonts pavucontrol pulseaudio-alsa networkmanager
network-manager-applet
Sudo systemctl enable NetworkManager
25. Reboot
Other notes:
For plasma:
Code: [Select]
Sudo pacman -S plasma
sudo systemctl enable sddm
or Gnome:
Code: [Select]
sudo pacman -S gnome gdm
sudo systemctl enable gdm
26. Reboot

-Edited by Spatry
-Reason: Display correction and code syntax
"Liar, liar pant on.... HOLY SH*T!!!!!!!!"

Offline Spatry

  • Benevolent Dictator
  • Administrator - Sysop
  • **********
  • Posts: 5601
  • Cup of Linux Founder
    • Cup of Linux
Re: [SOLVED] Arch install on UEFI
« Reply #1 on: April 04, 2018, 04:08:49 PM »
This should help those who are interested in trying Arch Linux. I will still advise newcomers to refer to the Arch WIKI and their BEGINNER GUIDE... They have the BEST Linux documentation on the internet and you will be robbing yourself of a tremendous learning experience if you blindly copy and paste commands into a terminal without an understanding of what they do...
Windows assumes the user is an idiot... Linux DEMANDS Proof!

Offline Detroit_Bad_Boy

  • Full Member
  • ****
  • Posts: 153
  • If at first you don't succeed - sudo
Re: [SOLVED] Arch install on UEFI
« Reply #2 on: April 05, 2018, 09:25:22 PM »
I am going to dabble in Arch after a little while. But I want to know if there is a way of creating a GUI?
"I'm sorry Dave. I'm afraid I can't do that" - (HAL 9000) 2001: A Space Odyssey

Offline glsmaxx

  • Full Member
  • ****
  • Posts: 274
  • Old Dog Learnin' New Tricks
Re: Re: [SOLVED] Arch install on UEFI
« Reply #3 on: April 06, 2018, 04:06:26 AM »
I am going to dabble in Arch after a little while. But I want to know if there is a way of creating a GUI?

I may well not understand the question. If I do understand what you are asking..

Are you referring to a Desktop GUI? As in XFCE?  If So, You can put just about all DE's on top of Arch.
Running Manjaro-XFCE  &  Arch-XFCE
           Are There Any Others?

Offline Spatry

  • Benevolent Dictator
  • Administrator - Sysop
  • **********
  • Posts: 5601
  • Cup of Linux Founder
    • Cup of Linux
Re: [SOLVED] Arch install on UEFI
« Reply #4 on: April 06, 2018, 09:06:11 AM »
Correct ANY desktop can be installed and that is detailed in the first post where it shows the commands for installing KDE and GNOME. There are GUI type installers for Arch based systems like Antergos, ArchBang and Arch Anywhere. These installers make it easier to setup Arch but rob you of the learning experience. I will stick by my guns on this... If you want to run Arch, you should learn how to build it yourself. It is a rewarding experience!
Windows assumes the user is an idiot... Linux DEMANDS Proof!

Offline Ironclaw

  • Terminal Multiplexer
  • Staff Member
  • ********
  • Posts: 367
Re: Re: [SOLVED] Arch install on UEFI
« Reply #5 on: April 07, 2018, 12:36:19 AM »
Basically you install your base system then you add the GUI you want on top of it.  Full details on the arch wiki.

I am going to dabble in Arch after a little while. But I want to know if there is a way of creating a GUI?
If you must persist, I will be forced to tar you, then gzip you and finally umount you.

Offline CwF

  • Elite Member
  • *****
  • Posts: 421
Re: [SOLVED] Arch install on UEFI
« Reply #6 on: April 07, 2018, 10:43:57 AM »
A few notes about this stage! This is a good time to make a backup copy, right before you install a full fledge Desktop Environment. A dd copy is fine, or a compressed file based backup might be less than a gig. Also note that sound and a full xorg package can be installed here along with any firmwares you may want. If you install things like ssh and ncurses based cli utilities you have a full cli image ready for anything. Sound and full video modes, including a mouse, actually work without a desktop. "startx" can give you a full HD, true type adjustable font'ed' Xterm with a clickable mouse, cut-n-paste, and everything! Some full screen games can be fully functional from a base like this. Full screen HD ncurses can be a beautiful thing. Logon managers and desktop environments are extras! Becoming fluent at this level means if your DE lacks a gui for some task you won't get lost, you simply open a terminal!
As Sparty said, if you have a system with VM capability, build it there. You can import your bare metal image you from a backup later also. With the xorg installed on the CLI based image, you can have mouse and cut-n-paste function (vdagent?) between the VM host and this new system. If this is system #1, make the backup before all the extra gui parts are in place, and then once you have your xfce/vm system built, import that base image and use it to explore all other DE flavors in a VM! As this flow develops you can upgrade and test in the VM's, making your upgrade to the main system safer.