How do I turn win11 into a Mac step by step

Table of contents

[Three-finger drag]

[space preview] 

[Switch Ctrl and Alt]

[Use Linux commands] 

【other】 


I was used to developing on MacBook for a long time before, and now I switched to Windows for some reasons. I am not used to it either in use or in the system, so I made some modifications, and it gradually looks like a mac. The steps are as follows:

Download the software package first: link: https://pan.baidu.com/s/1i0SLVX6d9Peogm9HWrP1MA, extraction code: 84zv

[Three-finger drag]

I am used to the three-finger dragging on the touchpad on the Mac. On Windows, I need to tap first, and then drag, which is very inconvenient. So I found the software FastGestures-Setup-v2.1.25_x64-three-finger drag.exe .

At the same time, you can turn off the original one-finger click and drag:

To turn off the original three-finger gesture:

At this point, you can use three fingers to drag files or select text like a Mac.

[space preview] 

In the Finder folder on Mac, you can preview the content and size of the file by pressing the space bar, which is very convenient. In Windows, you need to right-click the properties to view the size, and you need to double-click to open to preview. Sometimes I want to quickly preview a lot of text content or pictures and videos in a folder, and it is very troublesome to click and open one by one. At this time, the QuickLook-3.6.7.msi software is used  . After installation:

 

[Switch Ctrl and Alt]

 Why switch these two keys? Because the copy in Mac is Command+C, you use your thumb to press Command; in Windows, it is Ctrl+C, and you use your little finger to press Ctrl. In Windows, the Alt key is almost exactly where the Command is in the Mac. Use  PowerToysUserSetup-0.70.1-x64-replace Ctrl and Alt keys.exe this software:

After setting, you can press Alt+C to copy, Alt+V to paste, and Alt+Tab to switch applications, basically similar to the Command operation on Mac.

In the process of using this software, I found that sometimes it is not stable, and some software will still fail to switch. For example, the built-in Notepad sometimes needs to be copied with Ctrl+C, but basically many software can be used compatible.

[Use Linux commands] 

The command line under Windows is very difficult to use, and it is not compatible with Linux. For example, dir is used to view the file list, but ls is used under Linux. One way is to install the Git client, and you can use some Linux commands:

In systems above Windows 10, WSL can be used, which is a Linux subsystem in the Windows system. 

wsl --list --online #查看可在线安装的linux系统发行版
wsl --install #安装ubantu
wsl --install -d <Distribution Name> #安装其他版本Linux系统

If an error is reported "An error occurred while installing one of the file systems. For more information, please run 'dmesg'."
Solution: After running wsl --update, run wsl --shutdown to restart wsl.

After the installation is complete, run the wsl command to enter the Linux subsystem:

At the same time, you can also see an Ubuntu system in the Windows Explorer:

Recommend another terminal tool under windows that I think is very useful: Fluent Terminal, which can be downloaded for free directly in the app store:

After installation, simply set it up:

 

After the setting is completed, open the software, and the default is to enter the Linux subsystem directly, and then all Linux commands can be used. And you can use Ctrl+C and Ctrl+V to copy and paste. If you set the Ctrl and Alt keys above, you can use Alt+C/V to imitate Command+C/V on the Mac. It's good to experience it.

Then I can install a MySQL in this subsystem and log in with navicat in the window:

##Linux中
$ apt update
$ apt install mysql-server

$ vi /etc/mysql/mysql.conf.d/mysqld.cnf,注释下面两行:
# bind-address           = 127.0.0.1
# mysqlx-bind-address    = 127.0.0.1

# 登录,wsl2安装的mysql默认没有密码
mysql -u root
 
# root用户没有SYSTEM_USER权限,需要先赋权
grant system_user on *.* to 'root';
 
# mysql 8.0 以后需要用如下命令开启远程服务,其中添加了 用户名/密码:test/123456 的用户
CREATE USER 'test'@'%' IDENTIFIED BY '123456';
GRANT ALL ON *.* TO 'test'@'%'; 
ALTER USER 'test'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
FLUSH PRIVILEGES;

#重启mysql
service mysql restart

#查看wsl2的ip
ifconfig

Reference: https://blog.csdn.net/weixin_42580217/article/details/122583888 

【other】 

In addition, I think Mac has a very useful function that the folders in Finder can be expanded directly without clicking to view files. Although the Windows Explorer can also expand all folders, sometimes it is not easy to expand only a part of the folder. Later, I searched for a long time, and found a relatively easy-to-use software XYplorer_23.30.0100_Portable , which is also very powerful, and it is better than the built-in resource manager. Share it with everyone:

In the end, some people may ask why you don't use Mac directly, you have to go through all this trouble? In fact, there are many reasons. Maybe it’s too expensive to buy a Mac, or maybe it’s not possible to use a Mac because of other reasons. This simple modification will make it more similar to the operation on a Mac. Wouldn’t it improve the efficiency a bit?

Guess you like

Origin blog.csdn.net/rxbook/article/details/131452480