From dba4bdc890e951542d3efad9632ae4b34b40a3c1 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Sat, 26 Mar 2016 10:13:38 +0100 Subject: [PATCH] insert an install file for the dev branch --- boswatch.py | 2 +- install_dev.sh | 100 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 install_dev.sh diff --git a/boswatch.py b/boswatch.py index e892763..356ffb5 100755 --- a/boswatch.py +++ b/boswatch.py @@ -308,7 +308,7 @@ try: command = "" if globals.config.has_option("BOSWatch","rtl_path"): command = globals.config.get("BOSWatch","rtl_path") - command = command+"rtl_fm -d "+str(args.device)+" -f "+str(freqConverter.freqToHz(args.freq))+" -M fm -p "+str(args.error)+" -E DC -F 0 -l "+str(args.squelch)+" -g "+str(args.gain)+" -s 22050" + command = command+"rtl_fm -d "+str(args.device)+" -f "+str(freqConverter.freqToHz(args.freq))+" -M fm -p "+str(args.error)+" -E DC -F 0 -l "+str(args.squelch)+" -g "+str(args.gain)+" -s 22050" rtl_fm = subprocess.Popen(command.split(), #stdin=rtl_fm.stdout, stdout=subprocess.PIPE, diff --git a/install_dev.sh b/install_dev.sh new file mode 100644 index 0000000..3d969a4 --- /dev/null +++ b/install_dev.sh @@ -0,0 +1,100 @@ +#!/bin/sh +tput clear +tput civis +echo " ____ ____ ______ __ __ __ " +echo " / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ " +echo " / __ / / / /\__ \| | /| / / __ / __/ ___/ __ \ " +echo " / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / " +echo " /_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ " +echo " German BOS Information Script " +echo " by Bastian Schroll " +echo "" +echo "This may take a several minutes... Don't panic!" +echo "" +echo "Caution, script don't install a Webserver with PHP and MySQL" +echo "So you have to make up manually if you want to use MySQL support" + +mkdir -p ~/boswatch/install + +tput cup 13 15 +echo "[ 1/10] [#---------]" +tput cup 15 5 +echo "-> make a apt-get update................" +apt-get update -y > ~/boswatch/install/setup_log.txt 2>&1 + +tput cup 13 15 +echo "[ 2/10] [##--------]" +tput cup 15 5 +echo "-> download GIT an other stuff.........." +apt-get -y install git cmake build-essential libusb-1.0 qt4-qmake libpulse-dev libx11-dev sox >> ~/boswatch/install/setup_log.txt 2>&1 + +tput cup 13 15 +echo "[ 3/10] [###-------]" +tput cup 15 5 +echo "-> download rtl_fm......................" +cd ~/boswatch/install +git clone git://git.osmocom.org/rtl-sdr.git >> ~/boswatch/install/setup_log.txt 2>&1 +cd rtl-sdr/ + +tput cup 13 15 +echo "[ 4/10] [####------]" +tput cup 15 5 +echo "-> compile rtl_fm......................" +mkdir -p build && cd build +cmake ../ -DINSTALL_UDEV_RULES=ON >> ~/boswatch/install/setup_log.txt 2>&1 +make >> ~/boswatch/install/setup_log.txt 2>&1 +make install >> ~/boswatch/install/setup_log.txt 2>&1 +ldconfig >> ~/boswatch/install/setup_log.txt 2>&1 + +tput cup 13 15 +echo "[ 5/10] [#####-----]" +tput cup 15 5 +echo "-> download multimon-ng................" +cd ~/boswatch/install +git clone https://github.com/EliasOenal/multimonNG.git >> ~/boswatch/install/setup_log.txt 2>&1 +cd multimonNG/ + +tput cup 13 15 +echo "[ 6/10] [######----]" +tput cup 15 5 +echo "-> compile multimon-ng................." +mkdir -p build +cd build +qmake ../multimon-ng.pro >> ~/boswatch/install/setup_log.txt 2>&1 +make >> ~/boswatch/install/setup_log.txt 2>&1 +make install >> ~/boswatch/install/setup_log.txt 2>&1 + +tput cup 13 15 +echo "[ 7/10] [#######---]" +tput cup 15 5 +echo "-> download MySQL Connector for Python." +cd ~/boswatch/install +wget "http://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-1.0.9.tar.gz/from/http://cdn.mysql.com/" -O mysql-connector.tar >> ~/boswatch/install/setup_log.txt 2>&1 +tar xfv mysql-connector.tar >> ~/boswatch/install/setup_log.txt 2>&1 +cd mysql-connector-python* + +tput cup 13 15 +echo "[ 8/10] [########--]" +tput cup 15 5 +echo "-> install MySQL Connector for Python.." +chmod +x ./setup.py +./setup.py install >> ~/boswatch/install/setup_log.txt 2>&1 + +tput cup 13 15 +echo "[ 9/10] [#########-]" +tput cup 15 5 +echo "-> download BOSWatch..................." +cd ~/boswatch +git clone -b develop https://github.com/Schrolli91/BOSWatch >> ~/boswatch/install/setup_log.txt 2>&1 + +tput cup 13 15 +echo "[10/10] [##########]" +tput cup 15 5 +echo "-> configure..........................." +cd ~/boswatch +chmod +x * +echo "# BOSWatch - blacklist the DVB drivers to avoid conflict with the SDR driver\n blacklist dvb_usb_rtl28xxu \n blacklist rtl2830\n blacklist dvb_usb_v2\n blacklist dvb_core" >> /etc/modprobe.d/boswatch_blacklist_sdr.conf + +tput cup 17 1 +echo "BOSWatch are now installed in ~/boswatch/" +echo "Install ready!"