安裝EndeavourOS

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
  • 10
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值