summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh58
1 files changed, 6 insertions, 52 deletions
diff --git a/setup.sh b/setup.sh
index 109ec08..0a451f9 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,61 +1,15 @@
1#!/bin/bash 1#!/bin/bash
2 2
3echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config
4echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
5echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
6 3
7git clone https://git.0nom.ch/keys ~/keys 4SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
8~/keys/add-ssh-keys.sh 5cd "$SCRIPT_DIR" || exit
9 6
10#install packages 7bash ./core/ssh.sh || { echo "Failed to configure SSH"; exit 1; }
11sudo dnf install -y epel-release 8bash ./core/vim.sh || { echo "Failed to configure Vim"; exit 1; }
12sudo dnf groupinstall -y "Development Tools" 9bash ./core/install-packages.sh || { echo "Failed to install packages"; exit 1; }
13sudo dnf install -y nc openssl autossh tmux htop tar bmon gzip tree wget curl mlocate nano vim unzip net-tools git python3 python3-pip make wireguard-tools usbutils yum
14sudo dnf install -y xclip
15
16sudo dnf install -y gcc gcc-c++
17#sudo dnf install -y asio-devel boost-devel openssl-devel
18#install packages ml
19#pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
20#pip3 install transformers
21
22#sudo yum install -y python3-openstackclient s3fs-fuse awscli
23#pip install jupyterlab python-swiftclient
24#sudo dnf update -y
25
26cat << EOF >> /etc/vimrc
27augroup netcat_clipboard
28 au!
29 au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.0nom.ch 5023", @")
30augroup END
31
32" Enable line wrapping
33set wrap
34
35" Optional: Make wrapped lines easier to read by indenting them
36set breakindent
37set breakindentopt=shift:1
38
39syntax on
40set autoindent
41set number
42set mouse=a
43set expandtab
44set shiftwidth=2
45set softtabstop=2
46set tabstop=2
47
48set autoindent
49set smartindent
50filetype plugin indent on
51
52set laststatus=2 " permanent status bar
53set statusline=%F " shows full file path
54
55EOF
56 10
57tee -a /etc/bashrc > /dev/null << 'EOF2' 11tee -a /etc/bashrc > /dev/null << 'EOF2'
58LS_COLORS=$LS_COLORS:'di=38;5;135:' ; export LS_COLORS 12LS_COLORS=$LS_COLORS:'di=38;5;135:ex=00;32:' ; export LS_COLORS
59PS1='[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ ' 13PS1='[\[\033[01;32m\]\u\[\033[00m\]@\h \[\033[38;5;135m\]\W\[\033[00m\]]\$ '
60EOF2 14EOF2
61source /etc/bashrc 15source /etc/bashrc