System
Mount disk (usb etc.)
Assume the disk label is E:\
sudo mkdir /mnt/e # make mounting point
mount -t drvfs e: /mnt/e # WSL-compatible mounting type drvfs
Unmount before the device is ejected
Software
- docker in WSL
- install docker follow official instructions
- in case systemctl issue, activate docker by dockerd
- https://dev.to/bowmanjd/install-docker-on-windows-wsl-without-docker-desktop-34m9
- some errors might occur during installation, but docker can be activated in the end
- (optional might or not helpful) extra: systemctl for WSL https://github.com/DamionGans/ubuntu-wsl2-systemd-script
- nvtop is a htop like monitor procedure for GPU usage
- apt install nvtop
- https://github.com/Syllo/nvtop
- may lead torch.cuda.is_available() return false
- if occur, uninstall nvtop
- compile from repository will work
- Python3
- set pip for specific version
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.9 get-pip.py
- Python plot from terminal
- pip install tk
- export DISPLAY according to wsl setting
- Pytorch
- this page will give proper installation command https://pytorch.org/get-started/locally/
- cudnn
- https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html
- jupyter notebook
- sudo pip3 install jupyter
- sudo is required otherwise it may install in local directory of the user thus won’t work as a command
- execute by command “jupyter-notebook” at current repository
- Xilinx toolchain: Vitis, Vivado etc
- might need to install libncurses5, libncurses5-dev and libtinfo5 first
- install without GUI
./Xilinx_Unified_<VERSION>.bin --noexec --target installer # extract installer from .bin file in case not using *.tar based payload
./xsetup -b AuthTokenGen
./xsetup -b ConfigGen
sudo ./xsetup --agree XilinxEULA,3rdPartyEULA,WebTalkTerms --batch Install --config ${HOME}/.Xilinx/install_config.txt
- Set Windows Terminal key binding
- https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions
- e.g., { “command”: “prevTab”, “keys”: “ctrl+pageup” }
- often used commands
{
"command":
{
"action": "nextTab"
},
"keys": "ctrl+pgdn"
},
{
"command":
{
"action": "prevTab"
},
"keys": "ctrl+pgup"
},
{
"command":
{
"action": "moveTab",
"direction": "forward"
},
"keys": "ctrl+shift+pgdn"
}
- set starting directory
"startingDirectory": "\\\\wsl$\\Ubuntu-20.04\\home\\username"