mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
sdfsd
dsfsdf
This commit is contained in:
1 parent
ade44a373a
commit
da4d21ecdd
3 files changed
+71
No files matched your search
@@ -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"
|
||||
@@ -6,6 +6,9 @@ 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
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
# Change to /home/traver
|
||||
cd /home/traver
|
||||
|
||||
# Check distro and download updated public-setupfiles
|
||||
if [ -f "/etc/debian_version" ]; then
|
||||
# Pull file A
|
||||
wget https://raw.githubusercontent.com/wickedyoda/public-setupfiles/main/server_config/ubuntu/ubuntu-setup.sh
|
||||
elif [ -f "/etc/lsb-release" ]; then
|
||||
# Pull file B
|
||||
wget https://raw.githubusercontent.com/wickedyoda/public-setupfiles/main/server_config/debian/debian-setup.sh
|
||||
fi
|
||||
|
||||
# make updated files executable
|
||||
cd /home/traver
|
||||
chmod +x ./ubuntu-setup.sh
|
||||
chmod +x ./debian-setup.sh
|
||||
|
||||
# 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
|
||||
|
||||
# make directory executable
|
||||
chmod +x -R /home/traver/public-setupfiles
|
||||
Reference in new issue
Block a user