Linux install scripts

This commit is contained in:
2022-11-23 08:47:44 +01:00
commit cd6b17ce15
15 changed files with 467 additions and 0 deletions

21
enable-bluetooth.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
modprobe btusb
sleep 1
sudo systemctl enable bluetooth.service
sleep 1
sudo systemctl start bluetooth.service
sleep 1
clear
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Enable Bluetooth DONE"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"

77
install-alacritty-debian.sh Executable file
View File

@@ -0,0 +1,77 @@
#!/bin/bash
#APT UPDATE & APT UPGRADE
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'--'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " APT + Alacritty - Building and installing"
echo " Enter your user password, to continue if necessary"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'--'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sudo apt update && sudo apt upgrade -y
sudo apt install -y cmake cargo pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Create folders."
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
#mkdir ~/.config/alacritty
mkdir ~/make
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " GIT Download."
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-"
cd ~/make/
git clone https://github.com/alacritty/alacritty.git
mv alacritty ~/make/
cd ~/make/alacritty
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
echo "-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Building."
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-"
cargo build --release
echo "-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Buil DONE."
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-"
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'--'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Add Desktop Entry."
echo " "
echo " Enter your user password, to continue if necessary"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'--'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sudo cp target/release/alacritty /usr/local/bin
sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
sudo desktop-file-install extra/linux/Alacritty.desktop
sudo update-desktop-database
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
cd ~/bspwm-install-ma-dte
clear
echo "Alacritty Install - ALL DONE"

View File

@@ -0,0 +1,37 @@
#!/bin/bash
# APT UPDATE & APT UPGRADE
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Alacritty Themes - Install"
echo " NPM Install alacritty-themes"
echo " "
echo " See more at https://github.com/rajasegar/alacritty-themes"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo "Enter your user password, to continue."
sudo apt update && sudo apt install -y npm
# NPM Install alacritty-themes
npm i -g alacritty-themes
clear
echo " "
echo " "
echo " "
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " ALL DONE run alacritty-themes to use it"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " "
echo " "
echo " "
echo " "

21
install-discord.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Install Discord via .DEB"
echo " "
echo " Enter your user password, to continue if necessary"
echo " "
echo " continues the installation in 3 seconds"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sleep 2
cd /tmp
wget -O discord.deb https://discord.com/api/download?platform=linux&format=deb
sudo apt install -y ./discord.deb
clear
echo " # # # # # RUN Discord # # # # #"

32
install-hugo-extended-debian.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
# APT UPDATE & APT UPGRADE
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Hugo Extended - Install"
echo " Before we Install we run an update..."
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sudo apt update && sudo apt upgrade -y
# Install Hugo Extended v0.94.1
cd /tmp/
wget https://github.com/gohugoio/hugo/releases/download/v0.94.1/hugo_extended_0.94.1_Linux-64bit.deb
echo "Enter your user password, to continue install."
sudo apt install -y /tmp/hugo_extended_0.94.1_Linux-64bit.deb
clear
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Hugo Extended Install - ALL DONE"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
cd ~/bspwm-install-ma-dte
clear
read -p "Press a key to Exit"

45
install-ma-dte-debian.sh Executable file
View File

@@ -0,0 +1,45 @@
#!/bin/bash
cd ~/bspwm-install-ma-dte
#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 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."
# Run APT Update
sudo apt update
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
# Do, mkdir, copy, copy, echo files.
. ~/bspwm-install-ma-dte/install-scripts/mkdir-cp-git-chmod-echo-files.sh
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
# Add Software & Packages.
. ~/bspwm-install-ma-dte/install-scripts/apt-install-core-packages.sh
# 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.
. ~/bspwm-install-ma-dte/install-scripts/apt-install-software-last-packages.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

