fixes to first setup & remove duplicate file
This commit is contained in:
parent
7d5867743b
commit
edc2930086
@ -1,52 +0,0 @@
|
|||||||
# .bashrc
|
|
||||||
|
|
||||||
# Source global definitions
|
|
||||||
if [ -f /etc/bashrc ]; then
|
|
||||||
. /etc/bashrc
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Uncomment the following line if you don't like systemctl's auto-paging feature:
|
|
||||||
# export SYSTEMD_PAGER=
|
|
||||||
|
|
||||||
# User specific aliases and functions
|
|
||||||
|
|
||||||
#prompt
|
|
||||||
alias dcwn='docker compose down'
|
|
||||||
alias dcup='docker compose --compatibility up -d --build'
|
|
||||||
alias dcre='dcwn;dcup'
|
|
||||||
alias dps=' docker ps --format "table {{.Names}}\t{{.Image}}\t{{.RunningFor}}\t{{.Status}}";docker stats --no-stream --format "table{{.CPUPerc}}\t{{.MemPerc}}\t{{.MemUsage}}"'
|
|
||||||
|
|
||||||
alias ne='emacs'
|
|
||||||
alias rc='ne ~/.bashrc'
|
|
||||||
alias src='source ~/.bashrc'
|
|
||||||
alias ls='ls --color'
|
|
||||||
alias grep='grep --color'
|
|
||||||
|
|
||||||
|
|
||||||
alias handbrake='flatpak run --command=HandBrakeCLI fr.handbrake.ghb'
|
|
||||||
|
|
||||||
export PS1="\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h:\[$(tput sgr0)\]\[\033[38;5;6m\][\w]:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"
|
|
||||||
|
|
||||||
# :sparkles: Colors :sparkles:
|
|
||||||
|
|
||||||
export TERM=xterm-color
|
|
||||||
export CLI_COLOR=1
|
|
||||||
export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33'
|
|
||||||
|
|
||||||
export COLOR_NC='\e[0m' # No Color
|
|
||||||
export COLOR_BLACK='\e[0;30m'
|
|
||||||
export COLOR_GRAY='\e[1;30m'
|
|
||||||
export COLOR_RED='\e[0;31m'
|
|
||||||
export COLOR_LIGHT_RED='\e[1;31m'
|
|
||||||
export COLOR_GREEN='\e[0;32m'
|
|
||||||
export COLOR_LIGHT_GREEN='\e[1;32m'
|
|
||||||
export COLOR_BROWN='\e[0;33m'
|
|
||||||
export COLOR_YELLOW='\e[1;33m'
|
|
||||||
export COLOR_BLUE='\e[0;34m'
|
|
||||||
export COLOR_LIGHT_BLUE='\e[1;34m'
|
|
||||||
export COLOR_PURPLE='\e[0;35m'
|
|
||||||
export COLOR_LIGHT_PURPLE='\e[1;35m'
|
|
||||||
export COLOR_CYAN='\e[0;36m'
|
|
||||||
export COLOR_LIGHT_CYAN='\e[1;36m'
|
|
||||||
export COLOR_LIGHT_GRAY='\e[0;37m'
|
|
||||||
export COLOR_WHITE='\e[1;37m'
|
|
||||||
8
adminscripts/first_setup.sh
Normal file → Executable file
8
adminscripts/first_setup.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!bin/bash
|
#!/bin/bash
|
||||||
#let me inside of [gitrepo]/adminscripts plz :)
|
#let me inside of [gitrepo]/adminscripts plz :)
|
||||||
SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
||||||
GLOB_DIR=$SCRIPT_DIR/..
|
GLOB_DIR=$SCRIPT_DIR/..
|
||||||
@ -18,18 +18,18 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.
|
|||||||
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
apt update;
|
apt update;
|
||||||
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin;
|
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin;
|
||||||
mkdir ~/Downloads;
|
mkdir ~/downloads;
|
||||||
git remote add myserv git.hugowillaume.com/Hurlu/ServerContainers;
|
git remote add myserv git.hugowillaume.com/Hurlu/ServerContainers;
|
||||||
# setup my rclone remote named "Gdrive" with advanced option root folder 1Vtw9u>
|
# setup my rclone remote named "Gdrive" with advanced option root folder 1Vtw9u>
|
||||||
# as well as a remote named "rootGdrive" with readonly access to just get my backups here too
|
# as well as a remote named "rootGdrive" with readonly access to just get my backups here too
|
||||||
rclone config
|
rclone config
|
||||||
# reinstall my backup data
|
# reinstall my backup data
|
||||||
cd ~/Downloads;
|
cd ~/downloads;
|
||||||
rclone copy Gdrive: .;
|
rclone copy Gdrive: .;
|
||||||
cp standardfile.db $GLOB_DIR/notes/.;
|
cp standardfile.db $GLOB_DIR/notes/.;
|
||||||
cp mealie.zip $GLOB_DIR/recipes/.;
|
cp mealie.zip $GLOB_DIR/recipes/.;
|
||||||
cp gitea_backup.zip $GLOB_DIR/gitea/.;
|
cp gitea_backup.zip $GLOB_DIR/gitea/.;
|
||||||
rm ~/Downloads/*
|
rm ~/downloads/*
|
||||||
cd $GLOB_DIR/recipes
|
cd $GLOB_DIR/recipes
|
||||||
unzip -o mealie.zip
|
unzip -o mealie.zip
|
||||||
cd $GLOB_DIR/gitea
|
cd $GLOB_DIR/gitea
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user