summaryrefslogtreecommitdiff
path: root/setup/core
diff options
context:
space:
mode:
authorSuper User <root@p.noml.ch>2026-03-23 19:08:17 +0800
committerSuper User <root@p.noml.ch>2026-03-23 19:08:17 +0800
commit3b992aee2017112985d4c87fc613a61626b4bacf (patch)
treee99a72ae3d617a4c97f5275ff3960d31538e535b /setup/core
parent9abbbe2ea86984865d4f3114583f969949bb3e53 (diff)
update ssh, vim, and setup order
Diffstat (limited to 'setup/core')
-rwxr-xr-xsetup/core/ssh.sh7
-rwxr-xr-xsetup/core/vim.sh3
2 files changed, 8 insertions, 2 deletions
diff --git a/setup/core/ssh.sh b/setup/core/ssh.sh
index 362903a..c4454ae 100755
--- a/setup/core/ssh.sh
+++ b/setup/core/ssh.sh
@@ -1,9 +1,12 @@
1#!/bin/bash 1#!/bin/bash
2 2
3dnf install -y git
4
3echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config 5echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config
4echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config 6echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
5echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config 7echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
6echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config 8echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config
7 9
8git clone https://git.noml.ch/keys/.git ~/keys 10git clone https://git.noml.ch/keys/ ~/keys
9~/keys/add-ssh-keys.sh 11~/keys/add-ssh-keys.sh
12sudo systemctl restart sshd
diff --git a/setup/core/vim.sh b/setup/core/vim.sh
index 9571887..bd99a13 100755
--- a/setup/core/vim.sh
+++ b/setup/core/vim.sh
@@ -60,4 +60,7 @@ setlocal regexpengine=2
60set paste 60set paste
61set foldcolumn=12 61set foldcolumn=12
62 62
63set noswapfile
64autocmd InsertLeave * silent! update
65
63EOF 66EOF