Reasons and work notes for the tool / environment kitchen to switch the main PC from Linux to Windows + WSL2

Introduction

I'm just saying great things, but I'm an amateur who can only use software made by others. And it has a strong religion. If you are familiar with it, please let us know if you have any smarter methods or opinions.

Writer's environment

Background of the decision to transfer

I thought Linux was the best for advanced users. Freedom to set and select everything by yourself. A wealth of free tools for advanced users. And you can put it in the best laptop (= Thinkpad) freely.

But Linux has a big problem. Basically, the GUI is weak. Many commercial services usually don't support Linux properly. (On the contrary, Dropbox, Spotify, etc. that support it are wonderful) Still, I thought the convenience of Linux more than compensated for these shortcomings.

However, when I started Windows for the first time in a while (naturally it is a dual boot environment), the rendering of the browser is explosive. Even if you switch windows with lightning stones and move, the drawing catches up firmly. At home, I have a total of 6K external output with on-board graphics on my laptop, so I thought it couldn't be helped to some extent if it got stuck when using gnome. But on Windows they work comfortably. I should have set the driver so that Hardware acceleration works on Linux, but there are still many apps that do not support it (zoom, chrome video decode, etc.), and for some reason it is awkward. I'm sure Linux is faster if you just log in to Linux with the CLI and hit a command if you just want to run a calculation program, but Windows is faster for everyday use. And Windows has recently started running the Linux kernel on WSL2, and smart efforts like winget have begun. To be honest, this is the biggest reason for the change.

And secondly, almost all software also provides application drivers optimized for Windows. If you switch to Windows, there is an official Google Drive client, and ~~ Garbage ~~ LINE also offers native apps. You can watch 4k HDR videos on Youtube with Hardware support, and you can watch Amazon Prime Video in Full HD.

And third, I'm a student now, but I don't know at this point if I can use Linux once I get a job. If you can work efficiently on Windows, you will definitely be active after you get a job. ()

I thought that if I stopped gnome and changed to i3, the problem that was stuttering could be solved, but even if I took the time to prepare the environment, the fact that various apps are not supported will not change, so Windows is comfortable. I felt that it was better to do this.

Why not MBP? Most people will say that a mac is fine. Of course, there are good points in mac, but hardware is still a toy. It would be nice if MacOS got on the Thinkpad, but ... Here are some reasons.

――Although it is a personal computer, a keyboard-shaped cutting board occupies about half of the main body for some reason. --Glare display that only looks good (I think designers are good, but this article is from a developer's point of view.) --Physically heavy. The bezel is not thin either. ――It's natural that it's Type-C instead of Ligitning (), but on the contrary, is there only Type-C? Certainly it is an ideal form in the future, but in reality it is only possible to carry an adapter. --For some reason, Pro abolished the physical key and Touch Bar () ――It seems that the trackpad is good, but it doesn't matter if the man doesn't use it because he's a keyboard. ――It's still too expensive for the specs. (It's not a direct reason because I don't pay much attention to money when it comes to computers, but I can't help thinking that I'm losing to the cheaper Thinkpad even though it's so expensive) --Low quality as a practical industrial product such as design-oriented --It will break down soon --Heat exhaust performance () --Low clock transition () --Mac OS will certainly be easier to use than Windows. But there are still drawbacks ――It has a high affinity with Apple services, but Apple services (such as iCloud) have a lot of ~~ garbage ~~, so I only use Google services anyway. Or rather, Google is too strong. It doesn't matter if it has a high affinity with Apple services. --Docker cannot be used natively ――Although it is Unix, the details are annoying unlike Linux.

Given the above, I came to the conclusion that Windows on Thinkpad might be the best. (However, it may be Linux on Thinkpad depending on the environment, such as using it only for development purposes or not needing GPU support with a single display)


By the way, it is not here to line up the entrustment, and from here on, I will write down the research and memo when switching to Windows.

Windows environment construction

policy

--All development is on WSL2, so even if you make a mistake, you don't have to deal with the path environment and line feed code like garbage in windows. --However, there are problems with VS Code and Jetbrains IDE. At least in WSL1, VS Code takes less than a second to attach to WSL, and Jetbrains hasn't been investigated. On Linux, hitting $ code . opened it in an instant. --Leave all other daily applications such as browsers to windows. I'm sure most will support winget soon. GPU support app hurray

