update
This commit is contained in:
9 files changed
+38
-6
No files matched your search
@@ -0,0 +1,3 @@
|
||||
#<domain> <type> <item> <value>
|
||||
* soft nofile 102400
|
||||
* hard nofile 204800
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,26 @@
|
||||
net.ipv4.ip_forward=1
|
||||
net.ipv6.conf.all.forwarding=1
|
||||
net.ipv6.conf.all.accept_ra=2
|
||||
|
||||
#net.core.rmem_default=212992
|
||||
#net.core.wmem_default=212992
|
||||
#net.core.rmem_max=212992
|
||||
#net.core.wmem_max=212992
|
||||
#net.ipv4.tcp_rmem=4096 131072 6291456
|
||||
#net.ipv4.tcp_wmem=4096 16384 4194304
|
||||
#net.ipv4.udp_wmem_min=4096
|
||||
#net.ipv4.udp_rmem_min=4096
|
||||
net.core.rmem_default=8388608
|
||||
net.core.wmem_default=8388608
|
||||
net.core.rmem_max=8388608
|
||||
net.core.wmem_max=8388608
|
||||
net.ipv4.tcp_rmem=409600 13107200 62914560
|
||||
net.ipv4.tcp_wmem=409600 13107200 62914560
|
||||
net.ipv4.udp_wmem_min=409600
|
||||
net.ipv4.udp_rmem_min=409600
|
||||
|
||||
net.core.default_qdisc=fq
|
||||
net.ipv4.tcp_congestion_control=bbr
|
||||
|
||||
vm.overcommit_memory = 1
|
||||
vm.max_map_count=262144
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+9
-6
@@ -14,8 +14,8 @@ configure(){
|
||||
echo -e "APT::Install-Recommends "0";
|
||||
APT::Install-Suggests "0";" | tee /etc/apt/apt.conf.d/01norecommend >/dev/null
|
||||
|
||||
cp "$AWD/assets/ssh-ca.pub" /etc/ssh
|
||||
cp "$AWD/assets/ssh-krl" /etc/ssh
|
||||
cp "$AWD/assets/etc/ssh/ssh-ca.pub" /etc/ssh
|
||||
cp "$AWD/assets/etc/ssh/ssh-krl" /etc/ssh
|
||||
sed -i "s/.*PermitRootLogin.*/PermitRootLogin prohibit-password/g" /etc/ssh/sshd_config || true
|
||||
sed -i "/.*TrustedUserCAKeys.*/d" /etc/ssh/sshd_config || true
|
||||
sed -i "/.*RevokedKeys.*/d" /etc/ssh/sshd_config || true
|
||||
@@ -40,20 +40,23 @@ APT::Install-Suggests "0";" | tee /etc/apt/apt.conf.d/01norecommend >/dev/null
|
||||
sed -i "/EDITOR=.*/d" /etc/environment
|
||||
echo "EDITOR=micro" | tee -a /etc/environment
|
||||
|
||||
cp "$AWD/assets/TINK-CA.crt" /usr/local/share/ca-certificates
|
||||
cp "$AWD/assets/usr/local/share/ca-certificates/TINK-CA.crt" /usr/local/share/ca-certificates
|
||||
/usr/sbin/update-ca-certificates
|
||||
sed -i "s|/bin/bash|/usr/bin/zsh|g" /etc/passwd
|
||||
|
||||
cp "$AWD/assets/etc/security/limits.d/00-default.conf" /etc/security/limits.d/00-default.conf
|
||||
cp "$AWD/assets/etc/sysctl.d/99-tweak.conf" /etc/sysctl.d/99-tweak.conf
|
||||
}
|
||||
|
||||
personalize() {
|
||||
mkdir -p $HOME/.config/fd
|
||||
cp "$AWD/assets/ignore" $HOME/.config/fd/
|
||||
cp "$AWD/assets/.zshrc" $HOME/
|
||||
cp "$AWD/assets/root/.config/fd/ignore" $HOME/.config/fd/
|
||||
cp "$AWD/assets/root/.zshrc" $HOME/
|
||||
if ((DISTRO_PVE)); then
|
||||
sed -i -E "s/.*prompt .*/prompt bart/g" $HOME/.zshrc
|
||||
fi
|
||||
mkdir -p $HOME/.config/micro
|
||||
cp "$AWD/assets/settings.json" $HOME/.config/micro/
|
||||
cp "$AWD/assets/root/.config/micro/settings.json" $HOME/.config/micro/
|
||||
}
|
||||
|
||||
usage(){
|
||||
|
||||
Reference in new issue
Block a user