content
foreword
This article installs the Gnome desktop environment, but don't worry about whether to install XFace, Kde or Gnome, the official website also said, it's just a desktop environment
My desktop environment verbose version is: GNOME (21.2.4)
step
Uninstall the previous Linux system
-
Reference:
https://www.bilibili.com/video/av209430195/ -
Download diskgenius
https://www.diskgenius.cn/download.php -
delete linux partition
When you're done, click Save Changes at the top left!
-
Find and delete the Linux boot partition!
Do not delete the boot partition of Win by mistake.
There are two suspected boot partitions, I am not sure which is Win and which is Linux. Through careful observation:
So we delete another boot partition, which must be Linux:
Sure enough, there are Manjaro Linux boot files:
as shown in the figure above: just delete it completely -
Repair Win Boot Partition!
At this point, the boot partition of win must be repaired, otherwise your win will no longer be able to enter.
Tool download: http://www.xitongzhijia.net/soft/199328.html
Baidu its usage is very simple.Step 1: Remove the bootstrap
Step 2: Repair:
Done.
Dual system partition idea:
-
According to the previous experience of using Linux, even if you have 16G running memory, I am still slightly insufficient in daily development, so it is necessary to give 8G swap space.
-
After half a year of daily use of the Linux system, for development, 60GB is more than enough as the /home directory, and about 60GB for the root partition is also enough. therefore:
- / directory: 60GB
- /home directory: 60GB
- Swap:8GB
-
Because the Linux system can easily access the files of the Win system, and the Win system is selfish and cannot be compatible with the Linux hard disk. Therefore, you can put large files (project data, videos), etc. under the hard disk of Win, and Linux can also access them anyway. So there is really no need to give Linux too much memory space.
Make the U disk into a boot disk, or restore the boot disk back to a normal U disk
-
The boot disk is restored to a normal U disk:
https://jingyan.baidu.com/article/ce436649e30d5e7673afd383.htmlIn fact, it is to execute the following commands in sequence:
After execution, open the disk management tool and create a new partition (remember to select the partition type as NTFS). It is successful as shown in the following figure:
-
U disk to make manjaro boot disk:
Follow the official website tutorial, you need a CD image:
https://manjaro.org/downloads/official/gnome/
GNOME Software Recommendations:
GPaste
Manage your clipboard, batch copy and paste
https://zhuanlan.zhihu.com/p/51522499
Lightweight photo editing software:
WeChat:
Both QQ and WeChat here are installed by spark method, so the command is different from deepin.
yay -S com.qq.weixin.spark
WeChat adjustment zoom method:
env WINEPREFIX="$HOME/.deepinwine/Spark-WeChat" deepin-wine5 winecfg
sunflower
Download and install the first one from the application market:
execute the command in the command line interface (this step is required, otherwise it cannot be started):
sudo systemctl start runsunloginclient.service
You can also set the above-mentioned services to start automatically when the machine is turned on, so that every time you start Sunflower, you have to knock:
sudo systemctl enable runsunloginclient.service
Configure shortcut keys and aliases
Global configuration alias:
vim ~/.bashrc
If you use zsh, you also need to modify the zsh configuration file. Just let zsh inherit bashrc directly:
vim ~/.zshrc
then let zsh inherit the configuration file of ~/.bashrc (add the following line to the zsh configuration file):
source ~/.bash_profile
To make the changes take effect:
source ~/.bashrc
source ~/.zshrc
Manjaro opens the ssh port and directly connects with the company server through the intranet
See another blog post I published: Linux (Manjaro) opens the ssh port, interconnects with the company's server intranet, and transfers scp files to each other
install touchegg
The touchegg software can make your linux touchpad touch experience comparable to MacOS. After using this software, you will never want to use a mouse again. It is highly recommended.
https://github.com/JoseExposito/touchegg
It is written clearly in the document. The general steps are to install first, and then start the touchegg service:systemctl start touchegg.service
Then download the graphical visual interface of touchegg:
Finally, don't forget the most important point, close Wayland:
Some software does not support Wayland by default, only X11; so you need to modify the configuration file to disable wayland support:
cd to /etc/gdm3
(if you don't have this directory, please cd to /etc/gdm directory)
Then execute vim custom.conf, find the line #WaylandEnable=false, and remove the # (comment) in this line. Then wq save, restart the computer.
The system will use x11 on next boot instead of wayland. This method is feasible and applicable to the 2021.9 Gnome desktop.
Finally restart the computer.
Touchpad Gestures and Shortcuts
If you set it up carefully, you will never want to use the mouse and other peripherals again, and you will never go back (be careful about getting into the pit of the touchpad, the mouse that I bought for a thousand dollars is so vain). Experience a trip that just takes the computer and you want to go~
And the touchpad is really much more convenient than the mouse. By pressing and sliding the arrangement and combination, a total of 18 gestures can be simulated (Mac may have more), which is equivalent to setting 18 mouse macros on your mouse, which is simply office efficiency. God! !
Gestures and keys are divided into two cases, one is manjaro's own gestures and keys (I haven't changed it), the other is my own added gestures (modified with touchegg mentioned above) and keys (system settings are can be modified)
gestures:
- [System built-in] Three-finger slide up multi-task switching interface, similar to the following figure:
- [System built-in] Three-finger slide down: display the desktop
- [System built-in] Three-finger swipe left and right: switch the desktop left and right
- Four-finger swipe up: shortcut key super+~ (switch between multiple instances within the same app)
- Four-finger slide down: switch applications within the same desktop (depending on the shortcut key alt+space)
- Four-finger swipe left and right: bring the currently running application to the left/right desktop
- Two-finger pinch: shortcut key ctrl+c
- Pinch with two fingers in turn: shortcut key ctrl+v
- Three-finger pinch: close the window
- Three-finger pinch: maximize/minimize window
- Four-finger pinch: start the application of deep screenshot (a screenshot software) (depending on the shortcut key super+A)
- [System built-in] One-finger tap the touchpad: left mouse
- [System built-in] Two-finger tap the touchpad: right mouse button
- [System built-in] Three-finger tap touchpad: middle mouse
hot key:
- [The system comes with] super + 12345678 : Run the application in the favorite bar at the bottom of the screen, as shown in the following figure:
- super + Q runs the default browser
- super + W evokes WeChat
- super + A with four-finger pinch: start the application depth screenshot (a screenshot software)
- super + Q
- super + Z with three-finger pinch: close the window
- super + X pinch with three fingers in turn to maximize and minimize the window
- super + V to start the application: task manager
- alt + space is the same as switching applications in the desktop
- [The system comes with] super+~ (multi-instance switching within the same application)
- [The system comes with] ctrl + alt + left and right arrows: the same three-finger swipe left and right: switch the desktop left and right
- [The system comes with] ctrl + shift + alt + left and right arrows: swipe left and right with four fingers: bring the currently running application to the left/right desktop
switch jdk
Many software require jdk11+ or even jdk16+ to run. But my development environment is jdk8. So you need to switch jdk frequently. Fortunately, Java version switching in archLinux (Manjaro) is very simple:
archlinux-java status
Check how many jdk versions you have installed
sudo archlinux-java set java-16-openjdk
switch a jdk version
Before and after comparison: