My journey with Windows Subsystem for Linux (WSL)

Search for a command to run...

No comments yet. Be the first to comment.
What you need to know
Is My Site Being Found or Referenced in ChatGPT?
Google offers a suite of powerful tools that, while distinct in their primary functions, often overlap in the metrics and dimensions they collect or can be integrated to provide a more holistic view of your digital presence. The specific metrics and ...
A must-read from a16z that sheds light on the evolving landscape of digital marketing. In the age of ChatGPT, Perplexity, and Claude, Generative Engine Optimization (GEO) is positioned to become the new playbook for brand visibility, signalling that ...
Are you a Shopify store owner or marketing professional struggling with fragmented data and missed attribution? It's time to unlock the full power of your marketing efforts with a truly robust and future-proof tracking solution! I am offering a com...
I heard about Windows Subsystem for Linux (WSL), and when I switched to Windows 10, I give WSL for a spin. I am not a full-stack developer and my area is in Data Analytics. This article serve as an introductory to setting up WSL on Windows 10
This are my notes to look back.
I used to install Virtual Machine (VM) to host Docker so I can work on some Data Science tutorial.
My interest with Linux piqued thanks to mucking around with Docker command. I have success with running Ubuntu on Virtual Machine on Windows 8. But not so with dual-booting. Having 2 operating systems on a hard drive is a rabbit hole I regretted going down. (Another blog post on this some other time.)
The whole process from turning on WSL on Windows to installing all the essential Anaconda packages tooks me around 55 minutes. Your mileage might vary.
If you got problem, try using BASH like
bash Anaconda3–2019.03-Linux-x86_64.sh

I hit the brick wall. One of the issues encountered Connection error while installing vscode with anaconda I sort of side-step this issue as I already installed Visual Studio Code on the Windows side (not in WSL).

I verified this by typing in 'code .' in Windows Subsystem for Linux to launch Visual Code Studio. It shows the current directory in the WSL environment!
Of course, you can edit codes within the WSL environment, but I just find editing code in Command Line (Terminal) pretty restrictive for me. You can quickly editing text in a file without leaving the WSL command line with built-in tools like Vim and Nano

The Ubuntu on WSL terminal can be started via:
The app tile in the Windows Start menu (or pinned to your taskbar)
WSL - Remote extension for Visual Studio Code.
The wsl command on the Windows command prompt or PowerShell
By running ubuntu1804.exe, etc. on the Windows command prompt or PowerShell Useful Resources
To use both Windows and Linux on your computer, with a fully integrated file system
IF you have an existing Linux Distribution under WSL1, here the code to remove it
wsl --unregister Ubuntu-18.04
https://towardsdatascience.com/setting-up-a-data-science-environment-using-windows-subsystem-for-linux-wsl-c4b390803dd
https://medium.com/hugo-ferreiras-blog/using-windows-subsystem-for-linux-for-data-science-9a8e68d7610c