Compare commits

..

No commits in common. "main" and "main" have entirely different histories.
main ... main

2 changed files with 17 additions and 48 deletions

View file

@ -1,8 +1,5 @@
#!/bin/bash #!/bin/bash
Locale=$(locale | grep "LANG")
Desktop=$XDG_CURRENT_DESKTOP
# Text modifiers # Text modifiers
bold=$(tput bold) # ${bold} bold=$(tput bold) # ${bold}
normal=$(tput sgr0) # ${normal} normal=$(tput sgr0) # ${normal}
@ -34,6 +31,8 @@ sudo echo
if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then
cd cd
Locale=$(locale | grep "LANG" -c)
Desktop=$XDG_CURRENT_DESKTOP
echo echo
echo ----------------------------------------------------- echo -----------------------------------------------------
echo Copying ${bold}${yellow}$USER Settings and Files${normal} into ${bold}${yellow}$FOLDER/${normal} echo Copying ${bold}${yellow}$USER Settings and Files${normal} into ${bold}${yellow}$FOLDER/${normal}
@ -116,7 +115,6 @@ if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then
mkdir -p $FOLDER/etc/ mkdir -p $FOLDER/etc/
sudo rsync -ap --info=progress2 /etc/libvirt $FOLDER/etc 2>/dev/null sudo rsync -ap --info=progress2 /etc/libvirt $FOLDER/etc 2>/dev/null
sudo rsync -ap --info=progress2 /etc/resolv.conf $FOLDER/etc 2>/dev/null
sudo rsync -ap --info=progress2 /usr/share/jellyfin/web/config.json $FOLDER 2>/dev/null sudo rsync -ap --info=progress2 /usr/share/jellyfin/web/config.json $FOLDER 2>/dev/null
@ -129,7 +127,7 @@ if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then
rsync -ap --info=progress2 /home/$USER/Zenék/ $FOLDER rsync -ap --info=progress2 /home/$USER/Zenék/ $FOLDER
rsync -ap --info=progress2 /home/$USER/Képek/ $FOLDER rsync -ap --info=progress2 /home/$USER/Képek/ $FOLDER
rsync -ap --info=progress2 /home/$USER/Videók/ $FOLDER rsync -ap --info=progress2 /home/$USER/Videók/ $FOLDER
rsync -ap --info=progress2 /home/$USER/Calibre\ Library/ $FOLDER 2>/dev/null rsync -ap --info=progress2 /home/$USER/Calibre\ Library/ 2>/dev/null $FOLDER
else else
echo ${bold}${yellow}English Language detected.${normal} echo ${bold}${yellow}English Language detected.${normal}
# EN lang # EN lang
@ -139,7 +137,7 @@ if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then
rsync -ap --info=progress2 /home/$USER/Music $FOLDER rsync -ap --info=progress2 /home/$USER/Music $FOLDER
rsync -ap --info=progress2 /home/$USER/Pictures $FOLDER rsync -ap --info=progress2 /home/$USER/Pictures $FOLDER
rsync -ap --info=progress2 /home/$USER/Videos $FOLDER rsync -ap --info=progress2 /home/$USER/Videos $FOLDER
rsync -ap --info=progress2 /home/$USER/Calibre\ Library/ $FOLDER 2>/dev/null rsync -ap --info=progress2 /home/$USER/Calibre\ Library/ 2>/dev/null $FOLDER
fi fi
if [[ $Desktop == GNOME ]]; then if [[ $Desktop == GNOME ]]; then
@ -163,21 +161,21 @@ if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then
echo ${bold}${yellow} BACKUP SCRIPT FINISHED SUCCESSFULLY! ${normal} echo ${bold}${yellow} BACKUP SCRIPT FINISHED SUCCESSFULLY! ${normal}
fi fi
if [[ $user_choice = *"RESTORE All of My Data and Settings"* ]]; then if [[ $user_choice = *"Restore all of my data and settings"* ]]; then
Locale=$(locale | grep "LANG")
Desktop=$XDG_CURRENT_DESKTOP
echo echo
echo ----------------------------------------------------- echo -----------------------------------------------------
echo Copying ${bold}${yellow}Restoring - $USER - Settings and Files ${normal} into ${bold}${yellow}$FOLDER/${normal} echo Copying ${bold}${yellow}Restoring $USER Settings and Files ${normal} into ${bold}${yellow}$FOLDER/${normal}
sudo rsync -ap --info=progress2 $FOLDER/etc/libvirt /etc/ 2>/dev/null sudo rsync -ap --info=progress2 $FOLDER/etc/libvirt /etc/
sudo rsync -ap --info=progress2 $FOLDER/config.json /usr/share/jellyfin/web/ 2>/dev/null sudo rsync -ap --info=progress2 $FOLDER/config.json /usr/share/jellyfin/web/
sudo rsync -ap --info=progress2 $FOLDER /home/$USER/ rsync -ap --info=progress2 $FOLDER /home/$USER/
if [[ $Desktop == GNOME ]]; then if [[ $Desktop == GNOME ]]; then
# GNOME SECTION # GNOME SECTION
echo ${bold}${yellow}GNOME Detected - Loading Dconf${normal} echo ${bold}${yellow}GNOME Detected - Loading Dconf${normal}
dconf load / < $FOLDER/$USER-ui dconf load / < $FOLDER/$USER-ui
echo
echo ${bold}${yellow} Dconf loaded${normal}
else else
# KDE Section # KDE Section
echo ${bold}${yellow}KDE Detected - Loading Konsave${normal} echo ${bold}${yellow}KDE Detected - Loading Konsave${normal}
@ -189,3 +187,5 @@ if [[ $user_choice = *"RESTORE All of My Data and Settings"* ]]; then
echo echo
echo ${bold}${yellow}SETTINGS RESTORED SUCCESSFULLY! ${normal} echo ${bold}${yellow}SETTINGS RESTORED SUCCESSFULLY! ${normal}
fi fi
exit 1

