Update install.sh

This commit is contained in:
2024-12-10 19:54:46 +01:00
parent e2144eacc8
commit 69a4ff7534

View File

@@ -2,7 +2,7 @@
# Qtile Martin Andersen Desktop Environment, Qmade for short.! install - ITmail.dk # Qtile Martin Andersen Desktop Environment, Qmade for short.! install - ITmail.dk
# bash -c "$(wget -O- https://raw.githubusercontent.com/ITmail-dk/qmade/main/install.sh)" # bash -c "$(wget -O- https://raw.githubusercontent.com/ITmail-dk/qmade/main/install.sh)"
# sudo apt install -y git && git clone https://github.com/ITmail-dk/qmade && cd qmade && . install.sh # sudo DEBIAN_FRONTEND=noninteractive apt install -y git && git clone https://github.com/ITmail-dk/qmade && cd qmade && . install.sh
# Resource links to source # Resource links to source
# https://qtile.org # https://qtile.org
@@ -166,7 +166,7 @@ echo -e "${RED}-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo -e "${RED} ${NC}" echo -e "${RED} ${NC}"
if ! dpkg -s apt-transport-https >/dev/null 2>&1; then if ! dpkg -s apt-transport-https >/dev/null 2>&1; then
sudo apt -y install apt-transport-https sudo apt install -y apt-transport-https
sudo sed -i 's+http:+https:+g' /etc/apt/sources.list sudo sed -i 's+http:+https:+g' /etc/apt/sources.list
else else
echo "apt-transport-https is already installed." echo "apt-transport-https is already installed."
@@ -199,9 +199,9 @@ set -e
clear clear
echo -e "${YELLOW} Core System APT install ${NC}" echo -e "${YELLOW} Core System APT install ${NC}"
sudo apt -y --ignore-missing install xserver-xorg x11-utils xinit arandr autorandr picom fwupd mesa-utils htop wget curl git tmux numlockx kitty cups xsensors xbacklight brightnessctl unzip network-manager dunst libnotify-bin notify-osd xautolock xsecurelock pm-utils rofi imagemagick nitrogen nsxiv mpv flameshot speedcrunch mc thunar gvfs-backends parted gparted mpd mpc ncmpcpp fzf ccrypt xarchiver notepadqq fontconfig fontconfig-config fonts-liberation fonts-dejavu-core fonts-freefont-ttf fonts-noto-core libfontconfig1 fonts-arkpandora pipewire pipewire-pulse wireplumber pipewire-alsa libspa-0.2-bluetooth pavucontrol alsa-utils qpwgraph sddm-theme-maui ffmpeg sudo DEBIAN_FRONTEND=noninteractive apt install apt -y --ignore-missing install xserver-xorg x11-utils xinit arandr autorandr picom fwupd mesa-utils htop wget curl git tmux numlockx kitty cups xsensors xbacklight brightnessctl unzip network-manager dunst libnotify-bin notify-osd xautolock xsecurelock pm-utils rofi imagemagick nitrogen nsxiv mpv flameshot speedcrunch mc thunar gvfs-backends parted gparted mpd mpc ncmpcpp fzf ccrypt xarchiver notepadqq fontconfig fontconfig-config fonts-liberation fonts-dejavu-core fonts-freefont-ttf fonts-noto-core libfontconfig1 fonts-arkpandora pipewire pipewire-pulse wireplumber pipewire-alsa libspa-0.2-bluetooth pavucontrol alsa-utils qpwgraph sddm-theme-maui ffmpeg
sudo apt -y install linux-headers-$(uname -r) sudo DEBIAN_FRONTEND=noninteractive apt install apt -y install linux-headers-$(uname -r)
sudo apt -y install sddm --no-install-recommends sudo DEBIAN_FRONTEND=noninteractive apt install apt -y install sddm --no-install-recommends
clear clear
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
@@ -216,10 +216,10 @@ echo -e "${YELLOW} Audio Start - https://alsa.opensrc.org - https://wiki.debian.
systemctl enable --user --now pipewire.socket pipewire-pulse.socket wireplumber.service systemctl enable --user --now pipewire.socket pipewire-pulse.socket wireplumber.service
# More Audio tools # More Audio tools
# sudo apt install -y alsa-tools # sudo DEBIAN_FRONTEND=noninteractive apt install -y alsa-tools
# PulseAudio # PulseAudio
# sudo apt install -y pulseaudio # sudo DEBIAN_FRONTEND=noninteractive apt install -y pulseaudio
# systemctl --user enable pulseaudio # systemctl --user enable pulseaudio
# sudo alsactl init # sudo alsactl init
@@ -232,7 +232,7 @@ CPUVENDOR=$(lscpu | grep "Vendor ID:" | awk '{print $3}')
if [ "$CPUVENDOR" == "GenuineIntel" ]; then if [ "$CPUVENDOR" == "GenuineIntel" ]; then
if ! dpkg -s intel-microcode >/dev/null 2>&1; then if ! dpkg -s intel-microcode >/dev/null 2>&1; then
sudo apt install -y intel-microcode sudo DEBIAN_FRONTEND=noninteractive apt install -y intel-microcode
fi fi
else else
echo -e "${GREEN} Intel Microcode OK ${NC}" echo -e "${GREEN} Intel Microcode OK ${NC}"
@@ -240,7 +240,7 @@ fi
if [ "$CPUVENDOR" == "AuthenticAMD" ]; then if [ "$CPUVENDOR" == "AuthenticAMD" ]; then
if ! dpkg -s amd64-microcode >/dev/null 2>&1; then if ! dpkg -s amd64-microcode >/dev/null 2>&1; then
sudo apt -y install amd64-microcode sudo DEBIAN_FRONTEND=noninteractive apt install apt install -y amd64-microcode
fi fi
else else
echo -e "${GREEN} Amd64 Microcode OK ${NC}" echo -e "${GREEN} Amd64 Microcode OK ${NC}"
@@ -272,7 +272,7 @@ xdg-mime default nsxiv.desktop image/png
xdg-mime default thunar.desktop inode/directory xdg-mime default thunar.desktop inode/directory
# Picom (Yshui) install # Picom (Yshui) install
#sudo apt install -y libconfig-dev libdbus-1-dev libegl-dev libev-dev libgl-dev libepoxy-dev libpcre2-dev libpixman-1-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-damage0-dev libxcb-dpms0-dev libxcb-glx0-dev libxcb-image0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-util-dev libxcb-xfixes0-dev libxext-dev meson ninja-build uthash-dev #sudo DEBIAN_FRONTEND=noninteractive apt install -y libconfig-dev libdbus-1-dev libegl-dev libev-dev libgl-dev libepoxy-dev libpcre2-dev libpixman-1-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-damage0-dev libxcb-dpms0-dev libxcb-glx0-dev libxcb-image0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-util-dev libxcb-xfixes0-dev libxext-dev meson ninja-build uthash-dev
#cd /tmp/ #cd /tmp/
#git clone https://github.com/yshui/picom #git clone https://github.com/yshui/picom
#cd picom #cd picom
@@ -283,7 +283,7 @@ xdg-mime default thunar.desktop inode/directory
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
echo -e "${YELLOW} Qtile Core Dependencies apt install ${NC}" echo -e "${YELLOW} Qtile Core Dependencies apt install ${NC}"
sudo apt -y install feh python3-full python3-pip python3-venv libxkbcommon-dev libxkbcommon-x11-dev libcairo2-dev pkg-config sudo DEBIAN_FRONTEND=noninteractive apt install -y feh python3-full python3-pip python3-venv libxkbcommon-dev libxkbcommon-x11-dev libcairo2-dev pkg-config
# Colorgram for auto-generated color themes # Colorgram for auto-generated color themes
pip install colorgram.py --break-system-packages pip install colorgram.py --break-system-packages
@@ -1587,37 +1587,37 @@ for PROGRAM in $PROGRAMS
do do
case $PROGRAM in case $PROGRAM in
"1") "1")
sudo apt install -y libreoffice sudo DEBIAN_FRONTEND=noninteractive apt install -y libreoffice
;; ;;
"2") "2")
sudo apt install -y tlp tlp-rdw bluetooth bluez bluez-cups bluez-obexd bluez-meshd pulseaudio-module-bluetooth bluez-firmware blueman acpi sudo DEBIAN_FRONTEND=noninteractive apt install -y tlp tlp-rdw bluetooth bluez bluez-cups bluez-obexd bluez-meshd pulseaudio-module-bluetooth bluez-firmware blueman acpi
;; ;;
"3") "3")
sudo apt install -y xrdp && sudo systemctl restart xrdp.service sudo DEBIAN_FRONTEND=noninteractive apt install -y xrdp && sudo systemctl restart xrdp.service
;; ;;
"4") "4")
sudo apt install -y freerdp2-x11 libfreerdp-client2-2 libfreerdp2-2 libwinpr2-2 sudo DEBIAN_FRONTEND=noninteractive apt install -y freerdp2-x11 libfreerdp-client2-2 libfreerdp2-2 libwinpr2-2
;; ;;
"5") "5")
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 && rm google-chrome-stable_current_amd64.deb cd /tmp/ && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo DEBIAN_FRONTEND=noninteractive apt install -y /tmp/google-chrome-stable_current_amd64.deb && rm google-chrome-stable_current_amd64.deb
;; ;;
"6") "6")
sudo apt install -y firefox-esr sudo DEBIAN_FRONTEND=noninteractive apt install -y firefox-esr
;; ;;
"7") "7")
sudo apt install -y smbclient sudo DEBIAN_FRONTEND=noninteractive apt install -y smbclient
;; ;;
"8") "8")
sudo apt install -y nfs-common sudo DEBIAN_FRONTEND=noninteractive apt install -y nfs-common
;; ;;
"9") "9")
sudo apt install -y ceph-common sudo DEBIAN_FRONTEND=noninteractive apt install -y ceph-common
;; ;;
"10") "10")
cd /tmp/ && wget -O vscode_amd64.deb 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' && sudo apt install -y /tmp/vscode_amd64.deb && rm vscode_amd64.deb cd /tmp/ && wget -O vscode_amd64.deb 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' && sudo DEBIAN_FRONTEND=noninteractive apt install -y /tmp/vscode_amd64.deb && rm vscode_amd64.deb
;; ;;
"11") "11")
sudo apt install -y neovim sudo DEBIAN_FRONTEND=noninteractive apt install -y neovim
;; ;;
esac esac
done done
@@ -1628,7 +1628,7 @@ echo -e "${YELLOW} Install selection choose what to install End ${NC}"
if lspci | grep -i nvidia; then if lspci | grep -i nvidia; then
echo "Nvidia graphics card detected. Installing drivers..." echo "Nvidia graphics card detected. Installing drivers..."
sudo apt install -y --install-recommends --install-suggests nvidia-driver sudo DEBIAN_FRONTEND=noninteractive apt install -y --install-recommends --install-suggests nvidia-driver
echo 'nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"' >> ~/.config/qtile/autostart.sh echo 'nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"' >> ~/.config/qtile/autostart.sh
else else
echo "No Nvidia graphics card detected." echo "No Nvidia graphics card detected."