The tools I checked when changing trains below

WSL2 ――The distribution should be Manjaro, which is a stable rolling release, but can it be installed successfully? --Although volunteers were working on it, it seems to be unstable, so I obediently introduced Ubuntu and changed the package management to linuxbrew. ~~ Path management was awkward, so I returned to apt normally. --The shell was crispy with zsh + zgen + prezto until now, but I switched to fish with this opportunity. ――At the moment, I'm doing fish + fisher. Satisfied except that the grammar of shell script is very different from bash / zsh --I'm wondering whether to bring docker as it is on Ubuntu with apt or use docker for desktop for windows. It seems that apt does not pollute the environment on the windows side, but will windows be more convenient later?

Terminal

A dropdown terminal like guake is good.

Candidates at the moment

--Hyper: There are splits and plugins are good. But a little slow. - https://www.kimoton.com/entry/20181212/1544619130 - https://qiita.com/WGG_SH/items/65416692d545f888c6a9 --Fluent Terminal: Slightly slow. There seems to be no Dropdown option. Good to be in the Store --alacritty: Certainly fast. However, there is no drop down option. The issue says it's a feature that Windows Manager should support. (If so, please tell me the tool to realize it on Windows) --Windows Terminal: It's developing, but it's official, so it feels stable. --cmder: There is a dropdown and it is heavy --ConEmu: It seems to be the fork source of cmder. I'm sure this is also heavy --Terminus: issue says it supports dropdown

Since guake will not be usable, it is a good opportunity to introduce tmux as well.

Reference link

-In search of the best WSL environment in 2019

~~ Let's try Hyper for the time being. Since Windows Terminal supports GPU, I may switch to this if the Drop down option is implemented. Hyper It worked for the time being. The overlay package didn't work, but I fixed it by referring to the code in ㏚ and it worked. ~~

I made it Terminus. Although it is multi-platform, it targets Windows as the main target and has few bugs. In Hyper, even the vertical split of tab was not possible due to a bug, so I switched. Poor performance as a drawback. I had never thought that the shell was heavy even though I was using zsh, which is said to be heavy, but for the first time I realized the concept of heavy shell.

I mean, it's just now, but even in a terminal without dropdown, if you add a tool that can show / hide with hotkeys, can it be reproduced in a pseudo manner? I'm tired, so I'll keep Terminus for the time being.

In addition, I switched to Windows Terminal, which was stress max because Terminus was too heavy. Insanely fast. After all, the formula has a different sense of stability. I feel that it is faster than alacritty, which is said to be faster. Even if it has a few functions, it's the place you use the most, so it's a good idea to choose one that has a solid foundation. I'm impressed to think that Microsoft has officially released such a useful thing.

Package manager Anyway, chocolatey is also incomplete, so I will make it winget with expectations. I want this to be a world where everything is done. I miss pamac

Tiling Window Manager I'm worried if there is something right here. You can pay for it, so I want something that can be operated stably with the keyboard. --bug.n: It didn't work. --HashTWM: It didn't work. --MaxTo: There is a trial version, but I feel that the usage is different. --AquaSnap Pro: Trial version I tried it. It works fine without any bugs, but this is not a Tile WM. Convenient tools such as simply splitting Windows --Stack Window Manager: This is also the same system as AquaSnap --divvy: Different uses.

~~ Apparently bug.n didn't work, but it may work if configured properly. It seems a little impossible because the scaling is different for each monitor. As a result of various trials, I may have no choice but to move bug.n somehow. ~~ It works as it should, but it's slow. Isn't it possible to replace the Window Manager natively? If it is such a UX, the standard one is enough.

File explorer

Can you see it well including the preview with the ranger on WSL2? anxiety.

editor

There is only VS Code

IDE --It is necessary to investigate whether Jetbrains can be easily attached to WSL2 like VS Code. ――It may be good to start X Server and start the GUI on the Linux side, but it seems that it will be awkward with a selfish image. Since it is windows, I want to use the GUI from Windows. -Here It seems okay to see what is mentioned at the end.

Tools for Windows

System change system

