From f8b1cf97ee991410235ec26dc042d353aa1fd14d Mon Sep 17 00:00:00 2001 From: CooperDActor <136168153+CooperDActor@users.noreply.github.com> Date: Sat, 20 Apr 2024 11:09:55 +1000 Subject: [PATCH 1/7] Create Depend-on-debian.sh --- Depend-on-debian.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Depend-on-debian.sh diff --git a/Depend-on-debian.sh b/Depend-on-debian.sh new file mode 100644 index 0000000000..f9468ec2d6 --- /dev/null +++ b/Depend-on-debian.sh @@ -0,0 +1,32 @@ +# FFmpeg +sudo apt-get install -y libavcodec-dev libavformat-dev libavutil-dev libswscale-dev + +# FreeRDP +sudo apt-get install -y freerdp2-dev + +# Pango +sudo apt-get install -y libpango1.0-dev + +# libssh2 +sudo apt-get install -y libssh2-1-dev + +# libtelnet +sudo apt-get install -y libtelnet-dev + +# libVNCServer +sudo apt-get install -y libvncserver-dev + +# libwebsockets +sudo apt-get install -y libwebsockets-dev + +# PulseAudio +sudo apt-get install -y libpulse-dev + +# OpenSSL +sudo apt-get install -y libssl-dev + +# libvorbis +sudo apt-get install -y libvorbis-dev + +# libwebp +sudo apt-get install -y libwebp-dev From 6778cf3e55b928fd886a17decac41a2463dc2fd5 Mon Sep 17 00:00:00 2001 From: CooperDActor <136168153+CooperDActor@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:28:19 +1000 Subject: [PATCH 2/7] Update Depend-on-debian.sh --- Depend-on-debian.sh | 233 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 211 insertions(+), 22 deletions(-) diff --git a/Depend-on-debian.sh b/Depend-on-debian.sh index f9468ec2d6..3da7d98e92 100644 --- a/Depend-on-debian.sh +++ b/Depend-on-debian.sh @@ -1,32 +1,221 @@ -# FFmpeg -sudo apt-get install -y libavcodec-dev libavformat-dev libavutil-dev libswscale-dev +#!/bin/bash -# FreeRDP -sudo apt-get install -y freerdp2-dev +identify_and_run() { + os=$(uname) + if [ "$os" = "Linux" ]; then + distro=$(lsb_release -si) + case "$distro" in + CentOS|RedHatEnterpriseServer) + if command -v dnf &>/dev/null; then + echo "The following packages will be installed:" + echo "FFmpeg" + echo "libavcodec-devel libavformat-devel libavutil-devel libswscale-devel" + echo "freerdp2-devel" + echo "pango-devel" + echo "libssh2-devel" + echo "libtelnet-devel" + echo "libvncserver-devel" + echo "libwebsockets-devel" + echo "pulseaudio-libs-devel" + echo "openssl-devel" + echo "libvorbis-devel" + echo "libwebp-devel" -# Pango -sudo apt-get install -y libpango1.0-dev + read -p "Do you understand? (yes/no): " choice + case "$choice" in + yes|YES|y|Y) + sudo dnf install -y FFmpeg + sudo dnf install -y libavcodec-devel libavformat-devel libavutil-devel libswscale-devel + sudo dnf install -y freerdp2-devel + sudo dnf install -y pango-devel + sudo dnf install -y libssh2-devel + sudo dnf install -y libtelnet-devel + sudo dnf install -y libvncserver-devel + sudo dnf install -y libwebsockets-devel + sudo dnf install -y pulseaudio-libs-devel + sudo dnf install -y openssl-devel + sudo dnf install -y libvorbis-devel + sudo dnf install -y libwebp-devel + ;; + *) + echo "Installation cancelled." + ;; + esac + elif command -v yum &>/dev/null; then + echo "The following packages will be installed:" + echo "FFmpeg" + echo "libavcodec-devel libavformat-devel libavutil-devel libswscale-devel" + echo "freerdp2-devel" + echo "pango-devel" + echo "libssh2-devel" + echo "libtelnet-devel" + echo "libvncserver-devel" + echo "libwebsockets-devel" + echo "pulseaudio-libs-devel" + echo "openssl-devel" + echo "libvorbis-devel" + echo "libwebp-devel" -# libssh2 -sudo apt-get install -y libssh2-1-dev + read -p "Do you understand? (yes/no): " choice + case "$choice" in + yes|YES|y|Y) + sudo yum install -y FFmpeg + sudo yum install -y libavcodec-devel libavformat-devel libavutil-devel libswscale-devel + sudo yum install -y freerdp2-devel + sudo yum install -y pango-devel + sudo yum install -y libssh2-devel + sudo yum install -y libtelnet-devel + sudo yum install -y libvncserver-devel + sudo yum install -y libwebsockets-devel + sudo yum install -y pulseaudio-libs-devel + sudo yum install -y openssl-devel + sudo yum install -y libvorbis-devel + sudo yum install -y libwebp-devel + ;; + *) + echo "Installation cancelled." + ;; + esac + else + echo "Neither dnf nor yum found. Unsupported package manager." + fi + ;; + Ubuntu|Debian) + if command -v apt-get &>/dev/null; then + echo "The following packages will be installed:" + echo "ffmpeg" + echo "libavcodec-dev libavformat-dev libavutil-dev libswscale-dev" + echo "freerdp2-dev" + echo "libpango1.0-dev" + echo "libssh2-1-dev" + echo "libtelnet-dev" + echo "libvncserver-dev" + echo "libwebsockets-dev" + echo "libpulse-dev" + echo "libssl-dev" + echo "libvorbis-dev" + echo "libwebp-dev" -# libtelnet -sudo apt-get install -y libtelnet-dev + read -p "Do you understand? (yes/no): " choice + case "$choice" in + yes|YES|y|Y) + sudo apt-get install -y ffmpeg + sudo apt-get install -y libavcodec-dev libavformat-dev libavutil-dev libswscale-dev + sudo apt-get install -y freerdp2-dev + sudo apt-get install -y libpango1.0-dev + sudo apt-get install -y libssh2-1-dev + sudo apt-get install -y libtelnet-dev + sudo apt-get install -y libvncserver-dev + sudo apt-get install -y libwebsockets-dev + sudo apt-get install -y libpulse-dev + sudo apt-get install -y libssl-dev + sudo apt-get install -y libvorbis-dev + sudo apt-get install -y libwebp-dev + ;; + *) + echo "Installation cancelled." + ;; + esac + elif command -v dpkg &>/dev/null; then + echo "The following packages will be installed:" + echo "ffmpeg" + echo "libavcodec-dev libavformat-dev libavutil-dev libswscale-dev" + echo "freerdp2-dev" + echo "libpango1.0-dev" + echo "libssh2-1-dev" + echo "libtelnet-dev" + echo "libvncserver-dev" + echo "libwebsockets-dev" + echo "libpulse-dev" + echo "libssl-dev" + echo "libvorbis-dev" + echo "libwebp-dev" -# libVNCServer -sudo apt-get install -y libvncserver-dev + read -p "Do you understand? (yes/no): " choice + case "$choice" in + yes|YES|y|Y) + sudo dpkg -i + ;; + *) + echo "Installation cancelled." + ;; + esac + else + echo "Neither apt-get nor dpkg found. Unsupported package manager." + fi + ;; + *) + if command -v zypper &>/dev/null; then + echo "The following packages will be installed:" + echo "FFmpeg" + echo "libavcodec-devel libavformat-devel libavutil-devel libswscale-devel" + echo "freerdp2-devel" + echo "pango-devel" + echo "libssh2-devel" + echo "libtelnet-devel" + echo "libvncserver-devel" + echo "libwebsockets-devel" + echo "pulseaudio-libs-devel" + echo "openssl-devel" + echo "libvorbis-devel" + echo "libwebp-devel" -# libwebsockets -sudo apt-get install -y libwebsockets-dev + read -p "Do you understand? (yes/no): " choice + case "$choice" in + yes|YES|y|Y) + sudo zypper install -y FFmpeg + sudo zypper install -y libavcodec-devel libavformat-devel libavutil-devel libswscale-devel + sudo zypper install -y freerdp2-devel + sudo zypper install -y pango-devel + sudo zypper install -y libssh2-devel + sudo zypper install -y libtelnet-devel + sudo zypper install -y libvncserver-devel + sudo zypper install -y libwebsockets-devel + sudo zypper install -y pulseaudio-libs-devel + sudo zypper install -y openssl-devel + sudo zypper install -y libvorbis-devel + sudo zypper install -y libwebp-devel + ;; + *) + echo "Installation cancelled." + ;; + esac + elif command -v pkg &>/dev/null; then + echo "The following packages will be installed:" + echo "FFmpeg" + echo "libavcodec-devel libavformat-devel libavutil-devel libswscale-devel" + echo "freerdp2-devel" + echo "pango-devel" + echo "libssh2-devel" + echo "libtelnet-devel" + echo "libvncserver-devel" + echo "libwebsockets-devel" + echo "pulseaudio-libs-devel" + echo "openssl-devel" + echo "libvorbis-devel" + echo "libwebp-devel" -# PulseAudio -sudo apt-get install -y libpulse-dev + read -p "Do you understand? (yes/no): " choice + case "$choice" in + yes|YES|y|Y) + sudo pkg install -y + ;; + *) + echo "Installation cancelled." + ;; + esac + else + echo "Unsupported Linux distribution." + fi + ;; + esac + else + echo "Unsupported operating system." + fi +} -# OpenSSL -sudo apt-get install -y libssl-dev +identify_and_run -# libvorbis -sudo apt-get install -y libvorbis-dev -# libwebp -sudo apt-get install -y libwebp-dev +#done +#Rick Astley From eb190f5a3f4c7c203ed26bb29f1aa67b0f6b8d8c Mon Sep 17 00:00:00 2001 From: CooperDActor <136168153+CooperDActor@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:29:10 +1000 Subject: [PATCH 3/7] Rename Depend-on-debian.sh to Bash.sh --- Depend-on-debian.sh => Bash.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Depend-on-debian.sh => Bash.sh (100%) diff --git a/Depend-on-debian.sh b/Bash.sh similarity index 100% rename from Depend-on-debian.sh rename to Bash.sh From 1751adfb814de08926babdfd343fc2456f646d9c Mon Sep 17 00:00:00 2001 From: CooperDActor <136168153+CooperDActor@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:30:29 +1000 Subject: [PATCH 4/7] Create TEST.sh --- Depend/TEST.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 Depend/TEST.sh diff --git a/Depend/TEST.sh b/Depend/TEST.sh new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/Depend/TEST.sh @@ -0,0 +1 @@ + From c72de2111b4ba5f74ccaecb9106089f862f5c3bb Mon Sep 17 00:00:00 2001 From: CooperDActor <136168153+CooperDActor@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:31:18 +1000 Subject: [PATCH 5/7] Rename Bash.sh to Depends/Bash.sh --- Bash.sh => Depends/Bash.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Bash.sh => Depends/Bash.sh (100%) diff --git a/Bash.sh b/Depends/Bash.sh similarity index 100% rename from Bash.sh rename to Depends/Bash.sh From b0672ea4008ec6ede681a20d0a55ba521b41320b Mon Sep 17 00:00:00 2001 From: CooperDActor <136168153+CooperDActor@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:31:39 +1000 Subject: [PATCH 6/7] Delete Depend directory --- Depend/TEST.sh | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Depend/TEST.sh diff --git a/Depend/TEST.sh b/Depend/TEST.sh deleted file mode 100644 index 8b13789179..0000000000 --- a/Depend/TEST.sh +++ /dev/null @@ -1 +0,0 @@ - From 6b3afd7d449df527e7678728ca7af1a12367d55e Mon Sep 17 00:00:00 2001 From: CooperDActor <136168153+CooperDActor@users.noreply.github.com> Date: Sat, 27 Apr 2024 22:32:23 +1000 Subject: [PATCH 7/7] Rename Bash.sh to Bash.sh --- {Depends => Depend-on}/Bash.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {Depends => Depend-on}/Bash.sh (100%) diff --git a/Depends/Bash.sh b/Depend-on/Bash.sh similarity index 100% rename from Depends/Bash.sh rename to Depend-on/Bash.sh