Technical Notes
Sunday, August 8, 2010
Editing Linux Firewall rules in shell mode
That could be done by editing
/etc/sysconfig/iptables
Then restarting iptables service
To view open services in Firewall run:
iptables -L
Friday, July 30, 2010
Secure remote copy via scp
use scp command for copying remote files via ssh
Monday, July 5, 2010
displaying network neighbor's ip addresses
Use the DOS command:
arp -a
or use AngryIP utility:
http://www.angryziber.com/w/Download
Sunday, July 4, 2010
IE Iframe blocking third party cookie solution
http://adamyoung.net/IE-Blocking-iFrame-Cookies
Solution:
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
?>
Sunday, June 27, 2010
Using linux yum to download latest RPM packages
http://www.cyberciti.biz/faq/yum-downloadonly-plugin/
Saturday, June 12, 2010
Tracing Apache startup failure
When starting Apache web server via "service httpd start" fails, we could check the error in /var/log/httpd/error_log.
Or, we can execute the application "httpd" from command line and read the text response.
Most likely failure happens as a result of syntax error in "/etc/httpd/conf/httpd.conf"
Tuesday, May 11, 2010
Executing SQL statements from a text file
From mysql console
mysql>source [file_path]
From command line:
shell>mysql -u [user_name] -p[password] -h [host] -- verbose < [file_path]
notes:
"--verbose" is required to display the sql statements before it is executed
make sure to add "use [database_name]" statement in the script file
Reference:
http://dev.mysql.com/doc/refman/5.0/en/batch-commands.html
Tuesday, March 2, 2010
OpenVPN good reference
http://manoftoday.wordpress.com/2006/12/03/openvpn-20-howto/
Showing IP addresses and physical MAC addresses connected to active network interface
DOS utility ( Address Resolution Protocol ):
arp -a
Thursday, February 4, 2010
setting up JSP tomcat server on linux apache
http://articles.sitepoint.com/article/jsp-quick-start-guide-linux/3
Tuesday, January 5, 2010
linux startup commands
To run commands automatically on starting Linux machine ( Redhat build ), add the commands to /etc/rc.d/rc.local
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)