--~~ fastwindowswitcher: Windows alt-tab Introduced because it is hard to see. In Gnome, the focus window was colored during alt-tab and it was really easy to see. ~~ It says that it supports multiple displays that does not work well, but there is probably a bug. --~~ win-10-virtual-desktop-enhancer: Isn't there a shortcut that brings windows to the next virtual desktop by default? ~~ The development of the original has stopped, and I tried the fork version, which seems to be the most active, but it didn't work. Instead, MoveToDesktop (https://github.com/Eun/MoveToDesktop) worked. --StrokersPlus: I use a mouse with one hand when I'm eating rice, so for mouse gestures at that time --tascher: window can be switched by incremental search. I don't have to hit Alt-Tab repeatedly, but I can't make it compatible with migemo even if I install it according to the procedure, but I left it for the time being.

Clipboard manager

Win + V is good, but isn't that keyboard complete? Am I using it incorrectly? Investigation required. (I was able to select with the keyboard only while entering text. This can be overlooked for the time being)

Process management

What should I do when a process on the Windows side goes out of control? WSL2 htop or gtop can't handle windows process, right? I don't like to launch Powershell and hit commands, but I don't want to launch Task Manager and use the mouse.

File explorer

At a minimum, it can be tabbed. ~~ Clover3 ~~ (Trojan horse lol, Windows Defender hurray) or QT Tabbar.

I tried using QT Tabbar, but it's better than I imagined. I thought that I wouldn't like it if the operation became unstable because it was extended to the standard explorer, but it can be set finely and the operation is stable, so I can make something of this level individually, that's right. It will also be introduced on overseas sites. (Although it is developed by Japanese people, it also supports English.) However, it is quite heavy, so turn off unused features as much as possible.

Convenient tool

--Powertoys: Embarrassingly, I recently learned about the existence of this official Microsoft handy tool. Let's put this in. It's a preview version, so it's official, but the swap of the ctrl key didn't work. I used keyswap.exe instead. --Mini Tool Partition Wizard: Can be used to erode Partitions towards Linux.

exif related

This is just a memorandum for myself. --GPSBabel: Now convert timeline json to gpx -Geotag: Use this to tag your photos.

Device driver

--Driver Booster: I've been using it before and I'm not dissatisfied with the function, but it seems that I want to install other software without permission, and I want to start up automatically, and it's a bit malware. Look for an alternative.

Web service client apps

It was called Station, bitwarden, and mendeley.

Impressions

――I thought that Windows had the most information, but even if I searched for it in English, there was not much information that people in the Linux culture wanted. After all, isn't any decent person using it? I'm a little jealous of macOS. ――Windows has good support for daily applications, which is very good. It's really comfortable that Chrome has become crispy. However, the terminals and the like have come to the point where there are not so many decent ones. --Even if it is a function that advanced users naturally want to change (such as tabbing of Explorer or extension of virtual desktop), there are some tools, but they are done by individuals and are not maintained, or they are charged for commercial use. And there are very few options. Is this all right for Windows users who have as many stars in the world as possible? --Even if it's a GUI, Linux is more stable when it comes to development apps, there are more types, and of course every part can be replaced, so I realized that it was very comfortable. I may return to Linux after a while. ――It seems that the 2020 macbook is now loaded with keyboards, so you might try buying it as a one-time event. I haven't touched Mac OS at all, so I want to know more about the usability of the OS itself by touching it properly.

ToDo --ranger preview settings -~~ Improved the phenomenon that focus does not return to window occasionally after hide Terminus ~~ --Make tascher's migemo work. --Jetbrains attachment test

Recommended Posts

Reasons and work notes for the tool / environment kitchen to switch the main PC from Linux to Windows + WSL2
How to set up Ubuntu for Windows Subsystem for Linux 2 (WSL2)
After all, the story of returning from Linux to Windows
Switch the package to be installed for each environment with poetry
About the procedure for linking Visual Studio Code for Windows and WSL
Until Windows Subsystem for Linux (WSL) is installed in Windows and fish is installed
Goodbye to the command prompt in WSL, VSCode and Windows Terminal
(Windows10) Install Linux environment and gnuplot.
Switch the module to be loaded for each execution environment in Python
Build Linux on a Windows environment. Steps to install Laradock and migrate