Post-Installation of Manjaro Linux (Mate)

First of all, we have to refresh pacman mirror, then install some basic software.

Pacman mirror refresh

1
$ sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu

Base-devel

As a developer, base-devel is essensial to be installed.

1
$ sudo pacman -S base-devel

AUR utility

https://itsfoss.com/best-aur-helpers/

Maybe you need to install some software which repositories are maintained by community.

1
2
3
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Then you can search from https://aur.archlinux.org/, and use yay to install it which is same to pacman.

Shadowsocks

1
2
3
$ sudo pacman -S shadowsocks-libev
$ sudo mkdir /etc/shadowsocks
$ sudo vim config.json

Put your own shadowsocks configuration. It is just like:

1
2
3
4
5
6
7
8
{
"server": "your server",
"server_port": your_server_port_number,
"local_port": local_port_number,
"password": "your password",
"method": "your encryption method",
"timeout": 500
}

You can use the following command to test the configuration:

1
$ ss-local -c /etc/shadowsocks/config.json

End of this part, you can add it into systemd and enable running when starting up.

1
2
3
$ sudo systemctl start shadowsocks-libev@gcp
$ sudo systemctl status shadowsocks-libev@gcp
$ sudo systemctl enable shadowsocks-libev@gcp

Next boot you will find following error:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 shadowsocks-libev@gcp.service - Shadowsocks-Libev Client Service
Loaded: loaded (/usr/lib/systemd/system/shadowsocks-libev@.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2019-04-15 08:33:15 CST; 3min 2s ago
Process: 666 ExecStart=/usr/bin/ss-local -c /etc/shadowsocks/gcp.json (code=exited, status=255/EXCEPTION)
Main PID: 666 (code=exited, status=255/EXCEPTION)

4月 15 08:33:15 terransforce systemd[1]: Started Shadowsocks-Libev Client Service.
4月 15 08:33:15 terransforce ss-local[666]: 2019-04-15 08:33:15 INFO: initializing ciphers... chacha20
4月 15 08:33:15 terransforce ss-local[666]: 2019-04-15 08:33:15 INFO: This system doesn't provide enough entropy to quickly generate high-quality random numbers.
4月 15 08:33:15 terransforce ss-local[666]: Installing the rng-utils/rng-tools, jitterentropy or haveged packages may help.
4月 15 08:33:15 terransforce ss-local[666]: On virtualized Linux environments, also consider using virtio-rng.
4月 15 08:33:15 terransforce ss-local[666]: The service will not start until enough entropy has been collected.
4月 15 08:33:15 terransforce ss-local[666]: 2019-04-15 08:33:15 ERROR: getaddrinfo: Name or service not known
4月 15 08:33:15 terransforce ss-local[666]: 2019-04-15 08:33:15 ERROR: failed to resolve the provided hostname
4月 15 08:33:15 terransforce systemd[1]: shadowsocks-libev@gcp.service: Main process exited, code=exited, status=255/EXCEPTION
4月 15 08:33:15 terransforce systemd[1]: shadowsocks-libev@gcp.service: Failed with result 'exit-code'.

Not found solution yet!

Proxychains-ng

1
$ sudo pacman -S proxychains-ng

You have to modify proxychains’s configuration in /etc/proxychains.conf.

1
$ sudo vim /etc/proxychains.conf

Comment the last line about sock4, and add sock5 config, as following:

1
2
3
4
5
6
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
# socks4 127.0.0.1 9050
socks5 127.0.0.1 1080

Utility

Basic utilities

1
$ sudo pacman -S htop tree glances nload ncdu vim

Zsh

1
$ sudo pacman -S zsh

Input method

1
$ sudo pacman -S ibus-rime
1
$ sudo vim /etc/profile.d/ibus.sh

ibus.sh should be the following content:

1
2
3
4
5
6
export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="ibus"
export XMODIFIERS="@im=ibus"

export XIM="ibus"
export XIM_PROGRAM="ibus"

Reload environments.

1
$ source /etc/profile

Maybe you have to relogin or reboot.

Environment

Java

Install jdk8, jdk8 source code and documentation.

1
$ sudo pacman -S jdk8-openjdk openjdk8-doc openjdk8-src

Node

Install nodejs and npm.

1
$ sudo pacman -S nodejs npm

IDE

VisualStudioCode

1
$ sudo pacman -S code

IntelliJ IDEA

1
$ sudo pacman -S intellij-idea-community-edition

CodeBlocks

1
$ sudo pacman -S codeblocks

Entertainment

Netease cloud music

1
$ yay -S netease-cloud-music

Electron Wechat

1
$ yay -S electronic-wechat

Tim

1
$ yay -S deepin-wine-tim