Linux安装后配置(manjaro)
1.配置源
# sudo pacman-mirrors -i -c China -m rank
2.修改yay源
# sudo pacman -S yay
# yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
# yay -P -g
3.安装需要软件
# sudo pacman -S nodejs npm firefox emacs kdeconnect rofi docker python python-pip pandoc
# sudo pacman -S fcitx-im fcitx-configure-tools fcitx-rime
# yay -S netease-cloud-music Tusk pdfsam obinskit rpi-imager baidunetdisk xmind mindmaster
4.配置rime输入法
# vim ~/.xprofile
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
5.关闭linux响铃
# sudo vim /etc/modprobe.d/blacklist.conf
blacklist pcspkr
6.rofi配置
# vim ~/.config/rofi/config.rasi
configuration {
modi: "window,run,ssh";
show-icons: true;
theme: "/usr/share/rofi/themes/Arc-Dark.rasi";
icon-theme: "Numix";
drun-icon-theme: "Numix";
}
7.docker安装后配置
- 设置非root用户使用
# sudo groupadd docker
# sudo gpasswd -a ${USER} docker
- 修改国内源和镜像路径
# sudo vim /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"],
"graph": "/home/$(whoami)/.docker/image"
}
8.pip换源
# vim ~/.pip/pip.conf
[global]
index-url = https://mirrors.huaweicloud.com/repository/pypi/simple
trusted-host = mirrors.huaweicloud.com
timeout = 120
9.npm换源及修改安装包目录
# vim ~/.npmrc
prefix=/home/$(whoami)/.node_modules/prefix
cache=/home/$(whoami)/.node_modules/cache
registry=https://registry.npm.taobao.org
- 安装cnpm
# npm install -g cnpm --registry=https://registry.npm.taobao.org
10.永久修改主机名
# sudo vim /etc/hostname