debian配置手册
- 配置clash
网络代理配置
- 设置->网络->网络代理
1
2
3http 127.0.0.1 7890
https 127.0.0.1 7890
socket 127.0.0.1 7891
- 设置->网络->网络代理
开机自启
1
sudo nano /etc/systemd/system/clash.service
1
2
3
4
5
6
7
8
9
10
11
12[Unit]
Description=A rule based proxy in Go for %i.
After=network.target
[Service]
Type=simple
User=berg
Restart=on-abort
ExecStart=/home/berg/.clash/clash -d /home/berg/.clash/
[Install]
WantedBy=multi-user.target1
2
3sudo systemctl enable clash
#查看状态
sudo systemctl status clash
修改默认文件名
1
2
3
4
5
6
7
8
9
10
11cd ~
mkdir Desktop Download Templates Public Documents Music Pictures Videos
rm -rf 公共 模板 视频 图片 文档 下载 音乐 桌面
xdg-user-dirs-update --set DESKTOP ~/Desktop
xdg-user-dirs-update --set DOWNLOAD ~/Download
xdg-user-dirs-update --set TEMPLATES ~/Templates
xdg-user-dirs-update --set PUBLICSHARE ~/Public
xdg-user-dirs-update --set DOCUMENTS ~/Documents
xdg-user-dirs-update --set MUSIC ~/Music
xdg-user-dirs-update --set PICTURES ~/Pictures
xdg-user-dirs-update --set VIDEOS ~/Videos安装oh-my-zsh
安装zsh
1
2sudo apt install zsh
chsh -s /bin/zsh重启电脑
下载 oh-my-zsh安装脚本
1
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
1
2chmod +x install.sh
sh install.sh安装插件
- 安装zsh-syntax-highlighting
1
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- 安装zsh-autosuggestions
1
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- 修改/~.zshrc
1
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
- 安装zsh-syntax-highlighting
配置主题显示当前文件路径 - robbyrussell
- 修改主题 更改为以下内容
1
nano ~/.oh-my-zsh/themes/robbyrussell.zsh-theme
1
2
3
4
5
6local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT='${ret_status} %{$fg[cyan]%}$PWD%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
- 修改主题
- 修改grub引导主题
下载主题文件
https://www.gnome-look.org/browse/
grub-themes
放置主题文件
1
2sudo mkdir /usr/share/grub/themes/vimix
sudo cp /your/path/vimix /usr/share/grub/themes/vimix -rf修改系统配置
1
sudo vim /etc/default/grub
1
GRUB_THEME="/usr/share/grub/themes/vimix/theme.txt"
更新配置
1
sudo update-grub
debian配置手册
http://example.com/2020/04/10/debian配置手册/