You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
Open for your feature [requests](https://github.com/femto-code/Rasberry-Pi-Dashboard/pulls) or [issues](https://github.com/femto-code/Rasberry-Pi-Dashboard/issues)!
Copy file name to clipboardExpand all lines: README.md
+23-22Lines changed: 23 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,20 +17,17 @@
17
17
</div>
18
18
<br>
19
19
<palign="center"><ahref="https://github.com/femto-code/Raspberry-Pi-Dashboard/issues">Report a bug</a> | <ahref="https://github.com/femto-code/Raspberry-Pi-Dashboard/discussions">Request a new feature</a> | <ahref="https://github.com/femto-code/Raspberry-Pi-Dashboard/pulls">Help develop this project</a></p>
20
-
<palign="center"><i>Loved the project? Please consider giving a star</i> :)</p>
21
20
22
21
## Features
23
22
24
-
- Live surveillance of RPi hardware (CPU temperature, frequency, loads etc.) with customizable warning thresholds
23
+
- Live surveillance of RPi hardware (CPU temperature, frequency, load etc.) with customizable warning thresholds
25
24
- Detailed software/hardware information (web server, PHP, storage / partition workload, core voltage, plugged USB devices, kernel version, model specifications, OS, CPU, network config)
26
25
- Protected access with password login ([configure password](https://github.com/femto-code/Raspberry-Pi-Dashboard#configure-password-manually))
27
-
-Power (shutdown/reboot) Raspberry Pi with scheduling options ([setup instructions](https://github.com/femto-code/Raspberry-Pi-Dashboard#enable-shutdown--reboot-optional))
28
-
- Responsive mobile web-app
26
+
-Shutdown / Reboot your Raspberry Pi with scheduling options ([setup instructions](https://github.com/femto-code/Raspberry-Pi-Dashboard#enable-shutdown--reboot-optional))
27
+
- Responsive mobile webapp
29
28
- Dark Theme (manual / auto)
30
29
31
-
> Update your existing dashboard setup by navigating to project root folder and running `git pull` in the terminal. Please keep in mind, this only works if there are no changes in the workspace.
32
-
33
-
### ❗ If you run into issues and getting error message "Permission denied" or "unable to open file": [see issue #22](https://github.com/femto-code/Raspberry-Pi-Dashboard/issues/22) or [read here](https://github.com/femto-code/Raspberry-Pi-Dashboard#valid-permissions) for help and instructions to solve. ❗
30
+
### 🆕 Use the installer script to set up the dashboard!
- Running Web Server (e.g. *Lighttpd* or *Apache*) with *PHP* installed
51
+
- Running web server (e.g. *Lighttpd* or *Apache*) with *PHP* installed
48
52
- Installed *Git* (comes preinstalled on Raspberry Pi OS / formerly Raspbian as well as other Linux distros)
49
-
- Valid permissions within `/var/www/html`
53
+
- Valid permissions set within `/var/www/html`
50
54
51
55
#### Valid permissions
52
56
53
57
The following configuration is the commonly recommended set-up for your web server folder and is meant to be secure to a certain level (with the **minimum** need of permissions):
54
58
55
-
1.First, make sure `www-data` group exists and add your current user to that system group:<br>
59
+
1.Make sure `www-data` group exists and add your current user to that system group:<br>
56
60
_(if you are using another distro than Raspberry Pi OS the username of web server can differ)_<br>
57
61
`sudo groupadd www-data`<br>
58
62
`sudo usermod -a -G www-data www-data`<br>
59
63
`sudo usermod -a -G www-data <yourlogin>` (replace `<yourlogin>` with your username)
60
64
61
-
1.Second, give the ownership of web folder to the `www-data` group and *your* user.<br>The following commands ensure that you have _full_ access on the files within the web folder while group members (`www-data`) cannot edit/write for security reasons:<br>
65
+
1.Give the ownership of web folder to the `www-data` group and *your* user.<br>The following commands ensure that you have _full_ access on the files within the web folder while group members (`www-data`) cannot edit/write for security reasons:<br>
62
66
`sudo chown -R <yourlogin>:www-data /var/www/html` (replace `<yourlogin>` with your username)<br>
63
67
`sudo chmod -R 755 /var/www/html`
64
68
65
-
3. Reboot your RPi (for permission changes to take effect)
69
+
3. Reboot your RPi or log out and back in (for permission changes to take effect)
66
70
67
71
### Setup project
68
72
69
-
- navigate to your web folder: `cd /var/www/html`
70
-
- clone this GitHub repository: `git clone https://github.com/femto-code/Rasberry-Pi-Dashboard.git <your_subfolder_name>`<br>(replace `<your_subfolder_name>` with a name of your choice accordingly, you can also rename the base folder at any time afterwards)
71
-
-***Alternatively*** download and extract ZIP file from [releases](https://github.com/femto-code/Raspberry-Pi-Dashboard/releases)
73
+
- clone the project into your web folder:<br>`git clone https://github.com/femto-code/Rasberry-Pi-Dashboard.git /var/www/html/<your_subfolder_name>`<br>(replace `<your_subfolder_name>` with a name of your choice accordingly, you can also rename this base folder at any time afterwards)
74
+
-***Alternatively*** download this repo as a ZIP file and extract it
72
75
- Run in a terminal to set valid permissions:
73
76
-`sudo chown -R <yourlogin>:www-data /var/www/html/<your_subfolder_name>`<br>(replace `<yourlogin>` with your username)
- this will allow the `www-data` user exclusively to write/edit (7**7**5) files **only in your dashboard folder**!
76
79
> An erroneous permission typically results in the situation where the user responsible for web server (e.g. `www-data`) does not have rights to create/modify the local config file for saving your dashboard adjustments (your custom thresholds, password etc.). In this case, the dashboard won't work at all and will throw this error.
77
-
- **DONE!** Open web browser with URL: `http://IP_OF_YOUR_RPI/<your_subfolder_name>`
80
+
- **DONE!** Open web browser with URL: `http://<IP_OF_YOUR_RPI>/<your_subfolder_name>`
78
81
79
82
## Additional configuration / Help
80
83
@@ -90,7 +93,7 @@ The `vcgencmd` command (specifically dedicated to RPi firmware) is a system comm
90
93
91
94
#### Enable shutdown / reboot (optional)
92
95
93
-
> Recommended only, if your RPi is **not** accessible over the Internet!
96
+
> Recommended only, if your RPi is **not** accessible from outside your local (LAN) network!
94
97
95
98
In order to use the remote shutdown functionality you have to give the user `www-data` advanced rights for running one specific command:
96
99
1. Run `sudo visudo` to open the editor for adjusting user rights
@@ -104,7 +107,7 @@ In order to use the remote shutdown functionality you have to give the user `www
104
107
- forgotten password (and access to dashboard therefore impossible)
105
108
106
109
1. Go to [https://www.md5-generator.de/](https://www.md5-generator.de/) and generate *MD5 encrypted passphrase*.
107
-
2. Open `local.config`(dynamically created at first start) and apply your custom passphrase string (generated in **step 1**) as follows (don't alter other lines):
110
+
2. Open `local.config`or create it and apply your custom passphrase string (generated in **step 1**) as follows (don't alter other lines):
108
111
```
109
112
[...]
110
113
'general' =>
@@ -116,9 +119,7 @@ In order to use the remote shutdown functionality you have to give the user `www
116
119
[...]
117
120
```
118
121
119
-
4. Remember password and enjoy!
120
-
121
-
> **As always**: Make sure to change the default password (which is **root**) and choose a more secure one at first setup and if your dashboard is accessible on the network.
122
+
> **As always**: Make sure to change the default password (which is **root**) and choose a more secure one at first setup and consider more security if your dashboard is accessible on the network.
<h3><span class='text-success'>✓</span> Version 1.1.4</h3>
504
+
<h3><span class='text-success'>✓</span> Version 1.1.5</h3>
505
505
<ul><li>live page title with hostname + status of monitored RPi</li><li>overhauled project documentation / readme</li><li><a href='https://github.com/femto-code/Rasberry-Pi-Dashboard/releases'>Stay updated here</a></li><li><i><a href="CHANGELOG.md">All changes</a></i></li></ul>
506
506
<small>most important changes since RPi Dashboard v1.0</small>
cecho -c 'blue'"Welcome to the RPi Dashboard installer!"
65
+
read -p "This setup assumes you have a working web server installed that is up and running. Continue? (Y/N): " confirm && [[ $confirm== [yY] ||$confirm== [yY][eE][sS] ]] ||exit 1
66
+
hostn="`hostname`"
67
+
cecho -c 'blue'"This setup will install the dashboard to /var/www/html."
68
+
_process "Please choose your subfolder name, so you will be able to call the dashboard at http://$hostn/{your_subfolder_name}"
0 commit comments