Aptivi<p><strong>Arch Linux WSL is now official!</strong></p><p>Windows Subsystem for Linux was released on August 2nd, 2016, for Windows 10 systems. Since then, WSL 2 was released on 2019 to bring more improvements, including GUI support for Linux desktop applications. It initially only supported Ubuntu, but we’ve seen more and more distributions support WSL.</p><p>One of the Linux distributions that supports WSL is Arch Linux, which has been recently made official. You can find instructions on how to install Arch Linux on WSL in the below button:</p> <a class="" href="https://wiki.archlinux.org/title/Install_Arch_Linux_on_WSL" rel="nofollow noopener noreferrer" target="_blank">Installation instructions</a> <p>This allows Windows users to try out Arch Linux using the Windows Subsystem for Linux feature. Please note that you must have WSL version 2.x installed, because Arch Linux doesn’t support WSL 1.x.</p><p>The Arch Linux team recommends that, once you install Arch Linux WSL, you’ll have to run the Pacman database synchronization using the <code>pacman -Sy</code> command. Optionally, you’ll have to install all available upgrades using the <code>pacman -Syu</code> command.</p><p>By default, you’ll get a default root account, so you may have to configure your Arch Linux WSL to create a new user to ensure that you have better experience. After installing Arch and updating the packages, follow the below steps to create a user account:</p><ol><li>Open Arch Linux WSL</li><li>Use the <code>useradd</code> command to add a user<ul><li>For example, if you want a user account called <code>tux</code>, use <code>useradd tux</code></li></ul></li><li>Use the <code>groupmod</code> command to add a <code>wheel</code> group for <code>sudo</code> and to add yourself to the group<ul><li>Execute <code>groupadd wheel</code></li><li>Execute <code>groupmod -U tux -a wheel</code></li><li>Optionally, ensure that your user gets added to the wheel group using the <code>groups tux</code> command.</li></ul></li><li>Install <code>sudo</code> and allow users under the <code>wheel</code> group to execute <code>sudo</code><ul><li>Execute <code>pacman -Sy sudo vim</code></li><li>Execute <code>visudo</code> (recommended) or <code>vim /etc/sudoers</code> (not recommended)</li><li>Find the <code># %wheel ALL=(ALL:ALL) ALL</code> line (usually line 125) and uncomment it by removing the hashtag character, then save the changes using the <code>:w!</code> command.</li></ul></li><li>Create the home directory for your user and correct its ownership<ul><li>Execute <code>mkdir /home/tux</code></li><li>Execute <code>chown -R tux:tux /home/tux</code></li></ul></li><li>Exit the current WSL session and change the default user for the <code>archlinux</code> distribution<ul><li>Refer to <a href="https://learn.microsoft.com/en-us/windows/wsl/basic-commands#change-the-default-user-for-a-distribution" rel="nofollow noopener noreferrer" target="_blank">this documentation</a> for more information (there are more methods documented <a href="https://superuser.com/a/1627461" rel="nofollow noopener noreferrer" target="_blank">here</a>)</li><li>If you’re using WSL 2.4.10 or later, use the <code>wsl --manage <distro> --set-default-user <username></code> command. For example, use <code>wsl --manage archlinux --set-default-user tux</code>.</li></ul></li><li>Re-open the Arch Linux WSL distribution and verify that your user account is used instead of the <code>root</code> account.</li></ol><p><span></span></p><p><a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/arch-linux/" target="_blank">#ArchLinux</a> <a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/linux/" target="_blank">#Linux</a> <a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/news/" target="_blank">#news</a> <a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/tech/" target="_blank">#Tech</a> <a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/technology/" target="_blank">#Technology</a> <a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/update/" target="_blank">#update</a> <a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/windows/" target="_blank">#Windows</a> <a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/windows-subsystem-for-linux/" target="_blank">#WindowsSubsystemForLinux</a> <a rel="nofollow noopener noreferrer" class="hashtag u-tag u-category" href="https://officialaptivi.wordpress.com/tag/wsl/" target="_blank">#WSL</a></p>