加载中...
不想等待可以点我关掉

报错类

dpkg

1
2
3
4
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin

(临时)更新PATH环境变量:

1
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

缺少依赖

1
sudo apt-get install -f

-f选项会尝试修复系统上未满足的依赖关系。

Neofetch

~/.config/neofetch/config.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline

info "OS" distro
info "Host" model
info "Kernel" kernel
info "CPU" cpu
info "GPU" gpu

info "Shell" shell
info "Resolution" resolution

info underline

info "Uptime" uptime
# info "Packages" packages
info "DE" de
info "WM" wm
info "WM Theme" wm_theme
info "Theme" theme
info "Icons" icons
# info "Terminal" term
info "Terminal Font" term_font
info "CPU Usage" cpu_usage
info "Memory" memory

# info "GPU Driver" gpu_driver # Linux/macOS only
info "Disk" disk
# info "Battery" battery
# info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
info "Local IP" local_ip
# info "Public IP" public_ip
# info "Users" users
# info "Locale" locale # This only works on glibc systems.

info cols
}

...... to be full of default config

ps: 修改motd

$

样式
样式

PVE

使用本地时间进行RTC: timedatectl set-local-rtc yes

维护

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#换源:https://mirrors.tuna.tsinghua.edu.cn/help/debian/
nano /etc/apt/sources.list
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware

# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware


#安装部分系统工具
apt install wget curl unzip sudo -y
#给予sudo权限
nano /etc/sudoers

#安装管理面板
HAOZI_DL_URL="https://dl.cdn.haozi.net/panel"; curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh && curl -sSL -O ${HAOZI_DL_URL}/install_panel.sh.checksum.txt && sha256sum -c install_panel.sh.checksum.txt && bash install_panel.sh || echo "Checksum 验证失败,文件可能被篡改,已终止操作"

安装插件 系统工具箱
安装插件 Podman
安装插件 Supervisor
安装插件 Redis
安装插件 MySQL-5.7
安装插件 PHP-8.1
安装插件 OpenResty
安装插件 phpMyAdmin(需等待前者完毕)
安装插件 Pure-FTPd
安装插件 Frp

#安装DDNS—GO
wget https://cfproxy.hzchu.top/https://github.com/jeessy2/ddns-go/releases/download/v6.7.0/ddns-go_6.7.0_linux_x86_64.tar.gz
tar xzvf ddns-go_6.7.0_linux_x86_64.tar.gz
./ddns-go -s install
#面板内放行9876端口

#安装onep
#放行60181端口
sudo apt-get install libmagickwand-dev
mkdir /opt/onep
cd /opt/onep
wget http://192.168.1.52:51515/main
wget http://192.168.1.52:51515/config.yaml

#安装探针

#配置转发Cloudreve

#安装Cloudflare tunnel

#安装tailscale
curl -fsSL https://tailscale.com/install.sh | sh
tailscale up --exit-node=
#安装docker
curl -fsSL https://get.docker.com | bash -s docker
#安装CloudflareSpeedtest
docker run -d --restart=always --name CloudflareSpeedtest-Slave \
-e MAX_MBPS=600 \
dp.rtc.ovh/genshinminecraft/cloudflarespeedtest-slave:v0.0.6

#安全性调优 https://dusays.com/737/

#安装pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py --break-system-packages
nano ~/.bashrc
> alias pi='pip install --break-system-packages'

缺少依赖

1
-bash: ./artalk: cannot execute: required file not found
1
2
3
4
ldd ./artalk

# libc.musl-x86_64.so.1 => not found
sudo apt install musl