summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.setup.sh.swpbin0 -> 12288 bytes
-rwxr-xr-x[-rw-r--r--]port-forward/ssh-port-forward.sh2
-rwxr-xr-xsetup.sh19
3 files changed, 12 insertions, 9 deletions
diff --git a/.setup.sh.swp b/.setup.sh.swp
new file mode 100644
index 0000000..6e4693c
--- /dev/null
+++ b/.setup.sh.swp
Binary files differ
diff --git a/port-forward/ssh-port-forward.sh b/port-forward/ssh-port-forward.sh
index 748c161..798949d 100644..100755
--- a/port-forward/ssh-port-forward.sh
+++ b/port-forward/ssh-port-forward.sh
@@ -12,4 +12,6 @@ echo "cleaning attempted."
12 12
13ssh -i $KEY_FILE $HOST $(for i in $(seq ${j}000 ${j}005); do echo "-R $i:localhost:$i"; done; echo "-R ${j}022:localhost:22") 13ssh -i $KEY_FILE $HOST $(for i in $(seq ${j}000 ${j}005); do echo "-R $i:localhost:$i"; done; echo "-R ${j}022:localhost:22")
14 14
15echo "port forward is available on port {j}00x"
16
15#seperate all the files 17#seperate all the files
diff --git a/setup.sh b/setup.sh
index f9d16fc..f75e979 100755
--- a/setup.sh
+++ b/setup.sh
@@ -5,21 +5,15 @@ echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
5echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config 5echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
6 6
7sudo dnf install -y git 7sudo dnf install -y git
8git clone https://git.0nom.ch/keys ~/ 8git clone https://git.0nom.ch/keys ~/keys
9mkdir -p "~/.ssh" 9~/keys/add-ssh-keys.sh
10touch "~/.ssh/authorized_keys"
11find "~/keys" -name "*.pub" -type f -print0 | while IFS= read -r -d '' file; do
12 echo "Adding key from file: $file"
13 cat "$file" >> "~/.ssh/authorized_keys"
14 echo "" >> "~/.ssh/authorized_keys" # Add a newline after each key
15done
16 10
17#install packages 11#install packages
18sudo dnf install -y epel-release dnf-utils 12sudo dnf install -y epel-release dnf-utils
19sudo 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 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
20#sudo yum install -y python3-openstackclient s3fs-fuse awscli 14#sudo yum install -y python3-openstackclient s3fs-fuse awscli
21#pip install jupyterlab python-swiftclient 15#pip install jupyterlab python-swiftclient
22sudo dnf update -y 16#sudo dnf update -y
23 17
24cat << EOF >> /etc/vimrc 18cat << EOF >> /etc/vimrc
25augroup netcat_clipboard 19augroup netcat_clipboard
@@ -34,6 +28,7 @@ set wrap
34set breakindent 28set breakindent
35set breakindentopt=shift:3 29set breakindentopt=shift:3
36 30
31syntax on
37set autoindent 32set autoindent
38set number 33set number
39set mouse=a 34set mouse=a
@@ -41,8 +36,14 @@ set expandtab
41set shiftwidth=2 36set shiftwidth=2
42set softtabstop=2 37set softtabstop=2
43set tabstop=2 38set tabstop=2
39syntax on
44EOF 40EOF
45 41
46# add check fro each component 42# add check fro each component
47 43
48# then git clone work directory, or git clone altogether 44# then git clone work directory, or git clone altogether
45
46
47
48
49