Before Everything¶
Please get the following items ready before you start.
WSL¶
enable the developer mode
install Ubuntu
enable the WSL function
open Ubuntu (For the first time, it will install itself and ask you to create a default UNIX user account)
change apt source
open file /etc/apt/sources.list with root privilege
replace the original contents with
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverseplease replace the codename (bionic) with that of your system,which could be queried withlsb_release -cchange pip source
create file ~/.pip/pip.conf
fill it with
[global] index-url = https://mirrors.aliyun.com/pypi/simple [install] trusted-host=mirrors.aliyun.cominstall basic tools
sudo apt-get update sudo apt-get -f install sudo apt-get upgrade sudo apt-get install cmake ffmpeg g++ gcc gitk make python3 python3-pip tree --fix-missing sudo pip3 install numpy sphinxchange some settings
open file ~/.bashrc with root privilege
replace
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ 'with
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]@\[\033[01;34m\]\W\[\033[00m\]\$ '
Git¶
install Git and TortoiseGit
(https://git-scm.com/downloads)
Xming¶
VS Code¶
install VS Code
install some extensions
Better Comments
Binary
C/C++
Chinese (Simplified) Language Pack for Visual Studio code
Excel Viewer
Git History
Jupyter
Matlab
Octave
Python
Remote - WSL
Tcl
Verilog-HDL/SystemVerilog/Bluespec SystemVerilog
vscode-pdf
…
change some settings
enable Indent Using Spaces (press key ctrl+shift+p and search it)
disable C_Cpp: Code Folding of C/C++ extension (open C/C++‘s settings and search it)
…
open folders and reopen them in WSL
Now you can start to work!