Manjaro KDE 21.2.5 post installation configuration, yay common commands, common software installation and theme beautification (2022.04.18)

Manjaro KDE 21.2.5 post installation configuration, yay common commands, common software installation and theme beautification (2022.01.23)

Result display

Basic configuration

The installation of manjaro will not be repeated here. When installing, select the closed source drive without brain. The next step is OK.

manjaro is installed in English, which can avoid the subdirectory with Chinese name in ~ home directory.

After installation, add simplified Chinese language pack in system settings, regional settings and language, then select Chinese in regional options and log off again to change the language to Chinese.

manjaro changes the source and executes the following command:

$ sudo pacman-mirrors -c China

Add archlinuxcn source to get more packages:

$ sudo vi /etc/pacman.conf

[archlinuxcn]
SigLevel = Optional TrustAll
Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux-cn/$arch

Software and system update:

$ sudo pacman -Syyu

Download the yay AUR assistant. You can use the yay command instead of the pacman command for subsequent system updates and software downloads:

$ sudo pacman -S yay

When installing base devel, the yay command will be used to build the package:

$ sudo pacman -S base-devel

Selective downloading of common terminal tools:

$ sudo pacman -S tree python-pip neovim neofetch screenkey figlet iputils openssh

# tree: all friends who play Linux know this command
# Python PIP: required for Python users
# neovim: vim Gospel
# neofetch: view system information
# screenkey: displays the pressed key
# figlet: generate a logo
# iputils: allows the user to use the ping command
# openssh: allows manjaro to link to remote servers via ssh

Start ssh service:

$ systemctl start sshd
$ systemctl enable sshd

Set nvim alias to vim:

$ nvim ~/.zshrc

alias vim="nvim"

Execute after exit:

$ source ~/.zshrc

Install common software

Input method configuration

Install Chinese input method and select fcitx input method framework:

$ sudo pacman -S fcitx-im
$ sudo pacman -S fcitx-contigtool  # If pacman is not downloaded, you can download it manually in the manjaro software store
$ sudo pacman -S fcitx-googlepinyin
$ yay -S fcitx-cloudpinyin

Modify the configuration file and start fcitx:

$ vim ~/xprofile

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

Modify the configuration file to let the program use the IM module:

$ vim ~/.pam_environment

GTK_IM_MODULE DEFAULT=fcitx
QT_IM_MODULE  DEFAULT=fcitx
XMODIFIERS    DEFAULT=@im=fcitx

Log off the current user and find the fcitx configuration in the Startup menu in the lower left corner after logging in again.

Click the + key in the lower left corner, uncheck, display only the current language, search google in the input box below and add google Pinyin.

Not surprisingly, Ctrl + Space can switch input methods. Then you can open the configuration item to configure page up and page down to, and.

If you download cloudpinyin, you can also enable it in the configured attachment. The source is Baidu. The specific process will not be demonstrated.

clash GUI

clash is a very powerful Internet artifact, and now a GUI version has been launched under the Linux platform.

It can be installed directly through yay or manually:

$ yay -S clash-for-windows-bin

I choose manual installation here.

Visit githu and select tar GZ format download.

After downloading, unzip it to / usr/local directory:

$ sudo tar -xvf ~/Downloads/Clash.for.Windows-0.19.5-x64-linux.tar.gz -C /usr/local
$ sudo mv /usr/local/Clash\ for\ Windows-0.19.5-x64-linux /usr/local/clash

After decompression, run clash with the following command and click proxies to add a subscription link:

$ /usr/local/clash/cfw

Click general and check the options of allow lan, tun mode, mixin and start with linux.

In system settings, manually add global agent 127.0.0.1:7890.

be careful! Mozilla series software will not directly use the system agent. For example, firefox and thunderbird, you need to manually set the agent in settings.

Next, add the terminal agent in ~ / Add the following command to zshrc:

alias setproxy="export ALL_PROXY=socks5://127.0.0.1:7890; echo 'SET PROXY SUCCESS!!!'"
alias unsetproxy="unset ALL_PROXY; echo 'UNSET PROXY SUCCESS!!!'"
# Open the terminal and automatically open the agent
setproxy

source click the zshrc file and enter the setproxy command to open the proxy.

To verify whether the agent is effective, enter the following command and observe whether the request is sent to 127.0.0.1:7890 first:

$ curl -vv http://www.youtube.com/

