Astrostuff for openSUSE scripts

Installing dependencies

#!/bin/bash

# Astrostuff-project
# https://sternenkarten.com/kstars-libindi-astrometry-net-on-opensuse/
# Script for openSUSE Tumbleweed
# This script install the dependencies for my astrostuff-project
#
# No warranty, that this script don´t break your system
# No assurance, that using this script, all will work as expected
# You use this script at your own risk and responsibility

#------------------- Preparation --------------------

set -e #exit on error

if [ $HOME = "/root" ]
then
 echo
 echo "********************************************"
 echo "*** Script nicht als root starten! ***" 
 echo "*** Abbruch ***"
 echo "********************************************"
 echo
 exit
fi

#----------------- Developing envirement ----------------

echo
echo "********************************************"
echo "*********** Developing envirement **********"
echo "********************************************"
echo

sudo zypper --non-interactive install \
libqt5-creator \
libqt5-qtmultimedia-devel

#------------------------ git ---------------------------

echo
echo "********************************************"
echo "******************** git *******************"
echo "********************************************"
echo

sudo zypper --non-interactive install \
git

#---------------------- libindi --------------------------

echo
echo "********************************************"
echo "*************** libindi-core ***************"
echo "********************************************"
echo

sudo zypper --non-interactive install \
libnova-devel \
libusb-1_0-devel \
libcurl-devel \
gsl-devel \
libogg-devel \
libtheora-devel \
gtest \
gmock

echo
echo "********************************************"
echo "******** libindi-3rd-party-drivers *********"
echo "***************** for **********************"
echo "**** indi-eqmod, indi-asi, indi-gphoto *****"
echo "********************************************"
echo

sudo zypper --non-interactive install \
libraw-devel \
libtiff-devel \
libgphoto2-devel

#------------------------- kstars ----------------------------

echo
echo "********************************************"
echo "****************** kstars ******************"
echo "********************************************"
echo

sudo zypper --non-interactive install \
extra-cmake-modules \
libqt5-qtsvg-devel \
libqt5-qtwebsockets-devel \
knotifyconfig-devel \
kauth-devel \
kconfig-devel \
kcrash-devel \
kdoctools-devel \
kwidgetsaddons-devel \
knewstuff-devel \
ki18n-devel \
kio-devel \
kplotting-devel \
knotifications-devel \
eigen3-devel \
wcslib-devel \
xplanet \
libQt5DataVisualization5-devel \
qtkeychain-qt5-devel

#----------------------- astrometry.net --------------------------

echo
echo "********************************************"
echo "*************** astrometry.net *************"
echo "********************************************"
echo

sudo zypper --non-interactive  install \
zlib-devel \
cfitsio-devel \
cairo-devel \
libjpeg8-devel \
libnetpbm-devel \
python-devel \
swig \
python2-numpy-devel \
python2-astropy

#------------------------ end -----------------------------

echo
echo "********************************************"
echo "******** end of dependency script **********"
echo "********************************************"
echo "******** continue cloning sources **********"
echo "********************************************"
echo

exit

 

Cloning sources

#!/bin/bash

# Astrostuff-project
# https://sternenkarten.com/kstars-libindi-astrometry-net-on-opensuse/
# Script for openSUSE Tumbleweed
# This script clone the sources for my astrostuff-project
#
# No warranty, that this script don´t break your system
# No assurance, that using this script, all will work as expected
# You use this script at your own risk and responsibility

#------------------- Preparation --------------------

set -e #exit on error

if [ $HOME = "/root" ]
then
 echo
 echo "********************************************"
 echo "*** Script nicht als root starten! ***" 
 echo "*** Abbruch ***"
 echo "********************************************"
 echo
 exit
fi

#-----------------working-directory-----------------------

mkdir ~/astrostuff #exit, if dir exists

#---------------------- libindi --------------------------

echo
echo "********************************************"
echo "*************** libindi-core ***************"
echo "********************************************"
echo

cd ~/astrostuff
git clone https://github.com/indilib/indi.git

