Nagios HTTP WARNING: HTTP/1.1 403 Forbidden Solved

After installing nagios monitoring tool. everything seem to be fine on local host.
Except HTTP deamon with warning HTTP/1.1 403 Forbidden.

To solve this..

simply create index.html file under http root directory.

#cd /var/www/html
#touch index.html

Restart web services.

#service httpd restart

Now restart you nagios services.

#/etc/init.d/nagios restart

Install pfsense to an usb drive

Nanobsd was created to make Freebsd suitable for installing on embedded systems, specifically on flash media.
Flash media has a limited number of write cycles and a standard install can burn through them quickly resulting in drive failure.

Nanobsd avoids this by logging to ram only and mounting the file system read only (among other tweaks).
Because of this some packages cannot work. Most have been adapted to work, for example it’s possible to run squid without the cache just as a web filter.

SANDISK CRUZER FIT 4GB USB FLASH DRIVE

Download embedded builds image 4G with VGA output from:

Writing the image
When using a windows machine the easiest way to write your media is with physdiskwrite.
Place physdiskwrite and the pfSense image in the same folder. Attach the media you want to store pfSense on (i.e. CF-Reader and CF-Card).

Physdiskwrite will show you a numbered list of suitable devices (USB-stick, CF-cards in USB-readers, harddisks,…). Enter the number of the desired media.

Reference:
http://doc.pfsense.org/index.php/Installing_pfSense
http://forum.pfsense.org/index.php/topic,57064.0.html

Zend Debugger How To

Download and Install Zend Debugger

Configuration Debugger

Restart Apache before Testing

Check if it works

Error:libssl.so.0.9.8:

Install openssl098e package

Link the file

Check it Again

Reference:
http://forums.zend.com/viewtopic.php?f=8&t=3281
http://forums.zend.com/viewtopic.php?f=59&t=962
http://static.zend.com/topics/Zend-Debugger-Installation-Guide.pdf
http://static.zend.com/topics/Debugger-Install.pdf
http://www.developertutorials.com/tutorials/php/php-debugging-with-zend-studio-8-02-01-938/

Ubuntu/debian/Mint Setup Fixed IP address

Before setup fixed IP address please use an ifconfig to determine the current subnet.

$ sudo vi /etc/network/interfaces

$ sudo /etc/init.d/networking restart

SELinux cause PostgreSQL error: could not connect to server: Permission denied

The php command line works but not the apache page.

Error message:

If you don’t want to be using SELinux then disabling it is an option, but if you prefer the other protection it offers you may just want to enable the specific permission to allow Apache to issue HTTP connections.

As root, running:

How To Install VMware Tools for VMware Player

How To Install VMware Tools for VMware Player

mkdir /mnt/cdrom
mount -t iso9660 /dev/cdrom /mnt/cdrom

cp /mnt/cdrom/VMwareTools*.gz /root
or
wget http://www.milliondollarserver.com/iso/VMwareTools-9.2.2-893683.tar.gz

yum install perl gcc make kernel-devel kernel-uek-devel

tar zxvf VMwareTools-9.2.2-893683.tar.gz
./vmware-install.pl

Would you like to enable VMware automatic kernel modules?
[no]

No X install found.

Creating a new initrd boot image for the kernel.
vmware-tools-thinprint start/running
vmware-tools start/running
The configuration of VMware Tools 9.2.2 build-893683 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking “/usr/bin/vmware-toolbox-cmd” from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

–the VMware team

Reference:http://www.vmware.com/support/ws5/doc/ws_newguest_tools_linux.html

Upgrade pfSense – new component

Here is the component and price for the new build.

Intel Next Unit of Computing (NUC) BOXDCCP847DYE
$179.99 from newegg.ca

Intel Celeron 847 1.1GHz (soldered down) with active heatsink
IntelĀ® QS77 Express Chipset
Integrated IntelĀ® 10/100/1000 network connection

1GB DDR3 SO-DIMM 1333/1600 MHz memory
$ 0.00 pull from old laptop

SANDISK CRUZER FIT 4GB 16G 16 G GB USB FLASH DRIVE
$ 4.21 from ebay.ca

AR9280 802.11B/G/N 300M Wireless Wifi N Card AR5BXB92
$ 10.04 from ebay.ca

Ubuntu monitor CPU system temperatures fan speeds

Ubuntu can monitor CPU and other system temperatures, fan speeds, and voltages via command line, using the package lm-sensors.

lm-sensors – utilities to read temperature/voltage/fan sensors

1.Install the package:
# sudo apt-get install lm-sensors

2.Run sudo sensors-detect and choose YES to all YES/no questions.
I choice all YES, did not have any trouble on Lenovo TS200v

3.At the end of sensors-detect, a list of modules that needs to be loaded will displayed.
Type “yes” to have sensors-detect insert those modules into /etc/modules, or edit /etc/modules yourself.

Intel digital thermal sensor… Success!
(driver coretemp')

Trying family SMSC’… Yes
Using driver i2c-i801' for device 0000:00:1f.3: Intel 3400/5 Series (PCH)
Module i2c-i801 loaded successfully.
Module i2c-dev loaded successfully.

Probing for Microchip MCP98242’… Success!
(confidence 5, driver jc42')
Probing for
Microchip MCP98243’… Success!
(confidence 5, driver jc42')

Driver jc42′:
* Bus SMBus I801 adapter at f000'
Busdriver
i2c_i801′, I2C address 0x18
Chip Microchip MCP98242' (confidence: 5)
* Bus
SMBus I801 adapter at f000′
Busdriver i2c_i801', I2C address 0x1a
Chip
Microchip MCP98243′ (confidence: 5)

Driver coretemp':
* Chip
Intel digital thermal sensor’ (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#—-cut here—-
# Adapter drivers
i2c_i801
# Chip drivers
coretemp
jc42
#—-cut here—-
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!

Do you want to add these lines automatically to /etc/modules? (yes/NO)
service module-init-tools restart

4.Next, run sudo service module-init-tools restart

This will read the changes you made to /etc/modules in step 3, and insert the new modules into the kernel.

# sensors

will give the output.

Support Folding@home on Ubuntu 12.04 LTS

I have a Lenovo TS200v server at home.
Added an old i7 CPU, unplug Hard Drive, DVD and install Ubuntu Sever 12.04 LTS on a 2 GB USB Flash Drive.

Download the debian package:
wget https://fah-web.stanford.edu/file-releases/beta/release/fahclient/debian-testing-64bit/v7.2/fahclient_7.2.9_amd64.deb

Install the package:
# sudo dpkg -i fahclient_7.2.9_amd64.deb

Add missing libs:
# sudo apt-get install libssl0.9.8 libegl1-mesa libgl1-mesa-glx

Reinstall the package

Config file /etc/fahclient/config.xml:

Remote FAHControl still not working.

/var/lib/fahclient/log.txt gave error:
19:17:45:Server access denied for 192.168.1.6:57856

To allow access from 192.168.1.0/24 subnet: