[SOLVED] Arch install on UEFI
Welcome, Guest.

ANNOUNCEMENT:

JOIN US FOR ANOTHER LIVE STREAM!
Thursday October 18th @ 7PM EST UTC -5
TOPIC: Fun With Open Broadcast Studio
Visit Spatry's Cup of Linux on Youtube!

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

Offline Santo_101

  • Newbie
  • **
  • Posts: 37
  • Country: no
  • 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: You are not allowed to view links. Register or Login
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: You are not allowed to view links. Register or Login
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
mkdir /mnt/home
mount /dev/sda3 /mnt/home
3.Mirror Lists
Code: You are not allowed to view links. Register or Login
nano /etc/pacman.d/mirrorlist4. Pacstrap /mnt base base-devel
Code: You are not allowed to view links. Register or Login
pacstrap /mnt base base-devel5. Genfstab -U -p /mnt >> /mnt/etc/fstab
Code: You are not allowed to view links. Register or Login
genfstab -U -p /mnt >> /mnt/etc/fstab
nano /mnt/etc/fstab
6. arch-chroot /mnt
Code: You are not allowed to view links. Register or Login
arch-chroot /mnt7. nano /etc/locale.gen
Code: You are not allowed to view links. Register or Login
nano /etc/locale.gen
locale-gen ln -s /etc/share/zoneinfo/yourtimezone/town /etc/localtime
hwclock --systohc --utc
8. echo chosenhostname > /etc/hostname
Code: You are not allowed to view links. Register or Login
echo chosenhostname > /etc/hostname9. mkinitcpio -p linux
Code: You are not allowed to view links. Register or Login
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: You are not allowed to view links. Register or Login
passwd11. pacman -S grub efibootmgr dialog iw wpa_supplicant
Code: You are not allowed to view links. Register or Login
pacman -S grub efibootmgr dialog iw wpa_supplicant12. Install Grub
Code: You are not allowed to view links. Register or Login
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: You are not allowed to view links. Register or Login
exit14. umount /mnt/boot /mnt/home
Code: You are not allowed to view links. Register or Login
umount /mnt/boot /mnt/home
umount /mnt
15. reboot
Code: You are not allowed to view links. Register or Login
shutdown -r now16. add user
Code: You are not allowed to view links. Register or Login
useradd -m -g users -s /bin/bash (username)
passwd (username)
17. Configure Pacman
Code: You are not allowed to view links. Register or Login
nano /etc/pacman.conf
Uncomment multilib
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
18. Sync and update
Code: You are not allowed to view links. Register or Login
pacman -Syu19. EDITOR=nano visudo (add username)
Code: You are not allowed to view links. Register or Login
EDITOR=nano visudo (add username)20. install AUR helper
Code: You are not allowed to view links. Register or Login
pacman -S yaourt21. Logout and sign in with your own username
22. Xorg
Code: You are not allowed to view links. Register or Login
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: You are not allowed to view links. Register or Login
sudo pacman -S xfce4 xfce4-goodies lightdm-gtk-greeter lightdm-gtk-greeter-settings
sudo systemctl enable lightdm.service
24. Additional stuff
Code: You are not allowed to view links. Register or Login
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: You are not allowed to view links. Register or Login
Sudo pacman -S plasma
sudo systemctl enable sddm
or Gnome:
Code: You are not allowed to view links. Register or Login
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: 4780
  • Country: us
  • 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...
"Wipe that NERVOUS expression off of your face, 3PO!" -General Leia Organa SWTLJ

Offline Detroit_Bad_Boy

  • Full Member
  • ****
  • Posts: 153
  • Country: 00
  • 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: 268
  • Country: us
  • Old Dog Learnin' New Tricks
Re: Re: [SOLVED] Arch install on UEFI
« Reply #3 on: April 06, 2018, 04:06:26 AM »
You are not allowed to view links. Register or Login
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: 4780
  • Country: us
  • 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!
"Wipe that NERVOUS expression off of your face, 3PO!" -General Leia Organa SWTLJ

Offline Ironclaw

  • Terminal Multiplexer
  • Staff Member
  • ********
  • Posts: 269
  • Country: us
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.

You are not allowed to view links. Register or Login
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

  • Full Member
  • ****
  • Posts: 229
  • Country: us
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.