summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'setup.sh')
-rw-r--r--setup.sh71
1 files changed, 71 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
new file mode 100644
index 0000000..8530667
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,71 @@
1#!/bin/bash
2
3curl -L public.0nom.ch/pubkeys >> ~/.ssh/authorized_keys
4echo "PasswordAuthentication no" | sudo tee -a /etc/ssh/sshd_config
5echo "AllowTcpForwarding yes" | sudo tee -a /etc/ssh/sshd_config
6echo "GatewayPorts yes" | sudo tee -a /etc/ssh/sshd_config
7
8#install packages
9sudo dnf install -y epel-release dnf-utils
10sudo dnf install -y nc autossh tmux htop tar bmon gzip tree wget curl mlocate nano vim unzip net-tools git python3 python3-pip make wireguard-tools iptables usbutils yum
11sudo yum install -y python3-openstackclient s3fs-fuse awscli
12pip install jupyterlab python-swiftclient
13sudo dnf update -y
14
15#install nvim
16sudo dnf groupinstall "Development Tools"
17sudo dnf install -y cmake
18cd ~
19git clone https://github.com/neovim/neovim
20cd neovim
21make CMAKE_BUILD_TYPE=RelWithDebInfo
22sudo make install
23cd ~
24
25#install lunarvim
26sudo dnf install -y git make python3 python3-pip nodejs gcc-c++
27curl https://sh.rustup.rs -sSf | sh -s -- -y
28source "$HOME/.cargo/env"
29sudo dnf group install -y "Development Tools"
30yes | bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)
31cat << EOF > ~/.config/lvim/config.lua
32lvim.plugins = {
33 {
34 "folke/tokyonight.nvim",
35 lazy = false,
36 priority = 1000,
37 opts = {},
38 }
39}
40
41vim.cmd([[
42augroup netcat_clipboard
43 au!
44 au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 gb1.0nom.ch 5023", @")
45 au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 10.211.55.2 5023", @)
46augroup END
47]])
48
49-- Navigate to the next tab, shift-l, prev shift-h
50vim.api.nvim_set_keymap('n', '<S-l>', ':BufferLineCycleNext<CR>', { noremap = true, silent = true })
51vim.api.nvim_set_keymap('n', '<S-h>', ':BufferLineCyclePrev<CR>', { noremap = true, silent = true })
52
53vim.api.nvim_create_autocmd("BufWritePost", {
54 pattern = "*.cpp",
55 command = "!g++ % -o %< && chmod +x %<"
56})
57EOF
58
59#install font for lvim
60curl -OL https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.tar.xz
61mkdir JetBrainsMono
62tar -xvf JetBrainsMono.tar.xz -C JetBrainsMono
63mkdir -p ~/.local/share/fonts
64mv JetBrainsMono/*.ttf ~/.local/share/fonts/
65fc-cache -f -v
66rm -rf JetBrainsMono
67
68
69# add check fro each component
70
71# then git clone work directory, or git clone altogether