setup

personal system configuration scripts
git clone git://git.pyratebeard.net/setup.git
Log | Files | Refs | README

commit 9ea7f9cea9d89cf47e84276eedd2d33c09a44dba
parent c1988b6bf6d20ab4af369108e214cb5dfb9deef8
Author: pyratebeard <root@pyratebeard.net>
Date:   Wed, 10 Jan 2024 13:05:59 +0000

reemove old stuff

Diffstat:
D01-share/script | 0
D02-pkgs/script | 0
D03-env/script | 0
D04-user/script | 0
D05-dots/script | 0
D06-tools/script | 0
D07-sshd/script | 0
D08-motd/script | 0
D09-sec/script | 0
Dkickstart | 63---------------------------------------------------------------
Dmakefile | 36------------------------------------
11 files changed, 0 insertions(+), 99 deletions(-)

diff --git a/01-share/script b/01-share/script diff --git a/02-pkgs/script b/02-pkgs/script diff --git a/03-env/script b/03-env/script diff --git a/04-user/script b/04-user/script diff --git a/05-dots/script b/05-dots/script diff --git a/06-tools/script b/06-tools/script diff --git a/07-sshd/script b/07-sshd/script diff --git a/08-motd/script b/08-motd/script diff --git a/09-sec/script b/09-sec/script diff --git a/kickstart b/kickstart @@ -1,63 +0,0 @@ -#!/usr/bin/env bash -# -# ██ ██ ██ ██ ██ -# ░██ ░░ ░██ ░██ ░██ -# ░██ ██ ██ █████ ░██ ██ ██████ ██████ ██████ ██████ ██████ -# ░██ ██ ░██ ██░░░██░██ ██ ██░░░░ ░░░██░ ░░░░░░██ ░░██░░█░░░██░ -# ░████ ░██░██ ░░ ░████ ░░█████ ░██ ███████ ░██ ░ ░██ -# ░██░██ ░██░██ ██░██░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██ -# ░██░░██░██░░█████ ░██░░██ ██████ ░░██ ░░████████░███ ░░██ -# ░░ ░░ ░░ ░░░░░ ░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░ -# -# author ▓▒ pyratebeard <root@pyratebeard.net> -# code ▓▒ https://git.pyratebeard.net/setup - -# ▓▓▒░ - -# * install -# * git -# * make -# * bash -# * git clone -# * bitreich-drist -# * make install -# * setup -# * make all - -if command -v pacman >/dev/null ; then - UPDATE="pacman -Sy" - PKGADD="pacman -S --noconfirm" - PKGDEL="pacman -Rs --noconfirm" -elif command -v apt >/dev/null ; then - UPDATE="apt update" - PKGADD="apt install -y" - PKGDEL="apt remove -y" -elif command -v pkg_add >/dev/null ; then - UPDATE="pkg_add -I -u" - PKGADD="pkg_add -I" - PKGDEL="pkg_delete -I" -fi - -# ▓▓▒░ functions -function _echo() { printf "\n╓───── %s \n╙────────────────────────────────────── ─ ─ \n" "$1"; } - -[ "$(id -u)" -ne 0 ] && { - _echo "got root?" >&2 - exit 1 -} - -_echo "installing pre-req packages" -$UPDATE && $PKGADD git make bash rsync - -_echo "installing drist" -git clone git://git.pyratebeard.net/bitreich-drist.git /opt/drist/ && \ - cd /opt/drist && \ - make install - -_echo "know thyself" -ssh-keyscan localhost > /etc/ssh/ssh_known_hosts - -_echo "cloning setup repo" -git clone git://git.pyratebeard.net/setup.git /tmp/setup && \ - cd /tmp/setup && \ - make diff --git a/makefile b/makefile @@ -1,36 +0,0 @@ -SERVER := localhost -FILESDIR = files - -.PHONY: share pkgs env user dots tools sshd motd sec tidy - -# https://blog.melski.net/2010/11/30/makefile-hacks-print-the-value-of-any-variable/ -share-%: - cd $* ; if [ ! -d ${FILESDIR} ] ; then mkdir ${FILESDIR} ; fi - cp 01-share/script $*/${FILESDIR}/share - -pkgs: share-02-pkgs - cd 02-pkgs ; drist ${SERVER} - -env: share-03-env - cd 03-env ; drist ${SERVER} - -user: share-04-user - cd 04-user ; drist ${SERVER} - -dots: share-05-dots - cd 05-dots ; drist ${SERVER} - -tools: share-06-tools - cd 06-tools ; drist ${SERVER} - -sshd: share-07-sshd - cd 07-sshd ; drist ${SERVER} - -motd: share-08-motd - cd 08-motd ; drist ${SERVER} - -sec: share-09-sec - cd 09-sec ; drist ${SERVER} - -tidy: share-10-tidy - cd 10-tidy ; drist ${SERVER}