2024-12-19 21:02:20 +00:00
|
|
|
#!/usr/bin/env bash
|
2024-12-21 19:59:13 +00:00
|
|
|
|
2024-12-23 17:59:09 +00:00
|
|
|
# Removed because the script is fully tested!
|
2025-01-07 21:14:40 +00:00
|
|
|
|
2024-12-21 19:59:13 +00:00
|
|
|
|
2024-12-28 22:20:18 +00:00
|
|
|
# Editing pacman.conf
|
|
|
|
|
2025-01-10 17:43:23 +00:00
|
|
|
sudo sed -i 's/#Color/Color/' /etc/pacman.conf
|
2024-12-28 22:20:18 +00:00
|
|
|
sudo sed -i '38 i ILoveCandy' /etc/pacman.conf
|
|
|
|
|
2024-12-19 20:51:55 +00:00
|
|
|
# RaveOS Setup Script
|
2024-12-21 19:59:13 +00:00
|
|
|
|
|
|
|
# Text Colours
|
2024-12-19 20:51:55 +00:00
|
|
|
bold=$(tput bold) # ${bold}
|
|
|
|
normal=$(tput sgr0) # ${normal}
|
|
|
|
yellow=$(tput setaf 3) # ${yellow}
|
|
|
|
|
2024-12-26 19:37:47 +00:00
|
|
|
# Variables - Credit Lordify
|
2024-12-26 19:36:57 +00:00
|
|
|
CPU=$(lscpu | grep "AMD" -c)
|
|
|
|
nVidia=$(lspci -P | grep "NVIDIA" -c)
|
2025-01-07 21:58:08 +00:00
|
|
|
Locale=$(locale | grep "hu_HU" -c)
|
2024-12-26 19:36:57 +00:00
|
|
|
|
2025-01-07 21:14:40 +00:00
|
|
|
set -e
|
2024-12-25 18:28:02 +00:00
|
|
|
|
2024-12-23 17:34:33 +00:00
|
|
|
# Deleting password for the script to run uninterrapted
|
2024-12-22 21:58:52 +00:00
|
|
|
|
2024-12-23 17:34:33 +00:00
|
|
|
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-$USER
|
2024-12-22 22:09:40 +00:00
|
|
|
echo "Defaults timestamp_timeout=-1" | sudo tee -a /etc/sudoers
|
|
|
|
|
|
|
|
# Making Makepkg a bit faster
|
|
|
|
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo sed -i 's/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto !autodeps)/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto !autodeps)/' /etc/makepkg.conf
|
|
|
|
|
|
|
|
# Installing packages
|
|
|
|
|
2025-01-09 21:42:25 +00:00
|
|
|
sudo pacman -S tilix gnome-session gdm gnome-disk-utility gnome-system-monitor eog network-manager-applet networkmanager flatpak base-devel bash-completion gedit gnome-calculator baobab ffmpeg git gnome-control-center gparted gnome-tweaks gnome-browser-connector xdg-desktop-portal xdg-desktop-portal-gnome xdg-desktop-portal-gtk xdg-desktop-portal-wlr ttf-ubuntu-font-family gnome-settings-daemon unzip wget glib2 glib2-devel spice-vdagent hblock nano qt5-wayland meson rsync zenity mesa-utils gvfs gvfs-mtp gvfs-smb android-tools wmctrl zsh python-setuptools bluez linux-zen-headers ufw gufw --noconfirm
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo systemctl enable gdm.service
|
2025-01-06 16:55:16 +00:00
|
|
|
sudo systemctl enable NetworkManager.service
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target geoclue.service
|
|
|
|
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
|
|
hblock
|
|
|
|
|
|
|
|
# Downloading RavePkg
|
|
|
|
|
|
|
|
mkdir cosmetics
|
|
|
|
sudo chown -R $USER:$GROUP /home/$USER/cosmetics/
|
|
|
|
cd cosmetics
|
|
|
|
wget -O cosmetics.zip https://files.rp1.hu/api/public/dl/K7znaGkC/
|
|
|
|
unzip cosmetics.zip
|
|
|
|
|
|
|
|
|
|
|
|
git clone https://aur.archlinux.org/yay-bin.git
|
|
|
|
cd yay-bin
|
|
|
|
makepkg -si --noconfirm
|
|
|
|
cd -
|
|
|
|
rm -rf yay-bin
|
2024-12-22 16:12:53 +00:00
|
|
|
|
|
|
|
git clone https://aur.archlinux.org/yaru.git
|
|
|
|
cd yaru
|
|
|
|
makepkg -si --noconfirm
|
|
|
|
cd -
|
2024-12-22 21:58:52 +00:00
|
|
|
rm -rf yaru
|
|
|
|
|
|
|
|
yay -S gdm-tools --noconfirm --sudoloop --save
|
2025-01-07 20:32:59 +00:00
|
|
|
yay -S hydrapaper --noconfirm
|
2024-12-22 21:58:52 +00:00
|
|
|
|
|
|
|
# Flatseal - Flatpak app jogosultság beállító
|
|
|
|
echo
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}Flatseal${normal}
|
|
|
|
|
|
|
|
yay -S flatseal --noconfirm
|
|
|
|
sudo cp -a overrides /home/$USER/.local/share/flatpak
|
|
|
|
|
|
|
|
echo ${bold}${yellow}Flatseal ${normal}installed.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo
|
|
|
|
|
2024-12-26 19:37:47 +00:00
|
|
|
# UCode installer - Credit Lordify
|
2024-12-26 19:36:57 +00:00
|
|
|
if [[ $CPU -gt 0 ]]; then
|
|
|
|
sudo pacman -S amd-ucode --noconfirm
|
|
|
|
else
|
|
|
|
sudo pacman -S intel-ucode --noconfirm
|
|
|
|
fi
|
|
|
|
|
2024-12-26 19:37:47 +00:00
|
|
|
# Adding ucode to boot entries - Credit Lordify
|
2024-12-26 19:36:57 +00:00
|
|
|
if [[ $CPU -gt 0 ]]; then
|
|
|
|
echo "initrd /amd-ucode.img" | sudo tee -a /boot/loader/entries/*.conf
|
|
|
|
else
|
|
|
|
echo "initrd /intel-ucode.img" | sudo tee -a /boot/loader/entries/*.conf
|
|
|
|
fi
|
|
|
|
|
2025-01-05 17:58:13 +00:00
|
|
|
# nVidia - Credit to Lordify
|
2025-01-05 17:57:55 +00:00
|
|
|
if [[ $nVidia -gt 0 ]]; then
|
|
|
|
sudo pacman -S linux-zen linux-zen-headers --noconfirm # Make sure you have Zen kernel installed
|
|
|
|
sleep 1
|
|
|
|
sudo pacman -S nvidia-dkms nvidia-utils nvidia-settings egl-wayland lib32-nvidia-utils --noconfirm # nVidia-DKMS and some Wayland Packages
|
|
|
|
sleep 1
|
|
|
|
sudo sed -i 's/MODULES=()/MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)/' /etc/mkinitcpio.conf # Add early loading of nVidia kernel mode setting
|
|
|
|
sleep 1
|
|
|
|
echo "options nvidia_drm modeset=1 fbdev=1" | sudo tee /etc/modprobe.d/nvidia.conf > /dev/null # Make sure it is loaded...
|
|
|
|
sleep 1
|
|
|
|
sudo mkinitcpio -P
|
|
|
|
fi
|
|
|
|
|
2025-01-07 21:58:08 +00:00
|
|
|
#gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'hu')]"
|
2024-12-26 19:36:57 +00:00
|
|
|
|
2024-12-26 20:20:00 +00:00
|
|
|
# Dconf option
|
2025-01-07 22:03:10 +00:00
|
|
|
if [[ $Locale -ge 1 ]]; then
|
2025-01-07 21:58:08 +00:00
|
|
|
dconf load / < raveui-hu
|
2024-12-26 20:20:00 +00:00
|
|
|
else
|
2025-01-07 21:58:08 +00:00
|
|
|
dconf load / < raveui-eng
|
2024-12-26 20:20:00 +00:00
|
|
|
fi
|
|
|
|
|
2024-12-22 21:58:52 +00:00
|
|
|
# RaveOS Cosmetics
|
|
|
|
|
|
|
|
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.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"
|
|
|
|
sudo rsync -ap --info=progress2 gnome-shell /home/$USER/.local/share/
|
|
|
|
cp -a /home/$USER/cosmetics/burn-my-windows /home/$USER/.config/
|
2024-12-23 17:34:33 +00:00
|
|
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/rave-pp.png /usr/share/pixmaps/faces/
|
2024-12-22 21:58:52 +00:00
|
|
|
echo "[User]
|
|
|
|
Session=
|
|
|
|
Icon=/usr/share/pixmaps/faces/rave-pp.png
|
|
|
|
SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
|
2024-12-23 17:34:33 +00:00
|
|
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/archlinux-logo-text-dark.svg /usr/share/pixmaps/
|
|
|
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/view-app-grid-symbolic.svg /usr/share/icons/Yaru/scalable/actions/
|
|
|
|
echo raveui-eng dconf loaded
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo mkdir -p /usr/share/backgrounds/
|
2024-12-23 17:34:33 +00:00
|
|
|
sudo rsync -ap --info=progress2 raveos-bg.png /usr/share/backgrounds/
|
2024-12-22 21:58:52 +00:00
|
|
|
cp -a /home/$USER/cosmetics/.icons /home/$USER/
|
|
|
|
cp -a /home/$USER/cosmetics/.themes /home/$USER/
|
2024-12-25 22:39:59 +00:00
|
|
|
sudo mkdir -p /home/$USER/.config/gtk-4.0
|
2024-12-25 22:40:36 +00:00
|
|
|
sudo chown -R $USER:$GROUP /home/$USER/
|
2024-12-25 22:39:59 +00:00
|
|
|
cp -a gtk.css /home/$USER/.config/gtk-4.0/
|
2024-12-26 19:36:57 +00:00
|
|
|
sudo sed -i 's/#en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen
|
|
|
|
sudo sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
|
|
|
sudo sed -i 's/#hu_HU.UTF-8 UTF-8/hu_HU.UTF-8 UTF-8/' /etc/locale.gen
|
|
|
|
sudo locale-gen
|
2024-12-22 21:58:52 +00:00
|
|
|
set-gdm-theme set Yaru-purple-dark /usr/share/backgrounds/raveos-bg.png
|
|
|
|
|
|
|
|
# Adding Custom rave command
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}rave command.${normal}
|
|
|
|
echo
|
2024-12-23 17:34:33 +00:00
|
|
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/rave /usr/local/bin/
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo chmod +x /usr/local/bin/rave
|
2024-12-23 17:34:33 +00:00
|
|
|
echo given privileges to run for rave
|
|
|
|
sudo rsync -ap --info=progress2 /home/$USER/cosmetics/rave-comp.sh /etc/bash_completion.d/
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo chmod +x /etc/bash_completion.d/rave-comp.sh
|
2024-12-23 17:34:33 +00:00
|
|
|
echo given privileges to run for rave-comp.sh
|
2024-12-22 21:58:52 +00:00
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}Rave command with bash completion ${normal}installed.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Autostarting ProgramScript after restart
|
|
|
|
echo ---------------------------------------------
|
|
|
|
echo Installing ${bold}${yellow}ProgramScript Autostart${normal}
|
|
|
|
echo
|
|
|
|
mkdir -p /home/$USER/.config/autostart
|
|
|
|
sudo chown -R $USER:$GROUP /home/$USER/.config/autostart
|
2024-12-23 17:34:33 +00:00
|
|
|
echo Changed ownership to $USER /home/$USER/.config/autostart
|
|
|
|
sudo rsync -ap --info=progress2 3progs.sh.desktop /home/$USER/.config/autostart
|
2024-12-22 21:58:52 +00:00
|
|
|
echo Exec=/home/$USER/.progs/3progs.sh >> /home/$USER/.config/autostart/3progs.sh.desktop
|
|
|
|
sudo mkdir -p /home/$USER/.progs
|
2024-12-23 17:34:33 +00:00
|
|
|
echo Created .progs folder
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo chown -R $USER:$GROUP /home/$USER/.progs
|
2024-12-23 17:34:33 +00:00
|
|
|
echo Changed ownership to $USER /home/$USER/.progs
|
2024-12-23 17:36:57 +00:00
|
|
|
curl -Ls https://links.rp1.hu/3progs -o /home/$USER/.progs/3progs.sh
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo chmod +x /home/$USER/.progs/3progs.sh
|
2024-12-23 17:34:33 +00:00
|
|
|
echo Changed ownership to $USER /home/$USER/.progs/3progs.sh
|
|
|
|
sudo rsync -ap --info=progress2 content/. /home/$USER/.progs
|
2024-12-22 21:58:52 +00:00
|
|
|
echo
|
|
|
|
echo ${bold}${yellow}ProgramScript Autostart ${normal}installed.
|
|
|
|
echo ---------------------------------------------
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
sudo rm /etc/sudoers.d/99-$USER
|
2024-12-22 22:52:32 +00:00
|
|
|
sudo sed -i '140d' /etc/sudoers
|
2024-12-22 21:58:52 +00:00
|
|
|
sudo rm -rf /home/$USER/cosmetics
|
|
|
|
|
|
|
|
# End of script
|
|
|
|
echo Reboot in 3s...
|
|
|
|
echo Reboot in 2s...
|
|
|
|
echo Reboot in 1s...
|
|
|
|
echo Reboot
|
|
|
|
reboot
|