2024-11-04 22:08:06 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
bold=$(tput bold) # ${bold}
|
|
|
|
normal=$(tput sgr0) # ${normal}
|
|
|
|
yellow=$(tput setaf 3) # ${yellow}
|
|
|
|
|
|
|
|
# Zenity ablak megjelenítése
|
|
|
|
user_choice=$(zenity --list --radiolist --width='650' --height='370' \
|
|
|
|
--title="Válaszd ki a nyelvet és a GPU-t!" \
|
|
|
|
--text="Válassz az alábbi opciók közül:" \
|
|
|
|
--column="Válassz" --column="GPU - Rendszer nyelv" \
|
|
|
|
FALSE "AMD GPU - Angol Nyelv" \
|
|
|
|
FALSE "AMD GPU - Magyar Nyelv" \
|
|
|
|
FALSE "Nvidia GPU - Angol Nyelv" \
|
|
|
|
FALSE "Nvidia GPU - Magyar Nyelv")
|
|
|
|
if [[ $? -eq 1 ]]; then
|
|
|
|
echo ${bold}${yellow}A script futása leállítva. Kilépés!${normal}
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-11-22 13:21:18 +00:00
|
|
|
# Nala telepítés
|
2024-11-04 22:08:06 +00:00
|
|
|
echo ---------------------------------------------
|
2024-11-22 13:21:18 +00:00
|
|
|
echo Installing ${bold}${yellow}Nala and changing DE - DEB Pkg${normal}
|
2024-11-04 22:08:06 +00:00
|
|
|
echo
|
|
|
|
sudo apt purge lightdm -y
|
2024-11-22 13:21:18 +00:00
|
|
|
sudo apt install nala -y
|
2024-11-04 22:08:06 +00:00
|
|
|
sudo apt install gdm3 -y
|
|
|
|
sudo apt purge ubuntu-advantage-tools -y
|
2024-11-24 14:59:46 +00:00
|
|
|
sudo apt install gnome-shell gnome-terminal eog gnome-system-monitor nautilus gnome-software-plugin-flatpak nautilus-extension-gnome-terminal gnome-software gedit -y
|
2024-11-04 22:08:06 +00:00
|
|
|
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
|
|
sudo rm -rf /usr/lib/lightdm
|
|
|
|
sudo rm -rf /var/lib/lightdm-data
|
|
|
|
sudo rm -rf /usr/lib/python3/dist-packages/cinnamon
|
2024-11-22 11:53:20 +00:00
|
|
|
sudo apt install ubuntu-advantage-tools -y
|
2024-11-04 22:08:06 +00:00
|
|
|
echo
|
2024-11-22 13:21:18 +00:00
|
|
|
echo ${bold}${yellow}Nala and changing DE - DEB Pkg ${normal}installed.
|
2024-11-04 22:08:06 +00:00
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Creating autostart folder
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}Creating autostart folder${normal}
|
|
|
|
echo
|
|
|
|
mkdir -p /home/$USER/.config/autostart
|
|
|
|
sudo chown -R $USER:$GROUP /home/$USER/.config/autostart
|
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Autostart folder ${normal}created.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Autostarting ProgramScript after restart
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}ProgramScript Autostart${normal}
|
|
|
|
echo
|
|
|
|
sudo cp -a 3progs.sh.desktop /home/$USER/.config/autostart
|
|
|
|
echo Exec=/home/$USER/.progs/3progs.sh >> /home/$USER/.config/autostart/3progs.sh.desktop
|
|
|
|
sudo mkdir -p /home/$USER/.progs
|
|
|
|
sudo chown -R $USER:$GROUP /home/$USER/.progs
|
|
|
|
sudo cp -a 3progs.sh /home/$USER/.progs
|
|
|
|
sudo chmod +x /home/$USER/.progs/3progs.sh
|
|
|
|
sudo cp -a content-eng/. /home/$USER/.progs
|
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}ProgramScript Autostart ${normal}installed.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Adding Custom rave command
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}rave command.${normal}
|
|
|
|
echo
|
|
|
|
sudo cp -a rave /usr/local/bin/
|
|
|
|
sudo chmod +x /usr/local/bin/rave
|
|
|
|
sudo cp -a rave-comp.sh /etc/bash_completion.d/
|
|
|
|
sudo chmod +x /etc/bash_completion.d/rave-comp.sh
|
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Rave command with bash completion ${normal}installed.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Yaru Theme
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}Yaru theme - DEB Pkg${normal}
|
|
|
|
echo
|
2024-11-22 11:39:20 +00:00
|
|
|
sudo apt install yaru-theme-gnome-shell yaru-theme-icon yaru-theme-gtk yaru-theme-sound -y
|
2024-11-04 22:08:06 +00:00
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Yaru theme ${normal}installed.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
2024-11-22 13:38:23 +00:00
|
|
|
# RP Cosmetics
|
2024-11-04 22:08:06 +00:00
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}Setting correct Rave Theme${normal}
|
|
|
|
echo
|
2024-11-24 16:43:22 +00:00
|
|
|
sudo cp -a rave-pp.png /usr/share/pixmaps/faces/
|
2024-11-24 15:11:18 +00:00
|
|
|
sudo sed -i '7d' /var/lib/AccountsService/users/$USER
|
|
|
|
sudo sed -i '7 i Icon=/usr/share/pixmaps/faces/rave-pp' /var/lib/AccountsService/users/$USER
|
2024-11-22 13:38:23 +00:00
|
|
|
sudo cp -a .themes /home/$USER/
|
|
|
|
sudo cp -a .icons /home/$USER/
|
|
|
|
sudo cp -a .mozilla /home/$USER/
|
2024-11-04 22:08:06 +00:00
|
|
|
gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-purple-dark'
|
|
|
|
gsettings set org.gnome.desktop.interface cursor-theme 'Yaru'
|
|
|
|
gsettings set org.gnome.desktop.interface icon-theme 'Yaru-purple-dark'
|
|
|
|
gsettings set org.gnome.desktop.sound theme-name 'Yaru'
|
|
|
|
gsettings set org.x.apps.portal color-scheme prefer-dark
|
|
|
|
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
|
|
|
gsettings set org.gnome.desktop.session idle-delay 0
|
|
|
|
gsettings set org.gnome.desktop.wm.preferences button-layout ":minimize,maximize,close"
|
|
|
|
gsettings set org.gnome.mutter center-new-windows true
|
2024-11-24 16:19:19 +00:00
|
|
|
sudo cp -a raveos-bg.png /usr/share/backgrounds/linuxmint-wilma/
|
|
|
|
sudo cp -a linuxmint-wilma.xml /usr/share/gnome-background-properties/
|
|
|
|
sudo cp -a gnome-shell /home/$USER/.local/share/
|
|
|
|
sudo cp -a burn-my-windows /home/$USER/.config/
|
2024-11-22 13:38:23 +00:00
|
|
|
sudo apt install git -y
|
|
|
|
git clone --depth=1 https://github.com/realmazharhussain/gdm-tools.git
|
2024-11-24 16:19:19 +00:00
|
|
|
sudo cp -a install.sh gdm-tools/
|
2024-11-22 13:38:23 +00:00
|
|
|
cd gdm-tools
|
|
|
|
./install.sh
|
|
|
|
cd -
|
2024-11-24 15:14:30 +00:00
|
|
|
set-gdm-theme set Yaru-purple-dark /usr/share/backgrounds/linuxmint-wilma/raveos-bg.png
|
2024-11-22 13:38:23 +00:00
|
|
|
dconf load / < raveui-*
|
|
|
|
sudo rm -rf gdm-tools
|
2024-11-04 22:08:06 +00:00
|
|
|
echo
|
2024-11-22 13:38:23 +00:00
|
|
|
echo ${bold}${yellow}Correct Rave Theme ${normal}set.
|
2024-11-04 22:08:06 +00:00
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Disabling Geoclue
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}Geoclue service disabling / masking${normal}
|
|
|
|
echo
|
|
|
|
sudo systemctl disable geoclue.service
|
|
|
|
sudo systemctl mask geoclue.service
|
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Geoclue service disabling / masking ${normal}finished.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Enable x86
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Enabling ${bold}${yellow}x86 architecture${normal}
|
|
|
|
echo
|
|
|
|
sudo dpkg --add-architecture i386
|
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}x86 architecture ${normal}enabled.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Dependencies
|
2024-11-22 11:53:20 +00:00
|
|
|
#echo ---------------------------------------------
|
|
|
|
#echo Installing ${bold}${yellow}Dependencies${normal}
|
|
|
|
#echo
|
2024-11-22 11:39:20 +00:00
|
|
|
# egyelore uresen hagyjuk
|
2024-11-22 11:53:20 +00:00
|
|
|
#echo
|
|
|
|
#echo ${bold}${yellow}Dependencies ${normal}installed.
|
|
|
|
#echo ---------------------------------------------
|
2024-11-22 13:21:18 +00:00
|
|
|
|
2024-11-22 11:16:51 +00:00
|
|
|
echo Installing ${bold}${yellow}Liquorix - Gaming Kernel - DEB Pkg${normal}
|
2024-11-04 22:08:06 +00:00
|
|
|
|
2024-11-22 11:16:51 +00:00
|
|
|
curl -s 'https://liquorix.net/install-liquorix.sh' | sudo bash
|
2024-11-04 22:08:06 +00:00
|
|
|
|
2024-11-22 11:16:51 +00:00
|
|
|
echo ${bold}${yellow}Liquorix - Gaming Kernel ${normal}installed.
|
2024-11-04 22:08:06 +00:00
|
|
|
echo ---------------------------------------------
|
|
|
|
echo
|
|
|
|
|
|
|
|
# Flatseal - Flatpak app jogosultság beállító
|
|
|
|
echo
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}Flatseal - flatpak${normal}
|
|
|
|
|
|
|
|
flatpak install flathub com.github.tchx84.Flatseal --user -y
|
|
|
|
sudo cp -a overrides /home/$USER/.local/share/flatpak
|
|
|
|
|
|
|
|
echo ${bold}${yellow}Flatseal ${normal}installed.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo
|
|
|
|
|
2024-11-24 15:59:41 +00:00
|
|
|
# Upgrading the System
|
2024-11-04 22:08:06 +00:00
|
|
|
echo ---------------------------------------------
|
|
|
|
echo ${bold}${yellow}Upgrading the System${normal}
|
|
|
|
echo
|
2024-11-22 11:15:38 +00:00
|
|
|
sudo apt update
|
|
|
|
sudo apt upgrade -y
|
2024-11-04 22:08:06 +00:00
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}System upgraded!${normal}
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
fwupdmgr update
|
|
|
|
|
2024-11-24 15:59:41 +00:00
|
|
|
# Removing bloat
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo ${bold}${yellow}Removing bloat${normal}
|
|
|
|
echo
|
|
|
|
sudo cp -a default.plymouth /usr/share/plymouth/themes
|
|
|
|
sudo chown -R $USER:$GROUP /home/$USER
|
|
|
|
sudo apt purge xfce* libxfce* mugshot catfish compiz* gnome-logs synaptic menulibre libreoffice-draw libreoffice-impress libreoffice-math seahorse xed hypnotix mintstick celluloid xviewer xreader hexchat thingy mintbackup drawing transmission* timeshift redshift pix mintreport thunderbird onboard webapp-manager warpinator gnome-online-accounts rhythmbox mintinstall -y
|
|
|
|
sudo rm -rf /usr/share/xfce4/applications
|
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Bloat removed!${normal}
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
2024-11-04 22:08:06 +00:00
|
|
|
|
|
|
|
if [[ $user_choice = *"AMD GPU - Angol Nyelv"* ]]; then
|
|
|
|
|
|
|
|
# Wayland Auto-Enable
|
|
|
|
echo
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Enabling ${bold}${yellow}Wayland Window Manager${normal}
|
|
|
|
echo
|
2024-11-22 13:38:23 +00:00
|
|
|
|
2024-11-04 22:08:06 +00:00
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Wayland Window Manager ${normal}enabled.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $user_choice = *"AMD GPU - Magyar Nyelv"* ]]; then
|
|
|
|
# Wayland Auto-Enable
|
|
|
|
echo
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Downloading ${bold}${yellow}Hungarian LangPack${normal}
|
|
|
|
echo
|
2024-11-22 11:39:20 +00:00
|
|
|
sudo apt install language-pack-gnome-hu language-pack-gnome-hu-base language-pack-hu language-pack-hu-base -y
|
2024-11-04 22:08:06 +00:00
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Hungarian LangPack ${normal}downloaded.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $user_choice = *"Nvidia GPU - Angol Nyelv"* ]]; then
|
|
|
|
# stays in to prevent confusion
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $user_choice = *"Nvidia GPU - Magyar Nyelv"* ]]; then
|
|
|
|
echo
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Downloading ${bold}${yellow}Hungarian LangPack${normal}
|
|
|
|
echo
|
2024-11-22 11:39:20 +00:00
|
|
|
sudo apt install language-pack-gnome-hu language-pack-gnome-hu-base language-pack-hu language-pack-hu-base -y
|
2024-11-04 22:08:06 +00:00
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Hungarian LangPack ${normal}downloaded.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Script end
|
|
|
|
|
|
|
|
echo ${bold}${yellow}The system will restart in 3 seconds...${normal}
|
|
|
|
echo ${bold}${yellow}3...${normal}
|
|
|
|
sleep 1
|
|
|
|
echo ${bold}${yellow}2...${normal}
|
|
|
|
sleep 1
|
|
|
|
echo ${bold}${yellow}1...${normal}
|
|
|
|
sleep 1
|
|
|
|
|
2024-11-22 11:15:38 +00:00
|
|
|
reboot
|