mirror of
https://github.com/itiligent/Easy-Guacamole-Installer.git
synced 2025-12-13 09:52:32 +00:00
force freerdp2 with Debian 13
This commit is contained in:
parent
5423eecfe0
commit
9499408573
2 changed files with 13 additions and 6 deletions
15
1-setup.sh
15
1-setup.sh
|
|
@ -145,6 +145,7 @@ RDP_SHARE_HOST="" # Custom RDP host name shown in Windows Explorer
|
||||||
RDP_SHARE_LABEL="RDP Share" # Custom RDP shared drive name in Windows Explorer (eg. "RDP_SHARE_LABEL on RDP_SHARE_HOST" eg. "your RDP share name on server01"
|
RDP_SHARE_LABEL="RDP Share" # Custom RDP shared drive name in Windows Explorer (eg. "RDP_SHARE_LABEL on RDP_SHARE_HOST" eg. "your RDP share name on server01"
|
||||||
RDP_PRINTER_LABEL="RDP Printer" # Custom RDP printer name shown in Windows
|
RDP_PRINTER_LABEL="RDP Printer" # Custom RDP printer name shown in Windows
|
||||||
CRON_DENY_FILE="/etc/cron.deny" # Distro's cron deny file
|
CRON_DENY_FILE="/etc/cron.deny" # Distro's cron deny file
|
||||||
|
FREERDP="freerdp2-dev" # Set default FreeRDP package
|
||||||
|
|
||||||
#######################################################################################################################
|
#######################################################################################################################
|
||||||
# Download GitHub setup scripts. BEFORE RUNNING SETUP, COMMENT OUT DOWNLOAD LINES OF ANY SCRIPTS YOU HAVE EDITED ! ####
|
# Download GitHub setup scripts. BEFORE RUNNING SETUP, COMMENT OUT DOWNLOAD LINES OF ANY SCRIPTS YOU HAVE EDITED ! ####
|
||||||
|
|
@ -219,6 +220,10 @@ elif [[ ${ID,,} = "debian" ]] || [[ ${ID,,} = "raspbian" ]]; then
|
||||||
LIBPNG="libpng-dev"
|
LIBPNG="libpng-dev"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#######################################################################################################################
|
||||||
|
# Ongoing fixes and workarounds as distros diverge/change #############################################################
|
||||||
|
#######################################################################################################################
|
||||||
|
|
||||||
# Check for the more recent versions of Tomcat currently supported by the distro
|
# Check for the more recent versions of Tomcat currently supported by the distro
|
||||||
if [[ $(apt-cache show tomcat10 2>/dev/null | egrep "Version: 10" | wc -l) -gt 0 ]]; then
|
if [[ $(apt-cache show tomcat10 2>/dev/null | egrep "Version: 10" | wc -l) -gt 0 ]]; then
|
||||||
TOMCAT_VERSION="tomcat10"
|
TOMCAT_VERSION="tomcat10"
|
||||||
|
|
@ -229,9 +234,10 @@ else
|
||||||
TOMCAT_VERSION="tomcat9"
|
TOMCAT_VERSION="tomcat9"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#######################################################################################################################
|
# Decide the appropriate FreeRDP package (Debian 13.0 has issues with FreeRDP3)
|
||||||
# Ongoing fixes and workarounds as distros diverge/change #############################################################
|
if [[ "${VERSION_CODENAME,,}" == "bookworm" || "${VERSION_CODENAME,,}" == "noble" ]]; then
|
||||||
#######################################################################################################################
|
FREERDP="freerdp3-dev"
|
||||||
|
fi
|
||||||
|
|
||||||
# Workaround for Debian incompatibilities with later Tomcat versions. (Adds the oldstable repo and downgrades the Tomcat version)
|
# Workaround for Debian incompatibilities with later Tomcat versions. (Adds the oldstable repo and downgrades the Tomcat version)
|
||||||
if [[ ${ID,,} = "debian" && ${VERSION_CODENAME,,} = *"bookworm"* ]] || [[ ${ID,,} = "debian" && ${VERSION_CODENAME,,} = *"trixie"* ]]; then #(checks for upper and lower case)
|
if [[ ${ID,,} = "debian" && ${VERSION_CODENAME,,} = *"bookworm"* ]] || [[ ${ID,,} = "debian" && ${VERSION_CODENAME,,} = *"trixie"* ]]; then #(checks for upper and lower case)
|
||||||
|
|
@ -311,7 +317,7 @@ fi
|
||||||
|
|
||||||
# Ensure SERVER_NAME is consistent with local host entries
|
# Ensure SERVER_NAME is consistent with local host entries
|
||||||
if [[ -z ${SERVER_NAME} ]]; then
|
if [[ -z ${SERVER_NAME} ]]; then
|
||||||
echo -e "${LYELLOW}Update Linux system HOSTNAME? [Enter to keep: ${HOSTNAME}]${LGREEN}"
|
echo -e "${LYELLOW} Update Linux system HOSTNAME? [Enter to keep: ${HOSTNAME}]${LGREEN}"
|
||||||
read -p " Enter Linux hostname : " SERVER_NAME
|
read -p " Enter Linux hostname : " SERVER_NAME
|
||||||
# If hit enter making no SERVER_NAME change, assume the existing hostname as current
|
# If hit enter making no SERVER_NAME change, assume the existing hostname as current
|
||||||
if [[ "${SERVER_NAME}" = "" ]]; then
|
if [[ "${SERVER_NAME}" = "" ]]; then
|
||||||
|
|
@ -735,6 +741,7 @@ export GUAC_VERSION=$GUAC_VERSION
|
||||||
export GUAC_SOURCE_LINK=$GUAC_SOURCE_LINK
|
export GUAC_SOURCE_LINK=$GUAC_SOURCE_LINK
|
||||||
export ID=$ID
|
export ID=$ID
|
||||||
export VERSION_ID=$VERSION_ID
|
export VERSION_ID=$VERSION_ID
|
||||||
|
export FREERDP=$FREERDP
|
||||||
export VERSION_CODENAME=$VERSION_CODENAME
|
export VERSION_CODENAME=$VERSION_CODENAME
|
||||||
export MYSQLJCON=$MYSQLJCON
|
export MYSQLJCON=$MYSQLJCON
|
||||||
export MYSQLJCON_SOURCE_LINK=$MYSQLJCON_SOURCE_LINK
|
export MYSQLJCON_SOURCE_LINK=$MYSQLJCON_SOURCE_LINK
|
||||||
|
|
|
||||||
|
|
@ -98,9 +98,9 @@ spinner() {
|
||||||
printf " "
|
printf " "
|
||||||
tput rc
|
tput rc
|
||||||
}
|
}
|
||||||
apt-get -qq -y install ${MYSQLPKG} ${TOMCAT_VERSION} ${JPEGTURBO} ${LIBPNG} ufw pwgen expect \
|
apt-get -qq -y install ${MYSQLPKG} ${TOMCAT_VERSION} ${JPEGTURBO} ${LIBPNG} ${FREERDP} ufw pwgen expect \
|
||||||
build-essential libcairo2-dev libtool-bin uuid-dev libavcodec-dev libavformat-dev libavutil-dev \
|
build-essential libcairo2-dev libtool-bin uuid-dev libavcodec-dev libavformat-dev libavutil-dev \
|
||||||
libswscale-dev freerdp3-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libwebsockets-dev \
|
libswscale-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libwebsockets-dev \
|
||||||
libpulse-dev libssl-dev libvorbis-dev libwebp-dev ghostscript &>>${INSTALL_LOG} &
|
libpulse-dev libssl-dev libvorbis-dev libwebp-dev ghostscript &>>${INSTALL_LOG} &
|
||||||
command_pid=$!
|
command_pid=$!
|
||||||
spinner $command_pid
|
spinner $command_pid
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue