- git (https://git-scm.com/download/win)
- visual studio community
- visual code
- mobaxterm (https://mobaxterm.mobatek.net/)
- vim (https://www.vim.org/download.php, install with "Full" support)
- miniconda
- wsl
- Upgrade current version open a powershell , run the following cmd
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Preview"
- Change the default login location
- open pwoershell as admin, run the following command in the terminal
PS> $PROFILE | fl -Force
- edit the target profile.ps1, my target is "C:\Users" , restart to check
Set-location C:\Users
reference: https://blog.matrixpost.net/set-powershells-default-working-directory/
[Error] profile.ps1 cannot be loaded because running scripts is disabled on this system error check this link: https://www.sharepointdiary.com/2014/03/fix-for-powershell-script-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system.html
- create alias
notepad $PROFILE
For example, I created cd2 to go 2 folders upwards. Add the following lines to the powershell profile.
function cd2up { cd ../../ }
new-alias cd2 cd2up
- Upgrade
Type the following command in the pwsh window to check the current version
$PSversionTable
For a new release, you will need to go to official website to find the right installer for your system (in my case, it is on github https://github.com/PowerShell/PowerShell/releases) On windows, I use msi file.
Sometimes, you download a portable program, but you want to run the exe system wide without typing the path first. You can add the program path to the system PATH. Below is the process. ``` System -> Advanced system settings -> Under "Advanced" tab, click "Environment Variables" -> System variables -> edit "Path" ``` Allow save credentials for remote desktop accessreference : https://theitbros.com/enable-saved-credentials-usage-rdp/
select two files, right click, "Compare Selected"
For python development, you can download miniconda for free.On windows, you will need to run "Anaconda Powershell Prompt" to install packages.
To install jupyter notebook, if you have http000 issue, try the following command.
conda config --set ssl_verify no
check this post for more details.
install some packages
conda install numpy scikit-learn pandas matplotlib seaborn
conda install pytorch torchvision -c pytorch
conda install scikit-image
open command prompt as admin
check avail linux distro
wsl.exe --list --online
set use v2
wsl --set-default-version 2
install linux
wsl.exe --install -d <LinuxName>
update
sudo apt update
sudo apt upgrade
sudo apt install build-essential
Noted that, WSL mounts the local drive at /mnt/ folder in your Linux distros.
You drive C will be mounted under /mnt/c/
Make sure "multitasking settings"-> snap windows is turned on.
You can use window key + up/down to split desktop into multiple windows.
On windows10/1, use win + tab to create a virutal desktop
To switch, press win + ctrl + left/right arrow
Open 'services', select 'Auto Time Zone Updater', right click properties, choose 'Automatic' for startup type, and save the setting.