From 20394f6e8e009ab619fb0688033fccd506f04a87 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 28 Jan 2024 11:10:35 +0200 Subject: [PATCH] 1 --- Makefile | 22 ++++++++++++++++++++++ REFRENCES.md | 3 +++ init-packages | 13 +++++++++++++ init.sh | 9 +++++++++ 4 files changed, 47 insertions(+) create mode 100644 Makefile create mode 100644 REFRENCES.md create mode 100644 init-packages create mode 100755 init.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b621cc3 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +all: + echo OK + +install-neovim: + apt update + apt install -y neovim + +install-nvim: install-neovim + +install-cloud-init: + apt update + apt install -y cloud-init + +install-lxd: + apt install -y lxd lxc bridge-utils uidmap + +install-zfs: + sed -r -i'.BAK' 's/^deb(.*)$$/deb\1 contrib/g' /etc/apt/sources.list + apt update + apt install -y linux-headers-cloud-amd64 linux-headers-amd64 zfsutils-linux zfs-dkms zfs-zed + modprobe zfs + zfs version diff --git a/REFRENCES.md b/REFRENCES.md new file mode 100644 index 0000000..b888861 --- /dev/null +++ b/REFRENCES.md @@ -0,0 +1,3 @@ +* +* +* diff --git a/init-packages b/init-packages new file mode 100644 index 0000000..3a4b659 --- /dev/null +++ b/init-packages @@ -0,0 +1,13 @@ +make +vim +tmux +sudo +htop +net-tools +netfilter-persistent +iptables-persistent +git +iptstate +conntrack +rsync +iproute2 diff --git a/init.sh b/init.sh new file mode 100755 index 0000000..701bbcc --- /dev/null +++ b/init.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +sed -i -e "s@^deb cdrom@# deb cdrom@g" /etc/apt/sources.list + +apt update +apt install -y $(cat init-packages) + + +sed -i -e "s@mouse\=a@mouse=r@g" /usr/share/vim/vim*/defaults.vim