Compare commits
14 Commits
d5acd75020
...
3c0bc938f3
Author | SHA1 | Date |
---|---|---|
M0VUB | 3c0bc938f3 | |
M0VUB | 3049d7c648 | |
M0VUB | aca5f9d48f | |
M0VUB | ade7eb7068 | |
M0VUB | 9e9692d6fc | |
M0VUB | 57ce067f2e | |
M0VUB | 42eab96686 | |
M0VUB | a1bae08a5d | |
M0VUB | 27fe8fbe8d | |
M0VUB | f6942933e6 | |
M0VUB | a5e84bed71 | |
M0VUB | b0fb1d0696 | |
M0VUB | 4573161f06 | |
M0VUB | dfc01ff786 |
17
README.md
17
README.md
|
@ -1,11 +1,20 @@
|
|||
# xlxd-debian-installer
|
||||
# xlxd-debian-installer (Debian 11 Support!)
|
||||
## M0VUB Fork - N5AMD
|
||||
With thanks!
|
||||
|
||||
This script simply runs through the official install instructions found [HERE](https://github.com/LX3JL/xlxd). The script will install XLX along with setting up the web dashboard to view real-time activity. After installing this you will have a private or public D-Star, DMR, and YSF XLX Reflector.
|
||||
|
||||
At the start of 2020 a new version of XLX was released that allows for native C4FM connections. This means it's even simpler to run a multi-mode reflector. XLX now natively supports DMR, D-Star, and C4FM. C4FM and DMR do not require any transcoding hardware (AMBE) to work together. If you plan on using D-Star with any of the other modes, you will need hardware AMBE chips.
|
||||
|
||||
## New Features 2021
|
||||
1. Ubuntu / Debian 11 support
|
||||
2. Edit configuration during install
|
||||
3 .HTTPS / SSL Support (Certbot)
|
||||
5. Support for IMRS
|
||||
6. Support for G3 Terminal Mode
|
||||
|
||||
### To Install:
|
||||
1. Have a fresh Debian 9 OR 10 computer ready and up to date.
|
||||
1. Have a fresh Debian 9 10 OR 11 computer ready and up to date.
|
||||
2. Have both a FQDN and 3 digit XLX number in mind before beginning.
|
||||
3.
|
||||
```sh
|
||||
|
@ -13,6 +22,10 @@ git clone https://github.com/n5amd/xlxd-debian-installer
|
|||
cd xlxd-debian-installer
|
||||
./xlxd-debian-installer.sh
|
||||
```
|
||||
## Edit main.h
|
||||
During the install proccess you will be asked to edit main.h. This is where you can configure your MAX amount of modules and YSF reflector automation. If you are unfamiliar with this just simply "CONTL-X", hit "Y" and and the install proccess will automatically continue.
|
||||
## HTTPS / SSL support (Debian 11)
|
||||
A new feature in this script is the HTTPS / SSL certbot script. This is automatic. You will be prompted with info, just follow the on screen instructions. It is not required to have the dashboard SSL secured but is recommended! (Keep your browser happy!)
|
||||
## How to find what reflectors are available
|
||||
Find a current active reflector dashboard, for example, https://xlx.n5amd.com/index.php?show=reflectors and you will see the gaps in reflector numbers in the list. Those reflector numbers not listed are available.
|
||||
|
||||
|
|
|
@ -22,17 +22,18 @@ XLXDREPO=https://github.com/LX3JL/xlxd.git
|
|||
DMRIDURL=http://xlxapi.rlx.lu/api/exportdmr.php
|
||||
WEBDIR=/var/www/xlxd
|
||||
XLXINSTDIR=/root/reflector-install-files/xlxd
|
||||
DEP="git build-essential g++ apache2 php libapache2-mod-php php7.3-mbstring"
|
||||
DEP2="git build-essential g++ apache2 php libapache2-mod-php php7.4-mbstring"
|
||||
DEP="wget git build-essential g++ apache2 php libapache2-mod-php php7.0-mbstring"
|
||||
DEP2="wget git build-essential g++ apache2 php libapache2-mod-php php7.3-mbstring"
|
||||
DEP3="wget git build-essential g++ apache2 php libapache2-mod-php php-curl php-json php-cgi snapd figlet"
|
||||
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
||||
clear
|
||||
echo ""
|
||||
echo "XLX uses 3 digit numbers for its reflectors. For example: 032, 999, 099."
|
||||
echo "XLX uses 3 digit numbers for its reflectors. For example: 248, 999, 099."
|
||||
read -p "What 3 digit XRF number will you be using? " XRFDIGIT
|
||||
XRFNUM=XLX$XRFDIGIT
|
||||
echo ""
|
||||
echo "--------------------------------------"
|
||||
read -p "What is the FQDN of the XLX Reflector dashboard? Example: xlx.domain.com. " XLXDOMAIN
|
||||
read -p "What is the FQDN of the XLX Reflector dashboard? Example: xlx999.domain.com. " XLXDOMAIN
|
||||
echo ""
|
||||
echo "--------------------------------------"
|
||||
read -p "What E-Mail address can your users send questions to? " EMAIL
|
||||
|
@ -54,6 +55,9 @@ then
|
|||
elif [ $VERSION = 10 ]
|
||||
then
|
||||
apt-get -y install $DEP2
|
||||
elif [ $VERSION = 11 ]
|
||||
then
|
||||
apt install -y $DEP3
|
||||
fi
|
||||
|
||||
echo "------------------------------------------------------------------------------"
|
||||
|
@ -63,11 +67,17 @@ then
|
|||
echo "It looks like you have already compiled XLXD. If you want to install/complile xlxd again, delete the directory '/root/reflector-install-files/xlxd' and run this script again. "
|
||||
exit 0
|
||||
else
|
||||
echo "Downloading and compiling xlxd... "
|
||||
echo "Downloading and compiling LX4JL XLXD... "
|
||||
echo "------------------------------------------------------------------------------"
|
||||
cd $XLXINSTDIR
|
||||
figlet "XLXD Like a PRO..."
|
||||
git clone $XLXDREPO
|
||||
cd $XLXINSTDIR/xlxd/src
|
||||
sleep 5
|
||||
echo "------------------------------------------------------------------------------"
|
||||
echo "Edit your configuration"
|
||||
sleep 5
|
||||
nano main.h
|
||||
make clean
|
||||
make
|
||||
make install
|
||||
|
@ -111,6 +121,28 @@ sed -i "s/ysf-xlxd/xlxd/g" /etc/apache2/sites-available/$XLXDOMAIN.conf
|
|||
chown -R www-data:www-data /var/www/xlxd/
|
||||
chown -R www-data:www-data /xlxd/
|
||||
a2ensite $XLXDOMAIN
|
||||
if [ $VERSION = 11 ]
|
||||
then
|
||||
snap install core
|
||||
snap refresh core
|
||||
snap install --classic certbot
|
||||
ln -s /snap/bin/certbot /usr/bin/certbot
|
||||
ufw allow http
|
||||
ufw allow https
|
||||
systemctl restart apache2
|
||||
certbot --apache
|
||||
else
|
||||
echo ""
|
||||
echo "Ahh! Somthing went wrong with the snapd cerbot app, your SSL certificate"
|
||||
echo "The output above is the only indication as to why it might have failed. "
|
||||
echo "Run certbot --apache again to restart certbot installation"
|
||||
echo ""
|
||||
exit 0
|
||||
fi
|
||||
clear
|
||||
echo "Starting XLXD....."
|
||||
sleep 2
|
||||
figlet "XLXD Reflector"
|
||||
service xlxd start
|
||||
systemctl restart apache2
|
||||
echo "------------------------------------------------------------------------------"
|
||||
|
|
Loading…
Reference in New Issue