MMDVMHost-Dashboard/linux-step-by-step.md

93 lines
2.7 KiB
Markdown
Raw Normal View History

2016-05-07 20:56:25 +02:00
# Linux Step-By-Step
This short howto describes step-by-step how to install the MMDVMHost-Dashboard on a Raspberry Pi (or similar) system using a Debian Linux distribution like Raspbian.
2016-05-07 20:56:25 +02:00
##Installation Steps
1. Update your system:
2016-05-07 21:09:31 +02:00
>sudo apt-get update && sudo apt-get upgrade
2016-05-07 20:56:25 +02:00
2. Install a lightweight webserver:
2016-05-07 21:09:31 +02:00
>sudo apt-get install lighttpd
2016-05-07 20:56:25 +02:00
3. Create a group for the webserver and add yourself to it:
2016-05-07 21:09:31 +02:00
>sudo groupadd www-data
>sudo usermod -G www-data -a pi
4. Set permissions so you and the webserver have full access to the files:
2016-05-07 20:56:25 +02:00
If you use a current Raspbian Jessie, Raspian Stretch & Raspbian Buster, use following commands:
2016-05-07 21:09:31 +02:00
>sudo chown -R www-data:www-data /var/www/html
>sudo chmod -R 775 /var/www/html
2016-05-07 20:56:25 +02:00
If you use a Raspian Wheezy use:
2016-05-07 21:09:31 +02:00
>sudo chown -R www-data:www-data /var/www
>sudo chmod -R 775 /var/www
2016-05-07 20:56:25 +02:00
2018-05-31 11:44:46 +02:00
5. Install PHP and enable the required modules:
If you use a Raspian Wheezy and Raspbian Jessie use:
2016-05-07 21:09:31 +02:00
>sudo apt-get install php5-common php5-cgi php5
2018-05-31 11:44:46 +02:00
If you use a Raspian Stretch or Raspbian Buster use:
2018-05-31 11:44:46 +02:00
>sudo apt-get install php7.3-common php7.3-cgi php
2016-05-07 21:09:31 +02:00
2018-05-31 11:44:46 +02:00
if you want to use the sqlite3-database based resolving of the operator-names you need following, too Raspian Wheezy and Raspbian Jessie:
>sudo apt-get install sqlite3 php5-sqlite
2018-05-31 11:44:46 +02:00
Raspian Stretch:
>sudo apt-get install sqlite3 php7.0-sqlite
Raspian Buster:
>sudo apt-get install sqlite3 php7.3-sqlite3
Now continue with:
2016-05-07 21:09:31 +02:00
>sudo lighty-enable-mod fastcgi
>sudo lighty-enable-mod fastcgi-php
>sudo service lighttpd force-reload
2016-05-07 20:56:25 +02:00
6. To install the dashboard you should use git for easy updates:
2016-05-07 21:09:31 +02:00
>sudo apt-get install git
2016-05-07 20:56:25 +02:00
7. Now you can clone the dashboard into your home directory:
2016-05-07 21:09:31 +02:00
2017-02-07 15:35:02 +01:00
>cd ~
>git clone https://github.com/dg9vh/MMDVMHost-Dashboard.git
2016-05-07 20:56:25 +02:00
8. Next, you need to copy the files into the webroot so they can be served by lighttpd:
2016-05-07 21:09:31 +02:00
If you are using Raspbian Jessie, Raspian Stretch or Raspbian Buster, run:
2016-05-07 21:09:31 +02:00
2017-02-07 15:35:02 +01:00
>sudo cp -R /home/pi/MMDVMHost-Dashboard/* /var/www/html/
2016-05-07 20:56:25 +02:00
If you are using Raspbian Wheezy, run:
2016-05-07 21:09:31 +02:00
2017-02-07 15:35:02 +01:00
>sudo cp -R /home/pi/MMDVMHost-Dashboard/* /var/www/
2016-05-07 20:56:25 +02:00
2017-02-07 15:37:12 +01:00
9. To make sure the dashboard is served instead of the default "index.html", cd into the webroot /var/www/html respectively /var/www and remove that file:
2016-05-07 21:09:31 +02:00
2016-07-02 15:02:52 +02:00
>sudo rm index.html
2016-05-07 20:56:25 +02:00
10. Finally, you need to configure the dashboard by pointing your browser to http://IP-OF-YOUR-HOTSPOT/setup.php . This will create /var/www/html/config/config.php respectively /var/www/config/config.php which contains your custom settings.
2016-05-07 21:09:31 +02:00
Now the dashboard should be reachable via http://IP-OF-YOUR-HOTSPOT/
2016-05-07 20:56:25 +02:00
##Configuration Of Dashboard
When configuring the dashboard, make sure to set the correct paths for logs etc. If they are wrong, no last-heard or similar information will be shown on the dashboard!