<?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: Justin Bauer </title>
    <description>The latest articles on DEV Community by Justin Bauer  (@justinbauerweb).</description>
    <link>https://dev.to/justinbauerweb</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%2F1104791%2F97a6d0e6-5930-4307-a1c9-8c5bf3ca8ed9.jpg</url>
      <title>DEV Community: Justin Bauer </title>
      <link>https://dev.to/justinbauerweb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/justinbauerweb"/>
    <language>en</language>
    <item>
      <title>Setting Up A Node.JS Environment On A Steam Deck</title>
      <dc:creator>Justin Bauer </dc:creator>
      <pubDate>Thu, 07 Sep 2023 20:53:25 +0000</pubDate>
      <link>https://dev.to/justinbauerweb/setting-up-a-nodejs-environment-on-a-steam-deck-53mk</link>
      <guid>https://dev.to/justinbauerweb/setting-up-a-nodejs-environment-on-a-steam-deck-53mk</guid>
      <description>&lt;p&gt;In this article, we'll walk through the steps to set up a Node.js development environment on a Steam Deck. The Steam Deck runs on SteamOS, which is a flavor of GNOME KDE, and uses Konsole as its terminal program. &lt;/p&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Prerequisites&lt;/li&gt;
&lt;li&gt;Setting up GitHub&lt;/li&gt;
&lt;li&gt;SSH Keys for GitHub&lt;/li&gt;
&lt;li&gt;SSH Keys for Azure DevOps&lt;/li&gt;
&lt;li&gt;Installing Node.js Using NVM&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Firstly, make sure you have &lt;code&gt;curl&lt;/code&gt; and &lt;code&gt;git&lt;/code&gt; installed. If they are not installed, open Konsole and run:&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="nb"&gt;sudo &lt;/span&gt;apt update
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;curl git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Setting up GitHub
&lt;/h2&gt;

&lt;p&gt;After installing the required packages, it's time to configure your GitHub credentials:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.email &lt;span class="s2"&gt;"you@example.com"&lt;/span&gt;
git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.name &lt;span class="s2"&gt;"Your Name"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;"you@example.com"&lt;/code&gt; with your GitHub email address and &lt;code&gt;"Your Name"&lt;/code&gt; with your GitHub username.&lt;/p&gt;

&lt;h2&gt;
  
  
  SSH Keys for GitHub
&lt;/h2&gt;

&lt;p&gt;To interact with GitHub repositories more securely, you can set up SSH keys:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Generate a new SSH key:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen &lt;span class="nt"&gt;-t&lt;/span&gt; ed25519 &lt;span class="nt"&gt;-C&lt;/span&gt; &lt;span class="s2"&gt;"you@example.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the SSH key to the ssh-agent:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;ssh-agent &lt;span class="nt"&gt;-s&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
ssh-add ~/.ssh/id_ed25519
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the SSH key to your clipboard:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;xclip
xclip &lt;span class="nt"&gt;-selection&lt;/span&gt; clipboard &amp;lt; ~/.ssh/id_ed25519.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finally, go to GitHub.com, navigate to &lt;strong&gt;Settings &amp;gt; SSH and GPG keys &amp;gt; New SSH key&lt;/strong&gt;, and paste your key.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  SSH Keys for Azure DevOps
&lt;/h2&gt;

&lt;p&gt;If you are also using Azure DevOps, generating an SSH key compatible with it is pretty straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Generate a new RSA SSH key:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen &lt;span class="nt"&gt;-t&lt;/span&gt; rsa &lt;span class="nt"&gt;-b&lt;/span&gt; 4096 &lt;span class="nt"&gt;-C&lt;/span&gt; &lt;span class="s2"&gt;"your-email@example.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the key to the ssh-agent:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;ssh-agent &lt;span class="nt"&gt;-s&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
ssh-add ~/.ssh/id_rsa_azure
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the key and add it to Azure DevOps:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; ~/.ssh/id_rsa_azure.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After copying the key, go to Azure DevOps settings and add the new SSH key.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Installing Node.js Using NVM
&lt;/h2&gt;

&lt;p&gt;We'll use Node Version Manager (NVM) to manage Node.js versions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Install NVM:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-o-&lt;/span&gt; https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Refresh your Konsole:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;source&lt;/span&gt; ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install the LTS version of Node.js:&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nvm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--lts&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's it! You've now set up a full-fledged Node.js development environment on your Steam Deck. Whether you're working with GitHub, Azure DevOps, or any other platform, these steps should get you up and running.&lt;/p&gt;

&lt;p&gt;Feel free to let me know if you have any questions or need further clarification on any of the steps. Happy coding!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>steamdeck</category>
      <category>node</category>
    </item>
  </channel>
</rss>