37
install-ma-dte-fedora-test.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
cd ~/bspwm-install-ma-dte
# Do, mkdir, copy, copy, echo files.
. ~/bspwm-install-ma-dte/install-scripts/mkdir-cp-git-chmod-echo-files.sh
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
# Add Software & Packages.
. ~/bspwm-install-ma-dte/install-scripts/dnf-install-core-packages.sh
# 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
sudo systemctl enable sddm
sudo systemctl set-default graphical.target
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
# Last Software & Packages.
. ~/bspwm-install-ma-dte/install-scripts/dnf-install-software-last-packages.sh
# Not for production version
#read -p "Troubleshooting - Press a key to continue the installation."
#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"
# 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

22
install-steam-debian.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Install Steam via .DEB and APT & NVIDIA GPU libs-i386"
echo " "
echo " Enter your user password, to continue if necessary"
echo " "
echo " continues the installation in 3 seconds"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sleep 2
cd /tmp
wget https://steamcdn-a.akamaihd.net/client/installer/steam.deb
sudo apt install -y nvidia-driver-libs:i386
sudo apt install -y ./steam.deb
clear
echo " # # # # # RUN STEAM CORMAND: steam"

25
install-steam-flatpak.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# Install - Steam Flatpak Install
# flatpak install flathub com.valvesoftware.Steam
# flatpak repairl flathub com.valvesoftware.Steam
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Install Steam via Flatpaki on Flathub"
echo " "
echo " Enter your user password, to continue if necessary"
echo " "
echo " continues the installation in 3 seconds"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sleep 2
sudo apt install -y flatpak
flatpak install flathub com.valvesoftware.Steam
clear
echo " # # # # # RUN STEAM CORMAND: flatpak run com.valvesoftware.Steam"

43
install-syncthing.sh Normal file
View File

@@ -0,0 +1,43 @@
#!/bin/bash
# Install - Syncthing.
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Download & Syncthing"
echo " "
echo " Enter your user password, to continue if necessary"
echo " "
echo " continues the installation in 2 seconds"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sleep 1
sudo curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
sleep 1
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sleep 1
sudo apt update && sudo apt install -y syncthing
sudo systemctl enable syncthing@$(whoami).service
sleep 1
sudo systemctl start syncthing@$(whoami).service
clear
sudo systemctl status syncthing@$(whoami).service
clear
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " "
echo " WEB GUI AT https://localhost:8384"
echo " "
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"

30
install-teamviewer-debian.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
# Download & Install TeamViewer
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " TeamViewer - Download..."
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
cd /tmp/
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
echo "Enter your user password, to continue install."
sudo apt install -y /tmp/teamviewer_amd64.deb
clear
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " TeamViewer Install - ALL DONE"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
cd ~/bspwm-install-ma-dte
clear
read -p "Press a key to Exit"
exit

17
install-virt-manager.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
egrep -c '(vmx|svm)' /proc/cpuinfo
read -p "Output = 8 - Press a key to continue the installation."
sudo apt update && sudo apt upgrade -y
sudo apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
sudo usermod -aG kvm $USER
sudo usermod -aG libvirt $USER
virt-manager

27
install-vscode-debian.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
# Install - VS Code Software.
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Download & Install VS Code"
echo " "
echo " Enter your user password, to continue if necessary"
echo " "
echo " continues the installation in 3 seconds"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sleep 1
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
cd ~/bspwm-install-ma-dte
clear
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " VS Code Install - ALL DONE"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"

31
install-zsh-shell-debian.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/bash
# APT UPDATE & APT UPGRADE
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " APT UPDATE & APT UPGRADE + install ZSH Shell"
echo " Enter your user password, to continue."
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sudo apt update && sudo apt upgrade -y
# Install ZSH Shell
# Debian install zsh shell.:
sudo apt install -y zsh && zsh --version
# Make it your default shell:
sudo chsh -s $(which zsh)
# Test that it worked with.:
echo $SHELL
# Test with...
$SHELL --version
cd ~/bspwm-install-ma-dte
clear
read -p "ZSH Shell Install - ALL DONE - Press a key to Exit"

2
test_scripts/test.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
clear