commit cd6b17ce150ffc73b949086fec7ecbadac913da2 Author: ITmail-dk Date: Wed Nov 23 08:47:44 2022 +0100 Linux install scripts diff --git a/enable-bluetooth.sh b/enable-bluetooth.sh new file mode 100755 index 0000000..a8725f7 --- /dev/null +++ b/enable-bluetooth.sh @@ -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 "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-" \ No newline at end of file diff --git a/install-alacritty-debian.sh b/install-alacritty-debian.sh new file mode 100755 index 0000000..b38e857 --- /dev/null +++ b/install-alacritty-debian.sh @@ -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" \ No newline at end of file diff --git a/install-alacritty-themes-debian.sh b/install-alacritty-themes-debian.sh new file mode 100755 index 0000000..76da673 --- /dev/null +++ b/install-alacritty-themes-debian.sh @@ -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 " " \ No newline at end of file diff --git a/install-discord.sh b/install-discord.sh new file mode 100755 index 0000000..e1258e0 --- /dev/null +++ b/install-discord.sh @@ -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 # # # # #" \ No newline at end of file diff --git a/install-hugo-extended-debian.sh b/install-hugo-extended-debian.sh new file mode 100755 index 0000000..2bb243e --- /dev/null +++ b/install-hugo-extended-debian.sh @@ -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" diff --git a/install-ma-dte-debian.sh b/install-ma-dte-debian.sh new file mode 100755 index 0000000..24e722a --- /dev/null +++ b/install-ma-dte-debian.sh @@ -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 \ No newline at end of file diff --git a/install-ma-dte-fedora-test.sh b/install-ma-dte-fedora-test.sh new file mode 100755 index 0000000..b43e8d8 --- /dev/null +++ b/install-ma-dte-fedora-test.sh @@ -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 \ No newline at end of file diff --git a/install-steam-debian.sh b/install-steam-debian.sh new file mode 100755 index 0000000..eb5a44f --- /dev/null +++ b/install-steam-debian.sh @@ -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" \ No newline at end of file diff --git a/install-steam-flatpak.sh b/install-steam-flatpak.sh new file mode 100755 index 0000000..9b34d96 --- /dev/null +++ b/install-steam-flatpak.sh @@ -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" \ No newline at end of file diff --git a/install-syncthing.sh b/install-syncthing.sh new file mode 100644 index 0000000..6caeade --- /dev/null +++ b/install-syncthing.sh @@ -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 "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-" \ No newline at end of file diff --git a/install-teamviewer-debian.sh b/install-teamviewer-debian.sh new file mode 100755 index 0000000..f6cc1de --- /dev/null +++ b/install-teamviewer-debian.sh @@ -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 \ No newline at end of file diff --git a/install-virt-manager.sh b/install-virt-manager.sh new file mode 100644 index 0000000..c9b69db --- /dev/null +++ b/install-virt-manager.sh @@ -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 \ No newline at end of file diff --git a/install-vscode-debian.sh b/install-vscode-debian.sh new file mode 100755 index 0000000..eb697ae --- /dev/null +++ b/install-vscode-debian.sh @@ -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 "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-" \ No newline at end of file diff --git a/install-zsh-shell-debian.sh b/install-zsh-shell-debian.sh new file mode 100755 index 0000000..6281681 --- /dev/null +++ b/install-zsh-shell-debian.sh @@ -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" \ No newline at end of file diff --git a/test_scripts/test.sh b/test_scripts/test.sh new file mode 100755 index 0000000..6a56aa1 --- /dev/null +++ b/test_scripts/test.sh @@ -0,0 +1,2 @@ +#!/bin/bash +clear \ No newline at end of file