Debian/Ubuntu
編輯 /etc/apache2/conf-enabled/security.conf
CentOS
編輯 /etc/httpd/conf/httpd.conf
Alpine
編輯 /etc/apache2/httpd.conf
ServerTokens Prod
ServerSignature Off
檢測
curl -k --head https://127.0.0.1:443
Debian/Ubuntu
編輯 /etc/apache2/conf-enabled/security.conf
CentOS
編輯 /etc/httpd/conf/httpd.conf
Alpine
編輯 /etc/apache2/httpd.conf
ServerTokens Prod
ServerSignature Off
檢測
curl -k --head https://127.0.0.1:443
編輯 /etc/samba/smb.conf
[global]
follow symlinks = yes
wide links = yes
strict locking = no
unix extensions = no
移除 local-lvm
umount /dev/pve/data
lvremove /dev/pve/data
建立 Thinly-Provisioned Logical Volumes
lvcreate -v -L 100G -T pve/data
擴充 PV
parted
pvresize /dev/sda3
指定 LV 大小
lvresize -L 32G /dev/pve/root
resize2fs /dev/pve/root
lvresize -L 1024G pve/dat
1 netmask
2 time-offset
3 router
6 dns-server
7 log-server
9 lpr-server
13 boot-file-size
15 domain-name
16 swap-server
17 root-path
18 extension-path
19 ip-forward-enable
20 non-local-source-routing
21 policy-filter
22 max-datagram-reassembly
23 default-ttl
26 mtu
27 all-subnets-local
31 router-discovery
32 router-solicitation
33 static-route
34 trailer-encapsulation
35 arp-timeout
36 ethernet-encap
37 tcp-ttl
38 tcp-keepalive
40 nis-domain
41 nis-server
42 ntp-server
44 netbios-ns
45 netbios-dd
46 netbios-nodetype
47 netbios-scope
48 x-windows-fs
49 x-windows-dm
58 T1
59 T2
60 vendor-class
64 nis+-domain
65 nis+-server
66 tftp-server
67 bootfile-name
68 mobile-ip-home
69 smtp-server
70 pop3-server
71 nntp-server
74 irc-server
77 user-class
80 rapid-commit
93 client-arch
94 client-interface-id
97 client-machine-id
119 domain-search
120 sip-server
121 classless-static-route
125 vendor-id-encap
150 tftp-server-address
255 server-ip-address
正常硬碟 sda,錯誤硬碟 sdb,更新硬碟 sdc
修復 zfs
zpool status
zpool offline rpool /dev/錯誤硬碟
## shutdown install the new disk or replace the disks
sgdisk --replicate=/dev/新硬碟 /dev/正常硬碟
sgdisk --randomize-guids /dev/新硬碟
zpool replace rpool /dev/錯誤硬碟 /dev/新硬碟
zpool status # => resilvering is working
更新 ESP
proxmox-boot-tool format /dev/sdc2
proxmox-boot-tool init /dev/sdc2
proxmox-boot-tool refresh
1.編輯 /etc/apt/sources.list 根據不同版本 debian 加入
# Debian 9 "Stretch"
deb http://deb.debian.org/debian stretch-backports main contrib non-free
# Debian 10 "Buster"
deb http://deb.debian.org/debian buster-backports main contrib non-free
# Debian 11 "Bullseye"
deb http://deb.debian.org/debian bullseye contrib non-free
2.apt-get update
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
3.apt-get install -f
dpkg-reconfigure broadcom-sta-dkms
4.find /lib/modules/$(uname -r)/updates
5.modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
6.modprobe wl
參考 https://wiki.debian.org/wl