This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # Debian 系统安全跨版本升级脚本 (最终打磨版) | |
| # 功能:自动检测版本,支持 Debian 11 -> 12 -> 13 升级路径 | |
| # 改进:增强了错误捕获、子 Shell 处理及非交互环境兼容性 | |
| # | |
| set -u | |
| # 注意:不使用 set -e,依靠 run_or_die 函数精确控制错误处理 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd fonts | |
| mv *.ttf /usr/share/fonts/truetype | |
| cd /usr/share/fonts/truetype | |
| mkfontscale | |
| mkfontdir | |
| fc-cache | |
| xset fp rehash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| set ruler | |
| set showcmd | |
| set incsearch | |
| set shiftwidth=4 | |
| set expandtab | |
| set laststatus=2 | |
| set number | |
| set numberwidth=5 | |
| set ignorecase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Version="1" | |
| AverageWindow="500" | |
| BarMaxIn="102400" | |
| BarMaxOut="102400" | |
| DataFormat="Human Readable (Byte)" | |
| Devices="all" | |
| MultipleDevices="[ ]" | |
| RefreshInterval="1000" | |
| TrafficFormat="Human Readable (Bit)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ -z "$PS1" ] && return | |
| HISTCONTROL=ignoredups:ignorespace | |
| shopt -s histappend | |
| HISTSIZE=100000 | |
| HISTFILESIZE=2000000 | |
| shopt -s checkwinsize | |
| export TERM=xterm-256color | |
| [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | |
| if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |
| debian_chroot=$(cat /etc/debian_chroot) |