Skip to content

WSL Linux Development Fundamentals

Master the basics of Linux development with WSL2 installation, setup, and essential configuration for AI development environments.

advanced10 / 10

Step 3: Professional Development Setup

Configure Git (Essential for AI Projects)#


# Set up your git identity

git config --global user.name "Your Name"
git config --global user.email "[your.email@example.com](mailto:your.email@example.com)"

# Configure better git defaults

git config --global init.defaultBranch main
git config --global pull.rebase false
git config --global core.autocrlf input

# Enable credential helper for seamless GitHub integration

git config --global credential.helper store

Install Essential AI Development Tools#


# Install Python development dependencies

sudo apt install -y python3-pip python3-venv python3-dev

# Install Node.js (useful for web-based AI tools)

curl -fsSL <https://deb.nodesource.com/setup_lts.x> | sudo -E bash -
sudo apt install -y nodejs

# Install useful utilities

sudo apt install -y htop tree unzip jq tmux screen

# Install build tools for compiling packages

sudo apt install -y gcc g++ make cmake

Set Up Python Environment Management#


# Install Miniconda for Python environment management

```text
wget <https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh>
bash Miniconda3-latest-Linux-x86\_64.sh -b
rm Miniconda3-latest-Linux-x86\_64.sh

Add conda to PATH

echo 'export PATH="$HOME/miniconda3/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Initialize conda

conda init bash
source ~/.bashrc

Create a dedicated AI development environment

conda create -n ai-dev python=3.11 -y
conda activate ai-dev


## Step 4: VS Code Integration

### Install VS Code Extensions for WSL

In VS Code on Windows, install these essential extensions:```json  
{  
"recommendations": [  
"ms-vscode-remote.remote-wsl

---
Section 10 of 10
View Original