mirror of https://gitlab.com/hp3icc/emq-TE1.git
update
This commit is contained in:
parent
47bf3f2b25
commit
0356fa2606
|
|
@ -40,7 +40,7 @@ fi
|
|||
# audio raspberry
|
||||
#########################################################################################################################
|
||||
if [ "$(cat /proc/cpuinfo | grep 'Raspberry')" != "" ]; then
|
||||
cat > /etc/asound.conf <<- "EOFA"
|
||||
sudo cat > /etc/asound.conf <<- "EOFA"
|
||||
pcm.!default {
|
||||
type hw
|
||||
card 1
|
||||
|
|
@ -55,12 +55,12 @@ fi
|
|||
#########################################################################################################################
|
||||
# GPSD
|
||||
#########################################################################################################################
|
||||
cat > /etc/udev/rules.d/49-usb-gps.rules <<- "EOF"
|
||||
sudo cat > /etc/udev/rules.d/49-usb-gps.rules <<- "EOF"
|
||||
KERNEL=="ttyACM[0-9]*", SUBSYSTEM=="tty", ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a7", SYMLINK="ttyACM0"
|
||||
EOF
|
||||
sudo udevadm control --reload-rules
|
||||
|
||||
cat > /etc/default/gpsd <<- "EOF"
|
||||
sudo cat > /etc/default/gpsd <<- "EOF"
|
||||
START_DAEMON="true"
|
||||
GPSD_OPTIONS="-r -n"
|
||||
DEVICES="/dev/ttyACM0"
|
||||
|
|
@ -81,7 +81,7 @@ if grep -i -E "$palabra" "$archivo" >/dev/null 2>&1; then
|
|||
fi
|
||||
done
|
||||
systemctl stop gpsd.socket gpsd.service
|
||||
cat > /lib/systemd/system/gpsd.service <<- "EOFT"
|
||||
sudo cat > /lib/systemd/system/gpsd.service <<- "EOFT"
|
||||
[Unit]
|
||||
Description=GPS (Global Positioning System) Daemon
|
||||
Requires=gpsd.socket
|
||||
|
|
@ -131,7 +131,7 @@ wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download
|
|||
|
||||
###################
|
||||
|
||||
cat > /lib/systemd/system/direwolf.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/direwolf.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=Direwolf Service
|
||||
After=multi-user.target
|
||||
|
|
@ -146,7 +146,7 @@ WantedBy=multi-user.target
|
|||
|
||||
EOF
|
||||
########
|
||||
cat > /opt/direwolf/rtl.sh <<- "EOF"
|
||||
sudo cat > /opt/direwolf/rtl.sh <<- "EOF"
|
||||
#!/bin/sh
|
||||
###########################################################
|
||||
# #
|
||||
|
|
@ -165,7 +165,7 @@ EOF
|
|||
#
|
||||
sudo chmod +x /opt/direwolf/rtl.sh
|
||||
#
|
||||
cat > /opt/direwolf/sdr.conf <<- "EOF"
|
||||
sudo cat > /opt/direwolf/sdr.conf <<- "EOF"
|
||||
#############################################################
|
||||
# #
|
||||
# Configuration file for DireWolf #
|
||||
|
|
@ -199,7 +199,7 @@ IGLOGIN HP3ICC-10 12345
|
|||
#KISSPORT 8001
|
||||
EOF
|
||||
###
|
||||
cat > /opt/direwolf/gpsd.conf <<- "EOF"
|
||||
sudo cat > /opt/direwolf/gpsd.conf <<- "EOF"
|
||||
#############################################################
|
||||
# #
|
||||
# Configuration file for DireWolf #
|
||||
|
|
@ -235,7 +235,7 @@ SMARTBEACONING 25 0:30 5 2:00 0:10 30 255
|
|||
|
||||
EOF
|
||||
#####
|
||||
cat > /opt/direwolf/dw.conf <<- "EOF"
|
||||
sudo cat > /opt/direwolf/dw.conf <<- "EOF"
|
||||
#############################################################
|
||||
# #
|
||||
# Configuration file for DireWolf #
|
||||
|
|
@ -383,7 +383,7 @@ sudo sed -i "s/144.800 VHF Port/144.390MHz VHF APRS/g" /opt/direwolf_webstat/co
|
|||
sudo sed -i "s/0,1/0/g" /opt/direwolf_webstat/config.php
|
||||
sudo sed -i 's/href="https:\/\/github.com\/IZ7BOJ\/direwolf_webstat" target/href="https:\/\/gitlab.com\/hp3icc\/emq-TE1\/" target="_blank">emq-TE1+ Raspbian Proyect<\/a> by HP3ICC, <a href="https:\/\/github.com\/IZ7BOJ\/direwolf_webstat" target/' /opt/direwolf_webstat/summary.php
|
||||
#
|
||||
cat > /lib/systemd/system/http.server-dw.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/http.server-dw.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=PHP http.server.DW
|
||||
After=network.target
|
||||
|
|
@ -400,7 +400,7 @@ EOF
|
|||
# rtl-sdr
|
||||
#########################################################################################################################
|
||||
|
||||
cat > /etc/modprobe.d/raspi-blacklist.conf <<- "EOF"
|
||||
sudo cat > /etc/modprobe.d/raspi-blacklist.conf <<- "EOF"
|
||||
blacklist snd_bcm2835
|
||||
# blacklist spi and i2c by default (many users don't need them)
|
||||
#blacklist spi-bcm2708
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ sudo make install
|
|||
|
||||
###################
|
||||
|
||||
cat > /lib/systemd/system/dmrgw.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/dmrgw.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=DMRGateway Service
|
||||
After=syslog.target network.target
|
||||
|
|
@ -34,11 +34,8 @@ Restart=on-failure
|
|||
WantedBy=multi-user.target
|
||||
|
||||
EOF
|
||||
############
|
||||
|
||||
|
||||
########
|
||||
cat > /opt/DMRGateway/DMRGateway.ini <<- "EOF"
|
||||
####################
|
||||
sudo cat > /opt/DMRGateway/DMRGateway.ini <<- "EOF"
|
||||
[Service]
|
||||
ServiceStart=0
|
||||
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ sed -i "s/Language=en_US/Language=es_ES/g" /opt/NXDNGateway/NXDNGateway.ini
|
|||
sed -i "s/Language=en_US/Language=es_ES/g" /opt/P25Gateway/P25Gateway.ini
|
||||
|
||||
#
|
||||
cat > /opt/MMDVM_Bridge/MMDVM_Bridge.ini <<- "EOF"
|
||||
sudo cat > /opt/MMDVM_Bridge/MMDVM_Bridge.ini <<- "EOF"
|
||||
[General]
|
||||
Callsign=N0CALL
|
||||
Id=1234567
|
||||
|
|
@ -302,7 +302,7 @@ wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/md380-emu.s
|
|||
|
||||
rm /var/log/mmdvm/*
|
||||
|
||||
cat > /lib/systemd/system/http.server-dvs.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/http.server-dvs.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=PHP http.server.DVS
|
||||
After=network.target
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ for app in "${apps[@]}"; do
|
|||
check_and_install $app
|
||||
done
|
||||
|
||||
cat > /etc/fail2ban/jail.local <<- "EOF"
|
||||
sudo cat > /etc/fail2ban/jail.local <<- "EOF"
|
||||
[sshd]
|
||||
enabled = true
|
||||
filter = sshd
|
||||
|
|
@ -91,14 +91,14 @@ bantime = 1m
|
|||
|
||||
|
||||
EOF
|
||||
cat > /etc/fail2ban/filter.d/ufw.aggressive.conf <<- "EOF"
|
||||
sudo cat > /etc/fail2ban/filter.d/ufw.aggressive.conf <<- "EOF"
|
||||
[Definition]
|
||||
failregex = [UFW BLOCK].+SRC=<HOST> DST
|
||||
ignoreregex =
|
||||
|
||||
EOF
|
||||
|
||||
cat > /bin/auto-ufw.sh <<- "EOF"
|
||||
sudo cat > /bin/auto-ufw.sh <<- "EOF"
|
||||
#!/bin/bash
|
||||
|
||||
start=$(date +"%Y-%m-%d %T")
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ sudo sed -i 's/#dtparam=spi=on/dtparam=spi=on/' /boot/config.txt
|
|||
sudo sed -i 's/#dtoverlay=pi3-disable-bt/dtoverlay=pi3-disable-bt/' /boot/config.txt
|
||||
sudo sed -i 's/#enable_uart=1/enable_uart=1/' /boot/config.txt
|
||||
|
||||
cat > /lib/systemd/system/monp.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/monp.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=sudo modprobe i2c-dev
|
||||
#Wants=network-online.target
|
||||
|
|
@ -84,7 +84,7 @@ groupadd mmdvm
|
|||
useradd mmdvm -g mmdvm -s /sbin/nologin
|
||||
chown mmdvm /var/log/
|
||||
#######
|
||||
cat > /lib/systemd/system/mmdvmh.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/mmdvmh.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=MMDVM Host Service
|
||||
After=syslog.target network.target
|
||||
|
|
@ -106,7 +106,7 @@ WantedBy=multi-user.target
|
|||
EOF
|
||||
#
|
||||
|
||||
cat > /opt/MMDVMHost/MMDVM.ini <<- "EOF"
|
||||
sudo cat > /opt/MMDVMHost/MMDVM.ini <<- "EOF"
|
||||
[Service]
|
||||
ServiceStart=0
|
||||
|
||||
|
|
@ -524,7 +524,7 @@ if [ -f "/opt/wdp5" ]
|
|||
then
|
||||
echo "found file"
|
||||
else
|
||||
cat > /opt/wdp5 <<- "EOFX"
|
||||
sudo cat > /opt/wdp5 <<- "EOFX"
|
||||
###########################################
|
||||
# Select number port, MMDVMHost Dashboard #
|
||||
###########################################
|
||||
|
|
@ -583,7 +583,7 @@ variable2=$(date +'%Y' | tail -c 5)
|
|||
sudo sed -i "s/YK00/$variable2/g" /opt/MMDVMHost-Websocketboard/html/index.html
|
||||
|
||||
############################
|
||||
cat > /lib/systemd/system/http.server-mmdvmh.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/http.server-mmdvmh.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=Python3 http.server.mmdvmhost
|
||||
After=network.target
|
||||
|
|
@ -601,7 +601,7 @@ WantedBy=multi-user.target
|
|||
|
||||
EOF
|
||||
#
|
||||
cat > /lib/systemd/system/logtailer-mmdvmh.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/logtailer-mmdvmh.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=Python3 logtailer for MMDVMDash
|
||||
After=network.target
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ fi
|
|||
cp -r /opt/MMDVM_CM/NXDN2DMR/ /opt/
|
||||
sudo chmod +x /opt/NXDN2DMR/*
|
||||
###########################
|
||||
cat > /lib/systemd/system/nxdn2dmr.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/nxdn2dmr.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=NXDN2DMR Service
|
||||
After=syslog.target network.target
|
||||
|
|
@ -33,7 +33,7 @@ WantedBy=multi-user.target
|
|||
|
||||
EOF
|
||||
###########################
|
||||
cat > /opt/NXDN2DMR/NXDN2DMR.ini <<- "EOF"
|
||||
sudo cat > /opt/NXDN2DMR/NXDN2DMR.ini <<- "EOF"
|
||||
[Info]
|
||||
RXFrequency=0
|
||||
TXFrequency=0
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ cd pymultimonaprs
|
|||
sudo python2 setup.py install
|
||||
#############
|
||||
|
||||
cat > /lib/systemd/system/multimon-rtl.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/multimon-rtl.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=Multimon-RTL Service
|
||||
Wants=network-online.target
|
||||
|
|
@ -34,7 +34,7 @@ ExecStart=sudo pymultimonaprs
|
|||
WantedBy=multi-user.target
|
||||
EOF
|
||||
#####################
|
||||
cat > /etc/pymultimonaprs.json <<- "EOF"
|
||||
sudo cat > /etc/pymultimonaprs.json <<- "EOF"
|
||||
{
|
||||
"callsign": "HP3ICC-10",
|
||||
"passcode": "12345",
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ sudo chmod +x /opt/YSF2DMRGW/*
|
|||
sudo chmod +x /opt/YSF2DMR/*
|
||||
|
||||
#########
|
||||
cat > /lib/systemd/system/ysf2dmr.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/ysf2dmr.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=YSF2DMR Service
|
||||
After=syslog.target network.target
|
||||
|
|
@ -40,7 +40,7 @@ WantedBy=multi-user.target
|
|||
|
||||
EOF
|
||||
###########################
|
||||
cat > /lib/systemd/system/ysf2dmrgw.service <<- "EOF"
|
||||
sudo cat > /lib/systemd/system/ysf2dmrgw.service <<- "EOF"
|
||||
[Unit]
|
||||
Description=YSF2DMRGW Service
|
||||
After=syslog.target network.target
|
||||
|
|
@ -62,7 +62,7 @@ WantedBy=multi-user.target
|
|||
|
||||
EOF
|
||||
###########################
|
||||
cat > /opt/YSF2DMR/YSF2DMR.ini <<- "EOF"
|
||||
sudo cat > /opt/YSF2DMR/YSF2DMR.ini <<- "EOF"
|
||||
[Info]
|
||||
RXFrequency=438800000
|
||||
TXFrequency=438800000
|
||||
|
|
@ -152,7 +152,7 @@ Description=APRS Description
|
|||
|
||||
EOF
|
||||
###################
|
||||
cat > /opt/YSF2DMRGW/YSF2DMR.ini <<- "EOF"
|
||||
sudo cat > /opt/YSF2DMRGW/YSF2DMR.ini <<- "EOF"
|
||||
[Service]
|
||||
ServiceStart=0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue