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

69 lines
2.2 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.
##Installation Steps
1. Actualize your Liux-system and package sources with the following command:
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 tiny webserver with
2016-05-07 21:09:31 +02:00
>sudo apt-get install lighttpd
2016-05-07 20:56:25 +02:00
3. Now it's time to modify file-system-rights. Following steps would do it for you:
2016-05-07 21:09:31 +02:00
>sudo groupadd www-data
>sudo usermod -G www-data -a pi
2016-05-07 20:56:25 +02:00
If you use a current Raspbian Jessie, 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
4. Next step would be to install PHP5 and enbale all necessary modules:
2016-05-07 21:09:31 +02:00
>sudo apt-get install php5-common php5-cgi php5
>sudo lighty-enable-mod fastcgi
>sudo lighty-enable-mod fastcgi-php
>sudo service lighttpd force-reload
2016-05-07 20:56:25 +02:00
5. To install the dashboard you should install git
2016-05-07 21:09:31 +02:00
>sudo apt-get install git
2016-05-07 20:56:25 +02:00
6. Now you can clone the dashboard into your home-directory (`/home/pi`) with
2016-05-07 21:09:31 +02:00
>git clone https://github.com/dg9vh/MMDVMHost-Dashboard.git
2016-05-07 20:56:25 +02:00
7. Now it's time to copy the files into the webroot:
2016-05-07 21:09:31 +02:00
2016-05-07 20:56:25 +02:00
If you are using Raspbian Jessie, you do it with
2016-05-07 21:09:31 +02:00
2016-07-02 15:02:52 +02: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, you do it with
2016-05-07 21:09:31 +02:00
2016-07-02 15:02:52 +02:00
>sudo cp -R /home/pi/MMDVMHost-Dashboard /var/www/
2016-05-07 20:56:25 +02:00
8. To make sure that the dashboard is delivered by the webserver, remove the default "index.html" within the webroot-directory /var/www/html respective /var/www with
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
9. When this is done you should configure the dashboard by calling setup.php in your browser to create /var/www/html/config/config.php respective /var/www/config/config.php with your personal fits.
2016-05-07 21:09:31 +02:00
2016-05-07 20:56:25 +02:00
After all is done the dashboard should be reachable via http://IP-OF-YOUR-HOTSPOT/
##Configuration Of Dashboard
2016-05-07 21:09:31 +02:00
When configuring the dashboard take care of the directories containing the logs etc. If here you are doing something wrong, no last-heard or other info would be shown in the dashboard!