# 允许ssh连接
sudo vim /etc/ssh/sshd_config # 打开PasswordAuthentication
sudo systemctl restart sshd.service
# 导出密钥
# gpg --list-secret-keys --keyid-format LONG
gpg -a -o public.key --export 05401D4209AB195AF622BBC84E423C3B68078D93
gpg -a -o private.key --export-secret-keys 05401D4209AB195AF622BBC84E423C3B68078D93
# 下载clash deb包
# https://aur.archlinux.org/packages/clash-verge-rev-bin
换源,更新系统。
yay -S vim openssh
IP=192.168.x.x
scp wh@${IP}:~/public.key ./
scp wh@${IP}:~/private.key ./
scp wh@${IP}:~/xxx.deb ./
# 导入密钥
gpg --import public.key
gpg --import private.key
rm public.key private.key
gpg --edit-key 05401D4209AB195AF622BBC84E423C3B68078D93
# trust
# quit
# 安装vpn,配置
yay -S clash-verge-rev-bin gnupg
打开https://gist.github.com/FishHawk/1710565b4a1034d31f521d32f795ef9e
zsh
yay -S zsh zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search
chsh -s /bin/zsh # 重启后生效
# 更新~/.zshrc文件
输入法,重启后生效
yay -S fcitx5-chinese-addons fcitx5-configtool
reboot
git
yay -S github-cli
git config --global user.name FishHawk
git config --global user.email [email protected]
git config --global core.editor vim
git config --global commit.gpgsign true
git config --global user.signingkey F699D0AF606775A1
ssh-keygen
cat .ssh/id_ed25519.pub
# 打开https://github.com/settings/keys,配置
pass
yay -S pass wl-clipboard
pass init gpg-key-id 05401D4209AB195AF622BBC84E423C3B68078D93
pass git init
pass git remote add origin [email protected]:FishHawk/password-store.git
pass git pull origin master
pass git rebase origin master
ssh-keygen
其他软件
yay -S linuxqq telegram-desktop \
intellij-idea-community-edition \
visual-studio-code-bin \
docker prismlauncher pnpm
yay -S steam
docker不需要sudo
sudo gpasswd -a $USER docker
编辑esp/loader/loader.conf,timeout为0
取消重启关机时的倒计时
System settings -> Session -> Desktop Session -> Ask for confirmation
Firefox
about:config
- ui.key.menuAccessKeyFocuses = false
.zshrc文件
bindkey -e
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt share_history
zstyle :compinstall filename '/home/wh/.zshrc'
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
autoload -U colors && colors
autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b'
setopt PROMPT_SUBST
PROMPT='%B%F{magenta}[%n@%m%f %F{blue}%1~%f%F{magenta}]$%f%b '
RPROMPT='%B%F{green}${vcs_info_msg_0_:0:20}%f%b'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# extension
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
bindkey ',' autosuggest-accept
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_STYLES[alias]='fg=white,bold'
ZSH_HIGHLIGHT_STYLES[command]='fg=white,bold'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=white,bold'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=blue,bold'
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey '^[[A' history-substring-search-up # or '\eOA'
bindkey '^[[B' history-substring-search-down # or '\eOB'
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND=0
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND=0