View file

@ -1,10 +1,9 @@
#!/bin/bash #!/bin/bash
# ROS Telepito szamlalo by Marci
APP_DIR="/home/$USER/.local/share/applications" APP_DIR="/home/$USER/.local/share/applications"
FILE_NAME="RaveOS-greeting" FILE_NAME="RaveOS-greeting"
URL="https://links.rp1.hu/counter" URL="https://links.rp1.hu/counter"
GREETING_TEXT="Köszönjük, hogy telepítetted a RaveOS Linuxot!" GREETING_TEXT="Köszönjük, hogy telepítetted az RaveOS GNOME Gaminx Linux-ot!"
if [ ! -f "$APP_DIR/$FILE_NAME" ]; then if [ ! -f "$APP_DIR/$FILE_NAME" ]; then
curl $URL -s --insecure > /dev/null curl $URL -s --insecure > /dev/null
@ -16,6 +15,8 @@ bold=$(tput bold) # ${bold}
normal=$(tput sgr0) # ${normal} normal=$(tput sgr0) # ${normal}
yellow=$(tput setaf 3) # ${yellow} yellow=$(tput setaf 3) # ${yellow}
# APT/Flatpak APP TELEPITO SCRIPT
# Entering work folder # Entering work folder
cd /usr/local/bin/progs cd /usr/local/bin/progs
sudo curl -Ls https://links.rp1.hu/progsgui -o /usr/local/bin/progs/3progs.sh sudo curl -Ls https://links.rp1.hu/progsgui -o /usr/local/bin/progs/3progs.sh
@ -75,7 +76,6 @@ user_choice=$(zenity --list --checklist --width='1000' --height='1000' \
FALSE "Mumble - hang alapú csevegőalkalmazás" \ FALSE "Mumble - hang alapú csevegőalkalmazás" \
FALSE "Nomacs - képnézegető / szerkesztő" \ FALSE "Nomacs - képnézegető / szerkesztő" \
FALSE "Nyomtato - Ha hasznalsz nyomtatot, tedd fel" \ FALSE "Nyomtato - Ha hasznalsz nyomtatot, tedd fel" \
FALSE "OCCT - Stress Test progi" \
FALSE "OnlyOffice - Legujabb MS Office Linuxos megfeleloje - LIBREOFFICE-t TOROLNI FOGJA!" \ FALSE "OnlyOffice - Legujabb MS Office Linuxos megfeleloje - LIBREOFFICE-t TOROLNI FOGJA!" \
FALSE "OBS - Nyílt forrású felvételkészítő és streamelő program" \ FALSE "OBS - Nyílt forrású felvételkészítő és streamelő program" \
FALSE "Parabolic - Videóletöltő, működik minden platformon" \ FALSE "Parabolic - Videóletöltő, működik minden platformon" \
@ -92,7 +92,6 @@ user_choice=$(zenity --list --checklist --width='1000' --height='1000' \
FALSE "Spotube - Ingyenes Premium Spotify Zenelejátszó Linuxra" \ FALSE "Spotube - Ingyenes Premium Spotify Zenelejátszó Linuxra" \
FALSE "Steam Launcher" \ FALSE "Steam Launcher" \
FALSE "Systemd boot mod - 1sec varakozas bootolaskor" \ FALSE "Systemd boot mod - 1sec varakozas bootolaskor" \
FALSE "Systemd boot mod - 3sec varakozas bootolaskor" \
FALSE "TeamSpeak3 - TeamSpeak VOIP kliens" \ FALSE "TeamSpeak3 - TeamSpeak VOIP kliens" \
FALSE "Telegram - Titkosított üzenetküldő" \ FALSE "Telegram - Titkosított üzenetküldő" \
FALSE "TOR Böngésző" \ FALSE "TOR Böngésző" \
@ -182,18 +181,6 @@ if [[ $user_choice = *"Systemd boot mod - 1sec varakozas bootolaskor"* ]]; then
echo echo
fi fi
if [[ $user_choice = *"Systemd boot mod - 3sec varakozas bootolaskor"* ]]; then
echo
echo ---------------------------------------------
echo Installing ${bold}${yellow}Systemd boot mod${normal}
sudo sed -i 's/timeout 0/timeout 3/' /boot/loader/loader.conf
echo ${bold}${yellow}Systemd boot mod ${normal}installed.
echo ---------------------------------------------
echo
fi
if [[ $user_choice = *"Handbrake - Video konvertalo progi"* ]]; then if [[ $user_choice = *"Handbrake - Video konvertalo progi"* ]]; then
echo echo
echo --------------------------------------------- echo ---------------------------------------------
@ -319,24 +306,6 @@ if [[ $user_choice = *"Nyomtato - Ha hasznalsz nyomtatot, tedd fel"* ]]; then
echo echo
fi fi
if [[ $user_choice = *"OCCT - Stress Test progi"* ]]; then
echo
echo ---------------------------------------------
echo Installing ${bold}${yellow}OCCT Stress test${normal}
sudo wget https://www.ocbase.com/download/edition:Personal/testing:true/os:Linux -O /usr/local/bin/progs/OCCT
sudo mkdir -p /opt/OCCT/
sudo mv /usr/local/bin/progs/OCCT /opt/OCCT/
sudo chmod +x /opt/OCCT/OCCT
sudo cp -a occt.desktop /usr/share/applications
sudo chmod +x /usr/share/applications/occt.desktop
sudo cp -a occt-icon.png /usr/share/icons
echo ${bold}${yellow}OCCT Stress Test ${normal}installed.
echo ---------------------------------------------
echo
fi
if [[ $user_choice = *"Lutris - Game launchereket, és egyéb appokat futtató környezet"* ]]; then if [[ $user_choice = *"Lutris - Game launchereket, és egyéb appokat futtató környezet"* ]]; then
echo echo
echo --------------------------------------------- echo ---------------------------------------------