<?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: Tejas Chaudhari</title>
    <description>The latest articles on DEV Community by Tejas Chaudhari (@tejasness).</description>
    <link>https://dev.to/tejasness</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%2F577414%2Fc6b2cbfb-501c-4783-9db1-8bf460a0c50f.jpg</url>
      <title>DEV Community: Tejas Chaudhari</title>
      <link>https://dev.to/tejasness</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tejasness"/>
    <language>en</language>
    <item>
      <title>Create disposable development environment in remote server using Docker</title>
      <dc:creator>Tejas Chaudhari</dc:creator>
      <pubDate>Wed, 14 Jul 2021 04:20:55 +0000</pubDate>
      <link>https://dev.to/tejasness/create-disposable-development-environment-in-remote-server-using-docker-40ll</link>
      <guid>https://dev.to/tejasness/create-disposable-development-environment-in-remote-server-using-docker-40ll</guid>
      <description>&lt;p&gt;Its easy to create development container using remote containers extension of VS Code, but what if we want to create such disposable development server in remote server using docker? In this article I will show you how to create user in ubuntu container runing on docker, also i will provide steps to connect that disposable container to VS Code.&lt;/p&gt;

&lt;p&gt;Firstly connect to remote server using remote ssh extension in VS Code.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flfexi64ft13pmx50e4zs.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flfexi64ft13pmx50e4zs.png" alt="Alt Text" width="385" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I assume you already installed Docker and added user into docker group, to create disposable development environment we will use ubuntu:focal image from docker registry.&lt;/p&gt;

&lt;p&gt;Run this command to create detached interactive ubuntu server&lt;/p&gt;

&lt;p&gt;docker run -dit ubuntu:focal /bin/bash&lt;/p&gt;

&lt;p&gt;To create container with bind mount, run this command in any folder&lt;/p&gt;

&lt;p&gt;docker run -dit -v $(pwd):/root — name test5 ubuntu:focal /bin/bash&lt;/p&gt;

&lt;p&gt;In Docker section of VS Code check where your server and right click it (Incase you don't have docker features in VS Code, Install Docker extension)&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj6484t4i2osg3yw1f3h9.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj6484t4i2osg3yw1f3h9.png" alt="Alt Text" width="502" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select Attach Visual Studio Code, now VS Code will connect to the docker container running in remote server.&lt;/p&gt;

&lt;p&gt;You can use development container as a root user&lt;/p&gt;

&lt;p&gt;To create user in container follow below steps:&lt;br&gt;
firstly we have to add sudo package to give admin previleges to the user&lt;/p&gt;

&lt;p&gt;apt update&lt;/p&gt;

&lt;p&gt;apt install sudo&lt;/p&gt;

&lt;p&gt;adduser tejas&lt;br&gt;
(tejas is the name of user)&lt;br&gt;
(Create password for user and add details)&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvtluz1ysjaj67p8shmbz.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvtluz1ysjaj67p8shmbz.png" alt="Alt Text" width="468" height="307"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;after that add user in groups to get admin previleges.&lt;/p&gt;

&lt;p&gt;adduser tejas sudo&lt;/p&gt;

&lt;p&gt;adduser tejas tejas&lt;/p&gt;

&lt;p&gt;groups tejas ( to check user’s is groups)&lt;/p&gt;

&lt;p&gt;now switch to user from root&lt;/p&gt;

&lt;p&gt;su - tejas&lt;/p&gt;

&lt;p&gt;to automatically open terminal in user folder&lt;/p&gt;

&lt;p&gt;install zsh, oh-my-zsh&lt;/p&gt;

&lt;p&gt;change default shell of vscode terminal to zsh&lt;/p&gt;

&lt;p&gt;and add these commands in .zshrc config file&lt;/p&gt;

&lt;p&gt;su tejas&lt;/p&gt;

&lt;p&gt;cd /home/tejas&lt;/p&gt;

&lt;p&gt;If you have any questions ask me on twitter: &lt;a href="https://twitter.com/tejasc0" rel="noopener noreferrer"&gt;https://twitter.com/tejasc0&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ubuntu</category>
      <category>vscode</category>
      <category>remotecontainers</category>
    </item>
    <item>
      <title>WSL2 GUI Setup in Windows 10</title>
      <dc:creator>Tejas Chaudhari</dc:creator>
      <pubDate>Tue, 25 May 2021 06:49:41 +0000</pubDate>
      <link>https://dev.to/tejasness/wsl-gui-setup-507p</link>
      <guid>https://dev.to/tejasness/wsl-gui-setup-507p</guid>
      <description>&lt;p&gt;&lt;em&gt;In the recent release of windows 10 dev build 21364, microsoft announced early dev preview of WSL GUI app support, in this article i will show you how to setup GUI on WSL.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Note that for this setup you should be Windows Insider and Windows 10 Insider Preview build 21362+ is required.&lt;/p&gt;

&lt;p&gt;Open Powershell with admin privileges&lt;/p&gt;

&lt;p&gt;run the command&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb70p8pv96qc16ll7us6b.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb70p8pv96qc16ll7us6b.png" alt="Alt Text" width="640" height="408"&gt;&lt;/a&gt;&lt;br&gt;
after installation, reboot the system, after reboot installation procedure will continue.&lt;/p&gt;

&lt;p&gt;create username and password&lt;/p&gt;

&lt;p&gt;Whola the setup is complete, now you can install any ubuntu software using apt package manager or by manually installing .deb file using command “sudo dpkg -i deb-package-name”&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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcc49k6obnnxf3f1xtp9u.png" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcc49k6obnnxf3f1xtp9u.png" alt="Alt Text" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wsl</category>
      <category>wsl2</category>
      <category>wslg</category>
    </item>
  </channel>
</rss>
