<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Phạm Minh Tấn</title>
    <description>The latest articles on DEV Community by Phạm Minh Tấn (@minhtanz1).</description>
    <link>https://dev.to/minhtanz1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F816413%2Fd26c5d90-c0b0-492e-a07a-15d130adbbef.png</url>
      <title>DEV Community: Phạm Minh Tấn</title>
      <link>https://dev.to/minhtanz1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/minhtanz1"/>
    <language>en</language>
    <item>
      <title>Running Discord on Arch Linux within WSL2 on Windows</title>
      <dc:creator>Phạm Minh Tấn</dc:creator>
      <pubDate>Fri, 26 Jul 2024 14:57:15 +0000</pubDate>
      <link>https://dev.to/minhtanz1/running-discord-on-arch-linux-within-wsl2-on-windows-e92</link>
      <guid>https://dev.to/minhtanz1/running-discord-on-arch-linux-within-wsl2-on-windows-e92</guid>
      <description>&lt;p&gt;This guide will walk you through installing and running Discord on Arch Linux installed through WSL2 on your Windows machine. It is often utilized for operating Discord rich presence software&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Installing Discord on Arch Linux:
&lt;/h3&gt;

&lt;p&gt;Open your Arch Linux terminal within WSL2 and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;pacman &lt;span class="nt"&gt;-S&lt;/span&gt; discord
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command uses &lt;code&gt;pacman&lt;/code&gt;, the package manager for Arch Linux, to install the official &lt;code&gt;discord&lt;/code&gt; package.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Install VcXsrv on Windows:
&lt;/h3&gt;

&lt;p&gt;Head over to &lt;a href="https://dev.tourl"&gt;https://sourceforge.net/projects/vcxsrv/&lt;/a&gt; to download and install VcXsrv on your Windows machine. VcXsrv provides an X server for Windows, which allows graphical applications running in WSL2 to display on your Windows desktop.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Configuring VcXsrv:
&lt;/h3&gt;

&lt;p&gt;After installation, run VcXsrv. You will see a configuration window. Follow the screenshots below for the configuration steps.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--9GU5n-DE--%2Ff_auto%2Fv1721839218%2Fugc%2Fcontent_deb0b814-617a-4d3b-a1a1-2b14ec0f45d7" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--9GU5n-DE--%2Ff_auto%2Fv1721839218%2Fugc%2Fcontent_deb0b814-617a-4d3b-a1a1-2b14ec0f45d7" alt="image" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--dPbtvezs--%2Ff_auto%2Fv1721839153%2Fugc%2Fcontent_383519b0-d14c-4d5a-abe4-48dbabad0bd5" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--dPbtvezs--%2Ff_auto%2Fv1721839153%2Fugc%2Fcontent_383519b0-d14c-4d5a-abe4-48dbabad0bd5" alt="image" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--5u6uRoEv--%2Ff_auto%2Fv1721839175%2Fugc%2Fcontent_93029734-37f8-441a-a051-7b636cbcffb2" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--5u6uRoEv--%2Ff_auto%2Fv1721839175%2Fugc%2Fcontent_93029734-37f8-441a-a051-7b636cbcffb2" alt="image" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  4. Running Discord:
&lt;/h3&gt;

&lt;p&gt;Back in your Arch Linux terminal, launch Discord using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;discord
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will start the Discord application.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--9yd_W5ut--%2Ff_auto%2Fv1721839333%2Fugc%2Fcontent_44c133ee-433a-4c3d-9724-a34f30363234" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--9yd_W5ut--%2Ff_auto%2Fv1721839333%2Fugc%2Fcontent_44c133ee-433a-4c3d-9724-a34f30363234" alt="image" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Verifying XLaunch Connection:
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;Make sure VcXsrv (identified as XLaunch in the system tray) is running on your Windows taskbar.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--bkvdBfFp--%2Ff_auto%2Fv1721839393%2Fugc%2Fcontent_7b63099a-a62b-405f-99ad-7f8e473760d8" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--bkvdBfFp--%2Ff_auto%2Fv1721839393%2Fugc%2Fcontent_7b63099a-a62b-405f-99ad-7f8e473760d8" alt="image" width="800" height="400"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If everything is configured correctly, the Discord application window should appear on your Windows desktop.&lt;br&gt;
Congratulations! You're now running Discord on your Arch Linux environment within WSL2 on Windows.&lt;/p&gt;

</description>
      <category>disocrd</category>
      <category>linux</category>
      <category>archlinux</category>
      <category>bash</category>
    </item>
  </channel>
</rss>
