Consume Linux working Environment under Windows (WSL)

Source: Internet
Author: User
Tags line editor aliyun

Consume Linux working Environment under Windows (WSL)

Why are you so blind? Because recently changed a hard drive, made a dual system, and then habitually pressed ctrl+alt+t found nothing summoned out, and then suddenly remembered changed the system.

And then there are some issues that were not resolved with Windows previously, including but not limited to:

    1. The command line reacts too slowly (PowerShell has no speed tolerance, and press TAB is always smart to add./, cause Java This sentence also to delete a prefix), the compilation speed is too slow, windows will wait for him to compile, under Linux directly put a bunch of commands in the instant execution is over
    2. MinGW gdb is not good enough, one is to view the elements of the STL container can not be viewed, and then exit GDB always with the wrong end, such as Error return. /.. /gdb-7.6. 1/gdb/windows-nat.c:1275 was 5

Then there are some personal habits and so on.

Then I thought of WSL (Windows Subsystem for Linux) and tried to install him, and had some bold ideas

First install a Ubuntu18.04 in the WINDOWS10 store (as if the terminal experience of this release is better)

And then first change a source

sudo vim/etc/apt/sources.list

And then the original source of all the lines with the word ' # ' sign comments Off, and then add the source, note you can directly right-click (vim short use: After I switch to insert mode, and then Windows10 the command line right-click to paste, then ESC, then: W, then: q)

Deb http://mirrors.aliyun.com/ubuntu/bionic main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/bionic-security main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/bionic-updates main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/bionic-proposed main restricted universe multiverseDeb http://mirrors.aliyun.com/ubuntu/bionic-backports main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/bionic main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/bionic-security main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/bionic-updates main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/bionic-proposed main restricted universe multiverseDEB-SRC http://mirrors.aliyun.com/ubuntu/bionic-backports main restricted universe multiverse

Then update and install some basic gadgets, and Amway a modern command-line editor:Suplemon, so you can stop using vim later (Ctrl+d,c,v have, CTRL + Quit)

sudo apt-get updatesudo apt-get dist-upgradesudoinstall  GCCsudoinstall g++sudoinstall  python3sudo  Install python3-pipsudoinstall Suplemon

Note I'm not going to install the GUI because it might not be necessary to use this on Windows. If you need to know something about Xlaunch,

Chinese environment is not necessary, and its Chinese display is better than some cmd

Then this time with Cmder and Gow (the latter option), you can have a better terminal and use some of the Linux stuff in Windows

First add the Cmder installation directory to the environment variable

Then this opens a terminal under Admin, enter cmder.exe/register all and then open in each location Cmder

Then create a shortcut for Cmder, then click the shortcut key, then click on the shortcut key combination you want, then you can summon Cmder anytime, anywhere.

Then adjust the Cmder, first set in the settings below, then you can open WSL

Also set as

Then you can summon the Cmder at the top of the screen and adjust the transparency, and then you can hang it on the top to adjust the code.

And then the transparency is set here

Also set the shortcut key to summon it (so he will always be in the background)

Use it a little slower than the first start and then the quake back is not very comfortable outside very well QWQ

Consume Linux working Environment under Windows (WSL)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.