Up
This commit is contained in:
parent
76da7208dc
commit
cbc6d5f230
1 changed files with 270 additions and 130 deletions
400
setup/fedora
400
setup/fedora
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
ver="2.8.3_fedora_git.tyleo.dev"
|
ver="3.1.2_fedoraws_gen4.1_git.tyleo.dev"
|
||||||
|
|
||||||
Arg1=$1
|
Arg1=$1
|
||||||
|
|
||||||
|
@ -9,13 +9,15 @@ clear
|
||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
update-system-hostname() {
|
update-system-hostname() {
|
||||||
echo -n "Set a new Hostname : "
|
NHostname=$(whiptail --title "Fedora Workstation Setup | Hostname Updater" --inputbox "Type the new hostname (No Spaces Please)" 8 60 $(hostnamectl hostname --static) 3>&1 1>&2 2>&3)
|
||||||
read NHostname
|
|
||||||
if [[ $NHostname = "" ]]; then
|
if [[ $NHostname = "" ]]|[[ $NHostname = $(hostnamectl hostname --static) ]]; then
|
||||||
echo "No Change Applied, Current Hostname : $(hostname)"
|
echo "No Change Applied."
|
||||||
else
|
else
|
||||||
sudo hostnamectl set-hostname --static $NHostname
|
sudo hostnamectl hostname --static "$NHostname"
|
||||||
|
sudo hostnamectl hostname --pretty "Système $NHostname"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
update-system-packages() {
|
update-system-packages() {
|
||||||
|
@ -47,6 +49,26 @@ waydroid session stop
|
||||||
'
|
'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open_secure_backup() {
|
||||||
|
xdg-open "https://secure-backup-orion.tyleo.dev"
|
||||||
|
}
|
||||||
|
|
||||||
|
open_webgallery() {
|
||||||
|
xdg-open "https://webgallery.tyleo.dev/gallery"
|
||||||
|
}
|
||||||
|
|
||||||
|
open_privategallery() {
|
||||||
|
xdg-open "https://privategallery.tyleo.dev/login"
|
||||||
|
}
|
||||||
|
|
||||||
|
open_vaultwarden() {
|
||||||
|
xdg-open "https://vaultwarden.tyleo.dev"
|
||||||
|
}
|
||||||
|
|
||||||
|
get_logo() {
|
||||||
|
wget "https://res.tyleo.dev/gen15/Gen15-LOGO.png" -O $HOME/logo.png
|
||||||
|
}
|
||||||
|
|
||||||
setup_waydroid() {
|
setup_waydroid() {
|
||||||
if [ -x /usr/bin/waydroid ]; then
|
if [ -x /usr/bin/waydroid ]; then
|
||||||
echo "> Waydroid is already installed. No action required, use Waydroid OTA to update it."
|
echo "> Waydroid is already installed. No action required, use Waydroid OTA to update it."
|
||||||
|
@ -90,6 +112,11 @@ sudo dnf in -y "https://hst.tyleo.dev/packages/rpm/ocs-url_fc20.rpm"
|
||||||
sudo dnf in -y rsnapshot lshw lshw-gui id3v2 switchdesk switchdesk-gui go ruby subfinder engrampa flatpak nmap nmtui gparted duf alien aria2 micro gnome-boxes ptyxis timeshift pwgen ncdu htop btop glances figlet fish zsh gimp openshot google-chrome-stable distrobox docker docker-compose gnome-software
|
sudo dnf in -y rsnapshot lshw lshw-gui id3v2 switchdesk switchdesk-gui go ruby subfinder engrampa flatpak nmap nmtui gparted duf alien aria2 micro gnome-boxes ptyxis timeshift pwgen ncdu htop btop glances figlet fish zsh gimp openshot google-chrome-stable distrobox docker docker-compose gnome-software
|
||||||
sudo dnf in -y gnome-tweaks
|
sudo dnf in -y gnome-tweaks
|
||||||
sudo dnf in -y ffmpeg
|
sudo dnf in -y ffmpeg
|
||||||
|
# Visual Studio Code (RPM Version)
|
||||||
|
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||||
|
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
|
||||||
|
sudo dnf check-update
|
||||||
|
sudo dnf install code code-insiders -y
|
||||||
# YouTube Dler, Updater and Converter
|
# YouTube Dler, Updater and Converter
|
||||||
wget hst.tyleo.dev/yt/yt-dlp -O /tmp/yt-dlp
|
wget hst.tyleo.dev/yt/yt-dlp -O /tmp/yt-dlp
|
||||||
wget hst.tyleo.dev/yt/yt-mp3 -O /tmp/yt-mp3
|
wget hst.tyleo.dev/yt/yt-mp3 -O /tmp/yt-mp3
|
||||||
|
@ -140,7 +167,6 @@ net.rpcs3.RPCS3 \
|
||||||
net.pcsx2.PCSX2 \
|
net.pcsx2.PCSX2 \
|
||||||
org.duckstation.DuckStation \
|
org.duckstation.DuckStation \
|
||||||
com.github.Rosalie241.RMG \
|
com.github.Rosalie241.RMG \
|
||||||
org.DolphinEmu.dolphin-emu \
|
|
||||||
net.kuribo64.melonDS \
|
net.kuribo64.melonDS \
|
||||||
io.mgba.mGBA \
|
io.mgba.mGBA \
|
||||||
io.github.ryubing.Ryujinx \
|
io.github.ryubing.Ryujinx \
|
||||||
|
@ -150,6 +176,11 @@ org.purei.Play \
|
||||||
org.mamedev.MAME \
|
org.mamedev.MAME \
|
||||||
io.github.sameboy.SameBoy \
|
io.github.sameboy.SameBoy \
|
||||||
com.vba_m.visualboyadvance-m
|
com.vba_m.visualboyadvance-m
|
||||||
|
sudo dnf in -y \
|
||||||
|
dolphin-emu
|
||||||
|
## Blacklisted Emulators (or removed for DNF version)
|
||||||
|
sudo flatpak remove -y \
|
||||||
|
org.DolphinEmu.dolphin-emu
|
||||||
sudo flatpak update -y
|
sudo flatpak update -y
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -202,7 +233,6 @@ io.github.revisto.drum-machine \
|
||||||
io.github.jeffshee.Hidamari \
|
io.github.jeffshee.Hidamari \
|
||||||
io.github.dvlv.boxbuddyrs \
|
io.github.dvlv.boxbuddyrs \
|
||||||
io.github.flattool.Ignition \
|
io.github.flattool.Ignition \
|
||||||
com.visualstudio.code \
|
|
||||||
org.kde.calligra \
|
org.kde.calligra \
|
||||||
com.hunterwittenborn.Celeste \
|
com.hunterwittenborn.Celeste \
|
||||||
io.github.giantpinkrobots.varia \
|
io.github.giantpinkrobots.varia \
|
||||||
|
@ -269,6 +299,7 @@ io.github.kukuruzka165.materialgram \
|
||||||
com.usebottles.bottles
|
com.usebottles.bottles
|
||||||
# Removing Blacklisted Packs
|
# Removing Blacklisted Packs
|
||||||
sudo flatpak remove -y \
|
sudo flatpak remove -y \
|
||||||
|
com.visualstudio.code \
|
||||||
app.zen_browser.zen \
|
app.zen_browser.zen \
|
||||||
com.vivaldi.Vivaldi \
|
com.vivaldi.Vivaldi \
|
||||||
io.github.spacingbat3.webcord
|
io.github.spacingbat3.webcord
|
||||||
|
@ -364,61 +395,60 @@ if [[ $thememode = 1 ]]; then
|
||||||
ThemeModeSet="-Dark"
|
ThemeModeSet="-Dark"
|
||||||
fi
|
fi
|
||||||
if [[ $thememode = 2 ]]; then
|
if [[ $thememode = 2 ]]; then
|
||||||
ThemeModeSet=""
|
ThemeModeSet="-Light"
|
||||||
fi
|
fi
|
||||||
echo -n "> Make color choice (default is Red) :
|
#echo -n "> Make color choice (default is Red) :
|
||||||
1. Red
|
# 1. Red
|
||||||
2. Blue
|
# 2. Blue
|
||||||
3. Pink
|
# 3. Pink
|
||||||
4. Purple
|
# 4. Purple
|
||||||
5. Teal
|
# 5. Teal
|
||||||
6. White
|
# 6. White
|
||||||
7. Green
|
# 7. Green
|
||||||
8. Orange
|
# 8. Orange
|
||||||
9. Yellow
|
# 9. Yellow
|
||||||
|
#
|
||||||
> Choice : "
|
#> Choice : "
|
||||||
read colorchoice
|
#read colorchoice
|
||||||
if [[ $colorchoice = $null ]]; then
|
#if [[ $colorchoice = $null ]]; then
|
||||||
ThemeColor="-red"
|
# ThemeColor="-red"
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 1 ]]; then
|
#if [[ $colorchoice = 1 ]]; then
|
||||||
ThemeColor="-red"
|
# ThemeColor="-red"
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 2 ]]; then
|
#if [[ $colorchoice = 2 ]]; then
|
||||||
ThemeColor="-blue"
|
# ThemeColor="-blue"
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 3 ]]; then
|
#if [[ $colorchoice = 3 ]]; then
|
||||||
ThemeColor="-pink"
|
# ThemeColor="-pink"
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 4 ]]; then
|
#if [[ $colorchoice = 4 ]]; then
|
||||||
ThemeColor="-purple"
|
# ThemeColor="-purple"
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 5 ]]; then
|
#if [[ $colorchoice = 5 ]]; then
|
||||||
ThemeColor="-teal"
|
# ThemeColor="-teal"
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 6 ]]; then
|
#if [[ $colorchoice = 6 ]]; then
|
||||||
ThemeColor=""
|
# ThemeColor=""
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 7 ]]; then
|
#if [[ $colorchoice = 7 ]]; then
|
||||||
ThemeColor="-green"
|
# ThemeColor="-green"
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 8 ]]; then
|
#if [[ $colorchoice = 8 ]]; then
|
||||||
ThemeColor="-orange"
|
# ThemeColor="-orange"
|
||||||
fi
|
#fi
|
||||||
if [[ $colorchoice = 9 ]]; then
|
#if [[ $colorchoice = 9 ]]; then
|
||||||
ThemeColor="-yellow"
|
# ThemeColor="-yellow"
|
||||||
fi
|
#fi
|
||||||
###################
|
####################
|
||||||
|
#
|
||||||
# Automatic Theming GTK to Fluent Design Purple Theme
|
|
||||||
|
|
||||||
mkdir $HOME/.themes
|
mkdir $HOME/.themes
|
||||||
mkdir -p $HOME/.local/icons
|
mkdir -p $HOME/.local/icons
|
||||||
|
|
||||||
wget "https://res.tyleo.dev/gtk/gz/Colloid-Grey.tar.xz" -O /tmp/icontheme.tar.xz
|
wget "https://res.tyleo.dev/gtk/gz/Colloid-Grey.tar.xz" -O /tmp/icontheme.tar.xz
|
||||||
wget "https://res.tyleo.dev/gtk/gz/Graphite-Dark.tar.xz" -O /tmp/gtktheme.tar.xz
|
wget "https://res.tyleo.dev/gtk/gz/Mojave-Dark.tar.xz" -O /tmp/gtktheme.tar.xz
|
||||||
wget "https://res.tyleo.dev/gtk/cursor/cursor-theme.tar.xz" -O /tmp/cursors.tar.xz
|
wget "https://res.tyleo.dev/gtk/cursor/McMojave-cursors.tar.xz" -O /tmp/cursors.tar.xz
|
||||||
|
|
||||||
# Cursors and Icons are stored in the same directory (System)
|
# Cursors and Icons are stored in the same directory (System)
|
||||||
sudo tar -xvf /tmp/cursors.tar.xz -C /usr/share/icons # Cursor
|
sudo tar -xvf /tmp/cursors.tar.xz -C /usr/share/icons # Cursor
|
||||||
|
@ -434,16 +464,16 @@ sudo tar -xvf /tmp/gtktheme.tar.xz -C /usr/share/theme
|
||||||
# GTK Theme Extract (User)
|
# GTK Theme Extract (User)
|
||||||
sudo tar -xvf /tmp/gtktheme.tar.xz -C $HOME/.themes # Shell & GUI Themes
|
sudo tar -xvf /tmp/gtktheme.tar.xz -C $HOME/.themes # Shell & GUI Themes
|
||||||
|
|
||||||
sudo gsettings set org.gnome.desktop.interface gtk-theme Graphite$ThemeColor$ThemeModeSet
|
sudo gsettings set org.gnome.desktop.interface gtk-theme Mojave$ThemeModeSet
|
||||||
sudo gsettings set org.gnome.desktop.wm.preferences theme Graphite$ThemeColor$ThemeModeSet
|
sudo gsettings set org.gnome.desktop.wm.preferences theme Mojave$ThemeModeSet
|
||||||
sudo gsettings set org.gnome.desktop.interface icon-theme "Colloid-Grey$ThemeModeSet"
|
sudo gsettings set org.gnome.desktop.interface icon-theme "Colloid-Grey$ThemeModeSet"
|
||||||
gsettings set org.gnome.desktop.interface gtk-theme Graphite$ThemeColor$ThemeModeSet
|
gsettings set org.gnome.desktop.interface gtk-theme Mojave$ThemeModeSet
|
||||||
gsettings set org.gnome.desktop.wm.preferences theme Graphite$ThemeColor$ThemeModeSet
|
gsettings set org.gnome.desktop.wm.preferences theme Mojave$ThemeModeSet
|
||||||
gsettings set org.gnome.desktop.interface icon-theme "Colloid-Grey$ThemeModeSet"
|
gsettings set org.gnome.desktop.interface icon-theme "Colloid-Grey$ThemeModeSet"
|
||||||
gsettings set org.gnome.desktop.interface cursor-theme "Oreo-Black-Border"
|
gsettings set org.gnome.desktop.interface cursor-theme "McMojave-cursors"
|
||||||
dconf write /org/gnome/shell/extensions/user-theme/name "'Graphite$ThemeColor$ThemeModeSet'"
|
dconf write /org/gnome/shell/extensions/user-theme/name "'Mojave$ThemeModeSet'"
|
||||||
flatpak override --user --env=GTK_THEME=Graphite$ThemeColor$ThemeModeSet
|
flatpak override --user --env=GTK_THEME=Mojave$ThemeModeSet
|
||||||
sudo flatpak override --env=GTK_THEME=Graphite$ThemeColor$ThemeModeSet
|
sudo flatpak override --env=GTK_THEME=Mojave$ThemeModeSet
|
||||||
|
|
||||||
|
|
||||||
flatpak override --user --filesystem=~/.themes
|
flatpak override --user --filesystem=~/.themes
|
||||||
|
@ -452,8 +482,8 @@ flatpak override --user --filesystem=~/.local/share/icons
|
||||||
sudo flatpak override --filesystem=~/.local/share/icons
|
sudo flatpak override --filesystem=~/.local/share/icons
|
||||||
|
|
||||||
sudo cp /etc/environment /etc/environment.bak
|
sudo cp /etc/environment /etc/environment.bak
|
||||||
echo "GTK_THEME='Graphite$ThemeColor$ThemeModeSet'" | sudo tee /etc/environment
|
echo "GTK_THEME='Mojave$ThemeModeSet'" | sudo tee /etc/environment
|
||||||
echo "export GTK_THEME='Graphite$ThemeColor$ThemeModeSet'"| sudo tee -a /etc/environment
|
echo "export GTK_THEME='Mojave$ThemeModeSet'"| sudo tee -a /etc/environment
|
||||||
}
|
}
|
||||||
|
|
||||||
update-usermod() {
|
update-usermod() {
|
||||||
|
@ -464,7 +494,7 @@ sudo usermod --shell /usr/bin/fish $USER
|
||||||
|
|
||||||
install-gnome-extensions() {
|
install-gnome-extensions() {
|
||||||
sudo dnf in openssl -y
|
sudo dnf in openssl -y
|
||||||
EXT_LIST=( dash-to-[email protected].com
|
EXT_LIST=( dash-to-[email protected].com
|
||||||
[email protected]
|
[email protected]
|
||||||
[email protected]
|
[email protected]
|
||||||
[email protected]
|
[email protected]
|
||||||
|
@ -478,12 +508,15 @@ [email protected]
|
||||||
[email protected]
|
[email protected]
|
||||||
quick-settings-tweaks@qwreey
|
quick-settings-tweaks@qwreey
|
||||||
[email protected]
|
[email protected]
|
||||||
[email protected] )
|
[email protected]
|
||||||
|
[email protected]
|
||||||
|
no-overview@fthx
|
||||||
|
[email protected] )
|
||||||
|
|
||||||
for i in "${EXT_LIST[@]}"
|
for i in "${EXT_LIST[@]}"
|
||||||
do
|
do
|
||||||
sleep 3
|
gnome-extensions uninstall [email protected] &>> /dev/null
|
||||||
busctl --user call org.gnome.Shell.Extensions /org/gnome/Shell/Extensions org.gnome.Shell.Extensions InstallRemoteExtension s ${i}
|
busctl --user call org.gnome.Shell.Extensions /org/gnome/Shell/Extensions org.gnome.Shell.Extensions InstallRemoteExtension s ${i} &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -581,15 +614,10 @@ reload-script() {
|
||||||
}
|
}
|
||||||
|
|
||||||
wait-3s() {
|
wait-3s() {
|
||||||
echo "> Waiting 3 Seconds... Use CTRL+C to cancel procedure."
|
echo "> Waiting... Use CTRL+C to cancel procedure."
|
||||||
sleep 1
|
sleep 0.25
|
||||||
header-show
|
sleep 0.25
|
||||||
echo "> Waiting 2 Seconds... Use CTRL+C to cancel procedure."
|
sleep 0.25
|
||||||
sleep 1
|
|
||||||
header-show
|
|
||||||
echo "> Waiting 1 Seconds... Use CTRL+C to cancel procedure."
|
|
||||||
sleep 1
|
|
||||||
header-show
|
|
||||||
echo -e " Started !$Color_Off"
|
echo -e " Started !$Color_Off"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -623,9 +651,7 @@ show_script_version() {
|
||||||
}
|
}
|
||||||
|
|
||||||
show_licence(){
|
show_licence(){
|
||||||
clear
|
whiptail --title "Licence, parce qu'il en fallait une." --ok-button "OKAY" --msgbox " DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
show_header
|
|
||||||
echo " DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
||||||
Version 2, December 2004
|
Version 2, December 2004
|
||||||
|
|
||||||
Copyright (C) 2004 Sam Hocevar <[email protected]>
|
Copyright (C) 2004 Sam Hocevar <[email protected]>
|
||||||
|
@ -637,8 +663,8 @@ show_licence(){
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
0. You just DO WHAT THE FUCK YOU WANT TO."
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
echo -e "$BICyan---------------------------------------------------------------------------"
|
---------------------------------------------------------------------------" 20 75
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -682,16 +708,12 @@ if [[ $Arg1 = "--version" ]]||[[ $Arg1 = "-v" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $Arg1 = "--help" ]]||[[ $Arg1 = "-h" ]]; then
|
if [[ $Arg1 = "--help" ]]||[[ $Arg1 = "-h" ]]; then
|
||||||
show_header
|
whiptail --title "Guide de commande rapides" --msgbox " -a/--auto : Déclancher le Deploiement Automatique (Full).
|
||||||
echo -e "$BIYellow Guide du Débutant, non je déconne, je suis un expert.
|
-h/--help : Afficher cette superbe aide faite main.
|
||||||
-----------------------------------------------------------------------------------
|
|
||||||
-a/--auto : Déclancher le Deploiement Automatique (Full).
|
|
||||||
-h/--help : Afficher cette superbe aide faite main.
|
|
||||||
-r/--register : Enregistrer le système avec le script reg (installe aussi WLCMv2)
|
-r/--register : Enregistrer le système avec le script reg (installe aussi WLCMv2)
|
||||||
-v/--version : Affiche la version du script. Voir git.tyleo.dev pour les détails
|
-v/--version : Affiche la version du script. Voir git.tyleo.dev pour les détails
|
||||||
-l/--licence : Voir la licence de ce script. Faut croire, qu'il y'en a une.
|
-l/--licence : Voir la licence de ce script. Faut croire, qu'il y'en a une." 12 90
|
||||||
-----------------------------------------------------------------------------------$Color_Off"
|
reload
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $Arg1 = "--auto" ]]||[[ $Arg1 = "-a" ]]; then
|
if [[ $Arg1 = "--auto" ]]||[[ $Arg1 = "-a" ]]; then
|
||||||
|
@ -700,6 +722,7 @@ if [[ $Arg1 = "--auto" ]]||[[ $Arg1 = "-a" ]]; then
|
||||||
sleep 3
|
sleep 3
|
||||||
clear
|
clear
|
||||||
title="Full Deploy/Update/Setup - From CLI (-a/--auto)"
|
title="Full Deploy/Update/Setup - From CLI (-a/--auto)"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -721,9 +744,9 @@ fi
|
||||||
|
|
||||||
setup_font() {
|
setup_font() {
|
||||||
# Setup Oxanium Font
|
# Setup Oxanium Font
|
||||||
gsettings set org.gnome.desktop.interface document-font-name 'Oxanium'
|
gsettings set org.gnome.desktop.interface document-font-name 'SF Pro Display'
|
||||||
gsettings set org.gnome.desktop.interface font-name 'Oxanium'
|
gsettings set org.gnome.desktop.interface font-name 'SF Pro Display'
|
||||||
gsettings set org.gnome.desktop.interface monospace-font-name 'UNISPACE'
|
gsettings set org.gnome.desktop.interface monospace-font-name 'JetBrains Mono'
|
||||||
gsettings set org.gnome.desktop.interface text-scaling-factor '1.2'
|
gsettings set org.gnome.desktop.interface text-scaling-factor '1.2'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -735,45 +758,103 @@ gsettings set org.gnome.desktop.interface text-scaling-factor '1.2'
|
||||||
#################################################################################################################
|
#################################################################################################################
|
||||||
#################################################################################################################
|
#################################################################################################################
|
||||||
|
|
||||||
show_header
|
# show_header
|
||||||
echo -e "$BCyan------------------------------------------------------------------GENERAL--
|
# echo -e "$BCyan------------------------------------------------------------------GENERAL--
|
||||||
|$BCyan A | Execute All Jobs (Full Deploy) -a/--auto $BCyan|
|
# |$BCyan A | Execute All Jobs (Full Deploy) -a/--auto $BCyan|
|
||||||
|$BCyan G | Install Gnome Extensions $BCyan|
|
# |$BCyan G | Install Gnome Extensions $BCyan|
|
||||||
|$BCyan W | Install/Update WLCM & RegScript $BCyan|
|
# |$BCyan W | Install/Update WLCM & RegScript $BCyan|
|
||||||
|$BCyan R | Register this system -r/--register $BCyan|
|
# |$BCyan R | Register this system -r/--register $BCyan|
|
||||||
------------------------------------------------------------------ACTIONS--$Color_Off$BCyan
|
# ------------------------------------------------------------------ACTIONS--$Color_Off$BCyan
|
||||||
|$BIPurple 1 | Update System Packages & Configuration $BCyan|
|
# |$BIPurple 1 | Update System Packages & Configuration $BCyan|
|
||||||
|$BIPurple 2 | Update Flatpak Packages & Configurationw $BCyan|
|
# |$BIPurple 2 | Update Flatpak Packages & Configurationw $BCyan|
|
||||||
|$BIPurple 3 | Update Fontpack Configuration $BCyan|
|
# |$BIPurple 3 | Update Fontpack Configuration $BCyan|
|
||||||
|$BIPurple 4 | Update Theming Configuration $BCyan|
|
# |$BIPurple 4 | Update Theming Configuration $BCyan|
|
||||||
|$BIPurple 5 | Update System Hostname $BCyan|
|
# |$BIPurple 5 | Update System Hostname $BCyan|
|
||||||
|$BIPurple 6 | Update Usermod Configuration $BCyan|
|
# |$BIPurple 6 | Update Usermod Configuration $BCyan|
|
||||||
|$BIPurple 7 | Update or Setup Fontpackage to SystemUI $BCyan|
|
# |$BIPurple 7 | Update or Setup Fontpackage to SystemUI $BCyan|
|
||||||
--------------------------------------------------------------------PACKS--$Color_Off$BCyan
|
# --------------------------------------------------------------------PACKS--$Color_Off$BCyan
|
||||||
|$BIYellow V | Install/Update VPN Client $BCyan|
|
# |$BIYellow V | Install/Update VPN Client $BCyan|
|
||||||
|$BIYellow K | Install/Update Keyguard Client $BCyan|
|
# |$BIYellow K | Install/Update Keyguard Client $BCyan|
|
||||||
|$BIYellow S | Install/Update Subsonic Client $BCyan|
|
# |$BIYellow S | Install/Update Subsonic Client $BCyan|
|
||||||
|$BIYellow M | Install/Update Gaming Packages $BCyan|
|
# |$BIYellow M | Install/Update Gaming Packages $BCyan|
|
||||||
|$BIYellow B | Install/Update BgGame Packages $BCyan|
|
# |$BIYellow B | Install/Update BgGame Packages $BCyan|
|
||||||
|$BIYellow E | Install/Update Emulators Packages $BCyan|
|
# |$BIYellow E | Install/Update Emulators Packages $BCyan|
|
||||||
|$BIYellow D | Install and Initialize WayDroid OTA (Add H for help only) $BCyan|
|
# |$BIYellow D | Install and Initialize WayDroid OTA (Add H for help only) $BCyan|
|
||||||
--------------------------------------------------------------KDE-DESKTOP--$Color_Off$BCyan
|
# --------------------------------------------------------------KDE-DESKTOP--$Color_Off$BCyan
|
||||||
|$BBlue K0 | Install Plasma X11 Workspace $BCyan|
|
# |$BBlue K0 | Install Plasma X11 Workspace $BCyan|
|
||||||
|$BBlue K1 | Install Plasma Mobile Workspace $BCyan|
|
# |$BBlue K1 | Install Plasma Mobile Workspace $BCyan|
|
||||||
|$BBlue K2 | Install XRDP on Plasma Desktop (This enable X11 Support) $BCyan|
|
# |$BBlue K2 | Install XRDP on Plasma Desktop (This enable X11 Support) $BCyan|
|
||||||
-------------------------------------------------------------------SYSTEM--$Color_Off$BCyan
|
# -------------------------------------------------------------------SYSTEM--$Color_Off$BCyan
|
||||||
|$BRed Q | Reboot System $BCyan|
|
# |$BRed Q | Reboot System $BCyan|
|
||||||
---------------------------------------------------------------------------$Color_Off"
|
# ---------------------------------------------------------------------------$Color_Off"
|
||||||
echo -e -n "$BCyan Procedure to start (CAPS) : "
|
# echo -e -n "$BCyan Procedure to start (CAPS) : "
|
||||||
read choice
|
# read choice
|
||||||
echo -e $Color_Off
|
# echo -e $Color_Off
|
||||||
|
|
||||||
|
menusizemini="20 70 10"
|
||||||
|
menusizenormal="30 70 22"
|
||||||
|
|
||||||
|
if [[ $Arg1 = "--mini" ]]; then
|
||||||
|
menusize=$menusizemini
|
||||||
|
menumode="| Mode Mini"
|
||||||
|
else
|
||||||
|
menusize=$menusizenormal
|
||||||
|
menumode=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
choice=$(whiptail --title "Fedora Workstation Setup | v$ver $menumode" --nocancel --notags --menu "Choose an option" $menusize \
|
||||||
|
"QT" " Quit the Script" \
|
||||||
|
"A" " Execute All Jobs (Full Deploy)(-a/--auto)" \
|
||||||
|
"" "" \
|
||||||
|
"G" " Install Gnome Extensions" \
|
||||||
|
"W" " Install/Update WLCM & RegScript" \
|
||||||
|
"R" " Register this system (-r/--register)" \
|
||||||
|
"" "" \
|
||||||
|
"1" " Update System Packages & Configuration" \
|
||||||
|
"2" " Update Flatpak Packages & Configuration" \
|
||||||
|
"3" " Update Fontpack Configuration" \
|
||||||
|
"4" " Update Theming Configuration" \
|
||||||
|
"5" " Update System Hostname" \
|
||||||
|
"6" " Update Usermod Configuration" \
|
||||||
|
"7" " Update or Setup Fontpackage to SystemUI" \
|
||||||
|
"" "" \
|
||||||
|
"V" " Install/Update VPN Client" \
|
||||||
|
"K" " Install/Update Keyguard Client" \
|
||||||
|
"S" " Install/Update Subsonic Client" \
|
||||||
|
"M" " Install/Update Gaming Packages" \
|
||||||
|
"B" " Install/Update BgGame Packages" \
|
||||||
|
"E" " Install/Update Emulators Packages" \
|
||||||
|
"D" " Install and Initialize WayDroid OTA (Add H for help only)" \
|
||||||
|
"K0" " Install Plasma X11 Workspace" \
|
||||||
|
"K1" " Install Plasma Mobile Workspace" \
|
||||||
|
"K2" " Install XRDP on Plasma Desktop (This enable X11 Support)" \
|
||||||
|
"" "" \
|
||||||
|
"SB" " Open Secure Backup" \
|
||||||
|
"WB" " Open WebGallery" \
|
||||||
|
"PB" " Open PrivateGallery" \
|
||||||
|
"VB" " Open Vaultwarden" \
|
||||||
|
"DL" " Download Tyleo Logo (Gen15)" \
|
||||||
|
"" "" \
|
||||||
|
"RN" " Rename System" \
|
||||||
|
"" "" \
|
||||||
|
"RB" " Reboot Now !" \
|
||||||
|
3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
if [[ $choice = $null ]]; then
|
if [[ $choice = $null ]]; then
|
||||||
reload-script
|
reload-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $choice = "" ]]; then
|
||||||
|
reload-script
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $choice = "QT" ]]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $choice = 7 ]]; then
|
if [[ $choice = 7 ]]; then
|
||||||
title="Font deploy"
|
title="Font deploy"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -783,8 +864,45 @@ if [[ $choice = 7 ]]; then
|
||||||
reload-script
|
reload-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $choice = SB ]]; then
|
||||||
|
open_secure_backup
|
||||||
|
reload-script
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $choice = WB ]]; then
|
||||||
|
open_webgallery
|
||||||
|
reload-script
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $choice = PB ]]; then
|
||||||
|
open_privategallery
|
||||||
|
reload-script
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $choice = VB ]]; then
|
||||||
|
open_vaultwarden
|
||||||
|
reload-script
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $choice = DL ]]; then
|
||||||
|
get_logo
|
||||||
|
reload-script
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $choice = RN ]]; then
|
||||||
|
title="Hostname Update"
|
||||||
|
show_header
|
||||||
|
header-show
|
||||||
|
enable-cmd-mode
|
||||||
|
update-system-hostname
|
||||||
|
disable-cmd-mode
|
||||||
|
wait-for-keypress
|
||||||
|
reload-script
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $choice = A ]]; then
|
if [[ $choice = A ]]; then
|
||||||
title="Full Deploy/Update/Setup"
|
title="Full Deploy/Update/Setup"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -807,6 +925,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = W ]]; then
|
if [[ $choice = W ]]; then
|
||||||
title="Registering Script & WLCMv2"
|
title="Registering Script & WLCMv2"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -818,6 +937,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = D ]]; then
|
if [[ $choice = D ]]; then
|
||||||
title="WayDroid Installation and Ignition (GAPPS)"
|
title="WayDroid Installation and Ignition (GAPPS)"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -829,6 +949,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = DH ]]; then
|
if [[ $choice = DH ]]; then
|
||||||
title="WayDroid Installation and Ignition (GAPPS)(HELP Only)"
|
title="WayDroid Installation and Ignition (GAPPS)(HELP Only)"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -840,6 +961,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = R ]]; then
|
if [[ $choice = R ]]; then
|
||||||
title="Register my system"
|
title="Register my system"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -851,6 +973,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = K ]]; then
|
if [[ $choice = K ]]; then
|
||||||
title="Installation or Update of Keyguard Vaultwarden Client"
|
title="Installation or Update of Keyguard Vaultwarden Client"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -862,6 +985,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = E ]]; then
|
if [[ $choice = E ]]; then
|
||||||
title="Installation or Update of Emulators"
|
title="Installation or Update of Emulators"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -873,6 +997,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = S ]]; then
|
if [[ $choice = S ]]; then
|
||||||
title="Installation or Update of Subsonic Music Client"
|
title="Installation or Update of Subsonic Music Client"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -884,6 +1009,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = 2 ]]; then
|
if [[ $choice = 2 ]]; then
|
||||||
title="Flatpak Updates Packages & Configuration"
|
title="Flatpak Updates Packages & Configuration"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -895,6 +1021,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = M ]]; then
|
if [[ $choice = M ]]; then
|
||||||
title="Games - Flatpak Updates Packages & Configuration"
|
title="Games - Flatpak Updates Packages & Configuration"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -906,6 +1033,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = B ]]; then
|
if [[ $choice = B ]]; then
|
||||||
title="Big Games - Flatpak Updates Packages & Configuration"
|
title="Big Games - Flatpak Updates Packages & Configuration"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -917,6 +1045,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = K2 ]]; then
|
if [[ $choice = K2 ]]; then
|
||||||
title="KDE DE - Remote Desktop Service (XRDP) with X11"
|
title="KDE DE - Remote Desktop Service (XRDP) with X11"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -928,6 +1057,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = K1 ]]; then
|
if [[ $choice = K1 ]]; then
|
||||||
title="KDE DE - Mobile UI"
|
title="KDE DE - Mobile UI"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -939,6 +1069,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = K0 ]]; then
|
if [[ $choice = K0 ]]; then
|
||||||
title="KDE DE - X11 Workspace (For NVIDIA Environnements)"
|
title="KDE DE - X11 Workspace (For NVIDIA Environnements)"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -950,6 +1081,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = 3 ]]; then
|
if [[ $choice = 3 ]]; then
|
||||||
title="Fontpack Updates and Installation"
|
title="Fontpack Updates and Installation"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -961,6 +1093,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = 4 ]]; then
|
if [[ $choice = 4 ]]; then
|
||||||
title="Theming for Gnome Desktop Updates and Installation"
|
title="Theming for Gnome Desktop Updates and Installation"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -972,6 +1105,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = 5 ]]; then
|
if [[ $choice = 5 ]]; then
|
||||||
title="System Hostname Configuration"
|
title="System Hostname Configuration"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -983,6 +1117,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = 6 ]]; then
|
if [[ $choice = 6 ]]; then
|
||||||
title="User Modifications Configurations"
|
title="User Modifications Configurations"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -994,6 +1129,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = V ]]; then
|
if [[ $choice = V ]]; then
|
||||||
title="VPN Client Installation or Updates (Pritunl Client Electron)"
|
title="VPN Client Installation or Updates (Pritunl Client Electron)"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -1005,6 +1141,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = 1 ]]; then
|
if [[ $choice = 1 ]]; then
|
||||||
title="System Packages Updates and Configurations"
|
title="System Packages Updates and Configurations"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -1019,6 +1156,7 @@ fi
|
||||||
|
|
||||||
if [[ $choice = G ]]; then
|
if [[ $choice = G ]]; then
|
||||||
title="Gnome Extensions List"
|
title="Gnome Extensions List"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -1028,9 +1166,10 @@ if [[ $choice = G ]]; then
|
||||||
reload-script
|
reload-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $choice = Q ]]
|
if [[ $choice = RB ]]
|
||||||
then
|
then
|
||||||
title="Rebooting System"
|
title="Rebooting System"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
enable-cmd-mode
|
enable-cmd-mode
|
||||||
|
@ -1044,6 +1183,7 @@ fi
|
||||||
if [[ $choice = T ]]
|
if [[ $choice = T ]]
|
||||||
then
|
then
|
||||||
title="Test Procedure"
|
title="Test Procedure"
|
||||||
|
show_header
|
||||||
header-show
|
header-show
|
||||||
wait-3s
|
wait-3s
|
||||||
reload-script
|
reload-script
|
||||||
|
|
Loading…
Add table
Reference in a new issue