export local_server=127.0.0.1 export remote_server=
制作安装盘
sudo dd if=/home/guozr/Downloads/manjaro-i3-23.0.1-230921-linux65.iso of=/dev/sda status=progress
代理
代理软件下载
scp root@${remote_server}:/root/Downloads/clash.pkg.tar.zst ~
scp root@${remote_server}:/root/Downloads/dler.yaml ~
git
走代理
git config --global https.proxy ${local_server}:7890
git config --global http.proxy ${local_server}:7890
apt
走代理
sudo echo "Acquire::http::Proxy \"http://${local_server}:7890\";" >> /etc/apt/apt.conf
pacman
走代理
/etc/sudoers.d/05_proxy 增加:
Defaults env_keep += "*_proxy *_PROXY"
one-line command:
sudo echo "Defaults env_keep += \"*_proxy *_PROXY\"" >> /etc/sudoers.d/05_proxy
archlinux
换源
echo "Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/\$repo/os/\$arch" | sudo tee /etc/pacman.d/mirrorlist
zsh 配置
export http_proxy=http://${local_server}:7890 && \
export https_proxy=http://${local_server}:7890 && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "export http_proxy=http://${local_server}:7890" >> ~/.zshrc && \
echo "export https_proxy=http://${local_server}:7890" >> ~/.zshrc && \
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && \
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \
sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/' $HOME/.zshrc && \
sed -i 's/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"fino\"/' $HOME/.zshrc && \
source ~/.zshrc
安装输入法
sudo pacman -S fcitx5-im fcitx5-rime && \
echo -e "export INPUT_METHOD=fcitx5\nexport GTK_IM_MODULE=fcitx5\nexport QT_IM_MODULE=fcitx5\nexport XMODIFIERS=@im=fcitx5\nfcitx5 &" >> ~/.xprofile
修改~/.xprofile
:
export INPUT_METHOD=fcitx5
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5
fcitx5 &
配置文件夾位置:
~/.local/share/fcitx5/rime
交换 alt 和 ctrl
sudo vim /usr/share/X11/xkb/keycodes/evdev