Difference between revisions of "PhpSysInfo"

From Amahi Wiki
Jump to: navigation, search
(Updated page for Amahi 6 and PSI 3.11)
Line 1: Line 1:
 
[[Category:Apps]]
 
[[Category:Apps]]
 
== Getting More Info ==
 
== Getting More Info ==
After the one click install of phpsysinfo in Amahi 5.1, I needed to do some modifications to get all system information displayed.
+
After the one click install of phpsysinfo in Amahi 6.0, I needed to do some modifications to get all system information displayed.
 
For other users, this is what I did.
 
For other users, this is what I did.
  
Line 23: Line 23:
 
{{Code|nano config.php}}
 
{{Code|nano config.php}}
  
I changed the following lines, but of course this is optional.
+
Change define('PSI_SENSOR_PROGRAM', ''); to define('PSI_SENSOR_PROGRAM', 'LMsensors'); This tells phpsysinfo to use lm_sensors to obtain and display sensor information.
define('sensorProgram', 'LMSensors');
 
define('hideMounts', '/boot');
 
define('hideFstypes', 'tmpfs');
 
define('hddTemp', 'tcp');
 
define('loadBar', true);
 
  
after saving the config.php phpsysinfo also provides voltage, fan and temperature data.
+
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.

Revision as of 05:12, 6 June 2011

Getting More Info

After the one click install of phpsysinfo in Amahi 6.0, I needed to do some modifications to get all system information displayed. For other users, this is what I did.

first open a terminal session and login as root from another computer in windows with putty or in linux: ssh root@hda

type

bash code
​yum install lm_sensors sensors-detect​


keep pressing enter for default answers.

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.