Skip to content

Commit

Permalink
Merge pull request #22 from Opendigitalradio/next
Browse files Browse the repository at this point in the history
Version 3.3.1
  • Loading branch information
colisee authored Jan 20, 2025
2 parents 38ea89d + 46def25 commit 661427f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 37 deletions.
2 changes: 1 addition & 1 deletion install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ If you want to quickly play with the tools before installing anything on your ho
Once the installation is completed, you can test the provided encoders and multiplex configuration files by applying the following steps:
1. Install dablin
```
sudo apt install --yes dablin
sudo apt-get install -y dablin
```
1. Access the supervison web user interface `http://<YOUR_HOST>:8001`, where <YOUR_HOST> is the host where you installed the dab script. The user is `odr` and the password is `odr`
1. Start the 4 encoders and `20-Multiplex`
Expand Down
45 changes: 9 additions & 36 deletions install/mmbtools-get
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# mmbtools-get - Build, install, uninstall, remove the software stack
# Copyright (C) 20222 Robin ALEXANDER
# Copyright (C) 2022..2024 Robin ALEXANDER
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -43,12 +43,6 @@ install_base () {
## Add the odr user to the dialout and audio groups
usermod --append --groups audio,dialout "${odr_user}"

# Add component non-free if necessary
if ! grep --quiet non-free /etc/apt/sources.list; then
sed -e "s/main/main non-free/g" -i /etc/apt/sources.list
apt update
fi

# Install the essential tools and create the tools root directory
apt-get update
apt-get install --yes \
Expand Down Expand Up @@ -170,36 +164,14 @@ install_dabmod () {
popd || return
}

install_srccmp () {
# Install mmb-tools: source companion
apt-get install --yes \
libfdk-aac-dev \
libzmq3-dev

if [ ! -d "${DIR_SRCCMP}" ]; then
pushd "${DIR_MMB}" || return
git clone https://github.com/Opendigitalradio/ODR-SourceCompanion.git --branch "${1}"
popd || return
fi

pushd "${DIR_SRCCMP}" || return
./bootstrap
./configure
make
make install
make clean
popd || return
}

install_encmgr () {
# Install mmb-tools: encoder manager
apt-get install --yes \
python3-cherrypy3 \
python3-jinja2 \
python3-pysnmp4 \
python3-serial \
python3-yaml \
supervisor
python3-yaml

if [ ! -d "${DIR_ENCMGR}" ]; then
pushd "${DIR_MMB}" || return
Expand Down Expand Up @@ -242,8 +214,13 @@ install_config () {
-i "${DIR_CONFIG}/supervisor/ODR-misc.conf"

## Restart supervisor
supervisorctl reread
supervisorctl reload
supervisorctl status 1>/dev/null
if [ $? -eq 0 ]; then
supervisorctl reread
supervisorctl reload
else
supervisord -c /etc/supervisor/supervisord.conf
fi

echo "Sample configuration files installed"
}
Expand All @@ -255,16 +232,12 @@ install () {
install_padenc "${1}"
install_dabmux "${1}"
install_dabmod "${1}"
install_srccmp "${1}"
install_encmgr "${1}"
install_config
ldconfig

chown --recursive ${odr_user}:${odr_user} ${DIR_MMB}

apt-get autoremove --yes
rm -rf /var/lib/apt/lists/*

echo "ODR-mmbTools suite and configuration files installed"
}

Expand Down

0 comments on commit 661427f

Please sign in to comment.