From 3a52e92fbbbab4df949740f89a389d68281a9428 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 22 May 2025 18:36:01 +0800 Subject: hehe --- core/install-packages.sh | 4 ++-- core/ssh.sh | 3 ++- core/vim.sh | 10 ++++++---- 3 files changed, 10 insertions(+), 7 deletions(-) (limited to 'core') 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 $ set number setlocal regexpengine=2 set paste +set foldcolumn=12 + EOF -- cgit v1.2.3-70-g09d2