358 lines
12 KiB
Bash
358 lines
12 KiB
Bash
#!/bin/bash
|
|
# MENU COLORS ############################################################################################################################################
|
|
export NEWT_COLORS='
|
|
root=white,gray
|
|
window=white,lightgray
|
|
border=black,lightgray
|
|
shadow=white,black
|
|
button=white,blue
|
|
actbutton=black,red
|
|
compactbutton=black,
|
|
title=black,
|
|
roottext=black,magenta
|
|
textbox=black,lightgray
|
|
acttextbox=gray,white
|
|
entry=lightgray,gray
|
|
disentry=gray,lightgray
|
|
checkbox=black,lightgray
|
|
actcheckbox=white,blue
|
|
emptyscale=,black
|
|
fullscale=,red
|
|
listbox=black,lightgray
|
|
actlistbox=lightgray,gray
|
|
actsellistbox=white,blue
|
|
'
|
|
|
|
# Colors black red green yellow blue magenta cyan white + lightCOLOR
|
|
|
|
|
|
# START MENU ############################################################################################################################################
|
|
|
|
CHOICESTART=$(
|
|
whiptail --title "The installation of Martin BSPwm DTE on Debian" --menu "Choose you system from the following" 16 100 9 \
|
|
"1)" "AMD System" \
|
|
"2)" "AMD System + NVIDIA GPU" \
|
|
"3)" "Intel System" \
|
|
"4)" "Intel System + NVIDIA GPU" \
|
|
"5)" "Virtual Machine System - NO microcode or GPU Drivers" \
|
|
"6)" "Exit, Do nothing" 3>&2 2>&1 1>&3)
|
|
|
|
# APTSELECTED MENU ############################################################################################################################################
|
|
|
|
APTSELECTED=$(whiptail --separate-output --checklist "Software Packages" 20 80 10 \
|
|
"filezilla" "Free FTP solution" OFF \
|
|
"notepadqq" "A text editor for developers" OFF \
|
|
"librecad" "Open Source CAD application" OFF \
|
|
"inkscape" "vector graphics software" OFF \
|
|
"gimp" "Image Manipulation Program" OFF \
|
|
"rawtherapee" "Raw image processing program" OFF \
|
|
"darktable" "Lighttable & Darkroom for photographers" OFF \
|
|
"okular" "The Universal Document Viewer" OFF \
|
|
"scribus" "Open Source Desktop Publishing" OFF \
|
|
"obs-studio" "Open Broadcaster Software" OFF 3>&1 1>&2 2>&3)
|
|
|
|
# LIST filezilla notepadqq gigolo netdiscover librecad inkscape gimp rawtherapee darktable okular scribus obs-studio
|
|
|
|
# START RUN ############################################################################################################################################
|
|
|
|
clear
|
|
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " Enter your user password, to continue if necessary"
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
#sudo sh -c "echo 'Xcursor.theme: Nordzy-cursors' >> /etc/X11/Xresources/x11-common"
|
|
#sudo sh -c "echo 'Xcursor.size: 22' >> /etc/X11/Xresources/x11-common"
|
|
|
|
sudo sed -i 's+deb http://deb.debian.org/debian/ testing main contrib non-free+#deb http://deb.debian.org/debian/ testing main contrib non-free+g' /etc/apt/sources.list
|
|
sudo sed -i 's+deb-src http://deb.debian.org/debian/ testing main contrib non-free+#deb-src http://deb.debian.org/debian/ testing main contrib non-free+g' /etc/apt/sources.list
|
|
sleep 1
|
|
sudo sh -c "echo 'deb http://deb.debian.org/debian/ testing main contrib non-free' >> /etc/apt/sources.list"
|
|
sudo sh -c "echo 'deb-src http://deb.debian.org/debian/ testing main contrib non-free' >> /etc/apt/sources.list"
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
# APT Update + install git
|
|
sudo apt update && sudo apt install -y git
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
# Do, mkdir, copy, copy, echo files. ############################################################################################################################################
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " Creates folders."
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
mkdir ~/.config
|
|
mkdir ~/.themes
|
|
mkdir ~/.fonts
|
|
mkdir ~/.icons
|
|
mkdir ~/.local
|
|
mkdir ~/.local/bin
|
|
mkdir ~/wallpapers
|
|
mkdir ~/miscellaneous
|
|
# User folders via xdg-user-dirs-update.
|
|
xdg-user-dirs-update
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
clear
|
|
|
|
#Copy files to...
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " Copy files to..."
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
cp -r ~/bspwm-install-ma-dte/config/* ~/.config/
|
|
cp -r ~/bspwm-install-ma-dte/fonts/* ~/.fonts/
|
|
#cp -r ~/bspwm-install-ma-dte/themes/* ~/.themes/
|
|
cp -r ~/bspwm-install-ma-dte/music/* ~/Music/
|
|
cp -r ~/bspwm-install-ma-dte/wallpapers/* ~/wallpapers/
|
|
|
|
cp ~/bspwm-install-ma-dte/local-files/.Xresources ~/
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
clear
|
|
|
|
# Echo config to files. YES / NO
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " Echo config to files..."
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
echo " Add Alias to bashrc under bash_aliases config."
|
|
touch ~/.bashrc
|
|
echo 'alias ls="ls --color=auto --group-directories-first -v -la"' >> ~/.bashrc
|
|
echo 'alias vi="nvim"' >> ~/.bashrc
|
|
echo 'alias upup="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y"' >> ~/.bashrc
|
|
|
|
# Echo Nitrogen config to files.
|
|
echo "dirs=$HOME/wallpapers/;" >> ~/.config/nitrogen/nitrogen.cfg
|
|
|
|
touch ~/.config/nitrogen/bg-saved.cfg
|
|
echo "[xin_-1]" >> ~/.config/nitrogen/bg-saved.cfg
|
|
echo "file=$HOME/wallpapers/default-wallpaper.jpg" >> ~/.config/nitrogen/bg-saved.cfg
|
|
echo "mode=5" >> ~/.config/nitrogen/bg-saved.cfg
|
|
echo "bgcolor=#191a1b" >> ~/.config/nitrogen/bg-saved.cfg
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
clear
|
|
|
|
#chmod +x files.
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " chmod +x files."
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
chmod +x ~/.config/bspwm/bspwmrc
|
|
chmod +x ~/.config/sxhkd/sxhkdrc
|
|
|
|
chmod +x ~/.config/polybar/run-polybar.sh
|
|
chmod +x ~/.config/rofi/powermenu.sh
|
|
chmod +x ~/.config/rofi/rofi-wifi-menu.sh
|
|
chmod +x ~/.config/rofi/rofi-beats.sh
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
clear
|
|
|
|
#Unzip files to...
|
|
#echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
#echo " "
|
|
#echo " Unzip files to..."
|
|
#echo " "
|
|
#echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
#tar -xf themes/archive.tar.xz -C ~/.themes/
|
|
#tar -xf themes/Nordic-bluish-accent.tar.xz -C ~/.themes/
|
|
#tar -xf themes/cursors/Nordzy-cursors.tar.gz -C ~/.icons/
|
|
|
|
#Git Clone files.
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " Git Clone - Downloads"
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
#git clone https://github.com/LINK Nordic-Theme Specific-folder
|
|
|
|
git clone https://github.com/EliverLara/Nordic ~/bspwm-install-ma-dte/themes/themes-de/Nordic-theme
|
|
git clone https://github.com/alvatip/Nordzy-cursors ~/bspwm-install-ma-dte/themes/cursors/Nordzy-cursors-theme
|
|
git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme ~/bspwm-install-ma-dte/themes/icons/Papirus-icon-theme
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
clear
|
|
|
|
#Copy Theme files...
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " Copy Theme files..."
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
#cp -r ~/bspwm-install-ma-dte/themes/themes-de/* ~/.themes/
|
|
#cp -r ~/bspwm-install-ma-dte/themes/cursors/* ~/.icons/
|
|
#cp -r ~/bspwm-install-ma-dte/themes/icons/* ~/.icons/
|
|
|
|
cp -r ~/bspwm-install-ma-dte/themes/themes-de/* ~/.themes/
|
|
|
|
mkdir ~/.icons/Nordzy-cursors
|
|
cp -r ~/bspwm-install-ma-dte/themes/cursors/Nordzy-cursors-theme/Nordzy-cursors/* ~/.icons/Nordzy-cursors
|
|
|
|
mkdir ~/.icons/Papirus
|
|
mkdir ~/.icons/Papirus-Dark
|
|
mkdir ~/.icons/Papirus-Light
|
|
cp -r ~/bspwm-install-ma-dte/themes/icons/Papirus-icon-theme/Papirus/* ~/.icons/Papirus
|
|
cp -r ~/bspwm-install-ma-dte/themes/icons/Papirus-icon-theme/Papirus-Dark/* ~/.icons/Papirus-Dark
|
|
cp -r ~/bspwm-install-ma-dte/themes/icons/Papirus-icon-theme/Papirus-Light/* ~/.icons/Papirus-Light
|
|
|
|
mkdir ~/.config/gtk-3.0
|
|
cp ~/bspwm-install-ma-dte/themes/gtk-3.0/settings.ini ~/.config/gtk-3.0
|
|
cp ~/bspwm-install-ma-dte/themes/.gtkrc-2.0 ~/
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
clear
|
|
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " All DONE - User + .config files..."
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
clear
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
# Add Software & Packages.
|
|
# Add ROOT Level - Software & Packages.
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " APT Install Software & Packages"
|
|
echo " "
|
|
echo " Enter your user password, to continue if necessary"
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
# APT Update Start RUN
|
|
sudo apt update
|
|
|
|
# Core packages to be installed ############################################################################################################################################
|
|
sudo apt install -y xorg arandr autorandr dialog bspwm sxhkd sddm picom polybar xautolock xsecurelock network-manager git kitty psmisc rofi nemo thunar pcmanfm module-assistant font-manager gvfs-backends nitrogen dunst rsync cups xsensors smbclient lxpolkit xbacklight lxappearance htop mc xarchiver pulseaudio pulsemixer bluez bluez-firmware bluez-tools bluez-alsa-utils blueman xfce4-pulseaudio-plugin moc mpv curl tmux imagemagick sxiv scrot flameshot firefox-esr numlockx ranger neovim notify-osd neofetch flatpak timeshift rename gparted cpufrequtils xfce4-power-manager xfce4-settings bpytop firmware-linux-nonfree nfs-common virt-viewer gvncviewer xinput jgmenu
|
|
|
|
# APT OFF
|
|
# system-config-printer cifs-utils
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
# Google Chrome - Download + Install ON / OFF
|
|
#rm google-chrome-stable_current_amd64.deb
|
|
cd /tmp/ && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
sudo apt install -y /tmp/google-chrome-stable_current_amd64.deb
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
cd ~/bspwm-install-ma-dte
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
|
|
# Add Pulseaudio to system startup as user.
|
|
systemctl --user enable pulseaudio
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
# Last Software & Packages. ############################################################################################################################################
|
|
clear
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
echo " "
|
|
echo " Download, Building & Install Software"
|
|
echo " "
|
|
echo " Enter your user password, to continue if necessary"
|
|
echo " "
|
|
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
# Last Software & Packages
|
|
sudo apt install -y wireguard qimgv libreoffice libreoffice-gtk3 libreoffice-l10n-da freerdp2-x11 freerdp2-shadow-x11 speedcrunch $APTSELECTED
|
|
|
|
# Maybe maybe Software & Packages ON / OFF
|
|
#sudo apt install -y
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
# Alacritty - Building and installing ON / OFF
|
|
clear
|
|
#echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
#echo " "
|
|
#echo " Alacritty - Building and installing"
|
|
#echo " "
|
|
#echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
|
|
|
|
# Alacritty - Building and installing ON / OFF
|
|
#. ~/bspwm-install-ma-dte/install-scripts/install-alacritty-debian.sh
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
|
|
|
|
# Last step setup menu installing.
|
|
#. ~/bspwm-install-ma-dte/last-step-setup-menu.sh
|
|
|
|
# Not for production version
|
|
#read -p "Troubleshooting - Press a key to continue the installation."
|
|
clear
|
|
|
|
# Make Xorg config file
|
|
sudo Xorg -configure
|
|
|
|
# END RUN ##########################################################################################################################################
|
|
|
|
case $CHOICESTART in
|
|
"1)")
|
|
sudo apt install -y amd64-microcode
|
|
;;
|
|
"2)")
|
|
sudo apt install -y amd64-microcode nvidia-detect nvidia-driver
|
|
;;
|
|
|
|
"3)")
|
|
sudo apt install -y intel-microcode
|
|
;;
|
|
|
|
"4)")
|
|
sudo apt install -y intel-microcode nvidia-detect nvidia-driver
|
|
;;
|
|
|
|
"5)")
|
|
sudo reboot
|
|
;;
|
|
|
|
"6)")
|
|
exit
|
|
;;
|
|
esac
|
|
|
|
sudo reboot |