summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorroot <root@sg1.noml.ch>2025-05-22 18:36:01 +0800
committerroot <root@sg1.noml.ch>2025-05-22 18:36:01 +0800
commit3a52e92fbbbab4df949740f89a389d68281a9428 (patch)
tree5cb3b864eb0e3f3b90a1efd9cbdee1fb9f158f4a /core
parent8cb260002db7c46ea5fe2c3f589b485e5f5d970d (diff)
Diffstat (limited to 'core')
-rwxr-xr-xcore/install-packages.sh4
-rwxr-xr-xcore/ssh.sh3
-rwxr-xr-xcore/vim.sh10
3 files changed, 10 insertions, 7 deletions
diff --git a/core/install-packages.sh b/core/install-packages.sh
index 9a6aea3..75426a7 100755
--- a/core/install-packages.sh
+++ b/core/install-packages.sh
@@ -2,8 +2,8 @@
#install packages
-#sudo dnf install -y epel-release
-sudo dnf group install -y "Development Tools"
+sudo dnf install -y epel-release
+#sudo dnf group install -y "Development Tools"
sudo dnf install -y nc openssl bat autossh tmux htop tar bmon gzip tree wget curl plocate nano vim unzip net-tools git python3 python3-pip make wireguard-tools usbutils yum
sudo dnf install -y xclip
diff --git a/core/ssh.sh b/core/ssh.sh
index 3cf2583..c8fb49d 100755
--- a/core/ssh.sh
+++ b/core/ssh.sh
@@ -3,6 +3,7 @@
echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config
echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
+echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config
-git clone https://git.0nom.ch/keys ~/keys
+git clone https://git.noml.ch/keys ~/keys
~/keys/add-ssh-keys.sh
diff --git a/core/vim.sh b/core/vim.sh
index e82414a..883a75e 100755
--- a/core/vim.sh
+++ b/core/vim.sh
@@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")" || exit
cat << EOF >> /etc/vimrc
augroup netcat_clipboard
au!
- au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.0nom.ch 5023", @")
+ au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.noml.ch 5023", @")
augroup END
" Enable line wrapping
@@ -18,9 +18,9 @@ set breakindentopt=shift:1
syntax on
set mouse=a
set expandtab
-set shiftwidth=2
-set softtabstop=2
-set tabstop=2
+set shiftwidth=4
+set softtabstop=4
+set tabstop=4
set noautoindent
set nosmartindent
filetype plugin indent on
@@ -50,6 +50,8 @@ nnoremap <C-e> $
set number
setlocal regexpengine=2
set paste
+set foldcolumn=12
+
EOF