Because it's tar GZ installation, so there is no visual startup program after installation.

We build a startup program in ~ / Create the following files under local/share/applications, download a clash icon in PNG format in advance and put it in the installation directory:

$ vim ~/.local/share/applications/clash.desktop

[Desktop Entry]
Type=Application
Name=Clash For Linux
Exec=/usr/local/clash/cfw
Icon=/usr/local/clash/clash.png
Terminal=false
Categories=program;InstantMessaging

chrome

To install chrome:

$ yay -S google-chrome

NetEase cloud music

Install Netease cloud music:

$ sudo pacman -S netease-cloud-music

WPS

Install WPS:

$ yay -S ttf-wps-fonts wps-office-mui-zh-cn wps-office-mime-cn wps-office-cn
$ yay -S wps-office-fonts ttf-ms-fonts

Baidu online disk

Install Baidu network disk and select the second version based on electron:

$ yay -S baidunetdisk

Thunder

Installation of Xunlei:

$ yay -S xunlei-bin 

WeChat

Install wechat:

$ yay -S deepin-wine-wechat

I have encountered two bugs. One is that the wechat font will display a box. For the solution, see the solution given on the third floor in the link below:

The second BUG is that wechat will display:

Program wechatapp Exe encountered a serious problem and needs to be closed. We apologize for the inconvenience.

In fact, this BUG does not affect the use, but it seems upset. The solution is to run the following command first:

/opt/apps/com.qq.weixin.deepin/files/run.sh winecfg

Then select the function library tab and enter wechatapp. In the input box of new function library replacement Exe, click add on the right and select the new wechatapp Exe, click Edit and select disable.

QQ

Install QQ:

$ yay -S deepin-wine-qq

Tencent Conference

Install Tencent conference:

$ yay -S wemeet

There are some small bugs in the current version, but it can be tolerated. Let's make do with it.

teamviewer

To install teamviewer:

$ yay -S teamviewer

Flame screenshot

Install flameshot:

$ sudo pacman -S flameshot

After installation, you need to configure shortcut keys, open system settings, shortcut keys, add applications on the right, and define a shortcut key yourself:

By default, flameshort is powered on. In addition, the Pictures are stored in the ~ / Pictures directory.

peek

Install peek:

$ sudo pacman -S peek

There is no simpler software than peek recording GIF on Linux, Mac and Windows. It is highly recommended.

Typora

The latest version of Typora has been charged. You can download the previous version on the official website and install it manually. Here is the last free version:

Install manually after downloading:

$ sudo tar -xvf ~/Downloads/Typora-linux-x64-1.0.3.tar.gz -C /usr/local
$ sudo mv /usr/local/bin/Typora-linux-x64 /usr/local/typora

Add visual launcher in ~ / Create the following files under local/share/applications. Typora has its own PNG pictures, so there is no need to download them. Just copy and paste the following contents directly:

$ vim ~/.local/share/applications/typora.desktop

[Desktop Entry]
Type=Application
Name=Typora
Exec=/usr/local/typora/Typora
Icon=/usr/local/typora/resources/assets/icon/icon_512x512@2x.png
Terminal=false
Categories=program;InstantMessaging

Picgo

After Typora is installed, continue to install picgo. You can directly use yay command to download:

$ yay -S picgo-appimage

If it can be installed directly, it can be used directly. There is a problem with the automatic installation here, so I need to install it manually again.

First download the AppImage suffix package from the github of picgo, and then double-click to install it.

In typera, set the image upload service:

If picgo image upload fails, please switch the COS version to V5 and try again.

virtualbox

To install virtualbox:

# View kernel version
$ mhwd-kernel -li
Currently running: 5.15.12-1-MANJARO (linux515)
The following kernels are installed in your system:
   * linux515
# When installing virtualbox, pay attention to the 515 below and replace it with your version
$ sudo pacman -Syu virtualbox linux515-virtualbox-host-modules

# View Virtualbox version
$ vboxmanage --version
6.1.30r148432

# Install the expansion pack and select the one with the same version number as Virtualbox
$ yay virtualbox-ext-oracle

APIPost

A necessary interface testing tool for back-end developers:

$ yay -S apipost

Convert deb package

Maybe some software needs to be installed after we manually convert the deb package. At this time, we need the debtab tool to convert.

Install debtab:

$ sudo pacman -S debtap

Update debtab:

