mirror of
https://forge.chapril.org/tykayn/workflow
synced 2025-10-04 17:04:55 +02:00
91 lines
3.3 KiB
Bash
91 lines
3.3 KiB
Bash
echo "========== init de workflow par Tykayn ======="
|
|
sudo apt update -y
|
|
sudo apt upgrade -y
|
|
sudo apt autoremove -y
|
|
|
|
mkdir -p $HOME/Nextcloud/ressources/workflow_nextcloud/
|
|
cd $HOME/Nextcloud/ressources/workflow_nextcloud/
|
|
git clone https://source.cipherbliss.com/tykayn/workflow public_workflow
|
|
cd $HOME/Nextcloud/ressources/workflow_nextcloud/public_workflow
|
|
git pull
|
|
|
|
# copie des assets de config
|
|
cp assets/.bash_custom_aliases $HOME/.bash_custom_aliases
|
|
cp assets/.bash_aliases $HOME/.bash_aliases
|
|
cp assets/.bashrc $HOME/.bashrc
|
|
cp assets/.zshrc $HOME/.zshrc
|
|
cp assets/.konsole.profile $HOME/.konsole.profile
|
|
|
|
mkdir -p $HOME/.config/filetags
|
|
mkdir -p $HOME/.config/guessfilename
|
|
mkdir -p $HOME/.config/geeqie
|
|
|
|
cp -r assets/filetags $HOME/.config/filetags
|
|
cp -r assets/geeqie $HOME/.config/geeqie
|
|
cp -r assets/guessfilename $HOME/.config/guessfilename
|
|
|
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B188E2B695BD4743
|
|
|
|
source "$HOME/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh"
|
|
source "$HOME/Nextcloud/ressources/workflow_nextcloud/secrets_vars.sh"
|
|
echo 'deb http://download.opensuse.org/repositories/home:/clayrisser:/bookworm/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:clayrisser:bookworm.list
|
|
curl -fsSL https://download.opensuse.org/repositories/home:clayrisser:bookworm/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_clayrisser_bookworm.gpg > /dev/null
|
|
sudo apt update
|
|
|
|
# ceci a été testé sur debian 12
|
|
|
|
# Définition des listes thématiques de paquets
|
|
# Outils de développement
|
|
DEV_TOOLS="ansible git npm python3 python3-pip python3-setuptools rbenv rustup"
|
|
|
|
# Langages et frameworks
|
|
LANGUAGES="php8.4 php8.4-fpm php-xml php-mysql php8.4-xml php-curl"
|
|
|
|
# Outils système
|
|
SYSTEM_TOOLS="arp-scan curl etckeeper ghostty gnupg htop jq meld nano ncdu testdisk tig vrms exa"
|
|
|
|
# Outils de sauvegarde et sécurité
|
|
# borgbackup est mis dans le dossier bin
|
|
BACKUP_SECURITY="automysqlbackup certbot fail2ban restic smartmontools unattended-upgrades"
|
|
|
|
# Outils réseau et serveur
|
|
NETWORK_SERVER="docker docker-compose nginx syncthing sshfs"
|
|
|
|
# Outils de texte et documents
|
|
TEXT_DOCS="pandoc texlive"
|
|
|
|
# Shells et terminaux
|
|
SHELLS="fzf zsh"
|
|
|
|
# Autres outils
|
|
OTHERS="adduser calibre geeqie rsync snapd krita gimp ffmpeg"
|
|
|
|
# Fusion des listes et tri alphabétique global
|
|
ALL_PACKAGES=$(echo "$DEV_TOOLS $LANGUAGES $SYSTEM_TOOLS $BACKUP_SECURITY $NETWORK_SERVER $TEXT_DOCS $SHELLS $OTHERS" | tr ' ' '\n' | sort | tr '\n' ' ')
|
|
|
|
# Installation des paquets
|
|
sudo apt install $ALL_PACKAGES
|
|
|
|
cd $HOME/Nextcloud/ressources/workflow_nextcloud/public_workflow/bin
|
|
if [ ! -f "Nextcloud-3.16.6-x86_64.AppImage" ]; then
|
|
wget https://github.com/nextcloud-releases/desktop/releases/download/v3.16.6/Nextcloud-3.16.6-x86_64.AppImage
|
|
chmod +x Nextcloud-3.16.6-x86_64.AppImage
|
|
fi
|
|
|
|
if [ ! -f "VeraCrypt-1.26.24-x86_64.AppImage" ]; then
|
|
wget https://launchpad.net/veracrypt/trunk/1.26.24/+download/VeraCrypt-1.26.24-x86_64.AppImage
|
|
chmod +x VeraCrypt-1.26.24-x86_64.AppImage
|
|
fi
|
|
|
|
sudo snap install btop czkawka
|
|
snap install emacs --classic
|
|
|
|
|
|
|
|
if [ ! -f "$HOME/.oh-my-zsh" ]; then
|
|
echo -e "\e[31m oh my zsh missing.\e[0m"
|
|
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh > install_oh_my_zsh.sh
|
|
bash install_oh_my_zsh.sh
|
|
fi
|
|
|
|
if[! -f $HOME/.oh-my-zsh ]
|