April 11th, 2013 |
admin |
BIND is the Berkeley Internet Name Domain, DNS server. It is wildly used on UNIX and Linux like oses. You can use following tools to troubleshoot bind related problems under UNIX or Linux oses. Task: Port 53 open and listing requests By default BIND listen DNS queries on port 53. So make sure port 53 [...]
February 23rd, 2013 |
admin |
here is a simple way to call a simple bash script inside php script page and have a return value printed to your web page. below is a simple bash script called php.sh #!/bin/bash echo “Successful call from PHP : “ exit 0 chmod 700 so it would be root executable, and saved it to [...]
January 4th, 2013 |
admin |
Use the /proc/net/dev inside a container, dump stats into a round robin database (rrd) #!/bin/bash # # Bandwidth collection script for OpenVZ by Eric ‘phpfreak’ Rosebrock # http://www.serverpowered.com / http://www.thewebfreaks.com # Please read: http://www.serverpowered.com/openvz-bandwidth-accounting.php # # # No warranties on this script, use it at your own risk! # # Special thanks to Rick Blundell [...]
November 6th, 2012 |
admin |
You may receive the “configure: error: Ogg needed” while installing libogg which indicates some missing devel packages related to Ogg. The complete error message is as follows: Could not run Ogg test program, checking why… The test program compiled, but did not run. This usually means that the run-time linker is not finding Ogg or [...]
October 14th, 2012 |
admin |
I’ve just installed this plugin, I have wp-smtp-mail plugin installed as well. The test thing on the plugin works, however I receive an error when trying to utilize the actual contact form. The error it self is: The e-mail could not be sent. Possible reason: your host may have disabled the mail() function. http://wordpress.org/extend/plugins/si-contact-form/ solution: [...]
September 10th, 2012 |
admin |
The chflags utility modifies the file flags of the listed files as specified by the flags operand. FreeBSD offers write protection, you need to to set special bit call immutable. Once this bit is setup no one can delete or modify file including root. And only root can clear the File immutable bit. You must [...]
December 16th, 2011 |
admin |
1) Use ifconfig command as follows: ifconfig interface inet IP Example(s): ifconfig lnc0 inet 202.54.1.22 Note lnc0 is Ethernet interface name can be Obtained using ifconfig -a command. 2) To setup up ip permanently open file /etc/rc.conf ; add/modify network entries: vi /etc/rc.conf And setup values as follows: hostname=”fbsdx.test.com” ifconfig_lnc0=”inet 192.168.0.6 netmask 255.255.255.0″ Note ifconfig_lnc0 [...]
December 16th, 2011 |
admin |
I’d like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input: This is a test Giving back more than we take I want my input file with the following output: a test more than we take How do I printing [...]
December 16th, 2011 |
admin |
How do I count and print particular character (say D or digit 7) in a string or variable under Bash UNIX / Linux shell? You can use UNIX / Linux command such as sed, grep, wc or bash shell itself to count number of characters in a string or word or shell variable. grep Command [...]
December 16th, 2011 |
admin |
Got a problem when install libvorbis configure: error: must have Ogg installed! *** Could not run Ogg test program, checking why… *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding Ogg or finding the wrong *** version of Ogg. If it is not finding [...]