Arch LInux Installation guide for Virtual Machine

Опубликовано: 06 Октябрь 2024
на канале: Richard Neal
1,124
8

A simple Arch Linux installation guide.

You should always know what type of hardware your system is running ahead of time before installing any Linux distro (CPU, motherboard, RAM, disk drives, etc...). Please leave a comment, share or like. Ask questions and I'll do my best to answer it.

-- Here is a list of commands I've executed in order.

01-ls /sys/firmware/efi/efivars

02-localectl

03-ping -c 3 www.yahoo.com

04-timedatectl set-ntp true

05-timedatectl status

06-lsblk

07-cfdisk /dev/sda
07a- Select GPT
07b- Create two partitions; one Linux Filesystem and the other Linux Swap Parition then exit.

08-lsblk /dev/sda

09-mkfs.ext4 /dev/sda1

10-mount /dev/sda1 /mnt

11-mkswap /dev/sda2

12-swapon /dev/sda2

13-pacstrap /mnt base base-devel
13b-Or type: pacstrap -i /mnt base base-devel

14-genfstab /mnt >> /mnt/etc/fstab

15-arch-chroot /mnt /bin/bash

16-nano /etc/locale.gen
16a-Look for your language and delete the hashtag in front of the line, arrow keys and page keys.
16b-Hit ctrl-o to save and enter.
16c-Hit ctrl-x to exit.

17-local-gen

18-tzselect
18a-Select your current Country and time zone.

19-ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime

20-hwclock --systohc --utc

21-mkinitcpio -p linux

22-pacman -S grub-bios

23-grub-install /dev/sda
23a-Else type:grub-instal --force /dev/sda

24-grub-mkconfig -o /boot/grub/grub.cfg

25-grub-mkconfig -0 /boot/initramfs-linux-fallback.img

26-echo vbox > /etc/hostname

27-passwd
27a-Create any password you want.

28-reboot

Get network connection
29-cd /sys/class/net/

30-dhcpcd :device name: