|
|
@ -79,16 +79,6 @@ function install_ubuntu_lts_latest_requirements() { |
|
|
|
python3-venv |
|
|
|
python3-venv |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Install Ubuntu 20.04 packages |
|
|
|
|
|
|
|
function install_ubuntu_focal_requirements() { |
|
|
|
|
|
|
|
install_ubuntu_common_requirements |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$SUDO apt-get install -y --no-install-recommends \ |
|
|
|
|
|
|
|
libavresample-dev \ |
|
|
|
|
|
|
|
qt5-default \ |
|
|
|
|
|
|
|
python-dev |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Detect OS using /etc/os-release file |
|
|
|
# Detect OS using /etc/os-release file |
|
|
|
if [ -f "/etc/os-release" ]; then |
|
|
|
if [ -f "/etc/os-release" ]; then |
|
|
|
source /etc/os-release |
|
|
|
source /etc/os-release |
|
|
@ -96,9 +86,6 @@ if [ -f "/etc/os-release" ]; then |
|
|
|
"jammy" | "kinetic" | "noble") |
|
|
|
"jammy" | "kinetic" | "noble") |
|
|
|
install_ubuntu_lts_latest_requirements |
|
|
|
install_ubuntu_lts_latest_requirements |
|
|
|
;; |
|
|
|
;; |
|
|
|
"focal") |
|
|
|
|
|
|
|
install_ubuntu_focal_requirements |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
*) |
|
|
|
*) |
|
|
|
echo "$ID $VERSION_ID is unsupported. This setup script is written for Ubuntu 24.04." |
|
|
|
echo "$ID $VERSION_ID is unsupported. This setup script is written for Ubuntu 24.04." |
|
|
|
read -p "Would you like to attempt installation anyway? " -n 1 -r |
|
|
|
read -p "Would you like to attempt installation anyway? " -n 1 -r |
|
|
@ -106,11 +93,7 @@ if [ -f "/etc/os-release" ]; then |
|
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]; then |
|
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]; then |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
if [ "$UBUNTU_CODENAME" = "focal" ]; then |
|
|
|
|
|
|
|
install_ubuntu_focal_requirements |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
install_ubuntu_lts_latest_requirements |
|
|
|
install_ubuntu_lts_latest_requirements |
|
|
|
fi |
|
|
|
|
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
if [[ -d "/etc/udev/rules.d/" ]]; then |
|
|
|
if [[ -d "/etc/udev/rules.d/" ]]; then |
|
|
|