Manjaro installation records

Preface:

Record yourself some potholes in Manjaro18 installations to avoid filling the Internet next time looking for solutions. I have tried Manjaro, Ubuntu, Fedora, Linux Mint, PAC, yum and APT, so I choose Manjaro’s package management mode. Xfce4, Gnome, Cinnamon, and Mate desktop environments were tried, but NOT KDE because KDE was abandoned. Among them, I think XFCE4 is the best, which is relatively light and has low resource occupation, but I still choose Gnome, because it is more in line with my aesthetic taste. And now (March 31, 2019) Gnome 3.32 has no more problems and the resource occupation is not so exaggerated. The CPU usually does not exceed 5%, or in the case of many mods, two mods will exceed 7% at once:

Installation:

1. Rufus is written to the USB drive in DD mode, BIOS is turned off for safe boot, usb boot is selected, driver is selected non-free, better than open source driver (if the installation fails, press E to enter editing mode, change driver=nonfree to driver= Intel, Can solve most problems) dual graphics cards can also be a good solution. And then it’s all graphical interfaces, not to mention. Only start to click the start installation button if the installation program flashes back, most likely not connected to the Internet, even the Internet is good, stuck at 93% progress is mostly because the computer is still connected to the Internet, turn off the network is good.

Configuration:

Arrange domestic sources:sudo pacman-mirrors -i -c China -m rank

Tsinghua Source (TUNA) is the fastest, but I have a dependency on the later upgrade, the source of Tsinghua does not have this file, and I will change it back when it is updated by other sources

Archlinux 更 新 :sudo gedit /etc/pacman.conf
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
Copy the code
Update:pacman -Syyu
Update signature:sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
Aur source changed domestic: to be filled pit…
Yay installation:sudo pacman -S yay

Because yaourt has stopped, it is not bad for me to use only this one. In the future, I will install things directly by yay+ package name

Input method installation:
sudo pacman -S fcitx-sogoupinyin
sudo pacman -S fcitx-im 
sudo pacman -S fcitx-configtool
Copy the code

Or Google Pinyin: sudo pacman -s fcitx-Google pinyin: sudo pacman -s fcitx-Google Pinyin: Sudo Pacman -s fcitx-Google Pinyin: Sudo Pacman -s fcitx-Google Pinyin: Sudo Pacman -s fcitx-Google Pinyin

Then add the following lines to the bottom of sudo gedit ~ /.profile to specify the input method.

export LC_CTYPE=zh_CN.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
Copy the code

Then there is the matter of scaling, otherwise such small words will be blind. The solution given on Arch Wiki is the custom zoom scale, which is only 200% by default, but it doesn’t work for me, it’s even more annoying, so adjust the font magnification.

Optimize –> Font –> Scale font –>1.5

The font I use is Siyuan boldface (Adobe open source), and The Noto series from Wenquanyi and Google are also good.

Noto series CJK refers to China, Korea and Japan, mainland China seems to be the font with the beginning of S, because it is too big, so it is not installed.

For other browsers like Chrome, you can change the font style in your browser Settings, and then create a new file in /etc/font/local. conf and say:

<? xml version="1.0"? > <! DOCTYPE fontconfig SYSTEM"fonts.dtd">
<fontconfig>
    <match target="font">
        <edit name="autohint" mode="assign">
            <bool>false</bool>
            </edit>
        <edit name="hinting" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>none</const>
        </edit>
    </match>
</fontconfig>
Copy the code

In this way, the software will not use its own word processing mode by default, and the font under WIN is basically no big difference, font ambiguity problem solved.

Gnome disk analysis and notepad character mapping alarm clock weather calendar QT5 are all uninstalled by me. I have obsessive-compulsive disorder, so I don’t leave anything that I don’t use. I also removed the theme and font.

zsh

Note ZSH is configured by default. Check whether shell cat /etc/shells exists.

