Comprehensive Guide to Booting Artix on a UEFI-Enabled Virtual Machine #Part 2
Siddhant Bali
UG Researcher, Computational Biology @MicroBiome Informatics Lab | Human Centered Design Dept. @PerSIsst Lab | CSD Junior @ IIIT-Delhi
This Article is continuation of : Comprehensive Guide to Booting Artix on a UEFI-Enabled Virtual Machine #Part1
usermod --append --groups wheel kintsugi
The command you provided uses a different syntax to achieve the same goal as the previous usermod -aG wheel kintsugi command. Here's a detailed breakdown:
in Vim, Editor (X is for delete,I is for insert,Esc and then write :wq to save and quit)
visudo
The visudo command is used to safely edit the sudoers file, which controls the permissions for users to execute commands as the superuser or other users. Here’s how to use visudo and what it does:
To grant the wheel group sudo privileges, you can follow these steps after running visudo:
Open sudoers file: Run the visudo command:
visudo
The line ALL=(ALL:ALL) ALL in the sudoers file defines the sudo privileges for a specific user or group. Let's break down what each part of this line means:
领英推荐
Putting it all together, ALL=(ALL:ALL) ALL means:
When you see this line in the sudoers file, it effectively grants the specified user or group full sudo privileges, allowing them to execute any command as any user or group on the system.
Here’s an example of how this might look in context within the sudoers file:
%wheel ALL=(ALL:ALL) ALL
This line means that any user in the wheel group can execute any command as any user or group on the system.
su -username
The su -username command is used to switch to a different user account in a Unix-like operating system. Here's how it works and what it does:
sudo -lU username
sudo pacman -Syu
ping google.com
reboot
sudo pacman -Syu command updates the package database and upgrades all installed packages on an Arch Linux-based system.
Conclusion: Congratulations! You've successfully set up a UEFI-enabled virtual machine to boot Artix Linux. You've learned how to partition the virtual hard drive correctly and configure the bootloader to boot the stock kernel. Explore further customization options and enjoy using Artix Linux on your virtualized environment!