Jeremy's Notes

The Reverie of a Techie


Sidebar

What is this thing?

You've stumbled across a blog that chronicles the interests of its author. You'll find technology how-tos, demonstrations, recommendations, and reviews. Stand by!




Follow me on Twitter, Facebook, and other social networks.

This is an old revision of the document!


Windows Subsystem for Linux (WSL) Setup on Windows 10

Penguin by Lars Meiertoberens from the Noun Project

This setup guide outlines the steps required to set up the Windows Subsystem for Linux (WSL) feature on a Windows 10 workstation.

Install WSL Feature through PowerShell

  1. As an admin/privileged user, open up PowerShell using “Run as Admin”.
  2. Within PowerShell, run the following commands to enable both WSL1 and WSL2 (VMs):

    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestar
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  3. Within PowerShell, download and install the Linux Kernel Update package using the following commands:

    Invoke-WebRequest –Uri https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
    .\wsl_update_x64.msi
  4. Within PowerShell, restart the Windows 10 workstation using the following command:

    Restart-Computer -Force

Setup Linux Environment (Ubuntu 20.04 LTS)

  1. Open PowerShell with the standard user account of the employee who will be utilizing WSL.
  2. Run the following commands within the PowerShell window to download and setup Ubuntu 20.004 within WSL:

    curl.exe -L –o ubuntu-2004.appx https://aka.ms/wslubuntu2004
    Rename-Item .\ubuntu-2004.appx .\ubuntu-2004.zip
    Expand-Archive .\ubuntu-2004.zip
    cd .\ubuntu-2004\
    .\ubuntu2004.exe
  3. You will now be in the initial setup stages of the Ubuntu environment, where you can set up the initial Linux user. Once the user is created and you are dropped into the Linux shell, you should run the following commands to get the latest security and bug updates:

    sudo apt-get update && sudo apt-get upgrade -y 
  4. Enjoy your day!

Sources

How to find files containing specific text in Linux?

Penguin by Lars Meiertoberens from the Noun Project If you would like to find a specific string of text within a directory of files, you can use the following command and example:

user@host:~$ grep -rnw '/path/to/directory/' -e 'searchterm'

Here's a breakdown of the example command and its parameters:

  • -r or -R will recursively (within directories) look at all files within the specified path.
  • -n will display the line number where the term shows up within each file.
  • -w Matches the whole word.

Sources

Share

Tags

Capstone

Blog by Neha Tyagi from the Noun Project This will be a short post…

I've finally reactivated the JeremysNotes.com blog using the Dokuwiki wiki-based CMS. There are still a few kinks in the site that I'm working to finalize as soon as my time and life allow. I chose Dokuwiki because of its flat file-based storage, simple syntax, and wiki nature, allowing this site to be more of a knowledge repository than just a blog.

Things to do

  • Create consistent namespaces
  • Create a logo
  • Setup an “About Me” page
  • Import old posts from my blogs of yesteryear.
  • Customize the default theme to remove the extra components.
  • Implement a caching mechanism for when this goes big time ;-)

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.

Read our privacy policy and how we use cookies

start.1608319423.txt.gz · Last modified: 2021/01/09 15:47 (external edit)