How I install Arch Linux (with all the steps in the first comment)

Опубликовано: 27 Октябрь 2024
на канале: BananaHackers
434
11

Arch Linux is not just a Linux distribution, but a life experience!
I recommend this distro to more advanced users, as installation requires the use of the shell.
There are more tutorials on the internet, and the Arch Linux wiki is the more comlete and detailed https://wiki.archlinux.org/index.php/...

My only change to the guide is the installation of everything I need directly with the "pacstrap" command at the beginning (basic system, kernel and firmware files, but also the GNOME desktop environment, a display manager, Firefox, GRUB, the WiFi selector, Xorg and a network manager) and not in the end like other guides, using the command:
"pacstrap /mnt base linux linux-firmware gnome nano net-tools iw gdm firefox xorg grub network-manager-applet"

Just read the first comment for the complete list of commands.

TIMESTAMP

00:00 START THE INSTALLER
00:50 SET KEYBOARD FOR ITALIAN
loadkeys it
01:10 CHECK THE INTERNET CONNECTION
ping bananahackers.net
01:28 SET THE SYSTEM DATE/TIME
timedatectl set-ntp true
01:40 CHECK PARTITION LAYOUT AND START THE INBUILT UTILITY ON THE MAIN PATH (for me is /dev/sda)
fdisk -l
01:43 cfdisk /dev/sda
02:37 PARTITIONING USING CFDISK, THEN FORMAT THE LINUX PARTITION (for me is /dev/sda1)
mkfs.ext4 /dev/sda1
03:00 AND ENABLE THE SWAP (on /dev/sda2)
mkswap /dev/sda2
03:03 swapon /dev/sda2
03:28 MOUNT THE BOOT PARTITION (where I will install Arch Linux, in /dev/sda1)
mount /dev/sda1 /mnt
04:00 AND INSTALL EVERYTHING YOU WILL NEED (near base, linux and linux-firmware you can add a desktop environment, a display manager, some programs, applet and tools and directly the GRUB, that you will configure at the end of the installation)
pacstrap /mnt base linux linux-firmware gnome nano net-tools iw gdm firefox xorg grub network-manager-applet
04:50 THIS WILL TAKE SEVERAL MINUTES, I HAD TO CUT THE VIDEO
06:00 NOW WE HAVE TO GENERATE THE FSTAB FILE FOR ALL THE PARTITIONS
06:30 AND ENTER THE INSTALLED SYSTEM AS ROOT FOR SOME CONFIGURATIONS
arch-chroot /mnt
06:44 SET THE LOCAL TIME (in my case is Italy, so /Europe/Rome... you must use a different country, just use "ls /usr/share/zoneinfo" if you're not sure)
ln -s /usr/share/zoneinfo/Europe/Rome /etc/localtime
07:28 SET THE SYSTEM CLOCK
hwclock --systohc
07:50 USE A TEXT EDITOR (I've previously installed "nano", you can use a different one, like "vi", if you need... if you've not installed it, sue the command "pacman -S nano")
nano /etc/locale.gen
08:36 NOW THAT YOU'VE UNCOMMENTED YOUR LANGUAGE (removed "#") JUST SAVE AND CHECK THE SYSTEM LOCALE
locale-gen
08:56 GET NOTE, IN THE PREVIOUS STEP, OF YOUR "LOCAL" PARAMETHER (for me was italian), THEN SET YOUR LANGUAGE
nano /etc/locale.conf ----------------- LANG=it_IT.UTF-8
09:36 AND THE KEYMAP FOR YOUR LANGUAGE (if you're not sure, check on the official wiki)
nano /etc/vconsole.conf ----------------- KEYMAP=it-latin1
10:18 NOW ADD AN HOSTNAME
10:42 AND NOW ADD "127.0.0.1 localhost" and "127.0.1.1 YOUR-HOST-NAME" to the "hosts" file
nano /etc/hosts ------------------- 127.0.0.1 localhost
11:23 NOW YOU MUST LOAD ALL THE MODULES
mkinitcpio -P
12:35 CREATE A PASSWORD FOR "ROOT" AND CHEATE A NORMAL USER WITH SOME PERMISSIONS
passwd
useradd -m -G users,wheel,audio,video -s /bin/bash USER
passwd USER
13:40 ENABLE THE DISPLAY MANAGER (in my case "gdm" that I've installed at the begin) AND THE NETWORK MANAGER
systemctl enable gdm
systemctl enable NetworkManager
14:09 WE HAVE ALREADY INSTALLED GRUB (normally the guide want you install it with the command "pacman -S grub", this will giwe you also a little "help"), THEN WE HAVE ONLY TO LOAD THE INSTALLER AND TO GENERATE THE GRUB.CFG FILE
grub-install --target=i386-pc /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
15:00 EXIT THE INSTALLATION AND REBOOT
exit
reboot
16:06 ENJOY YOUR ARCH LINUX FRESH INSTALLED!

Distrowatch : https://distrowatch.com/table.php?dis...
Distrotest : https://distrotest.net/Archlinux

--------------------------------------------------------------------------------

KaiOS is a new operating system for ARM chipsets, running on a Linux kernel. It is written in Javascript, HTML and CSS and is oriented towards smart feature phones. In fact, it works well on 512 MiB of RAM or less. Some of the most popular KaiOS phones are the Nokia 8110 4G, 2720 Flip and 800 Tough, Jio Phone, Positivo P70S, Orange Sanza and other new Energizer phones. If you want learn more:

BANANAHACKERS - https://ivan-hc.github.io/bananahackers

CONTACT US:
Google Groups (comp.mobile.nokia.8110) = https://groups.google.com/forum/banan...
Facebook =   / bananahackers-101263954558113  
Twitter =   / bananahackers  
Discord = https://discordapp.com/invite/rQ93zEu
YouTube =    / bananahackers  
E-mail = [email protected]

If you wish, you can support me on PayPal https://www.paypal.com/paypalme/ivana...