diff options
| author | Super User <root@p.noml.ch> | 2026-03-23 19:08:17 +0800 |
|---|---|---|
| committer | Super User <root@p.noml.ch> | 2026-03-23 19:08:17 +0800 |
| commit | 3b992aee2017112985d4c87fc613a61626b4bacf (patch) | |
| tree | e99a72ae3d617a4c97f5275ff3960d31538e535b | |
| parent | 9abbbe2ea86984865d4f3114583f969949bb3e53 (diff) | |
update ssh, vim, and setup order
| -rwxr-xr-x | setup/core/ssh.sh | 7 | ||||
| -rwxr-xr-x | setup/core/vim.sh | 3 | ||||
| -rwxr-xr-x | setup/setup.sh | 2 |
3 files changed, 9 insertions, 3 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 | ||
| 3 | dnf install -y git | ||
| 4 | |||
| 3 | echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config | 5 | echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config |
| 4 | echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config | 6 | echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config |
| 5 | echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config | 7 | echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config |
| 6 | echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config | 8 | echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config |
| 7 | 9 | ||
| 8 | git clone https://git.noml.ch/keys/.git ~/keys | 10 | git clone https://git.noml.ch/keys/ ~/keys |
| 9 | ~/keys/add-ssh-keys.sh | 11 | ~/keys/add-ssh-keys.sh |
| 12 | sudo 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 | |||
| 60 | set paste | 60 | set paste |
| 61 | set foldcolumn=12 | 61 | set foldcolumn=12 |
| 62 | 62 | ||
| 63 | set noswapfile | ||
| 64 | autocmd InsertLeave * silent! update | ||
| 65 | |||
| 63 | EOF | 66 | EOF |
diff --git a/setup/setup.sh b/setup/setup.sh index 731310e..f0cf83b 100755 --- a/setup/setup.sh +++ b/setup/setup.sh | |||
| @@ -15,7 +15,7 @@ source /etc/bashrc | |||
| 15 | sudo timedatectl set-timezone Asia/Singapore | 15 | sudo timedatectl set-timezone Asia/Singapore |
| 16 | 16 | ||
| 17 | # Core setup | 17 | # Core setup |
| 18 | sudo bash ./core/install-packages.sh || { echo "Failed to install packages"; exit 1; } | ||
| 19 | sudo bash ./core/ssh.sh || { echo "Failed to configure SSH"; exit 1; } | 18 | sudo bash ./core/ssh.sh || { echo "Failed to configure SSH"; exit 1; } |
| 19 | sudo bash ./core/install-packages.sh || { echo "Failed to install packages"; exit 1; } | ||
| 20 | sudo bash ./core/vim.sh || { echo "Failed to configure Vim"; exit 1; } | 20 | sudo bash ./core/vim.sh || { echo "Failed to configure Vim"; exit 1; } |
| 21 | sudo bash ./core/tmux.sh || { echo "Failed to configure Tmux"; exit 1; } | 21 | sudo bash ./core/tmux.sh || { echo "Failed to configure Tmux"; exit 1; } |
