Friday, May 9, 2025

[SVN] Check the status


Depending on what you want to know between your working copy and the latest svn server repository, without updating your local working copy, here is what you can do:

if you want to know what has been changed in svn server repository, run command:
$ svn st -u

[Python] What is the best practice for managing Python environments inside WSL?

I am using VS Code with WSL and use Miniconda on Windows, what is the best practice for managing Python environments inside WSL?

(answers generated by ChatGPT)

Using a separate Miniconda installation inside WSL gives you the most consistent and manageable Python environment experience (isolated from system Python).

🔧 Steps:

  1. Install Miniconda in WSL:

    bash

    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh bash Miniconda3-latest-Linux-x86_64.sh

    Follow the prompts to install, and allow it to add conda to your .bashrc or .zshrc.

Thursday, May 8, 2025

[Linux] SSH key pair initiation or copy

Working with SSH Key Pairs

This is to set up the key once, and then don't need to enter the passphrase every single time:

Use an ssh-agent in WSL with your ssh setup from windows 10 | by Philipp Scheit | Medium

Create new key pair

Use the ssh-keygen command to generate a public and private authentication key pair. Authentication keys enable you to connect to a remote system without needing to supply a password each time that you connect. 

To create a public and private SSH2 RSA key pair. To create an SSH key pair by using an algorithm other than the default RSA algorithm, use the -t option. Possible values that you can specify include the following: dsaecdsaed25519, and rsa. In this case, I use ed25519 algorithm.

Wednesday, May 7, 2025

[Windows] Set up Linux subsystem on Windows 11

After more than five years, I need to set up WSL again, on another Windows machine (yech...see [Windows] The first full crash ever!!!)

It was nice that I documented what I have done back in 2019 in this post: [Windows] Set up Linux subsystem on Windows 10. It was also unfortunate that most of these instructions no longer worked:(

Luckily it is easier. Here is the new instruction: Install WSL | Microsoft Learn

After installation, the most intriguing thing is setting up the theme. The theme is not just about accessibility - how clear you can see the code and comments. The more you set it up like you decorate your home, the more comfortable you will feel while coding, and more joy it will bring.