wsl Configuration

windows app store to download ubuntu

Shortcuts: win+q
I chose the ubunto 18.04 LTSversion

Open the application error occurs when ubuntu

Here Insert Picture Description

Open "Windows subsystem for Linux" feature

Shortcuts: win+x a
enter the command line:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Run, follow the prompts to restart the computer

First run ubuntu

Shortcuts: win+q
Search: ubuntu, click Open, is expected to open the first two minutes to initialize, you will be prompted after installation 用户名and 密码setup
Here Insert Picture Description

wsl configuration

Shortcuts: win+r
Command line: wslstart using

Installation fish

Auto-completion tool

sudo apt-get install fish

Found error, as follows
Here Insert Picture Description

Baidu a bit and found a need to update the source, that is, enter the following command line

sudo apt-get update
sudo apt-get upgrade

Then continue

sudo apt-get install fish

You can download ...

The default setting shellisfish

Command Line:

vim ~/.bashrc

Edit the file, and then add a line at the end of

fish

Here Insert Picture Description
Start again wslto enter the fish

Installation nvm

node.js package manager

curl Download:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

or wget:

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

After the installation reboot

在用 curl 下载时,发现以下报错:

OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.gith

Solutions, turn off proxy

After a successful download, execute restart wsl ... nvm --versionview version confirmation download

carried out

source ~/.bashrc

Here I encountered a error

'case' builtin not inside of switch block

Later found to be entering the fishwindow, in fact, this is not a mistake, as long as the exitexit fishyou can use nvmthe

cd
cd home/liujianli
vim .bashrc

Adding environment configuration

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion  

Configuring here, it should be done

nvm install [node.js的版本号]

You can use node.jsthe

Published 23 original articles · won praise 0 · Views 564

Guess you like

Origin blog.csdn.net/JIANLI0123/article/details/103827546
Recommended