This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
how_to_install_phpsysinfo_on_vortexbox_2.3 [2016/02/12 17:44] ron |
how_to_install_phpsysinfo_on_vortexbox_2.3 [2016/02/13 01:31] (current) ron |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====How to install the System Information page on VortexBox 2.3==== | + | =====How to install the System Information page on VortexBox 2.3 or 2.4===== |
The System Information page provides useful information about the VortexBox system configuration and status. | The System Information page provides useful information about the VortexBox system configuration and status. | ||
It has been a useful feature in past releases of VortexBox. | It has been a useful feature in past releases of VortexBox. | ||
- | However, it is not yet available in the official VortexBox 2.3 release. | + | However, it is not available in the official VortexBox 2.3 or 2.4 releases. |
- | Here's how to install the system infomation page (phpsysinfo) on VB 2.3. These notes show how to install the package. | + | Here's how to install the system infomation page (phpsysinfo) on VB 2.3 or VB 2.4. These notes show how to install the package. |
You can also add an icon for phpsysinfo to the VB GUI home page; see the last section for details. | You can also add an icon for phpsysinfo to the VB GUI home page; see the last section for details. | ||
- | Note: if you have a VortexBox Appliance that uses the OEM repository instead of the Fedora repositories, these instructions won't work. | + | Note: if you have a VB 2.3 VortexBox Appliance that uses the OEM repository instead of the Fedora repositories, these instructions won't work. |
You will have to switch from using the OEM repo to the Fedora repos. | You will have to switch from using the OEM repo to the Fedora repos. | ||
See http://vortexbox.org/forum/vortexbox/help/59630-hddtemp-in-sysinfo-not-quite-working?p=59642#post59642 for more info. | See http://vortexbox.org/forum/vortexbox/help/59630-hddtemp-in-sysinfo-not-quite-working?p=59642#post59642 for more info. | ||
- | 1. Login to your VortexBox; see Login. | + | 1. Login to your VortexBox; see [[VortexBox Command Line]]. |
- | If this is the first time you are installing the System Information page on VB 2.3, continue with step 2. | + | If this is the first time you are installing the System Information page, continue with step 2. |
If you are upgrading to a newer version from a previous install, skip to step 5. | If you are upgrading to a newer version from a previous install, skip to step 5. | ||
2. Install the hddtemp and lm_sensors packages: | 2. Install the hddtemp and lm_sensors packages: | ||
- | + | ===VortexBox 2.3:=== | |
- | yum install hddtemp lm_sensors | + | <code>yum install hddtemp lm_sensors</code> |
+ | ===VortexBox 2.4:=== | ||
+ | <code>dnf install hddtemp lm_sensors</code> | ||
3. Enable and start the hddtemp daemon, which monitors hard drive temperatures: | 3. Enable and start the hddtemp daemon, which monitors hard drive temperatures: | ||
+ | <code> | ||
systemctl enable hddtemp | systemctl enable hddtemp | ||
systemctl start hddtemp | systemctl start hddtemp | ||
+ | </code> | ||
4. Detect sensors: | 4. Detect sensors: | ||
- | sensors-detect | + | <code>sensors-detect</code> |
Accept the default (hit Enter) for each question (there are many!) | Accept the default (hit Enter) for each question (there are many!) | ||
Line 35: | Line 38: | ||
If you are using a newer version, use that version number in place of 3.2.5 in the following instructions. | If you are using a newer version, use that version number in place of 3.2.5 in the following instructions. | ||
Note: the line numbers in step 6 may be slightly different if you are using a version other than 3.2.5. | Note: the line numbers in step 6 may be slightly different if you are using a version other than 3.2.5. | ||
+ | <code> | ||
wget https://github.com/phpsysinfo/phpsysinfo/archive/v3.2.5.zip | wget https://github.com/phpsysinfo/phpsysinfo/archive/v3.2.5.zip | ||
unzip -d /var/www/html v3.2.5.zip | unzip -d /var/www/html v3.2.5.zip | ||
Line 41: | Line 44: | ||
rm -f phpsysinfo | rm -f phpsysinfo | ||
ln -s phpsysinfo-3.2.5 phpsysinfo | ln -s phpsysinfo-3.2.5 phpsysinfo | ||
+ | </code> | ||
6. Set up and edit phpsysinfo config file: | 6. Set up and edit phpsysinfo config file: | ||
+ | <code> | ||
cd phpsysinfo | cd phpsysinfo | ||
cp phpsysinfo.ini.new phpsysinfo.ini | cp phpsysinfo.ini.new phpsysinfo.ini | ||
nano phpsysinfo.ini | nano phpsysinfo.ini | ||
+ | </code> | ||
Note: use ESC-g to go to a specific line number in nano. | Note: use ESC-g to go to a specific line number in nano. | ||
Change line 203 from | Change line 203 from | ||
- | SENSOR_PROGRAM=false | + | <code>SENSOR_PROGRAM=false</code> |
to | to | ||
- | SENSOR_PROGRAM="LMSensors,HDDTemp" | + | <code>SENSOR_PROGRAM="LMSensors,HDDTemp"</code> |
If you want Fahrenheit instead of Celsius temperature units, change line 172 | If you want Fahrenheit instead of Celsius temperature units, change line 172 | ||
from | from | ||
- | TEMP_FORMAT="c" | + | <code>TEMP_FORMAT="c"</code> |
to | to | ||
- | TEMP_FORMAT="f" | + | <code>TEMP_FORMAT="f"</code> |
Write the file (control-o) and quit (control-x). | Write the file (control-o) and quit (control-x). | ||
- | 7. In your browser, go to the VB GUI phpsysinfo page: http://vortexbox/phpsysinfo or http://<vortexbox-ip>/phpsysinfo; | + | 7. In your browser, go to the VB GUI phpsysinfo page: http://vortexbox/phpsysinfo or http://vortexbox-ip/phpsysinfo; |
e.g. http://192.168.1.150/phpsysinfo on my VBA. | e.g. http://192.168.1.150/phpsysinfo on my VBA. | ||
Hopefully, you will see the System Information page. | Hopefully, you will see the System Information page. | ||
You can change the appearance of the page by selecting a template from the menu at the top of the page. | You can change the appearance of the page by selecting a template from the menu at the top of the page. | ||
- | There are 9 templates to choose from: aqua, clean, cream, idash, jstyle_blue, jstyle_green, nextgen, phpsysinfo, and two. | + | There are 11 templates to choose from: aqua, blue, clean, cleansyn, cream, idash, jstyle_blue, jstyle_green, nextgen, phpsysinfo, and two. |
Try different templates and pick one you like. phpsysinfo is the default, but I like aqua better. | Try different templates and pick one you like. phpsysinfo is the default, but I like aqua better. | ||
- | |||
- | Here's what the 3.1.12 System Information page looks like on my VB 2.3 VBA with the aqua template. | ||
- | Note that it shows the Distro Name as "VortexBox 2.3", whereas 3.1.11 showed the Distro Name as "Fedora release 20 (Heisenbug)". | ||
8. If you are happy with the display, and you have an older version of phpsysinfo (3.1.17) installed, | 8. If you are happy with the display, and you have an older version of phpsysinfo (3.1.17) installed, | ||
you can remove the older version by | you can remove the older version by | ||
- | rm -rf /var/www/html/phpsysinfo-3.1.17 | + | <code>rm -rf /var/www/html/phpsysinfo-3.1.17</code> |
Use the correct directory name for the previous version installed on your VB if it's not phpsysinfo-3.1.17. | Use the correct directory name for the previous version installed on your VB if it's not phpsysinfo-3.1.17. | ||
9. You can also delete the zip file: | 9. You can also delete the zip file: | ||
+ | <code> | ||
cd | cd | ||
rm -f v3.2.5.zip | rm -f v3.2.5.zip | ||
- | + | </code> | |
- | How to add an icon for phpsysinfo to the VB GUI | + | =====How to add an icon for phpsysinfo to the VB GUI===== |
If you would like an icon for pypsysinfo on the VB GUI home page, you can edit the VB GUI code. | If you would like an icon for pypsysinfo on the VB GUI home page, you can edit the VB GUI code. | ||
Line 98: | Line 98: | ||
1. Download the phpsysinfo icon: | 1. Download the phpsysinfo icon: | ||
+ | <code> | ||
cd /var/www/html/images | cd /var/www/html/images | ||
wget https://pbs.twimg.com/profile_images/1764401647/psi_logo.png | wget https://pbs.twimg.com/profile_images/1764401647/psi_logo.png | ||
- | + | </code> | |
- | The icon: | + | The icon:{{https://pbs.twimg.com/profile_images/1764401647/psi_logo.png}} |
2. Edit /var/www/html/libs/iconlist.php: | 2. Edit /var/www/html/libs/iconlist.php: | ||
+ | <code> | ||
cd /var/www/html/libs | cd /var/www/html/libs | ||
cp iconlist.php iconlist.php.official | cp iconlist.php iconlist.php.official | ||
nano iconlist.php | nano iconlist.php | ||
+ | </code> | ||
Add the following lines after line 34: | Add the following lines after line 34: | ||
+ | <code> | ||
if (file_exists('/var/www/html/phpsysinfo/phpsysinfo.ini')) { | if (file_exists('/var/www/html/phpsysinfo/phpsysinfo.ini')) { | ||
$icon_array[] = array('location' => $loacation_count += 80, 'name' => 'System Information', 'icon' => 'psi_logo.png', 'link' => 'http://'.$ipaddress.'/phpsysinfo', 'newtab' => '1'); | $icon_array[] = array('location' => $loacation_count += 80, 'name' => 'System Information', 'icon' => 'psi_logo.png', 'link' => 'http://'.$ipaddress.'/phpsysinfo', 'newtab' => '1'); | ||
$loacation_count += 10; | $loacation_count += 10; | ||
} | } | ||
+ | </code> | ||
Write the file (control-o) and exit (control-x). | Write the file (control-o) and exit (control-x). | ||
3. Save your changes so they can be restored after the vb-GUI package is updated: | 3. Save your changes so they can be restored after the vb-GUI package is updated: | ||
- | cp iconlist.php iconlist.php.mine | + | <code>cp iconlist.php iconlist.php.mine</code> |
4. After a vb-GUI update, check to see if there were any other changes to iconlist.php: | 4. After a vb-GUI update, check to see if there were any other changes to iconlist.php: | ||
+ | <code> | ||
cd /var/www/html/libs | cd /var/www/html/libs | ||
diff iconlist.php iconlist.php.mine | diff iconlist.php iconlist.php.mine | ||
+ | </code> | ||
If there are no changes to iconlist.php other that the ones you made, you can replace iconlist.php with your version by | If there are no changes to iconlist.php other that the ones you made, you can replace iconlist.php with your version by | ||
- | cp iconlist.php.mine iconlist.php | + | <code>cp iconlist.php.mine iconlist.php</code> |
If there are other changes to iconlist.php, you'll have to redo step 2 on the new version of iconlist.php. | If there are other changes to iconlist.php, you'll have to redo step 2 on the new version of iconlist.php. | ||
- | 5. In a browser, go to the VB GUI web page http://<vortexbox-ip>. | + | 5. In a browser, go to the VB GUI web page http://vortexbox or http://vortexbox-ip. |
You should see the phpsysinfo icon with the label "System Information". | You should see the phpsysinfo icon with the label "System Information". | ||
Click the icon. A new tab should open with the phpsysinfo page. | Click the icon. A new tab should open with the phpsysinfo page. | ||
- |