Install arch linux in virtualbox12/2/2023 Failing to do something the first - or first several - times isn’t failure. In addition to creating problems, the install script robs you of the opportunity to learn how Linux works that would otherwise be yours at absolutely no cost. Using a script in a VM will add even more layers of problems. I’ve never managed to complete a scripted installation in less than twice that, and then the configurations I had to correct took longer than the install itself. From a blank hard drive to fully functional KDE desktop, installing from the command line, takes me under half an hour. I’ve never seen an Arch install script that wasn’t more trouble than it was worth and didn’t take longer to use than installing the traditional way. First, I agree that you should ditch the script, and for a couple of reasons. You have been given some advice with which I agree and some with which I as a Linux user from before Slackware and Debian were released, do not. Linux is the most versatile operating system and within Linux, Arch is a particularly versatile distro. Mkswap /swapfile Back up the /etc/fstab file cp /etc/fstab /etc/fstab.To answer your question, of course, you’ll be able to run Arch on your computer. Uncomment: %wheel ALL=(ALL) ALL Install packages for GRUB pacman -S grub efibootmgr dosfstools os-prober mtools Create the directory for EFI boot mkdir /boot/EFI Mount the EFI partition mount /dev/ /boot/EFI Install GRUB grub-install -target=x86_64-efi -bootloader-id=grub_uefi -recheck Create the locale directory for GRUB mkdir /boot/grub/locale Copy the locale file to locale directory cp /boot/grub/locale/en.mo Generate GRUB’s config file grub-mkconfig -o /boot/grub/grub.cfg Create swap file fallocate -l 2G /swapfile It should look similar to the following (don’t copy this line in case they change it, but just add the two new items): HOOKS=(base udev autodetect modconf block lvm2 filesystems keyboard fsck) Create the initial ramdisk for the main kernel mkinitcpio -p linux Create the initial ramdisk for the LTS kernel (if you installed it) mkinitcpio -p linux-lts Uncomment the line from the /etc/locale.gen file that corresponds to your locale nano /etc/locale.gen (uncomment en_US.UTF-8) Generate the locale locale-gen Set the root password passwd Create a user for yourself useradd -m -g users -G wheel Set your password passwd Install sudo (may already be installed) pacman -S sudo Allow users in the ‘wheel’ group to use sudo EDITOR=nano visudo On the “HOOKS” line (line #52 or thereabouts), add “lvm2” in between “block” and “filesystems” Or both: pacman -S linux linux-lts linux-headers linux-lts-headers Install a text editor pacman -S nano Install optional packages pacman -S base-devel openssh Enable OpenSSH if you’ve installed it systemctl enable sshd Install packages for networking pacman -S networkmanager wpa_supplicant wireless_tools netctl Install dialog (required for wifi-menu) pacman -S dialog Enable networkmanager systemctl enable NetworkManager Install LVM support pacman -S lvm2 Edit /etc/nf nano /etc/nf Vgchange -ay Format the root partition mkfs.ext4 /dev/volgroup0/lv_root Mount the root partition mount /dev/volgroup0/lv_root /mnt Format the home partition mkfs.ext4 /dev/volgroup0/lv_home Create the home partition mount point mkdir /mnt/home Mount the home volume mount /dev/volgroup0/lv_home /mnt/home Create the /etc dirctory mkdir /mnt/etc Create the /etc/fstab file genfstab -U -p /mnt > /mnt/etc/fstab Check the /etc/fstab file cat /mnt/etc/fstab Install Arch Linux base packages pacstrap -i /mnt base Access the in-progress Arch installation arch-chroot /mnt Install a kernel and headers pacman -S linux linux-headersįor LTS: pacman -S linux-lts linux-lts-headers Lvcreate -l 100%FREE volgroup0 -n lv_home (or use something like "-L 250GB" if you want to make the volume size lower) Vgcreate volgroup0 /dev/ lvcreate -L 30GB volgroup0 -n lv_root Check if there is an Internet connection (if on wired) ip addr show For WiFi, you can use wifi-menu wifi-menu If you do have a network connection but no IP address use: dhcpcd Edit the mirrorlist (optional) nano /etc/pacman.d/mirrorlist Update repository index pacman -Syyy See partitions/drives on the system (find the name of your hard drive) fdisk -l Start the partitioner (fdisk) fdisk /dev/ (substitute for your device name, example: /dev/sda or /dev/nvme0n1) Show current partitions p Create EFI partition g (to create an empty GPT partition table)ģ0 Show current partitions again p Finalize partition changes w Format the EFI partition mkfs.fat -F32 /dev/ (for example: /dev/sda1) Set up lvm pvcreate -dataalignment 1m /dev/ Installation Steps Download latest Arch linux ISO
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |