Francisco Camargo

Logo

Data Scientist & Machine Learning Engineer

View the Project on GitHub francisco-camargo/francisco-camargo

Linux

Return to top README.md

Shell commands

Terminal Shortcuts

Ubuntu

Installing Ubuntu on a local machine

We need to place an ISO image on a thumb drive and then used said thumb drive to install Ubuntu on the machine of interest.

Official Ubuntu installation guide. I used Rufus to place the ISO image on a thumb drive. I had first tried belenaEtcher, as recommended by the guide, but was not successful.

Once the thumb drive was ready, I had some trouble booting from it on the machine of interest to initiate the installation process. I shut the machine down and turned it on with the thumb drive already in, this resulted in the thumb drive appearing in the boot list. From there I just followed the installation instructions via the Ubuntu installation GUI.

VSCode on Ubuntu

I installed VSCode via the AppCenter (which I think uses snaps)

Docker

The AppCenter has docker published by Canonical. But I am leary of using this.

WSL

Check if your PC can run Hyper-V

Guide

Install Ubuntu in WSL

Go to the Microsoft Store and install Ubuntu 20.04 (or whatever version you want).

From Windows, check what has been installed with

wsl --version
wsl -l -v

1712340010343

Within WSL, update apt with

sudo apt update && sudo apt upgrade

git should already be installed, if not you can install it with

sudo apt-get install git

Check for internet connection

To check if WSL has internet access:

From within WSL run

ping google.com

1712340102477

Terminate the command with ctrl+c

If you do not have internet access, be sure you are on the correct network (via VPN), if needed. Alternativly, you may need to modify the resolv.conf file. This thread describes how to do this. For some reason this gets undone on its own, so you may have to redo this again.

Where is this repo once it is cloned?

Where is this repo in my local? I can get to it from the Ubuntu terminal using cd dev_workflow or cd /home/francisco/dev_workflow In Windows I can find it at \\wsl$\Ubuntu-20.04\home\francisco\dev_workflow