Skip to content

Commit

Permalink
Debian 12 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwmorris committed Oct 9, 2023
1 parent 51c50af commit b39463f
Show file tree
Hide file tree
Showing 9 changed files with 329 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ https://github.com/aaronwmorris/indi-allsky/wiki/FAQ
| Raspbian 11 32-bit | armhf | Compile indi with build_indi.sh |
| Raspbian 10 (Legacy) | armhf | (NOT RECOMMENDED) Compile indi with build_indi.sh |
| Armbian | aarch64/armhf | Compile indi with build_indi.sh<br />https://github.com/aaronwmorris/indi-allsky/wiki/Armbian-Tuning |
| Debian 12 | x86_64 | Compile indi with build_indi.sh |
| Debian 11 | x86_64 | Compile indi with build_indi.sh |
| Debian 10 | x86_64 | (NOT RECOMMENDED) Compile indi with build_indi.sh |
| Ubuntu 22.04 | aarch64 | Indi installed from ppa:mutlaqja/ppa |
Expand Down
49 changes: 48 additions & 1 deletion misc/build_indi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,54 @@ START_TIME=$(date +%s)


echo "**** Installing packages... ****"
if [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "12" ]]; then
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "12" ]]; then
BLOCKING_PACKAGES="indi-full libindi-data libindi-dev libindi-plugins"
for p in $BLOCKING_PACKAGES; do
if dpkg -s "$p" >/dev/null 2>&1; then
echo
echo
echo "Package $p needs to be uninstalled"
echo
exit 1
fi
done

sudo apt-get update
sudo apt-get -y install \
build-essential \
git \
ca-certificates \
cmake \
fxload \
pkg-config \
libavcodec-dev \
libavdevice-dev \
libboost-dev \
libboost-regex-dev \
libcfitsio-dev \
libcurl4-gnutls-dev \
libdc1394-dev \
libev-dev \
libfftw3-dev \
libftdi1-dev \
libftdi-dev \
libgmock-dev \
libgphoto2-dev \
libgps-dev \
libgsl-dev \
libjpeg-dev \
liblimesuite-dev \
libnova-dev \
libraw-dev \
librtlsdr-dev \
libtheora-dev \
libtiff-dev \
libusb-1.0-0-dev \
libnutclient-dev \
zlib1g-dev


elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "12" ]]; then
BLOCKING_PACKAGES="indi-full libindi-data libindi-dev libindi-plugins"
for p in $BLOCKING_PACKAGES; do
if dpkg -s "$p" >/dev/null 2>&1; then
Expand Down
18 changes: 17 additions & 1 deletion misc/setup_gpsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@ sudo true


echo "**** Installing packages... ****"
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "12" ]]; then
sudo apt-get update
sudo apt-get -y install \
telnet \
gpsd \
gpsd-tools \
gpsd-clients

elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
sudo apt-get update
sudo apt-get -y install \
telnet \
Expand All @@ -83,6 +91,14 @@ elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "10" ]]; then
gpsd-tools \
gpsd-clients

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "12" ]]; then
sudo apt-get update
sudo apt-get -y install \
telnet \
gpsd \
gpsd-tools \
gpsd-clients

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "11" ]]; then
sudo apt-get update
sudo apt-get -y install \
Expand Down
16 changes: 15 additions & 1 deletion misc/setup_hotspot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,14 @@ sudo true


echo "**** Installing packages... ****"
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "12" ]]; then

sudo apt-get update
sudo apt-get -y install \
network-manager \
tzdata

elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then

sudo apt-get update
sudo apt-get -y install \
Expand All @@ -93,6 +100,13 @@ elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "10" ]]; then
network-manager \
tzdata

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "12" ]]; then

sudo apt-get update
sudo apt-get -y install \
network-manager \
tzdata

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "11" ]]; then

sudo apt-get update
Expand Down
24 changes: 23 additions & 1 deletion misc/setup_mosquitto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,18 @@ sudo true


echo "**** Installing packages... ****"
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "12" ]]; then
#MOSQUITTO_USER=mosquitto
MOSQUITTO_GROUP=mosquitto

sudo apt-get update
sudo apt-get -y install \
mosquitto \
mosquitto-clients \
mosquitto-dev \
ca-certificates

elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
#MOSQUITTO_USER=mosquitto
MOSQUITTO_GROUP=mosquitto

Expand All @@ -74,6 +85,17 @@ elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "10" ]]; then
mosquitto-dev \
ca-certificates

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "12" ]]; then
#MOSQUITTO_USER=mosquitto
MOSQUITTO_GROUP=mosquitto

sudo apt-get update
sudo apt-get -y install \
mosquitto \
mosquitto-clients \
mosquitto-dev \
ca-certificates

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "11" ]]; then
#MOSQUITTO_USER=mosquitto
MOSQUITTO_GROUP=mosquitto
Expand Down
13 changes: 11 additions & 2 deletions misc/setup_rtc_i2c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,26 @@ sudo true


echo "**** Installing packages... ****"
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "12" ]]; then
sudo apt-get update
sudo apt-get -y install \
i2c-tools

elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
sudo apt-get update
sudo apt-get -y install \
i2c-tools


elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "10" ]]; then
sudo apt-get update
sudo apt-get -y install \
i2c-tools

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "12" ]]; then
sudo apt-get update
sudo apt-get -y install \
i2c-tools

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "11" ]]; then
sudo apt-get update
sudo apt-get -y install \
Expand Down
21 changes: 20 additions & 1 deletion misc/setup_usb_automount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,17 @@ sudo true


echo "**** Installing packages... ****"
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "12" ]]; then

sudo apt-get update
sudo apt-get -y install \
udisks2 \
udiskie \
exfatprogs \
dosfstools


elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then

sudo apt-get update
sudo apt-get -y install \
Expand All @@ -78,6 +88,15 @@ elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "10" ]]; then
exfat-utils \
dosfstools

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "12" ]]; then

sudo apt-get update
sudo apt-get -y install \
udisks2 \
udiskie \
exfatprogs \
dosfstools

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "11" ]]; then

sudo apt-get update
Expand Down
32 changes: 31 additions & 1 deletion misc/upgrade_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,22 @@ START_TIME=$(date +%s)


echo "**** Installing packages... ****"
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
if [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "12" ]]; then
PYTHON_BIN=python3

if [ "$CPU_ARCH" == "armv7l" ]; then
VIRTUALENV_REQ=requirements/requirements_latest_32.txt
elif [ "$CPU_ARCH" == "i686" ]; then
VIRTUALENV_REQ=requirements/requirements_latest_32.txt
elif [[ "$CPU_ARCH" == "aarch64" && "$CPU_BITS" == "32" ]]; then
VIRTUALENV_REQ=requirements/requirements_latest_32.txt
elif [[ "$CPU_ARCH" == "x86_64" && "$CPU_BITS" == "32" ]]; then
VIRTUALENV_REQ=requirements/requirements_latest_32.txt
else
VIRTUALENV_REQ=requirements/requirements_latest.txt
fi

elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "11" ]]; then
PYTHON_BIN=python3

if [ "$CPU_ARCH" == "armv7l" ]; then
Expand All @@ -110,6 +125,21 @@ elif [[ "$DISTRO_NAME" == "Raspbian" && "$DISTRO_RELEASE" == "10" ]]; then

VIRTUALENV_REQ=requirements/requirements_debian10.txt

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "12" ]]; then
PYTHON_BIN=python3

if [ "$CPU_ARCH" == "armv7l" ]; then
VIRTUALENV_REQ=requirements/requirements_latest_32.txt
elif [ "$CPU_ARCH" == "i686" ]; then
VIRTUALENV_REQ=requirements/requirements_latest_32.txt
elif [[ "$CPU_ARCH" == "aarch64" && "$CPU_BITS" == "32" ]]; then
VIRTUALENV_REQ=requirements/requirements_latest_32.txt
elif [[ "$CPU_ARCH" == "x86_64" && "$CPU_BITS" == "32" ]]; then
VIRTUALENV_REQ=requirements/requirements_latest_32.txt
else
VIRTUALENV_REQ=requirements/requirements_latest.txt
fi

elif [[ "$DISTRO_NAME" == "Debian" && "$DISTRO_RELEASE" == "11" ]]; then
PYTHON_BIN=python3

Expand Down
Loading

0 comments on commit b39463f

Please sign in to comment.