In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today Xiaobian to share with you how to build Win10 development environment related knowledge points, detailed content, clear logic, I believe most people still know too much about this knowledge, so share this article for everyone to refer to, I hope you read this article after some harvest, let's learn about it together.
1、Chocolate Package Manager
For developers, building a development environment is the first step in all development links. However, in Windows environment, various installation tools and software versions are varied, and it is easy to download virus software. Therefore, for beginners, downloading the correct development software and building a good development environment is still difficult and skillful.
If you want to have a package management tool like linux or macos on windows platform, you can download the corresponding environment with a command and add the path of the environment to the environment variable without manual operation. However, such a package management tool already exists. Chocolate Package Manager happens to be one of the best and simplest solutions to build a development environment in Windows environment.
Package Manager, also known as software package management system, is a combination of tools that automatically install, configure, uninstall and upgrade software packages in computers. It is widely used in the installation management of various system software and application software.
Official website: chocolatey.org/
After Chocolate is installed, all environments under Windows, including node, npm, python, java, git, filezilla, etc., are installed with this tool. All packages do not need manual management since then. Even if you want to uninstall them, it is only a command.
2、Windows Subsystem for Linux
If we want to be able to learn and use Linux comfortably on Windows, Microsoft has solved that problem, and it's done well.
The Windows subsystem for Linux allows developers to run the GNU/Linux environment as-is-including most command-line tools, utilities, and applications-without virtual machine overhead.
2.1 Install WSL
Official website installation address: docs.microsoft.com/zh-cn/windows/wsl/install-win10
2.2 WSL1 upgrade to WSL2
WSL2 Installation Instructions: docs.microsoft.com/zh-cn/windows/wsl/wsl2-install
2.2.1 Win10 upgrade to version 18917 or later:
To make sure you're using version 18917 or later, join the Windows Insider Program and select either the Fast ring or the Slow ring.
Check for Windows updates and restart the system after updating
View Windows version
Settings--> System--> About
2.2.2 Ubuntu Upgrade WSL2 Tip The requested operation could not be completed due to virtual disk system limitations. Virtual hard disk files must be uncompressed and unencrypted and cannot be sparse.
Open directory C:\Users\lenovo\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag.
2.2.3 WSL2 and Win10 file systems access each other
After entering WSL2, everything is exactly the same as Linux system, and the translation system call method of WSL1 is different. WSL2 is based on virtual machine, but this virtual machine is not the same as ordinary virtual machine. Its environment is not isolated from windows. You can edit and change files of windows system in Linux, and edit and modify files of Linux system in windows. The two are interoperable. And if you launch a localhost application in linux, you can access it directly from your browser using localhost.
Take Ubuntu as an example, Ubuntu access Win10 file: Win10 file system mounted to Ubuntu under/mnt
Win10 access to the Ubuntu file system, simply run explorer.exe in Ubuntu Terminal. Command, you can view Ubuntu system files
2.3 zsh + oh-my-zshzsh Official Website: github.com/zsh-users/zshoh-my-zsh Official Website: ohmyz.sh/
First, install zsh.
sudo apt-get install zsh
Change the default Shell to zsh
chsh -s /bin/zsh
Install oh-my-zsh:
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Change zsh theme:
$ vi .zshrcZSH_THEME="ys"3、Windows Terminal
If you want a good command line tool, Microsoft launched Windows Terminal, support for multiple tabs, custom styles, GPU text rendering, various shortcuts, screen splitting, json custom configuration, etc.
Official address: github.com/microsoft/terminal
4、VSCode Remote
With the above three blessings, combined with VSCode, development on the win platform is no longer as troublesome as before. At least, development on the win platform, the development environment is troublesome, and the unix-like experience is not available.
Note: Use SSH service included in Win10 to connect WSL error, protocol mismatch, use VSCode Remote to connect WSL
The above is "Win10 development environment how to build" all the content of this article, thank you for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.