Post-Installation of Manjaro Linux (Mate)

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

Pacman mirror refresh

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

Base-devel

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

$ 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.

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

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

Put your own shadowsocks configuration. It is just like:

{
  "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:

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

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

$ sudo systemctl start [email protected]
$ sudo systemctl status [email protected]
$ sudo systemctl enable [email protected]

Next boot you will find following error:

 [email protected] - Shadowsocks-Libev Client Service
   Loaded: loaded (/usr/lib/systemd/system/[email protected]; 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]: [email protected]: Main process exited, code=exited, status=255/EXCEPTION
4月 15 08:33:15 terransforce systemd[1]: [email protected]: Failed with result 'exit-code'.

Not found solution yet!

Proxychains-ng

$ sudo pacman -S proxychains-ng

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

$ sudo vim /etc/proxychains.conf

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

[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
# socks4 	127.0.0.1 9050
socks5 	127.0.0.1 1080

Utility

Basic utilities

$ sudo pacman -S htop tree glances nload ncdu vim

Zsh

$ sudo pacman -S zsh

Input method

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

ibus.sh should be the following content:

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

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

Reload environments.

$ source /etc/profile

Maybe you have to relogin or reboot.

Environment

Java

Install jdk8, jdk8 source code and documentation.

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

Node

Install nodejs and npm.

$ sudo pacman -S nodejs npm

IDE

VisualStudioCode

$ sudo pacman -S code

IntelliJ IDEA

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

CodeBlocks

$ sudo pacman -S codeblocks

Entertainment

Netease cloud music

$ yay -S netease-cloud-music

Electron Wechat

$ yay -S electronic-wechat

Tim

$ yay -S deepin-wine-tim