Reorganize repository structure and refresh READMEs

This commit is contained in:
WickedYoda committed 2026-04-08 14:57:07 -05:00
1 parent 2270530d9e
commit a8b7ccbf2a
170 files changed
+616 -1391

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# server_config
## Overview
Server configuration entry point with OS-specific setup subfolders for Debian and Ubuntu.
## Contents
- `debian`
- `ubuntu`
## Usage
Start here when preparing a base server and then move into the matching operating-system subfolder.
## Notes
These scripts configure foundational server behavior, so review them closely before running on production systems.
@@ -0,0 +1,13 @@
# server_config/debian
## Overview
Debian-specific server bootstrap and configuration scripts.
## Contents
- `debian-setup.sh`
## Usage
Use these scripts when preparing a Debian server for the expected baseline configuration.
## Notes
Server bootstrap scripts can modify packages, services, and defaults, so apply them deliberately.
@@ -0,0 +1,51 @@
#!/bin/bash
# initial install
apt-get update -y
#adding sudo
apt-get install sudo -y
# add traver sudo
adduser traver sudo
# install open-vm-tools
apt-get install open-vm-tools -y
# installing git and wget
sudo apt install git wget -y
# installing cockpit
sudo apt install cockpit -y
sudo apt install python -y
# Check if /home/traver/public-setupfiles exists
if [ -d "/home/traver/public-setupfiles" ]; then
# Change directory to /home/traver/public-setupfiles
cd /home/traver/public-setupfiles
# Stash any local changes
git stash
# Pull the latest changes from the remote repository
git pull
else
# mkdir for git repo
sudo mkdir -p /home/traver/public-setupfiles
cd /home/traver/public-setupfiles
git init
git remote add origin https://github.com/wickedyoda/public-setupfiles
git pull origin main
git checkout main
fi
# Change permissions
sudo chmod +x -R /home/traver/public-setupfiles
# Run full updates first time
sudo /home/traver/public-setupfiles/updates/updates.sh
# Server apps setup
sudo apt-get -y install cockpit samba-common-bin openssh-server smbclient cifs-utils exfat-fuse curl unattended-upgrades cron-apt git curl
@@ -0,0 +1,14 @@
# server_config/ubuntu
## Overview
Ubuntu-specific server bootstrap and Docker setup scripts.
## Contents
- `ubuntu-docker-install.sh`
- `ubuntu-setup.sh`
## Usage
Use these scripts when preparing Ubuntu servers, especially where Docker is part of the baseline.
## Notes
Review package repositories, Docker prerequisites, and host networking assumptions before running them.
@@ -0,0 +1,29 @@
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
# Remove docker.io, docker-doc, docker-compose, podman-docker, containerd, runc
sudo apt-get purge docker.io docker-doc docker-compose podman-docker containerd runc
# update repos
sudo apt-get update
# install dependencies
sudo apt-get install ca-certificates curl -y
sudo install -m 0755 -d /etc/apt/trusted.gpg.d
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg
# Add docker repo to apt/sources.list.d
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# run apt update
sudo apt-get update
# Install docker and docker-compose
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
# adduser traver to docker
sudo adduser $USER docker
# echo done
echo "Install complete, please reboot"
@@ -0,0 +1,54 @@
#!/bin/bash
# initial install
apt-get update -y
# add traver sudo
adduser traver sudo
# uninstall ufm
apt remove ufw -y
# install open-vm-tools
apt-get install open-vm-tools -y
# installing git and wget
sudo apt install git wget -y
# installing cockpit
sudo apt install cockpit -y
sudo apt install python -y
# Removing ufw
sudo apt remove ufw -y
# Check if /home/traver/public-setupfiles exists
if [ -d "/home/traver/public-setupfiles" ]; then
# Change directory to /home/traver/public-setupfiles
cd /home/traver/public-setupfiles
# Stash any local changes
git stash
# Pull the latest changes from the remote repository
git pull
else
# mkdir for git repo
sudo mkdir -p /home/traver/public-setupfiles
cd /home/traver/public-setupfiles
git init
git remote add origin https://github.com/wickedyoda/public-setupfiles
git pull origin main
git checkout main
fi
# Change permissions
sudo chmod +x -R /home/traver/public-setupfiles
# Run full updates first time
sudo /home/traver/public-setupfiles/updates/updates.sh
# Serer apps setup
sudo apt-get -y install cockpit samba-common-bin openssh-server smbclient cifs-utils exfat-fuse curl unattended-upgrades cron-apt git curl