Difference between revisions of "PhpSysInfo"

From Amahi Wiki
Jump to: navigation, search
Line 3: Line 3:
 
After the one click install of phpsysinfo in Amahi 6.0, you need to do some modifications to get all system information displayed.
 
After the one click install of phpsysinfo in Amahi 6.0, you need to do some modifications to get all system information displayed.
  
 +
=== Fedora ===
 
open a terminal session and login as root or if you have sudo configured use sudo in front of all commands.  
 
open a terminal session and login as root or if you have sudo configured use sudo in front of all commands.  
  
Line 13: Line 14:
 
sensors-detect}}
 
sensors-detect}}
  
in Ubuntu:
+
=== Ubuntu [https://help.ubuntu.com/community/SensorInstallHowto#Install_and_Configure_lm-sensors (Additional help)] ===
more info at [https://help.ubuntu.com/community/SensorInstallHowto#Install_and_Configure_lm-sensors ubuntu help on lm-sensors]
 
  
 
{{Code|sudo apt-get install lm-sensors
 
{{Code|sudo apt-get install lm-sensors
Line 20: Line 20:
  
 
Answer the questions. At the end of sensors-detect, Type "yes" to have sensors-detect insert modules into /etc/modules, or edit /etc/modules yourself {{Code|service module-init-tools start}}
 
Answer the questions. At the end of sensors-detect, Type "yes" to have sensors-detect insert modules into /etc/modules, or edit /etc/modules yourself {{Code|service module-init-tools start}}
 +
 +
----
  
  

Revision as of 23:40, 7 July 2012

Getting More Info

After the one click install of phpsysinfo in Amahi 6.0, you need to do some modifications to get all system information displayed.

Fedora

open a terminal session and login as root or if you have sudo configured use sudo in front of all commands.

type

bash code
​ su -​

at the prompt enter your root password

then type

bash code
​yum install lm_sensors sensors-detect​


Ubuntu (Additional help)

bash code
​sudo apt-get install lm-sensors sudo sensors-detect​


Answer the questions. At the end of sensors-detect, Type "yes" to have sensors-detect insert modules into /etc/modules, or edit /etc/modules yourself

bash code
​service module-init-tools start​




bash code
​cd /var/hda/web-apps/phpsysinfo/html cp config.php config.php_bak​
to make a backup of your original config file
bash code
​nano config.php​


Change define('PSI_SENSOR_PROGRAM', ); to define('PSI_SENSOR_PROGRAM', 'LMSensors'); This tells phpsysinfo to use lm_sensors to obtain and display sensor information.

Other optional changes:

define('PSI_HIDE_MOUNTS', '/boot,/dev/shm'); - hides /boot and /dev/shm in mounted filesystems
define('PSI_HIDE_FS_TYPES', 'tmpfs'); -  hides tmpfs filesystems
define('PSI_HDD_TEMP', 'tcp'); - tells PSI to obtain current hdd temp 
define('PSI_LOAD_BAR', true); 
define('PSI_UPS_PROGRAM', 'Apcupsd'); -  use apcupsd to show APC info from APC UPS's

after saving config.php phpsysinfo will provide voltage, fan and temperature data.