#---------------------- astrometry.net --------------------------

echo
echo "********************************************"
echo "*************** astrometry.net *************"
echo "********************************************"
echo

cd ~/astrostuff
git clone https://github.com/dstndstn/astrometry.net.git

#------------------------- kstars ----------------------------

echo
echo "********************************************"
echo "****************** kstars ******************"
echo "********************************************"
echo

cd ~/astrostuff
git clone git://anongit.kde.org/kstars.git

#------------------------ end -----------------------------

echo
echo "********************************************"
echo "*********** end of clone script ************"
echo "********************************************"
echo "******** continue compiling sources ********"
echo "********************************************"
echo

exit

Compile and install

#!/bin/bash

# Astrostuff-project
# https://sternenkarten.com/kstars-libindi-astrometry-net-on-opensuse/
# Script for openSUSE Tumbleweed
# Compile and install-script for my astrostuff-project
#
# No warranty, that this script don´t break your system
# No assurance, that using this script, all will work as expected
# You use this script at your own risk and responsibility

#------------------- Preparation --------------------

set -e #exit on error

if [ $HOME = "/root" ]
then
 echo
 echo "********************************************"
 echo "*** Script nicht als root starten! ***" 
 echo "*** Abbruch ***"
 echo "********************************************"
 echo
 exit
fi

#---------------------- libindi --------------------------

echo
echo "********************************************"
echo "*************** libindi-core ***************"
echo "********************************************"
echo

mkdir -p ~/astrostuff/indi/build/libindi
cd ~/astrostuff/indi/build/libindi
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/astrostuff/indi/libindi
sudo make install

echo
echo "********************************************"
echo "********** libindi-3rd-party ***************"
echo "************* indi-eqmod *******************"
echo "********************************************"
echo

mkdir -p ~/astrostuff/indi/build/indi-eqmod
cd ~/astrostuff/indi/build/indi-eqmod
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/astrostuff/indi/3rdparty/indi-eqmod
sudo make install

echo
echo "********************************************"
echo "********** libindi-3rd-party ***************"
echo "************* indi-asi *******************"
echo "********************************************"
echo

mkdir -p ~/astrostuff/indi/build/indi-asi
cd ~/astrostuff/indi/build/indi-asi
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/astrostuff/indi/3rdparty/indi-asi
sudo make install

echo
echo "********************************************"
echo "********** libindi-3rd-party ***************"
echo "*********** udev-rule for asi **************"
echo "************* asi-common *******************"
echo "********************************************"
echo

mkdir -p ~/astrostuff/indi/build/asi-common
cd ~/astrostuff/indi/build/asi-common
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/astrostuff/indi/3rdparty/asi-common
sudo make install

echo
echo "********************************************"
echo "********** libindi-3rd-party ***************"
echo "************* indi-gphoto ******************"
echo "********************************************"
echo

mkdir -p ~/astrostuff/indi/build/indi-gphoto
cd ~/astrostuff/indi/build/indi-gphoto
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/astrostuff/indi/3rdparty/indi-gphoto
sudo make install

#----------------------- astrometry.net --------------------------

echo
echo "********************************************"
echo "*************** astrometry.net *************"
echo "********************************************"
echo

cd ~/astrostuff/astrometry.net
make NETPBM_INC="-I/usr/include/netpbm" NETPBM_LIB="-L/usr/lib64 -lnetpbm"
make extra NETPBM_INC="-I/usr/include/netpbm" NETPBM_LIB="-L/usr/lib64 -lnetpbm"
sudo make install

#------------------------- kstars ----------------------------

echo
echo "********************************************"
echo "****************** kstars ******************"
echo "********************************************"
echo

mkdir -p ~/astrostuff/kstars/build/kstars
cd ~/astrostuff/kstars/build/kstars
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/astrostuff/kstars
make
sudo make install

echo "******* end of installation astrostuff *******"
echo "*** you may want to grap some index-files ****"
echo "********* for astronemetry-solver ************"

exit