Install oh – my – ZSH: sh -c “$(curl – fsSL HTTPS: ` ` / / raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

Replace the ZSH: CHSH -s /bin/zsh

Then you can configure:

These are automatic jumps, syntax suggestions, and syntax highlighting plug-ins.

sudo pacman -S autojump

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Copy the code

**~/.zshrc**

Topic #
ZSH_THEME="steeef"
# error correction
ENABLE_CORRECTION="true"
# prompt
COMPLETION_WAITING_DOTS="true"
# plug-in
plugins=(
  git zsh-autosuggestions web-search autojump zsh-syntax-highlighting
)
source ~/.oh-my-zsh/plugins/incr/incr*.zsh
export UPDATE_ZSH_DAYS=7
Copy the code

Dual graphics card switching problem:

Bumblebee is installed by default:

Sudo pacman -s virtualgl lib32-virtualgl lib32-primus primus

To start the service: sudo systemctl enable bumblebeed

To add a USER group: sudo gpasswd -a $USER bumblebee

After restart, optiRun + application name can be used to open the application with unique display.

Test performance:
  • Set display performance: glxgears -info

  • Unique performance: optirun glxgears -info

    Sudo pacman -s virtualgl lib32-virtualgl lib32-primus primus

Beautify the:

Manjaro18 gnome edition is pretty polished, but I don’t like it…

Sudo pacman -s Numix-icon-theme

Theme: yay-s arc-gTK-theme

Then the own delete……

Extension:

Bring basic enough, list my reference:

  • Applications Menu (Win-like application selection lookup)
  • ~~Clipboard indicator ~~ as googlepinyin is also good, this is abandoned
  • Dash to Dock (Custom dock bar)
  • Dash to Panel (status bar customization)
  • Desktop ICONS
  • Places Status Indicator
  • Simple Net Speed
  • Tray ICONS (The top bar shows the background running window)
  • Removable Driver Men Removable Driver Men

Software:

The following is the software I use, package management are available, you can command line installation can also be in the package management search installation: recommended in the package management list search installation, details can make their better choice. Here are some installations with potholes:

  • Install QQ: yay-s deepin.com.qq.im

    Wine under qq, and Tim, or a little problem to experience their own

  • Install Tim: yay-s deepin.com.qq.office

  • Install wechat: yay-s wewechat

    Third party wechat, English && open source.

Pycharm and Idea in the package are really eye-candy with 1.5x font magnification, and changing font sizes is acceptable, but check boxes and status bar ICONS are still large. The best way to do this is to download toolbox from jetBrains’ official website, which is packaged with Appimage and can run in any Linux environment. Then download idea2019 and PyCharm2018.3.5 and the display will be perfect:

  • Notes only WizNote works on Linux.

  • Ss-qt5 civilized Internet access, generate PAC rules… I won’t explain.

  • Only Dropbox works perfectly on Linux, starting with a manually set agent 127.0.0.1,port: 1080.

  • Kolourpaint: Simple image editing

  • Peek: Record a GIF

  • Vim: Check the configuration online

  • SimpleScreenRecorder: record the screen

  • Aria2: downloader, requires a browser to install plug-ins, configuration at the bottom.

  • JetBrains Toolbox download JetBrains whole family barrel

  • Flameshot screenshot, texture

  • JDK

    yay jdk

    Select the appropriate version, enter the number and press Enter. You are advised not to use the jdK8 or openJDK.

    archlinux-java status

    Check the JDK status.

    sudo archlinux-java set jdk-12

    Set the JDK version.

    java -version

    Check whether the setup is successful. If it is successful, you can uninstall openJDK8

Medis, mysql WprkBench, Charles, Filezilla, MitmProxy, Anaconde

ZSHRC export PATH=”/opt/anaconda/bin:$PATH”

If you don’t use ZSH you set it in.bashrc. If you’re using ZSH, it doesn’t matter if you type yes at the end to set the default environment variable. See anaconda Wiki for details.

Run the conda env list command to view existing virtual environments

Create a Python virtual environment: conda create -n zeronet Python =3.6

Activate the virtual environment: Source Activate Zeronet

Install additional packages for virtual environments: conda install -n zeronet [package]

Disable the virtual environment by running the source deactivate Zeronet command

Run the conda remove -n your_env_name –all command to delete a virtual environment

Aria2 configuration: Create aria2.conf, aria2.log, and aria2.session in /etc/aria2

To enable listening: sudo aria2c –conf-path=/etc/aria2/aria2.conf

Self-start scripts can be added

## '#' starts with a comment, and the options are annotated accordingly. Modify ## as needed
## The commented options are filled in with default values. It is recommended that you uncomment ## if you need to change them
## if 'Initializing EpollEventPoll failed
Error: You can uncomment the event-poll option

## File save related ##

# Save path of the file (absolute or relative path can be used), default: current boot location
dir=/home/zz/Downloads
# Enable disk cache, 0 indicates disable cache, version 1.16 or later, default :16M
disk-cache=32M
# File prealloc, which can effectively reduce disk fragmentation. Default :prealloc
None < falloc? trunc < prealloc
# Falloc and Trunc require file system and kernel support. NTFS recommends falloc and ext3/4 recommends Trunc
file-allocation=trunc
# resumable
continue=true

## Download link related ##

# Maximum number of tasks to be downloaded at the same time, modifiable at runtime, default :5
max-concurrent-downloads=5
# Number of connections to the same server
max-connection-per-server=5
The value ranges from 1M to 1024MB. The default value is 20M
# assuming size=10M and file size= 20MiB, use two sources to download; Files for 15MiB are downloaded from one source
min-split-size=10M
# Maximum number of threads for a single task
split=32
# Overall download speed limit, modifiable at runtime, default :0
#max-overall-download-limit=0
# Single task download speed limit, default :0
#max-download-limit=0
# Total upload speed limit, modifiable at runtime, default :0
#max-overall-upload-limit=0
Upload speed limit for a single task. Default :0
#max-upload-limit=0
# Disable IPv6. Default :false
disable-ipv6=true

## Progress save related ##

Read download task from session file
input-file=/etc/aria2/aria2.session
# Save 'error/incomplete' download task to session file when Aria2 exits
save-session=/etc/aria2/aria2.session
# Timed save session, 0 is saved upon exit, version 1.16.1 or later, default :0
save-session-interval=60

Rpc-related Settings ##

# enable RPC. Default :false
enable-rpc=true
# Allow all sources, default :false
rpc-allow-origin-all=true
Allow non-external access. Default :false
rpc-listen-all=true
The value can be [epoll, kqueue, port, poll, select]. The default value varies with the system
#event-poll=select
The port can be changed when the port is occupied. Default :6800
#rpc-listen-port=6800

## BT/PT download related ##

# Start torrent task automatically when downloading a torrent (ending with. Torrent), default :true
#follow-torrent=true
# BT Listening port, used when the port is masked, default :6881-6999
listen-port=51413
# Maximum number of connections per seed, default :55
#bt-max-peers=55
# enable DHT function, PT needs to be disabled, default :true
enable-dht=false
# Enable IPv6 DHT. PT must be disabled
#enable-dht6=false
DHT network listening port, default :6881-6999
#dht-listen-port=6881-6999
PT is disabled. Default :false
#bt-enable-lpd=false
# Seed swap, PT needs to be disabled, default :true
enable-peer-exchange=false
# Speed limit per seed, useful for less planted PT, default :50K
#bt-request-peer-speed-limit=50K
# Client masquerade, PT requiresPeer - id - prefix = - TR2770 - the user-agent = Transmission / 2.77# When the share rate of the seed reaches this number, the seed automatically stops planting, 0 means always planting, default :1.0
seed-ratio=0
# force to save the session, even if the task has completed, default :false
The.aria2 file will remain after the task is completed
#force-save=false
# BT verification correlation, default :true
#bt-hash-check-seed=true
No need to check again when continuing the previous BT task. Default :false
bt-seed-unverified=true
# Save magnetic link metadata as a seed file (.torrent file), default :false
bt-save-metadata=true
Copy the code