This commit is contained in:
hl committed 2025-12-28 14:10:16 +08:00
1 parent 3013b04324
commit 38a268c99e
4 files changed
+6 -2

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ configure(){
echo -e "APT::Install-Recommends "0";
APT::Install-Suggests "0";" | tee /etc/apt/apt.conf.d/01norecommend >/dev/null
sed -i "s/.*PermitRootLogin.*/PermitRootLogin prohibit-password/g" /etc/ssh/sshd_config
sed -i "s/.*Host \*.*/Host \*/g" /etc/ssh/ssh_config
sed -i "/.*HashKnownHosts.*/d" /etc/ssh/ssh_config
sed -i "/.*HostKeyAlgorithms.*/d" /etc/ssh/ssh_config
+3 -1
View File
@@ -20,12 +20,14 @@ choose_sites(){
MIRROR_URL=https://mirrors.cernet.edu.cn/debian/
SEC_URL=https://mirrors.cernet.edu.cn/debian-security
DOCKER_URL=https://mirrors.cernet.edu.cn/docker-ce/linux/debian
DOCKER_PGP=https://mirrors.cernet.edu.cn/docker-ce/linux/debian/gpg
PVE_URL=https://mirrors.cernet.edu.cn/proxmox/debian/pve
;;
*)
MIRROR_URL=https://deb.debian.org/debian/
SEC_URL=https://security.debian.org/debian-security
DOCKER_URL=https://download.docker.com/linux/debian
DOCKER_PGP=https://download.docker.com/linux/debian/gpg
PVE_URL=http://download.proxmox.com/debian/pve
;;
esac
@@ -68,7 +70,7 @@ Components: stable
Signed-By: /etc/apt/trusted.gpg.d/docker.gpg
Architectures: $OS_ARCH
" | tee /etc/apt/sources.list.d/docker.sources
curl -fsSL "https://download.docker.com/linux/debian/gpg" | \
curl -fsSL $DOCKER_PGP | \
gpg --dearmor | tee /etc/apt/trusted.gpg.d/docker.gpg > /dev/null
#For docker-ctop
+1 -1
View File
@@ -3,4 +3,4 @@
cmd=$((command -v nala &>/dev/null && echo "nala") || echo "apt")
$cmd update
fd="$1"
sed "s/ /\n/g" $fd | awk '!/^ *(#|$)/' | xargs -r $cmd install --no-install-recommends -y
sed "s/ /\n/g" $fd | awk '!/^ *(#|$)/' | xargs -r apt list | awk -F'/' '/\// {print $1}' | xargs -r $cmd install --no-install-recommends -y
+1
View File
@@ -9,6 +9,7 @@ micro
ripgrep
fd-find
exa
eza
bat
fzf
btop