$ sudo debtap -u

Download the deb package to be converted and convert it. Press enter all the way in the following steps:

$ sudo debtap ~/Downloads/Package name.deb

Install the converted package:

$ sudo pacman -U ~/Downloads/Package name.pkg.tar.zst

Build development environment

proxychains

Somehow, executing some commands in the manjaro terminal does not proxy.

Therefore, a proxychains terminal command is installed here, which can force subsequent commands to take the agent:

$ yay -S proxychains

After installation, you need to configure:

$ sudo nvim /etc/proxychains.conf

Directly press big G to edit the last line of your proxy IP and PORT.

If you want to use an agent later, you only need to do the following:

$ proxychains command

git

Configure git user name, password and proxy:

$ git config --global user.name <user name>
$ git config --global user.email <e-mail address>
$ git config --global http.proxy socks5://127.0.0.1:7890
$ git config --global https.proxy socks5://127.0.0.1:7890

Add SSH:

$ ssh-keygen # Crazy return

Copy public key ~ / ssh/id_ rsa. Add ssh keys to github for the contents in pub.

oh my zsh

manjaro KDE comes with zsh, so you can directly install oh my zsh:

$ proxychains wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

After installation, you need to add the customized alias command again:

# Custom configuration
alias vim="nvim"
alias setproxy="export ALL_PROXY=socks5://127.0.0.1:7890; echo 'SET PROXY SUCCESS!!!'"
alias unsetproxy="unset ALL_PROXY; echo 'UNSET PROXY SUCCESS!!!'"
# Open the terminal and automatically open the agent
setproxy

Change the default shell to zsh:

$ chsh -s /usr/bin/zsh
$ zsh

Download plug-ins:

# Automatic completion
$ git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

# Syntax highlighting 
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

# zsh-vi-mod
$ git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode

Open ~ / zshrc finds plugins and changes it as follows:

plugins=(
    git
    zsh-syntax-highlighting
    zsh-autosuggestions
    zsh-vi-mode
    colored-man-pages
)

Open ~ / zshrc file, modifying ZSH_THEME, for more styles, see https://github.com/ohmyzsh/ohmyzsh/wiki/Themes:

ZSH_THEME="bira"

Install autojump, terminal directory jump artifact:

$ git clone git://github.com/joelthelion/autojump.git
$ cd autojump
$ ./install.py
$ cd ..
$ rm -rf autojump

Open ~ / zshrc add at the end:

