From 920dce96fe6aa3ad1e28750a68ee2cf1edd982c9 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Wed, 5 Jun 2024 04:23:27 -0400 Subject: [PATCH] Add Auto Installer Script For Ubuntu 24.04 LTS; #262 --- download-and-install-ubuntu2404lts.sh | 44 +++++++++++++++++++++++++++ examples/Install_Notes.md | 24 ++++++++++----- 2 files changed, 60 insertions(+), 8 deletions(-) create mode 100644 download-and-install-ubuntu2404lts.sh diff --git a/download-and-install-ubuntu2404lts.sh b/download-and-install-ubuntu2404lts.sh new file mode 100644 index 0000000..4542218 --- /dev/null +++ b/download-and-install-ubuntu2404lts.sh @@ -0,0 +1,44 @@ +#! /bin/bash +# +cdir=$(pwd) +clear +printf "Digital Speech Decoder: Florida Man Edition - Auto Installer\n +MBELib is considered a requirement on this build. +You must view the Patent Notice prior to continuing. +The Patent Notice can be found at the site below. +https://github.com/lwvmobile/mbelib#readme +Please confirm that you have viewed the patent notice by entering y below:\n\n" +read -p "Have you viewed the patent notice? y/N " ANSWER +ANSWER=$(printf "$ANSWER"|tr '[:upper:]' '[:lower:]') +if [ "$ANSWER" = "y" ]; then + sudo apt update + sudo apt install libpulse-dev pavucontrol libsndfile1-dev libfftw3-dev liblapack-dev socat libusb-1.0-0-dev rtl-sdr librtlsdr-dev libusb-1.0-0-dev cmake git wget make build-essential libitpp-dev libncurses-dev libncurses6 libcodec2-dev + chkitpp=$(sudo apt list libitpp-dev 2>&1|grep -ci "installed") + if [ "$chkitpp" -lt "1" ];then + printf "\nFor some reason, ITPP did NOT install!\nYou may have to manually install it.\n\n" + read -p "Press Enter to exit..." x + exit 1 + fi + git clone https://github.com/lwvmobile/mbelib + cd mbelib + git checkout ambe_tones + mkdir build + cd build + cmake .. + make -j $(nproc) + sudo make install + sudo ldconfig + cd $cdir + git clone https://github.com/lwvmobile/dsd-fme + cd dsd-fme + #git checkout audio_work + mkdir build + cd build + cmake .. + make -j $(nproc) + sudo make install + sudo ldconfig +else + printf "\nSorry, you cannot build DSD-FME without acknowledging the Patent Notice.\nExiting...\n\n" + exit 2 +fi \ No newline at end of file diff --git a/examples/Install_Notes.md b/examples/Install_Notes.md index 6ffd769..707f978 100644 --- a/examples/Install_Notes.md +++ b/examples/Install_Notes.md @@ -1,6 +1,6 @@ ## How to clone and build this branch -### Ubuntu 22.04/20.04/LM20/Debian Bullseye or Newer: +### Ubuntu 22.04/20.04/LM20/Debian Bullseye: Using the included download-and-install.sh should make for a simple and painless clone, build, and install on newer Debian/Ubuntu/Mint/Pi systems. Simply acquire or copy the script, and run it. Update: Ubuntu 23.04 and RPi Bullseye 64-bit has been tested working with the installer script and functions appropriately. @@ -8,16 +8,21 @@ If you need all dependencies build and installed first (only on Debian/Ubuntu/Mi ``` wget https://raw.githubusercontent.com/lwvmobile/dsd-fme/audio_work/download-and-install.sh -chmod +x download-and-install.sh -./download-and-install.sh +sh download-and-install.sh +``` + +### Ubuntu 24.04 LTS (Updated Ncurses Dependencies) + +``` +wget https://raw.githubusercontent.com/lwvmobile/dsd-fme/aw_dev/download-and-install-ubuntu2404lts.sh +sh download-and-install-ubuntu2404lts.sh ``` ### Arch Based Distros: ``` wget https://raw.githubusercontent.com/lwvmobile/dsd-fme/audio_work/download-and-install-Arch.sh -chmod +x download-and-install-Arch.sh -./download-and-install-Arch.sh +sh download-and-install-Arch.sh ``` ### Other: @@ -26,8 +31,7 @@ If you have dependencies already installed, please run this instead: ``` wget https://raw.githubusercontent.com/lwvmobile/dsd-fme/audio_work/download-and-install-nodeps.sh -chmod +x download-and-install-nodeps.sh -./download-and-install-nodeps.sh +sh download-and-install-nodeps.sh ``` ## Manual Install @@ -38,7 +42,11 @@ Debian/Mint/Ubuntu/Pi ``` sudo apt update -sudo apt install libpulse-dev pavucontrol libsndfile1-dev libfftw3-dev liblapack-dev socat libusb-1.0-0-dev libncurses5 libncurses5-dev rtl-sdr librtlsdr-dev libusb-1.0-0-dev cmake git wget make build-essential libitpp-dev libncursesw5-dev libcodec2-dev +#Ubuntu 22.04 lts and lesser +sudo apt install libpulse-dev pavucontrol libsndfile1-dev libfftw3-dev liblapack-dev socat libusb-1.0-0-dev libncurses5 libncurses5-dev rtl-sdr librtlsdr-dev libusb-1.0-0-dev cmake git wget make build-essential libitpp-dev +#Ubuntu 24.04 lts +#sudo apt install libpulse-dev pavucontrol libsndfile1-dev libfftw3-dev liblapack-dev socat libusb-1.0-0-dev rtl-sdr librtlsdr-dev libusb-1.0-0-dev cmake git wget make build-essential libitpp-dev libncurses-dev libncurses6 libcodec2-dev +libncursesw5-dev libcodec2-dev ``` Fedora 36/37 -- from https://github.com/lwvmobile/dsd-fme/issues/99