Manjaro Setup

Manjaro Setup

[TOC]

1. Install domestic source

1.1 Set the official mirror source

Set official mirror source

$ sudo pacman-mirrors -i -c China -m rank   # 更新镜像排名
$ sudo pacman -Syy

Update archlinux signature

$ sudo pacman -S archlinux-keyring

1.2 Set the archlinuxcn source

Revise/etc/pacman.conf

[archlinuxcn]
Siglevel = Never
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

Update archlinux signature

$ sudo pacman -S archlinux-keyring

install yaourt

$ sudo pacman -Syy
$ sudo pacman -S yaourt
$ yaourt -Syua

1.3 Set aur source

Revise/etc/yaourtrc

AURURL=“https://aur.tuna.tsinghua.edu.cn"

2. Common software installation

2.1 Install vim

$ sudo pacman -S vim

2.2 Install Sogou input method

$ sudo pacman -S fcitx-im   #默认全部安装
$ sudo pacman -S fcitx-configtool
$ sudo pacman -S fcitx-sogoupinyin

Add input method configuration file ~/.xprofile

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

2.3 Install oh_my_zsh

$ sudo pacman -S zsh
$ sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

github address: oh_my_zsh

2.4 Install shadowsocks-qt5 and google-chrome

Since the shadowsocks-qt5 directly downloaded by pacman is prone to problems, the source code installation method is adopted.

github address: shadowsocks-qt5

$ sudo pacman -S gcc cmake make qt5-base qrencode libqtshadowsocks zbar libappindicator     #安装依赖
$ mkdir build && cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
$ make -j4
$ sudo make install

install google-chrome

$ sudo pacman -S google-chrome

2.5 Install electronic-wechat

$ sudo pacman -S electronic-wechat

2.6 Install tigervnc

$ sudo pacman -S tigervnc

new file /etc/systemd/system/x0vncserver.service, replace<USER>

[Unit]                                                                                                
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
User=<USER>
ExecStart=/usr/bin/sh -c '/usr/bin/x0vncserver -display :1 -rfbport 5900 -passwordfile /home/<USER>/.v

[Install]
WantedBy=multi-user.target

Set the vnc password, start the service

$ sudo systemctl daemon-reload
$ vncpasswd
$ sudo systemctl start x0vncserver      #启动服务
$ sudo systemctl status x0vncserver     #查看状态
$ sudo systecmctl enable x0vncserver    #开机启动

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325151104&siteId=291194637