manjarno 折腾记录

切换中国镜像源

1
pacman-mirrors --country China

添加archlinuxCN源

1
2
3
4
vim /etc/pacman.conf
[archlinuxcn]
SigLevel = Optional TrustedOnly
Server =https://mirrors.ustc.edu.cn/archlinuxcn/$arch

更新系统

1
sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring

安装 git

1
sudo pacman -S git

安装 terminator

1
sudo pacman -S terminator

安装 vim

1
sudo pacman -S vim

安装spf13-vim配置

1
curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh

安装 vim-youcompleteme-git

1
sudo pacman -S vim-youcompleteme-git

安装 gimp

1
sudo pacman -S gimp

安装 oh-my-zsh

1
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

安装 autojump

1
2
3
4
5
6
sudo pacman -S autojump
vim ~/.zshrc
plugins=(
git
autojump
)

安装搜狗拼音输入法

  • 安装
1
2
3
4
sudo pacman -S fcitx
sudo pacman -S fcitx-im
sudo pacman -S fcitx-sogoupinyin
sudo pacman -S fcitx-configtool
  • 配置:
1
2
3
4
5
vim ~/.xprofile

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

修改目录为英文

1
2
3
4
5
6
7
8
9
10
vim ~/.config/user-dirs.dirs

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

安装 amule

1
sudo pacman -S amule

安装 virtualbox

1
sudo pacman -S virtualbox

这里需要选择与当前内核相同的内核模块比如笔者正在使用的内核版本为414(uname -r),
则需要安装linux414-virtualbox-host-modules

1
sudo modprobe vboxdrv

安装主题

  • themes:

https://www.gnome-look.org/

  • icons:

https://github.com/keeferrourke/la-capitaine-icon-theme.git

1
2
3
➜  ~ ls ~/.icons 
la-capitaine-icon-theme
➜ ~

安装 aria2

  • 安装
1
sudo pacman -S aria2
  • 配置开机启动
1
2
3
4
5
6
7
8
9
10
gedit /usr/lib/systemd/system/aria2c.service
[Unit]
Description=aria2c
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
ExecStart=/usr/bin/aria2c --conf-path=/home/wangxiuwen/.aria2/aria2.conf

[Install]
WantedBy=multi-user.target
  • 启动
1
2
3
systemctl enable aria2c.service
systemctl start aria2c.service
systemctl status aria2c.service
  • 安装界面
1
2
3
git clone https://github.com/mayswind/AriaNg.git
npm install
gulp clean build

dist 文件夹即 aria2c web界面

openresty

  • 编译安装

  • 配置

1
2
3
4
5
6
7
8
9
10
11
12
13
➜  ~ cat /usr/lib/systemd/system/nginx.service
[Unit]
Description=nginx - high performance web server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
ExecStart=/usr/local/openresty/nginx/sbin/nginx -c /usr/local/openresty/nginx/conf/nginx.conf
ExecReload=/usr/local/openresty/nginx/sbin/nginx -s reload
ExecStop=/usr/local/openresty/nginx/sbin/nginx -s stop

[Install]
WantedBy=multi-user.target

安装 vmware

https://wiki.archlinux.org/index.php/VMware_(简体中文)

安装 微信

1
sudo pacman -S electronic-wechat

安装网易云音乐

1
sudo pacman -S netease-cloud-music

安装 vlc

1
sudo pacman -S vlc

安装 chrome

1
sudo pacman -S google-chrome

蓝牙报错

  • 报错截图
    2018-09-21 17-40-29屏幕截图.png

  • 解决

1
2
gsettings get org.blueman.transfer shared-path
gsettings set org.blueman.transfer shared-path '/home/wangxiuwen/Downloads'

安装 snap

1
2
sudo pacman -Sy snapd
sudo systemctl enable --now snapd.socket

安装迅雷

1
2
yaourt -Sy deepin.com.thunderspeed
ls $HOME/.deepinwine/Deepin-ThunderSpeed/drive_c/

参考资料

https://blog.csdn.net/aosan002/article/details/79432759
https://blog.csdn.net/weixin_41301508/article/details/81193217
https://www.jianshu.com/p/f2c9ee00698c
https://docs.snapcraft.io/core/install-manjaro