diff options
Diffstat (limited to 'core')
| -rwxr-xr-x | core/install-packages.sh | 4 | ||||
| -rwxr-xr-x | core/ssh.sh | 3 | ||||
| -rwxr-xr-x | core/vim.sh | 10 |
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 @@ | |||
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | #install packages | 4 | #install packages |
| 5 | #sudo dnf install -y epel-release | 5 | sudo dnf install -y epel-release |
| 6 | sudo dnf group install -y "Development Tools" | 6 | #sudo dnf group install -y "Development Tools" |
| 7 | 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 | 7 | 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 |
| 8 | sudo dnf install -y xclip | 8 | sudo dnf install -y xclip |
| 9 | 9 | ||
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 @@ | |||
| 3 | echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config | 3 | echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config |
| 4 | echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config | 4 | echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config |
| 5 | echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config | 5 | echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config |
| 6 | echo "AllowAgentForwarding yes" | sudo tee -a /etc/ssh/sshd_config | ||
| 6 | 7 | ||
| 7 | git clone https://git.0nom.ch/keys ~/keys | 8 | git clone https://git.noml.ch/keys ~/keys |
| 8 | ~/keys/add-ssh-keys.sh | 9 | ~/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 | |||
| 5 | cat << EOF >> /etc/vimrc | 5 | cat << EOF >> /etc/vimrc |
| 6 | augroup netcat_clipboard | 6 | augroup netcat_clipboard |
| 7 | au! | 7 | au! |
| 8 | au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.0nom.ch 5023", @") | 8 | au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.noml.ch 5023", @") |
| 9 | augroup END | 9 | augroup END |
| 10 | 10 | ||
| 11 | " Enable line wrapping | 11 | " Enable line wrapping |
| @@ -18,9 +18,9 @@ set breakindentopt=shift:1 | |||
| 18 | syntax on | 18 | syntax on |
| 19 | set mouse=a | 19 | set mouse=a |
| 20 | set expandtab | 20 | set expandtab |
| 21 | set shiftwidth=2 | 21 | set shiftwidth=4 |
| 22 | set softtabstop=2 | 22 | set softtabstop=4 |
| 23 | set tabstop=2 | 23 | set tabstop=4 |
| 24 | set noautoindent | 24 | set noautoindent |
| 25 | set nosmartindent | 25 | set nosmartindent |
| 26 | filetype plugin indent on | 26 | filetype plugin indent on |
| @@ -50,6 +50,8 @@ nnoremap <C-e> $ | |||
| 50 | set number | 50 | set number |
| 51 | setlocal regexpengine=2 | 51 | setlocal regexpengine=2 |
| 52 | set paste | 52 | set paste |
| 53 | set foldcolumn=12 | ||
| 54 | |||
| 53 | 55 | ||
| 54 | EOF | 56 | EOF |
| 55 | 57 | ||
