mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
commit
1e25e36ce6
195 files changed
+152301
No files matched your search
@@ -0,0 +1,40 @@
|
||||
# server_config
|
||||
|
||||
<<<<<<< HEAD
|
||||
## Purpose
|
||||
This directory contains files related to **server config**.
|
||||
|
||||
## Contents
|
||||
- (No files detected)
|
||||
|
||||
## Usage
|
||||
- Review each script or configuration file before running
|
||||
- Some scripts may require **root or sudo**
|
||||
- Paths and variables may need adjustment for your environment
|
||||
|
||||
## Notes
|
||||
- This folder is part of the **public-setupfiles** repository
|
||||
- Files are provided as-is for reference or automation
|
||||
|
||||
## Safety
|
||||
Always back up data before running scripts that modify system state.
|
||||
=======
|
||||
## Overview
|
||||
This directory is part of the **public-setupfiles** repository.
|
||||
It contains scripts, configuration files, or resources related to **server_config**.
|
||||
|
||||
## Usage
|
||||
- Review scripts before execution
|
||||
- Some files may require **root or sudo privileges**
|
||||
- Paths, variables, or credentials may need customization
|
||||
|
||||
## Logging & Output
|
||||
Scripts may generate logs or output files in the same directory or system locations.
|
||||
|
||||
## Safety Notes
|
||||
- Always back up important data before running scripts
|
||||
- Test in a non-production environment when possible
|
||||
- Use at your own risk
|
||||
|
||||
---
|
||||
>>>>>>> main
|
||||
@@ -0,0 +1,40 @@
|
||||
# debian
|
||||
|
||||
<<<<<<< HEAD
|
||||
## Purpose
|
||||
This directory contains files related to **debian**.
|
||||
|
||||
## Contents
|
||||
- `debian-setup.sh`
|
||||
|
||||
## Usage
|
||||
- Review each script or configuration file before running
|
||||
- Some scripts may require **root or sudo**
|
||||
- Paths and variables may need adjustment for your environment
|
||||
|
||||
## Notes
|
||||
- This folder is part of the **public-setupfiles** repository
|
||||
- Files are provided as-is for reference or automation
|
||||
|
||||
## Safety
|
||||
Always back up data before running scripts that modify system state.
|
||||
=======
|
||||
## Overview
|
||||
This directory is part of the **public-setupfiles** repository.
|
||||
It contains scripts, configuration files, or resources related to **debian**.
|
||||
|
||||
## Usage
|
||||
- Review scripts before execution
|
||||
- Some files may require **root or sudo privileges**
|
||||
- Paths, variables, or credentials may need customization
|
||||
|
||||
## Logging & Output
|
||||
Scripts may generate logs or output files in the same directory or system locations.
|
||||
|
||||
## Safety Notes
|
||||
- Always back up important data before running scripts
|
||||
- Test in a non-production environment when possible
|
||||
- Use at your own risk
|
||||
|
||||
---
|
||||
>>>>>>> main
|
||||
@@ -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,43 @@
|
||||
<<<<<<< HEAD
|
||||
# ubuntu
|
||||
|
||||
## Purpose
|
||||
This directory contains files related to **ubuntu**.
|
||||
|
||||
## Contents
|
||||
- `ubuntu-setup.sh`
|
||||
- `ubuntu-docker-install.sh`
|
||||
|
||||
## Usage
|
||||
- Review each script or configuration file before running
|
||||
- Some scripts may require **root or sudo**
|
||||
- Paths and variables may need adjustment for your environment
|
||||
|
||||
## Notes
|
||||
- This folder is part of the **public-setupfiles** repository
|
||||
- Files are provided as-is for reference or automation
|
||||
|
||||
## Safety
|
||||
Always back up data before running scripts that modify system state.
|
||||
=======
|
||||
# ubuntu
|
||||
|
||||
## Overview
|
||||
This directory is part of the **public-setupfiles** repository.
|
||||
It contains scripts, configuration files, or resources related to **ubuntu**.
|
||||
|
||||
## Usage
|
||||
- Review scripts before execution
|
||||
- Some files may require **root or sudo privileges**
|
||||
- Paths, variables, or credentials may need customization
|
||||
|
||||
## Logging & Output
|
||||
Scripts may generate logs or output files in the same directory or system locations.
|
||||
|
||||
## Safety Notes
|
||||
- Always back up important data before running scripts
|
||||
- Test in a non-production environment when possible
|
||||
- Use at your own risk
|
||||
|
||||
---
|
||||
>>>>>>> main
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user