[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh

If you want to jump to the previous directory, you can directly press j and the prefix of the directory name to complete the jump.

NVM

Individuals can use Node JS, so you need to install NVM to facilitate the management of multiple Node versions.

Download NVM:

$ sudo pacman -S nvm

establish. nvm Directory:

$ mkdir ~/.nvm

At ~ / Add the following content to the zshrc file:

# nvm configuration
source /usr/share/nvm/init-nvm.sh
# Modify nvm download source to taobao image source
export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node
export NVM_IOJS_ORG_MIRROR=http://npm.taobao.org/mirrors/iojs

Start downloading Node after the source file. Individuals will use two versions of Node:

$ nvm install --lts
$ nvm install 10.24.1

Alias:

$ nvm alias old 10.24.1
$ nvm alias default 16.13.2

Golang

Individuals will use Golang for development, so Go language will be installed below.

Install Go language:

$ sudo pacman -S go

At ~ / Set in zshrc:

export GOROOT=/usr/lib/go/
export GO111MODULE=on
export GOPROXY="https://proxy.golang.org,direct"
export PATH=$PATH:$GOROOT/bin

Python

Individuals will use Python for development. manjaro comes with Python 3, and the version is very new, so the virtual environment of Python will be configured directly below.

To install virtualenv and virtualenvwrapper:

$ pip3 install -i https://pypi.douban.com/simple virtualenv
$ pip3 install -i https://pypi.douban.com/simple virtualenvwrapper

Create virtual environment Directory:

$ mkdir ~/.virtualenvs

Edit ~ / zshrc file, add the following 2 lines of code:

$ vim ~/.zshrc

export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python3"
export WORKON_HOME="~/.virtualenvs"
source ~/.local/bin/virtualenvwrapper.sh

source ~/. After the zshrc file, modify the pip source, create the pip configuration file and fill in the following contents:

$ mkdir ~/.pip
$ vim ~/.pip/pip.conf

[global]
index-url = https://mirrors.aliyun.com/pypi/simple

gitbook

To install gitbook:

$ proxychains npm i -g gitbook-cli

docsfiy

Install docsfiy:

$ proxychains npm i -g docsify-cli

vscode

Install vscode:

$ yay -S visual-studio-code-bin

Download another fire code font. There is no one of the developers' favorite fonts:

$ yay -S ttf-fira-code

Linux of arch system cannot save the login status of github in vscode. You need to download a plug-in to solve it:

$ yay -S qtkeychain gnome-keyring

nvim

nvim personal use is very much, the most powerful editor.

First, create a new nvim configuration directory:

$ mkdir ~/.config/nvim

To download the VIM plug-in:

$ curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://gitee.com/c4pr1c3/vim-plug/raw/master/plug.vim

Since I often use the system Shear board, but the shear board of nvim and the system Shear board are not interconnected, a plug-in needs to be installed to enable nvim and the shear board of the system to communicate:

$ sudo pacman -S xsel

Write nvim's configuration file. The following are some basic configurations that can be modified as appropriate:

$ vim ~/.config/nvim/init.vim

" ----- Plug -----
call plug#begin('~/.config/nvim/autoload/')
" Fast jump
Plug 'easymotion/vim-easymotion'
" Package modification
Plug 'tpope/vim-surround'
" vim Chinese documents
Plug 'yianwillis/vimcdoc'
" Color plug-in
Plug 'theniceboy/vim-deus'
" Package modification
Plug 'tpope/vim-surround'
" Multi cursor mode operation
Plug 'mg979/vim-visual-multi', {'branch': 'master'}
" vim switch
Plug 'vim-scripts/Toggle'
call plug#end()

"Key mapping prefix: <leader>v. 
let g:VM_maps = {}                 "Cancel the default key mapping.
let g:VM_maps['Find Under'] = 'gb' "Enter the multi cursor mode and select the string under the cursor.

" Using the system clipboard
set clipboard^=unnamed,unnamedplus
" Configuration items that are always loaded
let mapleader = "\<space>"
set nobackup
set noswapfile

" use H Replace^
noremap H ^
" use L Replace $
noremap L $
" Switch between the previous word and the next word
noremap ge "_yiw:s/\(\%#\w\+\)\(\_W\+\)\(\w\+\)/\3\2\1/<CR><C-o>:noh<CR>
" Switch between the previous word and the next word
noremap gw xph

" Switch the reverse meaning of words, such as true Change to false
imap <C-T> <C-O>:call Toggle()<CR>
nmap gq :call Toggle()<CR>
vmap + <ESC>:call Toggle()<CR>

" Add a blank line
nmap <leader>j o<Esc>
nmap <leader>k O<Esc>

" Automatic switching input method
autocmd InsertLeave * call Fcitx2en()
function! Fcitx2en()
    let s:input_status=system("fcitx-remote")
    if s:input_status==2
        let g:input_toggle=1
        let l:a=system("fcitx-remote -c")
    endif
endfunction

" set number 
set number
" Set relative line number
set relativenumber
" Set row width
set textwidth=80
" Set word wrap
set wrap
" Show status bar
set laststatus=2
" Syntax highlighting 
syntax on
" Support mouse
" set mouse=a
" Set encoding format
set encoding=utf-8
" Enable 256 colors
set t_Co=256
" Open file type check
filetype indent on
" set ai 
set autoindent
" set up tab Indent quantity
set tabstop=4
" set up>>And<<Number of indents
set shiftwidth=4
" Convert indents to spaces
set expandtab
" Automatically highlight matching symbols
set showmatch
" Auto highlight match search results
set nohlsearch
" Turn on line by line search, that is, press the key once to continue the search
set incsearch
" Open type check
" set spell spelllang
" Open command completion
set wildmenu
" Automatically switch the working directory when the cursor moves to other windows under multiple windows
set autochdir

Open vim, press the colon key, enter PlugInstall to download vim plug-in.

TUI Toolset

trash-cli

As a TUI user, I often use the rm command.

So in order to prevent accidental deletion, I downloaded trash cli:

$ yay -S trash-cli

After downloading, open ~ / zshrc file, just click the rm command alias:

alias rm="trash"
alias rr="trash-restore"

lazygit

Lazy git artifact can be downloaded and installed directly:

$ yay -S lazygit

alacritty

I personally prefer a terminal:

$ yay -S alacrityy

After installation, an error will be thrown during startup. Follow the instructions and reboot.

translate-shell

A command line translation artifact:

$ yay -S translate-shell

ranger

ranger uses less for personal use:

$ yay -S ranger

Beautify KDE desktop

osc-url

Since manjaro's system settings do not use agents, we can use OSC URL in KDE Store https://store.kde.org/browse Download the theme online and install it automatically.

First install the following:

$ sudo pacman -S qt5-base qt5-svg qt5-declarative qt5-quickcontrols

Download OCS URL: Click me to jump

Install manually after downloading:

$ sudo pacman -U ~/Downloads/ocs-url-3.1.0-1-x86_64.pkg.tar.xz

After clicking the Install button of the theme, it will pop up whether to open XDG open. Select open and install the theme.

You can also download the compressed package of the theme and extract it to the following directory:

~/.local/share/plasma/look-and-feel/  # Store global topics
~/.local/share/plasma/desktoptheme/   # Store plasma visual style
~/.local/share/plasma/plasmoids/      # Store plug-ins
~/.local/share/aurorae/themes/		  # Storage window decoration
~/.local/share/color-schemes/		  # Storage color
~/.local/share/icons/				  # Storage Icon
~/.local/share/fonts/				  # Store fonts
~/.local/share/sddm/themes/			  # Welcome screen
~/.local/share/backgrounds/			  # wallpaper

Global theme

The global theme uses whitesur dark.

https://www.pling.com/p/1400424

After downloading, open the system settings, appearance, and apply in the global theme:

Application style

The application style uses the system's own Oxygen light Oxygen.

Visual style

The visual style uses Chrome OS:

https://www.pling.com/p/1354050

Window decoration

Whitesur sharp dark is used for window decoration:

Note that the position of the button on the title bar can be dragged to the left:

color setting

The color is WhiteSur:

Font style

The font is the default font of the system. Of course, you can also choose other fonts:

Icon style

The icon style uses whitesur dark:

cursor style

The cursor style uses Volantes Cursors:

https://store.kde.org/p/1356095

Welcome screen

The welcome screen uses the self-contained Breath Dark:

Special effect related

Effects related settings are in workspace behavior / desktop effects.

dock

Download latte dock:

sudo pacman -S latte-dock

Start dock:

latte-dock

Delete the manjaro panel menu.

Right click the dock bar, configure latte, select layout editor, and select extended.

Right click the dock bar, edit the dock bar, and click Advanced.

System tray

After opening an application, you can right-click the icon of the application in the dock bar, and then fix it on the dock bar.

We also need a launchpad program similar to the MAC system. You can right-click the dock bar, add components, and select Get New Widgets on the right:

Search OSXLaunchpad, download and add it, and then add it to the dock bar.

After adding, right-click the OSXLaunchpad and configure the OSXLaunchpad to the following settings:

Icon to search for IBus typing booster and select.

Interface fillet

LightlyShaders, a third-party fillet plug-in, is more beautiful than the built-in fillet plug-in.

https://github.com/a-parhom/LightlyShaders

After installation according to the README document, open the setting items of LightlyShaders in system settings, workspace behavior and desktop effects:

KDE plug-in

Finally, I recommend a small KDE plug-in, translation plug-in Translator:

Select it directly in the add widget in the top panel and add it.

You can also add the built-in application Yukauke to the widget, and then add it in the upper panel.

pacman (yay) common commands

Record the common commands of pacman and yay, which are common:

  • Sy: get package update information from remote image
  • Syy: force update information
  • Syyu: update package
  • Sc: remove obsolete installation packages for download
  • Syyw: Download newer packages without installing them
  • Ss: search for packages from remote warehouse
  • R: Delete software
  • Rs: delete the software and its dependent files
  • Rns: delete software and dependency files and their configuration files
  • Qe: displays the software packages installed by the user
  • Qq: do not output software version information
  • Qn: displays the software downloaded from the official image
  • Qm: displays the software downloaded from AUR
  • Qdt: display orphan packet
  • Qs: displays the package of the local library

Finally, remember to run Syu frequently to update the system. If it is not updated for too long, it is easy to roll and hang.

Original link:

https://zhuanlan.zhihu.com/p/460826583

Tags: Linux manjaro

Posted by maff20 on Mon, 18 Apr 2022 14:40:52 +0930