<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8670658671630537166</id><updated>2012-02-14T02:42:03.978-08:00</updated><category term='slackbuild'/><category term='linux'/><category term='wirausaha'/><category term='kuliah'/><category term='centos'/><category term='JBoss'/><category term='islam'/><category term='LVM'/><category term='mysql'/><category term='Samba'/><category term='nagios'/><category term='keluarga'/><category term='SELinux'/><category term='Cups'/><category term='DogTag'/><category term='active mq'/><category term='Directory Server'/><category term='Splunk'/><category term='ldap'/><category term='rsyslog'/><category term='dns'/><category term='kerja'/><category term='FTP'/><category term='VBox'/><category term='cuap cuap'/><category term='bacula'/><category term='Slackware'/><category term='tip n trik'/><category term='openvpn'/><category term='nfs'/><category term='raid'/><category term='ossec'/><category term='jmx'/><category term='snort'/><title type='text'>Kura-Kura Gurun</title><subtitle type='html'>Terus belajar hingga maut menjemput</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>100</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-5472602810045252259</id><published>2012-01-16T23:55:00.000-08:00</published><updated>2012-01-18T18:29:41.686-08:00</updated><title type='text'>Install Android SDK on Linux</title><content type='html'>Download Android SDK for linux at &lt;a href="http://developer.android.com/sdk/index.html"&gt;http://developer.android.com/sdk/index.html&lt;/a&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-VhMvDHP7Wxw/TxUoodj6y1I/AAAAAAAAAfw/9dYrCkRnXIE/s1600/Android%2BSDK%2B%257C%2BAndroid%2BDevelopers%2B-%2BGoogle%2BChrome_003.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="178" width="320" src="http://3.bp.blogspot.com/-VhMvDHP7Wxw/TxUoodj6y1I/AAAAAAAAAfw/9dYrCkRnXIE/s320/Android%2BSDK%2B%257C%2BAndroid%2BDevelopers%2B-%2BGoogle%2BChrome_003.png" /&gt;&lt;/a&gt;&lt;/div&gt;Extract the package &lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[fazries@A1008 ~]$ tar -xf android-sdk_r16-linux.tgz&lt;br /&gt;[fazries@A1008 ~]$ cd android-sdk-linux/&lt;br /&gt;[fazries@A1008 android-sdk-linux]$ ls&lt;br /&gt;add-ons  platforms  platform-tools  SDK Readme.txt  temp  tools&lt;br /&gt;&lt;/pre&gt;run the SDK &lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[fazries@A1008 android-sdk-linux]$ cd tools/&lt;br /&gt;[fazries@A1008 tools]$ ./android &lt;br /&gt;&lt;/pre&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-TyVZLhRTNSk/TxUkfIAElJI/AAAAAAAAAfk/Zl9XZtNt_7Y/s1600/Android%2BSDK%2BManager%2B_002.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="230" width="320" src="http://4.bp.blogspot.com/-TyVZLhRTNSk/TxUkfIAElJI/AAAAAAAAAfk/Zl9XZtNt_7Y/s320/Android%2BSDK%2BManager%2B_002.png" /&gt;&lt;/a&gt;&lt;/div&gt;We need adb shell, because I want my galaxy mini set the application to SD card&lt;/br&gt;after installation finish, you can find adb script at,platform-tools folder&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[fazries@A1008 android-sdk-linux]$ cd platform-tools/&lt;br /&gt;[fazries@A1008 platform-tools]$ ls&lt;br /&gt;aapt  adb  aidl  dexdump  dx  fastboot  lib  llvm-rs-cc  NOTICE.txt  renderscript  source.properties&lt;br /&gt;&lt;/pre&gt;Ok, this is the fun part, Linux cannot read My devices, after read some reference at this page&lt;/br&gt;&lt;a href="http://forum.xda-developers.com/showthread.php?t=640158"&gt;http://forum.xda-developers.com/showthread.php?t=640158&lt;/a&gt;&lt;/br&gt;and&lt;/br&gt;&lt;a href="http://yanzicjustnubie.wordpress.com/2011/04/22/cara-menjadikan-galaxy-mini-sebagai-modem-pada-ubuntu/"&gt;http://yanzicjustnubie.wordpress.com/2011/04/22/cara-menjadikan-galaxy-mini-sebagai-modem-pada-ubuntu/&lt;/a&gt;&lt;/br&gt;&lt;/br&gt;I cannot connecting My Device to my Linux box&lt;/br&gt;you need generate udev files, and need root privilege for that&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1008 ~]# touch /etc/udev/rules.d/51-android.rules&lt;br /&gt;[root@A1008 ~]# vi /etc/udev/rules.d/51-android.rules&lt;br /&gt;#fill with this&lt;br /&gt;SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct} =="689e", MODE="0666"&lt;br /&gt;SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct} =="685e", MODE="0666"&lt;br /&gt;&lt;br /&gt;[root@A1008 ~]# cat /etc/udev/rules.d/51-android.rules &lt;br /&gt;SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct} =="689e", MODE="0666"&lt;br /&gt;SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct} =="685e", MODE="0666"&lt;br /&gt;&lt;/pre&gt;&lt;H2&gt;ATTRS{idVendor}=="04e8" are Id Vendor for Samsung &lt;/br&gt;ATTRS{idProduct} =="689e" are Id Product for Galaxy MiniATTRS{idProduct} =="689e" are Id Product for Galaxy Young&lt;/H2&gt;&lt;/br&gt;change files permission for 51-android.rules&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1008 ~]# chmod 644 51-android.rules&lt;br /&gt;&lt;/pre&gt;restart udev services, Im using Fedora 16.&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1008 ~]# service udev restart&lt;br /&gt;Redirecting to /bin/systemctl  restart udev.service&lt;br /&gt;&lt;/pre&gt;Back to android-sdk-linux folder,&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[fazries@A1008 ~]# cd ~/android-sdk/android-sdk-linux/platform-tools&lt;br /&gt;&lt;/pre&gt;Start adb script, on yor devices dont forget to set Allow Mock Location, and USB Debugging&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb kill-server&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb start-server&lt;br /&gt;* daemon not running. starting it now on port 5037 *&lt;br /&gt;* daemon started successfully *&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb devices&lt;br /&gt;List of devices attached &lt;br /&gt;&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb devices&lt;br /&gt;List of devices attached &lt;br /&gt;&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb devices&lt;br /&gt;List of devices attached &lt;br /&gt;&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb devices&lt;br /&gt;List of devices attached &lt;br /&gt;&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb devices&lt;br /&gt;List of devices attached &lt;br /&gt;&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb devices&lt;br /&gt;List of devices attached &lt;br /&gt;&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb devices&lt;br /&gt;List of devices attached &lt;br /&gt;S5570412ac34e device&lt;br /&gt;&lt;/pre&gt;adb devices need times for detecting My Devices, just repeat the commands several times.&lt;/br&gt;Run the command to move Default Installation to SD Card."adb shell pm setInstallLocation 2"&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[fazries@A1008 platform-tools]$ ./adb shell pm setInstallLocation 2&lt;br /&gt;&lt;/pre&gt;Finish, Now My Galaxy Mini can move apps to SD :-), Horrey...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-5472602810045252259?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/5472602810045252259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2012/01/install-android-sdk-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5472602810045252259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5472602810045252259'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2012/01/install-android-sdk-on-linux.html' title='Install Android SDK on Linux'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-VhMvDHP7Wxw/TxUoodj6y1I/AAAAAAAAAfw/9dYrCkRnXIE/s72-c/Android%2BSDK%2B%257C%2BAndroid%2BDevelopers%2B-%2BGoogle%2BChrome_003.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-6557261746798950083</id><published>2012-01-16T03:29:00.000-08:00</published><updated>2012-01-16T03:29:37.359-08:00</updated><title type='text'>Rabbitvcs on Centos6.2</title><content type='html'>Assalamualaykum,&lt;/br&gt;Hai I'm back again,rabbitcvs is a great tools for svn frontend but its hard to install and find the rpm package for CentOs 6.2, here I success install rabbitvcs using fedora14 source package.&lt;/br&gt;you need epel repo for this&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;rpm -ivh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm&lt;br /&gt;&lt;/pre&gt;do a repo list in yum&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# yum repolist&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;Install the package, for rebuild rabbitvcs, the package are:&lt;/br&gt;rpm-build pygtk2 subversion subversion-devel gcc gcc-c++ neon-devel python-devel pygtk2-devel python-configobj nautilus-devel meld libX11-devel pygobject2 pysvn python-dulwich gnome-vfs2-devel gnome-python2-devel make python-simplejson&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# yum install rpm-build pygtk2 subversion subversion-devel gcc gcc-c++ neon-devel python-devel pygtk2-devel python-configobj nautilus-devel meld libX11-devel pygobject2 pysvn python-dulwich  --nogpgcheck&lt;br /&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# yum install gnome-vfs2-devel gnome-python2-devel&lt;br /&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# yum install python-simplejson&lt;br /&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# yum install make&lt;br /&gt;&lt;/pre&gt;Download the rpm source for rabbitvcs&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# wget -c http://download.fedora.redhat.com/pub/fedora/linux/updates/14/SRPMS/rabbitvcs-0.14.2.1-3.fc14.src.rpm&lt;br /&gt;[root@A1006 ~]# wget -c http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Everything/source/SRPMS/nautilus-python-0.7.0-2.fc14.src.rpm&lt;br /&gt;&lt;/pre&gt;Rebuild the package&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# rpmbuild --rebuild rabbitvcs-0.14.2.1-3.fc14.src.rpm&lt;br /&gt;Wrote: /root/rpmbuild/RPMS/noarch/rabbitvcs-core-0.14.2.1-3.el6.noarch.rpm&lt;br /&gt;Wrote: /root/rpmbuild/RPMS/x86_64/rabbitvcs-nautilus-0.14.2.1-3.el6.x86_64.rpm&lt;br /&gt;Wrote: /root/rpmbuild/RPMS/x86_64/rabbitvcs-thunar-0.14.2.1-3.el6.x86_64.rpm&lt;br /&gt;Wrote: /root/rpmbuild/RPMS/x86_64/rabbitvcs-gedit-0.14.2.1-3.el6.x86_64.rpm&lt;br /&gt;Wrote: /root/rpmbuild/RPMS/noarch/rabbitvcs-cli-0.14.2.1-3.el6.noarch.rpm&lt;br /&gt;Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1Y4O4p&lt;br /&gt;+ umask 022&lt;br /&gt;+ cd /root/rpmbuild/BUILD&lt;br /&gt;+ cd rabbitvcs-0.14.2.1&lt;br /&gt;+ rm -rf /root/rpmbuild/BUILDROOT/rabbitvcs-0.14.2.1-3.fc14.x86_64&lt;br /&gt;+ exit 0&lt;br /&gt;Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.WKTO2p&lt;br /&gt;+ umask 022&lt;br /&gt;+ cd /root/rpmbuild/BUILD&lt;br /&gt;+ rm -rf rabbitvcs-0.14.2.1&lt;br /&gt;+ exit 0&lt;br /&gt;&lt;/pre&gt;Rebuild package nautilus-python&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# rpmbuild --rebuild nautilus-python-0.7.0-2.fc14.src.rpm --nosignature&lt;br /&gt;Wrote: /root/rpmbuild/RPMS/x86_64/nautilus-python-0.7.0-2.el6.x86_64.rpm&lt;br /&gt;Wrote: /root/rpmbuild/RPMS/x86_64/nautilus-python-devel-0.7.0-2.el6.x86_64.rpm&lt;br /&gt;Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.6hyEjj&lt;br /&gt;+ umask 022&lt;br /&gt;+ cd /root/rpmbuild/BUILD&lt;br /&gt;+ cd nautilus-python-0.7.0&lt;br /&gt;+ rm -rf /root/rpmbuild/BUILDROOT/nautilus-python-0.7.0-2.fc14.x86_64&lt;br /&gt;+ exit 0&lt;br /&gt;Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.rgSbin&lt;br /&gt;+ umask 022&lt;br /&gt;+ cd /root/rpmbuild/BUILD&lt;br /&gt;+ rm -rf nautilus-python-0.7.0&lt;br /&gt;+ exit 0&lt;br /&gt;&lt;/pre&gt;Install nautilus-python&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# yum localinstall rpmbuild/RPMS/x86_64/nautilus-python-0.7.0-2.el6.x86_64.rpm&lt;br /&gt;&lt;/pre&gt;Install rabbitvcs core and cli&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# yum localinstall rpmbuild/RPMS/noarch/rabbitvcs-cli-0.14.2.1-3.el6.noarch.rpm rpmbuild/RPMS/noarch/rabbitvcs-core-0.14.2.1-3.el6.noarch.rpm&lt;br /&gt;&lt;br /&gt;[root@A1006 ~]# yum localinstall rpmbuild/RPMS/x86_64/rabbitvcs-nautilus-0.14.2.1-3.el6.x86_64.rpm rpmbuild/RPMS/x86_64/rabbitvcs-gedit-0.14.2.1-3.el6.x86_64.rpm&lt;br /&gt;&lt;/pre&gt;We need to modify setting.py there is a bug, we cannot run rabbitvcs settings, you can refer to this page&lt;/br&gt;&lt;a href="http://code.google.com/p/rabbitvcs/issues/detail?id=591#c0"&gt;http://code.google.com/p/rabbitvcs/issues/detail?id=591#c0&lt;/a&gt; &lt;/br&gt;replace this line &lt;/br&gt;self.get_widget("pages").get_nth_page(5).set_visible(show_git)&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1006 ~]# vi /usr/lib/python2.6/site-packages/rabbitvcs/ui/settings.py&lt;br /&gt;#self.get_widget("pages").get_nth_page(5).set_visible(show_git)&lt;br /&gt;&lt;br /&gt; if show_git:&lt;br /&gt;                self.get_widget("pages").get_nth_page(5).show()&lt;br /&gt;        else:&lt;br /&gt;                self.get_widget("pages").get_nth_page(5).hide()&lt;br /&gt;&lt;/pre&gt;make a symbolic link from /usr/lib/ to /usr/lib64 for rabbitvcs package&lt;pre class="brush: bash"&gt;&lt;br /&gt;ln -s /usr/lib/python2.6/site-packages/rabbitvcs /usr/lib64/python2.6/site-packages/rabbitvcs&lt;br /&gt;ln -s /usr/lib/python2.6/site-packages/rabbitvcs-0.14.2.1-py2.6.egg-info /usr/lib64/python2.6/site-packages/rabbitvcs-0.14.2.1-py2.6.egg-info&lt;br /&gt;&lt;/pre&gt;Next reboot your GDM, and setup your gedit to activate rabbitvcs plugins&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Q7tsy5J2OeM/TxQJMnvwZ2I/AAAAAAAAAfA/CTiXlVi3pCw/s1600/Screenshot.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="200" width="320" src="http://1.bp.blogspot.com/-Q7tsy5J2OeM/TxQJMnvwZ2I/AAAAAAAAAfA/CTiXlVi3pCw/s320/Screenshot.png" /&gt;&lt;/a&gt;&lt;/div&gt;check the rabbitvcs plugins&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-o8dxdKndWJA/TxQJNFKGjXI/AAAAAAAAAfI/dEWKWbVOI8o/s1600/Screenshot-1.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="200" width="320" src="http://1.bp.blogspot.com/-o8dxdKndWJA/TxQJNFKGjXI/AAAAAAAAAfI/dEWKWbVOI8o/s320/Screenshot-1.png" /&gt;&lt;/a&gt;&lt;/div&gt;rabbitvcs on my nautilus&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-98zxxK6WII0/TxQJNE08VCI/AAAAAAAAAfY/e4Jczc_Yr3k/s1600/Screenshot-2.png" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="200" width="320" src="http://3.bp.blogspot.com/-98zxxK6WII0/TxQJNE08VCI/AAAAAAAAAfY/e4Jczc_Yr3k/s320/Screenshot-2.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-6557261746798950083?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/6557261746798950083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2012/01/rabbitvcs-on-centos62.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/6557261746798950083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/6557261746798950083'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2012/01/rabbitvcs-on-centos62.html' title='Rabbitvcs on Centos6.2'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Q7tsy5J2OeM/TxQJMnvwZ2I/AAAAAAAAAfA/CTiXlVi3pCw/s72-c/Screenshot.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-2795468237690343209</id><published>2012-01-05T19:52:00.000-08:00</published><updated>2012-01-05T19:52:37.038-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Directory Server'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><title type='text'>Part II - LDAP Client using nss_pam_ldap</title><content type='html'>Hello good morning, here in indonesia still morning, I write this article at 9 am, but never mind, lets continue my next article. at this part I will make a LDAP Client still using Centos 6.2, continuing my last article about Directory Server Part I. I'm using nss_pam_ldap for it, you can read the manual here.&lt;br&gt;&lt;a href="http://arthurdejong.org/nss-pam-ldapd/setup"&gt;http://arthurdejong.org/nss-pam-ldapd/setup&lt;/a&gt;&lt;/br&gt;Ok, first we need install the package (-_-! of course).&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@localhost ~]# yum install nss-pam-ldapd&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;We need configure some files:&lt;/br&gt;&lt;i&gt;nss-pam-ldap:&lt;/br&gt;&lt;b&gt;/etc/nslcd.conf&lt;/b&gt;&lt;/br&gt;authentication:&lt;/br&gt;&lt;b&gt;/etc/sysconfig/authconfig&lt;/b&gt;&lt;/br&gt;nss:&lt;/br&gt;&lt;b&gt;/etc/nsswitch.conf&lt;/b&gt;&lt;/br&gt;services:&lt;/br&gt; &lt;b&gt;/etc/init.d/nslcd&lt;/b&gt; &lt;/br&gt;&lt;/i&gt;Minimum configuration for nslcd.conf&lt;pre class="brush: bash"&gt;&lt;br /&gt;uid nslcd&lt;br /&gt;gid ldap&lt;br /&gt;base dc=sidoel,dc=com&lt;br /&gt;uri ldap://192.168.1.200/&lt;br /&gt;&lt;/pre&gt;configure /etc/sysconfig/authconfig for enabling USELDAPAUTH&lt;pre class="brush: bash"&gt;&lt;br /&gt;USELDAPAUTH=yes&lt;br /&gt;USELDAP=yes&lt;br /&gt;&lt;/pre&gt;configuring /etc/nsswitch.conf&lt;pre class="brush: bash"&gt;&lt;br /&gt;passwd:     files ldap&lt;br /&gt;shadow:     files ldap&lt;br /&gt;group:      files ldap&lt;br /&gt;&lt;br /&gt;hosts:      files dns&lt;br /&gt;&lt;br /&gt;bootparams: nisplus [NOTFOUND=return] files&lt;br /&gt;&lt;br /&gt;ethers:     files&lt;br /&gt;netmasks:   files&lt;br /&gt;networks:   files&lt;br /&gt;protocols:  files&lt;br /&gt;rpc:        files&lt;br /&gt;services:   files&lt;br /&gt;&lt;br /&gt;netgroup:   files ldap&lt;br /&gt;&lt;br /&gt;publickey:  nisplus&lt;br /&gt;&lt;br /&gt;automount:  files ldap&lt;br /&gt;aliases:    files nisplus&lt;br /&gt;&lt;/pre&gt;check all auth configuration&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@localhost ~]# authconfig --updateall&lt;br /&gt;Starting nslcd:                                            [  OK  ]&lt;br /&gt;&lt;/pre&gt;restart the nslcd services&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@localhost ~]# /etc/init.d/nslcd restart&lt;br /&gt;Stopping nslcd:                                            [  OK  ]&lt;br /&gt;Starting nslcd:                                            [  OK  ]&lt;br /&gt;&lt;/pre&gt;cek our ldap account and group&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@localhost ~]# getent passwd | grep fazrie&lt;br /&gt;fazrie:*:1001:1001:Fazrie:/home/fazrie:/bin/bash&lt;br /&gt;[root@localhost ~]# getent group | grep Linux&lt;br /&gt;Linux Users:*:1001:&lt;br /&gt;&lt;/pre&gt;you can read this as a reference&lt;/br&gt;&lt;a href="http://www.yolinux.com/TUTORIALS/LDAP_Authentication.html"&gt;http://www.yolinux.com/TUTORIALS/LDAP_Authentication.html&lt;/a&gt;&lt;/br&gt;&lt;a href="http://arthurdejong.org/nss-pam-ldapd/setup"&gt;http://arthurdejong.org/nss-pam-ldapd/setup&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-2795468237690343209?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/2795468237690343209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2012/01/part-ii-ldap-client-using-nsspamldap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2795468237690343209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2795468237690343209'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2012/01/part-ii-ldap-client-using-nsspamldap.html' title='Part II - LDAP Client using nss_pam_ldap'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-2057250876807200350</id><published>2012-01-04T19:29:00.000-08:00</published><updated>2012-01-05T19:52:57.012-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Directory Server'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><title type='text'>Part I - 389 Directory Server on Centos 6.2</title><content type='html'>Configure the host name&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak ~]#vi /etc/hosts&lt;br /&gt;192.168.1.200 ketoprak.sidoel.com ketoprak&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;Install Centos Directory Server&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@localhost ~]# yum install nss-pam-ldapd nscd pam-ldap&lt;br /&gt;[root@localhost ~]# yum install 389-ds-base*&lt;br /&gt;Loaded plugins: fastestmirror, refresh-packagekit, security&lt;br /&gt;Loading mirror speeds from cached hostfile&lt;br /&gt; * base: centos.biz.net.id&lt;br /&gt; * rpmforge: ftp-stud.fht-esslingen.de&lt;br /&gt;Setting up Install Process&lt;br /&gt;Resolving Dependencies&lt;br /&gt;&lt;br /&gt;Dependencies Resolved&lt;br /&gt;&lt;br /&gt;===========================================================================================================================================&lt;br /&gt; Package                                    Arch                     Version                               Repository                 Size&lt;br /&gt;===========================================================================================================================================&lt;br /&gt;Installing:&lt;br /&gt; 389-ds-base                                x86_64                   1.2.9.14-1.el6                        base                      1.4 M&lt;br /&gt; 389-ds-base-devel                        x86_64                   1.2.9.14-1.el6                        base                       92 k&lt;br /&gt; 389-ds-base-libs                           x86_64                   1.2.9.14-1.el6                        base                      362 k&lt;br /&gt;Installing for dependencies:&lt;br /&gt; audit-libs-python                          x86_64                   2.1.3-3.el6                           base                       58 k&lt;br /&gt; cyrus-sasl-gssapi                          x86_64                   2.1.23-13.el6                         base                       33 k&lt;br /&gt; libcgroup                                     x86_64                   0.37-3.el6                            base                      104 k&lt;br /&gt; libicu                                           x86_64                   4.2.1-9.1.el6_2                       updates                   4.9 M&lt;br /&gt; libsemanage-python                     x86_64                   2.0.43-4.1.el6                        base                       81 k&lt;br /&gt; lm_sensors-libs                            x86_64                   3.1.1-10.el6                          base                       37 k&lt;br /&gt; net-snmp-libs                               x86_64                   1:5.5-37.el6_2.1                      updates                   1.5 M&lt;br /&gt; nspr-devel                                    x86_64                   4.8.8-3.el6                           base                      109 k&lt;br /&gt; nss-devel                                     x86_64                   3.12.10-17.el6_2                      updates                   168 k&lt;br /&gt; nss-softokn-devel                         x86_64                   3.12.9-11.el6                         base                       16 k&lt;br /&gt; nss-softokn-freebl-devel                x86_64                   3.12.9-11.el6                         base                       25 k&lt;br /&gt; nss-tools                                      x86_64                   3.12.10-17.el6_2                      updates                   749 k&lt;br /&gt; nss-util-devel                                x86_64                   3.12.10-2.el6                         base                       59 k&lt;br /&gt; openldap-clients                           x86_64                   2.4.23-20.el6                         base                      161 k&lt;br /&gt; perl-Mozilla-LDAP                          x86_64                   1.5.3-4.el6                           base                      160 k&lt;br /&gt; policycoreutils-python                   x86_64                   2.0.83-19.18.el6                      base                      337 k&lt;br /&gt; setools-libs                                  x86_64                   3.3.7-4.el6                           base                      400 k&lt;br /&gt; setools-libs-python                       x86_64                   3.3.7-4.el6                           base                      222 k&lt;br /&gt; svrcore                                       x86_64                   4.0.4-5.1.el6                         base                       15 k&lt;br /&gt; svrcore-devel                              x86_64                   4.0.4-5.1.el6                         base                      9.7 k&lt;br /&gt;Updating for dependencies:&lt;br /&gt; nss                                            x86_64                   3.12.10-17.el6_2                      updates                   776 k&lt;br /&gt; nss-sysinit                                  x86_64                   3.12.10-17.el6_2                      updates                    30 k&lt;br /&gt;&lt;br /&gt;Transaction Summary&lt;br /&gt;===========================================================================================================================================&lt;br /&gt;Install      23 Package(s)&lt;br /&gt;Upgrade       2 Package(s)&lt;br /&gt;&lt;br /&gt;Total download size: 12 M&lt;br /&gt;Is this ok [y/N]: y&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;Centos repos didn't provide 389-ds package only 389-ds-base. so here I cannot run setup-ds-admin.pl it will provide admin account, I will fix it later for now I will use Directory Manager as an example to accessing the Database.&lt;/br&gt;Run and configure the Default Directory Server Instance and Administration Server.&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@localhost ~]# setup-ds.pl&lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;This program will set up the 389 Directory Server.&lt;br /&gt;&lt;br /&gt;It is recommended that you have "root" privilege to set up the software.&lt;br /&gt;Tips for using this  program:&lt;br /&gt;  - Press "Enter" to choose the default and go to the next screen&lt;br /&gt;  - Type "Control-B" or the word "back" then "Enter" to go back to the previous screen&lt;br /&gt;  - Type "Control-C" to cancel the setup program&lt;br /&gt;&lt;br /&gt;Would you like to continue with set up? [yes]: yes&lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;Your system has been scanned for potential problems, missing patches,&lt;br /&gt;etc.  The following output is a report of the items found that need to&lt;br /&gt;be addressed before running this software in a production&lt;br /&gt;environment.&lt;br /&gt;&lt;br /&gt;389 Directory Server system tuning analysis version 10-AUGUST-2007.&lt;br /&gt;&lt;br /&gt;NOTICE : System is x86_64-unknown-linux2.6.32-220.el6.x86_64 (1 processor).&lt;br /&gt;&lt;br /&gt;ERROR  : Only 238MB of physical memory is available on the system. 256MB is the&lt;br /&gt;recommended minimum. 1024MB is recommended for best performance on large production system.&lt;br /&gt;&lt;br /&gt;NOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds&lt;br /&gt;(120 minutes).  This may cause temporary server congestion from lost&lt;br /&gt;client connections.&lt;br /&gt;&lt;br /&gt;WARNING: There are only 1024 file descriptors (hard limit) available, which&lt;br /&gt;limit the number of simultaneous connections.  &lt;br /&gt;&lt;br /&gt;WARNING: There are only 1024 file descriptors (soft limit) available, which&lt;br /&gt;limit the number of simultaneous connections.  &lt;br /&gt;&lt;br /&gt;ERROR  : The above errors MUST be corrected before proceeding.&lt;br /&gt;&lt;br /&gt;Would you like to continue? [no]: yes&lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;Choose a setup type:&lt;br /&gt;&lt;br /&gt;   1. Express&lt;br /&gt;       Allows you to quickly set up the servers using the most&lt;br /&gt;       common options and pre-defined defaults. Useful for quick&lt;br /&gt;       evaluation of the products.&lt;br /&gt;&lt;br /&gt;   2. Typical&lt;br /&gt;       Allows you to specify common defaults and options.&lt;br /&gt;&lt;br /&gt;   3. Custom&lt;br /&gt;       Allows you to specify more advanced options. This is &lt;br /&gt;       recommended for experienced server administrators only.&lt;br /&gt;&lt;br /&gt;To accept the default shown in brackets, press the Enter key.&lt;br /&gt;&lt;br /&gt;Choose a setup type [2]: 2&lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;Enter the fully qualified domain name of the computer&lt;br /&gt;on which you're setting up server software. Using the form&lt;br /&gt;&lt;hostname&gt;.&lt;domainname&gt;&lt;br /&gt;Example: eros.example.com.&lt;br /&gt;&lt;br /&gt;To accept the default shown in brackets, press the Enter key.&lt;br /&gt;&lt;br /&gt;Warning: This step may take a few minutes if your DNS servers&lt;br /&gt;can not be reached or if DNS is not configured correctly.  If&lt;br /&gt;you would rather not wait, hit Ctrl-C and run this program again&lt;br /&gt;with the following command line option to specify the hostname:&lt;br /&gt;&lt;br /&gt;    General.FullMachineName=your.hostname.domain.name&lt;br /&gt;&lt;br /&gt;Computer name [ketoprak.sidoel.com.sidoel.com]: ketoprak.sidoel.com&lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;The server must run as a specific user in a specific group.&lt;br /&gt;It is strongly recommended that this user should have no privileges&lt;br /&gt;on the computer (i.e. a non-root user).  The setup procedure&lt;br /&gt;will give this user/group some permissions in specific paths/files&lt;br /&gt;to perform server-specific operations.&lt;br /&gt;&lt;br /&gt;If you have not yet created a user and group for the server,&lt;br /&gt;create this user and group using your native operating&lt;br /&gt;system utilities.&lt;br /&gt;&lt;br /&gt;System User [nobody]: &lt;br /&gt;System Group [nobody]: &lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;The standard directory server network port number is 389.  However, if&lt;br /&gt;you are not logged as the superuser, or port 389 is in use, the&lt;br /&gt;default value will be a random unused port number greater than 1024.&lt;br /&gt;If you want to use port 389, make sure that you are logged in as the&lt;br /&gt;superuser, that port 389 is not in use.&lt;br /&gt;&lt;br /&gt;Directory server network port [389]: &lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;Each instance of a directory server requires a unique identifier.&lt;br /&gt;This identifier is used to name the various&lt;br /&gt;instance specific files and directories in the file system,&lt;br /&gt;as well as for other uses as a server instance identifier.&lt;br /&gt;&lt;br /&gt;Directory server identifier [ketoprak]: &lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;The suffix is the root of your directory tree.  The suffix must be a valid DN.&lt;br /&gt;It is recommended that you use the dc=domaincomponent suffix convention.&lt;br /&gt;For example, if your domain is example.com,&lt;br /&gt;you should use dc=example,dc=com for your suffix.&lt;br /&gt;Setup will create this initial suffix for you,&lt;br /&gt;but you may have more than one suffix.&lt;br /&gt;Use the directory server utilities to create additional suffixes.&lt;br /&gt;&lt;br /&gt;Suffix [dc=sidoel, dc=com]: &lt;br /&gt;&lt;br /&gt;==============================================================================&lt;br /&gt;Certain directory server operations require an administrative user.&lt;br /&gt;This user is referred to as the Directory Manager and typically has a&lt;br /&gt;bind Distinguished Name (DN) of cn=Directory Manager.&lt;br /&gt;You will also be prompted for the password for this user.  The password must&lt;br /&gt;be at least 8 characters long, and contain no spaces.&lt;br /&gt;Press Control-B or type the word "back", then Enter to back up and start over.&lt;br /&gt;&lt;br /&gt;Directory Manager DN [cn=Directory Manager]: &lt;br /&gt;Password: manager^123&lt;br /&gt;Password (confirm): manager^123&lt;br /&gt;Your new DS instance 'ketoprak' was successfully created.&lt;br /&gt;Exiting . . .&lt;br /&gt;Log file is '/tmp/setupzE1qqa.log'&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;It will generate instance database named slapd-ketoprak&lt;/br&gt;the configuration you can find it at /etc/dirsrv/slapd-ketoprak&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak slapd-ketoprak]# cd /etc/dirsrv/slapd-ketoprak/&lt;br /&gt;[root@ketoprak slapd-ketoprak]# ls&lt;br /&gt;cert8.db  certmap.conf  dse.ldif  dse.ldif.bak  dse.ldif.startOK  dse_original.ldif  key3.db  schema  secmod.db  slapd-collations.conf&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;See entire Database, using ldap search&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak ~]# ldapsearch -x -b "dc=sidoel,dc=com"&lt;br /&gt;# extended LDIF&lt;br /&gt;#&lt;br /&gt;# LDAPv3&lt;br /&gt;# base &lt;dc=sidoel,dc=com&gt; with scope subtree&lt;br /&gt;# filter: (objectclass=*)&lt;br /&gt;# requesting: ALL&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# sidoel.com&lt;br /&gt;dn: dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: domain&lt;br /&gt;dc: sidoel&lt;br /&gt;&lt;br /&gt;# Directory Administrators, sidoel.com&lt;br /&gt;dn: cn=Directory Administrators,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: groupofuniquenames&lt;br /&gt;cn: Directory Administrators&lt;br /&gt;uniqueMember: cn=Directory Manager&lt;br /&gt;&lt;br /&gt;# Groups, sidoel.com&lt;br /&gt;dn: ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: organizationalunit&lt;br /&gt;ou: Groups&lt;br /&gt;&lt;br /&gt;# People, sidoel.com&lt;br /&gt;dn: ou=People,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: organizationalunit&lt;br /&gt;ou: People&lt;br /&gt;&lt;br /&gt;# Special Users, sidoel.com&lt;br /&gt;dn: ou=Special Users,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: organizationalUnit&lt;br /&gt;ou: Special Users&lt;br /&gt;description: Special Administrative Accounts&lt;br /&gt;&lt;br /&gt;# Accounting Managers, Groups, sidoel.com&lt;br /&gt;dn: cn=Accounting Managers,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: groupOfUniqueNames&lt;br /&gt;cn: Accounting Managers&lt;br /&gt;ou: groups&lt;br /&gt;description: People who can manage accounting entries&lt;br /&gt;uniqueMember: cn=Directory Manager&lt;br /&gt;&lt;br /&gt;# HR Managers, Groups, sidoel.com&lt;br /&gt;dn: cn=HR Managers,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: groupOfUniqueNames&lt;br /&gt;cn: HR Managers&lt;br /&gt;ou: groups&lt;br /&gt;description: People who can manage HR entries&lt;br /&gt;uniqueMember: cn=Directory Manager&lt;br /&gt;&lt;br /&gt;# QA Managers, Groups, sidoel.com&lt;br /&gt;dn: cn=QA Managers,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: groupOfUniqueNames&lt;br /&gt;cn: QA Managers&lt;br /&gt;ou: groups&lt;br /&gt;description: People who can manage QA entries&lt;br /&gt;uniqueMember: cn=Directory Manager&lt;br /&gt;&lt;br /&gt;# PD Managers, Groups, sidoel.com&lt;br /&gt;dn: cn=PD Managers,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: groupOfUniqueNames&lt;br /&gt;cn: PD Managers&lt;br /&gt;ou: groups&lt;br /&gt;description: People who can manage engineer entries&lt;br /&gt;uniqueMember: cn=Directory Manager&lt;br /&gt;&lt;br /&gt;# search result&lt;br /&gt;search: 2&lt;br /&gt;result: 0 Success&lt;br /&gt;&lt;br /&gt;# numResponses: 10&lt;br /&gt;# numEntries: 9&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;Now I will add some account and group to the Database. Using ldif file.&lt;/br&gt;add entries for user fazrie and Linux Group&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak ~]# vi account.ldif&lt;br /&gt;dn: cn=Linux Users,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: posixGroup&lt;br /&gt;objectClass: top&lt;br /&gt;cn: Linux Users&lt;br /&gt;userPassword: {crypt}x&lt;br /&gt;gidNumber: 1001&lt;br /&gt;&lt;br /&gt;dn: uid=fazrie,ou=People,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: posixaccount&lt;br /&gt;cn: Fazrie&lt;br /&gt;gidNumber: 1001&lt;br /&gt;homeDirectory: /home/fazrie&lt;br /&gt;uid: fazrie&lt;br /&gt;uidNumber: 1001&lt;br /&gt;loginShell: /bin/bash&lt;br /&gt;userPassword: {crypt}x&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;Insert the ldif file to Database usign ldapmodify commands&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak ~]# ldapmodify -x -a -p 389 -h localhost -D "cn=Directory Manager" -w manager^123 -f account.ldif &lt;br /&gt;adding new entry "cn=Linux Users,ou=Groups,dc=sidoel,dc=com"&lt;br /&gt;&lt;br /&gt;adding new entry "uid=fazrie,ou=People,dc=sidoel,dc=com"&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;Check the account we have been insert.&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak ~]# ldapsearch -x -b "dc=sidoel,dc=com" | grep fazrie&lt;br /&gt;# fazrie, People, sidoel.com&lt;br /&gt;dn: uid=fazrie,ou=People,dc=sidoel,dc=com&lt;br /&gt;homeDirectory: /home/fazrie&lt;br /&gt;uid: fazrie&lt;br /&gt;[root@ketoprak ~]# ldapsearch -x -b "dc=sidoel,dc=com" | grep Linux&lt;br /&gt;# Linux Users, Groups, sidoel.com&lt;br /&gt;dn: cn=Linux Users,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;cn: Linux Users&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;modify password ldap account&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak ~]# ldappasswd -xv -D "cn=Directory Manager" -w manager^123 -S "uid=fazrie,ou=People,dc=sidoel,dc=com"&lt;br /&gt;New password: fazrie&lt;br /&gt;Re-enter new password: fazrie &lt;br /&gt;ldap_initialize( &lt;DEFAULT&gt; )&lt;br /&gt;Result: Confidentiality required (13)&lt;br /&gt;Additional info: Operation requires a secure connection.&lt;br /&gt;&lt;/pre&gt;You can combine it with samba as pdc follow this link&lt;a href="http://kura2gurun.blogspot.com/2011/06/samba-pdc-with-centos-directory-server.html"&gt;http://kura2gurun.blogspot.com/2011/06/samba-pdc-with-centos-directory-server.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-2057250876807200350?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/2057250876807200350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2012/01/part-i-389-directory-server-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2057250876807200350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2057250876807200350'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2012/01/part-i-389-directory-server-on-centos.html' title='Part I - 389 Directory Server on Centos 6.2'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-5059108154338842309</id><published>2011-12-20T20:10:00.000-08:00</published><updated>2011-12-20T20:10:15.639-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>tips and trick part 7</title><content type='html'>I found some interesting commands at the internet,  &lt;/br&gt;&lt;/br&gt;1. Google query for finding ebook or files directly&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;-inurl:htm -inurl:html intitle:"index of" +("/ebooks"|"/book") +(chm|pdf|zip) +"Solaris 10"&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;2. How to kill a session in linux&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;kill -9 `ps -u herwidodok | grep -v PID | awk '{ printf ("%s ", $1); }'`&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;3. How to create an iso file&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;mkisofs -JR -joliet-long -V my_label -o my_iso_file.iso /path/the/folder/you/want/to/create/an/iso&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-5059108154338842309?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/5059108154338842309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/12/tips-and-trick-part-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5059108154338842309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5059108154338842309'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/12/tips-and-trick-part-7.html' title='tips and trick part 7'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-7721656726520720598</id><published>2011-12-20T19:59:00.000-08:00</published><updated>2011-12-20T19:59:14.657-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><category scheme='http://www.blogger.com/atom/ns#' term='SELinux'/><title type='text'>OpenVPN modules for SELinux</title><content type='html'>Each time I setup a new keys for my client, the selinux always preventing the connection so the vpn wont work.this is the syntax for enable openvpn selinux. &lt;pre class="brush: bash"&gt;&lt;br /&gt;module openvpn 1.0;&lt;br /&gt;&lt;br /&gt;require {&lt;br /&gt;        type openvpn_t;&lt;br /&gt;        type user_home_t;&lt;br /&gt;        class file { read open };&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#============= openvpn_t ==============&lt;br /&gt;allow openvpn_t user_home_t:file open;&lt;br /&gt;#!!!! This avc is allowed in the current policy&lt;br /&gt;&lt;br /&gt;allow openvpn_t user_home_t:file read;&lt;br /&gt;&lt;/pre&gt;And how to generate a module from *.te file? please read my previous article&lt;/br&gt;&lt;a href="http://kura2gurun.blogspot.com/2011/09/tips-and-trick-part-3.html"&gt;http://kura2gurun.blogspot.com/2011/09/tips-and-trick-part-3.html&lt;/a&gt;&lt;/br&gt;&lt;/br&gt;Bye :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-7721656726520720598?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/7721656726520720598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/12/openvpn-modules-for-selinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7721656726520720598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7721656726520720598'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/12/openvpn-modules-for-selinux.html' title='OpenVPN modules for SELinux'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-7218047725104854001</id><published>2011-12-01T02:37:00.001-08:00</published><updated>2011-12-20T19:46:27.727-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>mounting udf file system</title><content type='html'>&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x86(32 bit)]# mount -o loop -t udf en_windows_7_ultimate_x86_dvd_x15-65921.iso /media/iso/&lt;br /&gt;mount: unknown filesystem type 'udf'&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x86(32 bit)]# cat /proc/filesystems &lt;br /&gt;nodev sysfs&lt;br /&gt;nodev rootfs&lt;br /&gt;nodev bdev&lt;br /&gt;nodev proc&lt;br /&gt;nodev cgroup&lt;br /&gt;nodev cpuset&lt;br /&gt;nodev tmpfs&lt;br /&gt;nodev devtmpfs&lt;br /&gt;nodev binfmt_misc&lt;br /&gt;nodev debugfs&lt;br /&gt;nodev securityfs&lt;br /&gt;nodev sockfs&lt;br /&gt;nodev usbfs&lt;br /&gt;nodev pipefs&lt;br /&gt;nodev anon_inodefs&lt;br /&gt;nodev devpts&lt;br /&gt; ext3&lt;br /&gt; ext4&lt;br /&gt;nodev ramfs&lt;br /&gt;nodev hugetlbfs&lt;br /&gt; iso9660&lt;br /&gt;nodev autofs&lt;br /&gt;nodev mqueue&lt;br /&gt;nodev selinuxfs&lt;br /&gt;nodev fuse&lt;br /&gt; fuseblk&lt;br /&gt;nodev fusectl&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x64(64 bit)]# modprobe -l | grep udf&lt;br /&gt;kernel/fs/udf/udf.ko&lt;br /&gt;[root@A1009 x86(32 bit)]# locate udf.ko&lt;br /&gt;/lib/modules/2.6.35.14-103.fc14.x86_64/kernel/fs/udf/udf.ko&lt;br /&gt;/lib/modules/2.6.35.14-95.fc14.x86_64/kernel/fs/udf/udf.ko&lt;br /&gt;/lib/modules/2.6.35.14-96.fc14.x86_64/kernel/fs/udf/udf.ko&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x86(32 bit)]# uname -a&lt;br /&gt;Linux A1009.asyx.com 2.6.35.14-103.fc14.x86_64 #1 SMP Thu Oct 27 15:41:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;[root@A1009 x86(32 bit)]# cd /lib/modules/2.6.35.14-103.fc14.x86_64/kernel/fs/udf/&lt;br /&gt;[root@A1009 x86(32 bit)]# insmod udf.ko&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x86(32 bit)]# cat /proc/filesystems &lt;br /&gt;nodev sysfs&lt;br /&gt;nodev rootfs&lt;br /&gt;nodev bdev&lt;br /&gt;nodev proc&lt;br /&gt;nodev cgroup&lt;br /&gt;nodev cpuset&lt;br /&gt;nodev tmpfs&lt;br /&gt;nodev devtmpfs&lt;br /&gt;nodev binfmt_misc&lt;br /&gt;nodev debugfs&lt;br /&gt;nodev securityfs&lt;br /&gt;nodev sockfs&lt;br /&gt;nodev usbfs&lt;br /&gt;nodev pipefs&lt;br /&gt;nodev anon_inodefs&lt;br /&gt;nodev devpts&lt;br /&gt; ext3&lt;br /&gt; ext4&lt;br /&gt;nodev ramfs&lt;br /&gt;nodev hugetlbfs&lt;br /&gt; iso9660&lt;br /&gt;nodev autofs&lt;br /&gt;nodev mqueue&lt;br /&gt;nodev selinuxfs&lt;br /&gt;nodev fuse&lt;br /&gt; fuseblk&lt;br /&gt;nodev fusectl&lt;br /&gt;        udf &lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x64(64 bit)]# mount -o loop -t udf en_windows_7_ultimate_x64_dvd_x15-65922.iso /media/iso/&lt;br /&gt;loop: can't delete device /dev/loop2: Device or resource busy&lt;br /&gt;mount: wrong fs type, bad option, bad superblock on /dev/loop2,&lt;br /&gt;       missing codepage or helper program, or other error&lt;br /&gt;       In some cases useful info is found in syslog - try&lt;br /&gt;       dmesg | tail  or so&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x86(32 bit)]# lsof | grep loop&lt;br /&gt;lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/heriyanto/.gvfs&lt;br /&gt;      Output information may be incomplete.&lt;br /&gt;abrtd     2805      root  mem       REG              253,2      24088    1186347 /usr/lib64/abrt/libKerneloopsScanner.so&lt;br /&gt;abrtd     2805      root  mem       REG              253,2      15664    1186346 /usr/lib64/abrt/libKerneloopsReporter.so&lt;br /&gt;abrtd     2805      root  mem       REG              253,2      11400    1186345 /usr/lib64/abrt/libKerneloops.so&lt;br /&gt;gnome-set 3581 heriyanto  mem       REG              253,2      18744    1185847 /usr/lib64/libpulse-mainloop-glib.so.0.0.4&lt;br /&gt;gnome-vol 3657 heriyanto  mem       REG              253,2      18744    1185847 /usr/lib64/libpulse-mainloop-glib.so.0.0.4&lt;br /&gt;loop0     4942      root  cwd       DIR              253,2       4096          2 /&lt;br /&gt;loop0     4942      root  rtd       DIR              253,2       4096          2 /&lt;br /&gt;loop0     4942      root  txt   unknown                                          /proc/4942/exe&lt;br /&gt;loop1     6744      root  cwd       DIR              253,2       4096          2 /&lt;br /&gt;loop1     6744      root  rtd       DIR              253,2       4096          2 /&lt;br /&gt;loop1     6744      root  txt   unknown                                          /proc/6744/exe&lt;br /&gt;loop2     6838      root  cwd       DIR              253,2       4096          2 /&lt;br /&gt;loop2     6838      root  rtd       DIR              253,2       4096          2 /&lt;br /&gt;loop2     6838      root  txt   unknown                                          /proc/6838/exe&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x86(32 bit)]# ps axf | grep loop&lt;br /&gt; 4942 ?        S&lt;     0:00  \_ [loop0]&lt;br /&gt; 6744 ?        S&lt;     0:00  \_ [loop1]&lt;br /&gt; 6838 ?        S&lt;     0:00  \_ [loop2]&lt;br /&gt; 6915 pts/0    S+     0:00                      \_ grep --color=auto loop&lt;br /&gt;&lt;br /&gt;[root@A1009 x86(32 bit)]# kill -9 6744&lt;br /&gt;[root@A1009 x86(32 bit)]# kill -9 6838&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@A1009 x86(32 bit)]# mount -o loop -t udf en_windows_7_ultimate_x86_dvd_x15-65921.iso /media/iso/&lt;br /&gt;mount: warning: /media/iso/ seems to be mounted read-only.&lt;br /&gt;[root@A1009 x86(32 bit)]# ls /media/iso/&lt;br /&gt;autorun.inf  boot  bootmgr  efi  setup.exe  sources  support  upgrade&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-7218047725104854001?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/7218047725104854001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/12/mounting-udf-file-system.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7218047725104854001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7218047725104854001'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/12/mounting-udf-file-system.html' title='mounting udf file system'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-34539247765474648</id><published>2011-11-17T19:26:00.001-08:00</published><updated>2011-12-20T19:46:39.656-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>tips and trick part 6</title><content type='html'>1.) How to extract RPM packages&lt;/br&gt;use &lt;b&gt;rpm2cpio "package-name" | cpio -idv&lt;/b&gt;&lt;/br&gt;&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[fazries@A1008]# rpm2cpio flash-plugin-11.0.1.152-release.x86_64.rpm |cpio -idv&lt;br /&gt;./usr/lib64/flash-plugin&lt;br /&gt;./usr/lib64/flash-plugin/LICENSE&lt;br /&gt;./usr/lib64/flash-plugin/README&lt;br /&gt;./usr/lib64/flash-plugin/homecleanup&lt;br /&gt;./usr/lib64/flash-plugin/libflashplayer.so&lt;br /&gt;./usr/lib64/flash-plugin/setup&lt;br /&gt;./usr/share/doc/flash-plugin-11.0.1.152&lt;br /&gt;./usr/share/doc/flash-plugin-11.0.1.152/readme.txt&lt;br /&gt;36761 blocks&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-34539247765474648?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/34539247765474648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/11/tips-and-trick-part-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/34539247765474648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/34539247765474648'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/11/tips-and-trick-part-6.html' title='tips and trick part 6'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-2003799732248497853</id><published>2011-11-17T02:05:00.001-08:00</published><updated>2011-12-20T19:47:11.275-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Splunk'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Mod Security2 Apps for Splunk</title><content type='html'>Hai, I'm back.&lt;br /&gt;today I will explain how to make an applications for Splunk, as an example I will used mod security2 ( because I cannot find apps for this -_-! so lets make it by your self ).&lt;br /&gt;this is the example after I build my own apps for mod security2.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-2ydq3ZhDWKo/TsTdhW384iI/AAAAAAAAAdY/vyQA1uTv-QU/s1600/splunk1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="188" src="http://4.bp.blogspot.com/-2ydq3ZhDWKo/TsTdhW384iI/AAAAAAAAAdY/vyQA1uTv-QU/s320/splunk1.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Next, First step. 1) We will make apps template provide by Splunk&lt;br /&gt;Login to Splunk and go to &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Manager-Apps-create apps&lt;/b&gt;&lt;br /&gt;look like the image below&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-JjYfm17V1oo/TsTeDSDffvI/AAAAAAAAAdk/SIeZcYq3pmk/s1600/splunk2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-JjYfm17V1oo/TsTeDSDffvI/AAAAAAAAAdk/SIeZcYq3pmk/s320/splunk2.png" width="308" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Fill the empty field like the image above, or you can put everything you want&lt;br /&gt;&lt;br /&gt;2) After the template has been created, you should preparing the tools&lt;br /&gt;go to /opt/splunk/etc/apps&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;[root@localhost ~]# cd /opt/splunk/etc/apps&lt;br /&gt;[root@localhost apps]# cd mod_security2/default&lt;br /&gt;[root@localhost default]#  touch {indexes.conf,inputs.conf,props.conf,savedsearches.conf,transforms.conf}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;here we have 5 files, for configuration, you can find the explanation for each files at &lt;br /&gt;&lt;a href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Whatsinthismanual"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Whatsinthismanual&lt;/a&gt;&lt;br /&gt;and type on the"search" :-)&lt;br /&gt;&lt;b&gt;indexes.conf&lt;/b&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;# Copyright (C) 2005-2011 Splunk Inc. All Rights Reserved.  Version 4.2.4&lt;br /&gt;# Creates a sample index for sample data.&lt;br /&gt;&lt;br /&gt;[modsec]&lt;br /&gt;homePath   = $SPLUNK_DB/modsec/db&lt;br /&gt;coldPath   = $SPLUNK_DB/modsec/colddb&lt;br /&gt;thawedPath = $SPLUNK_DB/modsec/thaweddb&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;inputs.conf&lt;/b&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;# Copyright (C) 2005-2011 Splunk Inc. All Rights Reserved.  Version 4.2.4&lt;br /&gt;# Creates an input for sample data.&lt;br /&gt;&lt;br /&gt;[monitor:///var/log/httpd/modsec_audit.log]&lt;br /&gt;index=modsec&lt;br /&gt;source=mod_security&lt;br /&gt;sourcetype=modsec&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;props.conf&lt;/b&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;[modsec]&lt;br /&gt;TRUNCATE = 0 &lt;br /&gt;SHOULD_LINEMERGE = true&lt;br /&gt;BREAK_ONLY_BEFORE = (--[a-z0-9]+-A--)&lt;br /&gt;REPORT-get = get&lt;br /&gt;REPORT-post = post&lt;br /&gt;REPORT-severity = severity&lt;br /&gt;REPORT-msg = msg&lt;br /&gt;REPORT-error = error&lt;br /&gt;REPORT-ipsrc = ipsrc&lt;br /&gt;REPORT-tagid = tagid&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;savedsearches.conf&lt;/b&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;[default]&lt;br /&gt;disabled = 0&lt;br /&gt;&lt;br /&gt;[All Status]&lt;br /&gt;enableSched = 0&lt;br /&gt;search = index=modsec sourcetype="modsec" sev_stat="*" tagid_stat="*" ipsrc_stat="*" msg_stat="*"&lt;br /&gt;dispatch.earliest_time = -4d&lt;br /&gt;vsid = *:guuvw49b&lt;br /&gt;&lt;br /&gt;[Severity Status]&lt;br /&gt;enableSched = 0&lt;br /&gt;search =  index=modsec sourcetype="modsec" | top  sev_stat limit=1000&lt;br /&gt;dispatch.earliest_time = -7d@d&lt;br /&gt;vsid = *:guuvw49b&lt;br /&gt;&lt;br /&gt;[HTTP/GET Status]&lt;br /&gt;enableSched = 0&lt;br /&gt;search =  index=modsec sourcetype="modsec" | top  ms_get limit=1000&lt;br /&gt;dispatch.earliest_time = -7d@d&lt;br /&gt;vsid = *:guuvw49b&lt;br /&gt;&lt;br /&gt;[HTTP/POST Status]&lt;br /&gt;enableSched = 0&lt;br /&gt;search =  index=modsec sourcetype="modsec" | top  ms_post limit=1000&lt;br /&gt;dispatch.earliest_time = -7d@d&lt;br /&gt;vsid = *:guuvw49b&lt;br /&gt;&lt;br /&gt;[HTTP Error Status]&lt;br /&gt;enableSched = 0&lt;br /&gt;search =  index=modsec sourcetype="modsec" | top  error_stat limit=1000&lt;br /&gt;dispatch.earliest_time = -7d@d&lt;br /&gt;vsid = *:guuvw49b&lt;br /&gt;&lt;br /&gt;[Vulnerability Message]&lt;br /&gt;enableSched = 0&lt;br /&gt;search =  index=modsec sourcetype="modsec" | top  msg_stat limit=1000&lt;br /&gt;dispatch.earliest_time = -7d@d&lt;br /&gt;vsid = *:guuvw49b&lt;br /&gt;&lt;br /&gt;[IP Source Status]&lt;br /&gt;enableSched = 0&lt;br /&gt;search =  index=modsec sourcetype="modsec" | top  ipsrc_stat limit=1000&lt;br /&gt;dispatch.earliest_time = -7d@d&lt;br /&gt;vsid = *:guuvw49b&lt;br /&gt;&lt;br /&gt;[Vulnerability Status]&lt;br /&gt;enableSched = 0&lt;br /&gt;search =  index=modsec sourcetype="modsec" | top  tagid_stat limit=1000&lt;br /&gt;dispatch.earliest_time = -7d@d&lt;br /&gt;vsid = *:guuvw49b&lt;br /&gt;&lt;br /&gt;[HTTP Error Message]&lt;br /&gt;action.email.reportServerEnabled = 0&lt;br /&gt;alert.suppress = 0&lt;br /&gt;alert.track = 0&lt;br /&gt;dispatch.earliest_time = -7d@d&lt;br /&gt;dispatch.latest_time = now&lt;br /&gt;displayview = report_builder_display&lt;br /&gt;request.ui_dispatch_view = report_builder_display&lt;br /&gt;search = index=modsec sourcetype="modsec" | top error_stat limit="100"&lt;br /&gt;vsid = *:gv3j8amu&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;transforms.conf&lt;/b&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;[get]&lt;br /&gt;REGEX = (GET.+?)$&lt;br /&gt;FORMAT = ms_get::$1&lt;br /&gt;&lt;br /&gt;[post]&lt;br /&gt;REGEX = (POST.+?)$&lt;br /&gt;FORMAT = ms_post::$1&lt;br /&gt;&lt;br /&gt;[severity]&lt;br /&gt;REGEX = (severity)."(.+?)"\]&lt;br /&gt;FORMAT = sev_stat::$2&lt;br /&gt;&lt;br /&gt;[msg]&lt;br /&gt;REGEX = \[(msg)."(.+?)"\]&lt;br /&gt;FORMAT = msg_stat::$2&lt;br /&gt;&lt;br /&gt;[error]&lt;br /&gt;REGEX = (HTTP/....[45]0[0-5]\s\w{1,}.*)&lt;br /&gt;FORMAT = error_stat::$1&lt;br /&gt;&lt;br /&gt;[ipsrc]&lt;br /&gt;REGEX = 0\]\s{1}\w{1,}\s{1}(\d+\.\d+\.\d+\.\d+)?&lt;br /&gt;FORMAT = ipsrc_stat::$1&lt;br /&gt;&lt;br /&gt;[tagid]&lt;br /&gt;REGEX = tag\s"(\w{1,}.+?)"\]&lt;br /&gt;FORMAT = tagid_stat::$1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;3) Modify the navigation menus&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;[root@localhost default]# vim ../local/data/ui/nav/default.xml&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;modify this&lt;br /&gt;&lt;pre class="brush: xml"&gt;&lt;collection label="Searches"&gt;&lt;br /&gt;        &lt;saved name="Sendmail transactions" view="sample_search"&gt;&lt;br /&gt;        &lt;collection label="unclassified searches"&gt;&lt;br /&gt;             &lt;saved source="unclassified"&gt;&lt;br /&gt;        &lt;/saved&gt;&lt;/collection&gt;&lt;br /&gt;    &lt;/saved&gt;&lt;/collection&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;became this&lt;br /&gt;&lt;pre class="brush: xml"&gt;&lt;collection label="Searches &amp;amp; Reports"&gt;&lt;br /&gt;        &lt;collection label="All Status"&gt;&lt;br /&gt;             &lt;saved match="All Status" source="unclassified"&gt;&lt;br /&gt;        &lt;/saved&gt;&lt;/collection&gt;&lt;br /&gt;        &lt;collection label="Top event &amp;amp; Status"&gt;&lt;br /&gt;             &lt;saved match="Vulnerability Status" source="unclassified"&gt;&lt;br /&gt;             &lt;saved match="Vulnerability Message" source="unclassified"&gt;&lt;br /&gt;             &lt;saved match="Severity Status" source="unclassified"&gt;&lt;br /&gt;             &lt;saved match="HTTP Error Status" source="unclassified"&gt;&lt;br /&gt;             &lt;saved match="HTTP/GET Status" source="unclassified"&gt;&lt;br /&gt;             &lt;saved match="HTTP/POST Status" source="unclassified"&gt;&lt;br /&gt;             &lt;saved match="IP Source Status" source="unclassified"&gt;&lt;br /&gt;        &lt;/saved&gt;&lt;/saved&gt;&lt;/saved&gt;&lt;/saved&gt;&lt;/saved&gt;&lt;/saved&gt;&lt;/saved&gt;&lt;/collection&gt;&lt;br /&gt;        &lt;collection label="Reports"&gt;&lt;br /&gt;             &lt;saved match="Severity Report" source="unclassified"&gt;&lt;br /&gt;             &lt;saved match="User Agent Report" source="unclassified"&gt;&lt;br /&gt;             &lt;saved match="HTTP Error Message" source="unclassified"&gt;&lt;br /&gt;        &lt;/saved&gt;&lt;/saved&gt;&lt;/saved&gt;&lt;/collection&gt;&lt;br /&gt;    &lt;/collection&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;4) touch &lt;b&gt;/opt/splunk/etc/apps/mod_security2/local/viewstates.conf&lt;/b&gt; if that file not there.&lt;br /&gt;fill with this &lt;br /&gt;&lt;pre class="brush: xml"&gt;[*:guuvw49b]&lt;br /&gt;AxisScaleFormatter_0_9_0.default = ""&lt;br /&gt;ChartTypeFormatter_0_4_0.default = bar&lt;br /&gt;Count_0_3_0.default = 10&lt;br /&gt;DataOverlay_0_5_0.dataOverlayMode = none&lt;br /&gt;DataOverlay_0_5_0.default = none&lt;br /&gt;FlashChart_0_4_1.height = 300px&lt;br /&gt;LegendFormatter_0_10_0.default = top&lt;br /&gt;LineMarkerFormatter_0_7_0.default = false&lt;br /&gt;NullValueFormatter_0_9_0.default = gaps&lt;br /&gt;SplitModeFormatter_0_8_0.default = false&lt;br /&gt;StackModeFormatter_0_7_0.default = default&lt;br /&gt;XAxisTitleFormatter_0_6_1.default = tagid_stat&lt;br /&gt;YAxisRangeMaximumFormatter_0_8_0.default = ""&lt;br /&gt;YAxisRangeMinimumFormatter_0_7_0.default = ""&lt;br /&gt;YAxisTitleFormatter_0_6_2.default = Frequency&lt;br /&gt;&lt;br /&gt;[*:gv3fqc6l]&lt;br /&gt;AxisScaleFormatter_0_9_0.default = ""&lt;br /&gt;ChartTypeFormatter_0_4_0.default = area&lt;br /&gt;Count_0_3_0.default = 10&lt;br /&gt;DataOverlay_0_5_0.dataOverlayMode = none&lt;br /&gt;DataOverlay_0_5_0.default = none&lt;br /&gt;FlashChart_0_4_1.height = 300px&lt;br /&gt;LegendFormatter_0_10_0.default = top&lt;br /&gt;LineMarkerFormatter_0_7_0.default = false&lt;br /&gt;NullValueFormatter_0_9_0.default = gaps&lt;br /&gt;SplitModeFormatter_0_8_0.default = false&lt;br /&gt;StackModeFormatter_0_7_0.default = default&lt;br /&gt;XAxisTitleFormatter_0_6_1.default = time&lt;br /&gt;YAxisRangeMaximumFormatter_0_8_0.default = ""&lt;br /&gt;YAxisRangeMinimumFormatter_0_7_0.default = ""&lt;br /&gt;YAxisTitleFormatter_0_6_2.default = count of events&lt;br /&gt;&lt;br /&gt;[*:gv3j8amu]&lt;br /&gt;AxisScaleFormatter_0_9_0.default = ""&lt;br /&gt;ChartTitleFormatter_0_6_0.default = HTTP Error Message&lt;br /&gt;ChartTypeFormatter_0_4_0.default = pie&lt;br /&gt;Count_0_3_0.default = 10&lt;br /&gt;DataOverlay_0_5_0.dataOverlayMode = none&lt;br /&gt;DataOverlay_0_5_0.default = none&lt;br /&gt;FlashChart_0_4_1.height = 300px&lt;br /&gt;LegendFormatter_0_10_0.default = right&lt;br /&gt;LineMarkerFormatter_0_7_0.default = false&lt;br /&gt;NullValueFormatter_0_9_0.default = gaps&lt;br /&gt;SplitModeFormatter_0_8_0.default = false&lt;br /&gt;StackModeFormatter_0_7_0.default = default&lt;br /&gt;XAxisTitleFormatter_0_6_1.default = error_stat&lt;br /&gt;YAxisRangeMaximumFormatter_0_8_0.default = ""&lt;br /&gt;YAxisRangeMinimumFormatter_0_7_0.default = ""&lt;br /&gt;YAxisTitleFormatter_0_6_2.default = Frequency&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;5) Restart Splunk services&lt;br /&gt;&lt;pre class="brush: xml"&gt;[root@localhost ~]# /opt/splunk/bin/splunk restart&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;6) Login to Splunk again, and try to accessing your mod security apss.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-rmd6CpYqa7g/TsTlws6Ce0I/AAAAAAAAAdw/ekI2JjC1wTc/s1600/splunk3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://3.bp.blogspot.com/-rmd6CpYqa7g/TsTlws6Ce0I/AAAAAAAAAdw/ekI2JjC1wTc/s320/splunk3.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-brmPp90ORhg/TsTmT5gziGI/AAAAAAAAAd8/t9U9mZZvzvw/s1600/splunk4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-brmPp90ORhg/TsTmT5gziGI/AAAAAAAAAd8/t9U9mZZvzvw/s320/splunk4.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-2003799732248497853?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/2003799732248497853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/11/mod-security2-apps-for-splunk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2003799732248497853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2003799732248497853'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/11/mod-security2-apps-for-splunk.html' title='Mod Security2 Apps for Splunk'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-2ydq3ZhDWKo/TsTdhW384iI/AAAAAAAAAdY/vyQA1uTv-QU/s72-c/splunk1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-3322541972224943950</id><published>2011-10-27T19:50:00.000-07:00</published><updated>2011-10-27T19:54:41.413-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>authentication failure using SSH pam_unix(sshd:auth): authentication failure;</title><content type='html'>&lt;pre class="brush: bash"&gt;&lt;br /&gt;2011-10-24T11:22:22.125623+07:00 ID41-ND016 sshd[8909]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=sshK ruser= rhost=10.62.41.115  user=fazries&lt;br /&gt;2011-10-24T11:22:22.151540+07:00 ID41-ND016 sshd[8909]: Accepted password for fazries from 10.62.41.115 port 49633 ssh2&lt;br /&gt;2011-10-24T11:22:22.263304+07:00 ID41-ND016 sshd[8909]: pam_unix(sshd:session): session opened for user fazries by (uid=0)&lt;br /&gt;&lt;/pre&gt;when I try connect to another server using ssh, I found an error on /var/log/secure "pam_unix(sshd:auth): authentication failure; "&lt;/br&gt;okay, we know the problem is on the pam module, so we should look at sshd module on pam directory at /etc/pam.d/&lt;/br&gt;&lt;/br&gt;at /etc/pam.d/sshd&lt;pre class="brush: bash"&gt;&lt;br /&gt;auth       include      system-auth&lt;br /&gt;&lt;br /&gt;account    required     pam_nologin.so&lt;br /&gt;account    include      system-auth&lt;br /&gt;&lt;br /&gt;password   include     system-auth&lt;br /&gt;&lt;br /&gt;session    required     pam_selinux.so close&lt;br /&gt;session    include      system-auth&lt;br /&gt;session    required     pam_loginuid.so require_auditd&lt;br /&gt;&lt;/pre&gt;here we can see the authentication included system-auth"auth       include      system-auth". okay next we should take a look on /etc/pam.d/system-authon pam system-auth look at auth section, at my system-auth module, the system will check local system (pam_unix) at the first timethen check the ldap database (pam_ldap). &lt;/br&gt;&lt;/br&gt;Alhamdulillah that issue because sshd:auth want to connect to remote server and cannot find the user at local system (pam_unix), that's why appears message authentication failure,&lt;/br&gt;&lt;/br&gt;because my user at ldap database after cannot find the user on local system then sshd:auth try to find it at ldap database (pam_ldap), and found it.&lt;/br&gt;&lt;/br&gt;"Accepted password for fazries from 10.62.41.115 port 49633 ssh2"&lt;/br&gt;&lt;/br&gt;at /etc/pam.d/system-auth&lt;pre class="brush: bash"&gt;&lt;br /&gt;auth        required      pam_env.so&lt;br /&gt;auth        sufficient    pam_unix.so nullok try_first_pass&lt;br /&gt;auth        requisite     pam_succeed_if.so uid &gt;= 500 quiet&lt;br /&gt;auth        sufficient    pam_ldap.so use_first_pass&lt;br /&gt;auth        required      pam_deny.so&lt;br /&gt;&lt;/pre&gt;this is the way out.... :-)&lt;/br&gt;&lt;/br&gt;replace try_first_pass to pam.ldap.so and use_first_pass to pam_unix.so that will make ssh search user from ldap database first,if not found then ssh will search at local system.&lt;/br&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;auth        required      pam_env.so&lt;br /&gt;auth        sufficient    pam_ldap.so try_first_pass&lt;br /&gt;auth        sufficient    pam_unix.so nullok use_first_pass&lt;br /&gt;auth        requisite     pam_succeed_if.so uid &gt;= 500 quiet&lt;br /&gt;auth        required      pam_deny.so&lt;br /&gt;&lt;/pre&gt;&lt;/br&gt;that will make the error message "sshd[8909]: pam_unix(sshd:auth): authentication failure;" gone. &lt;pre class="brush: bash"&gt;&lt;br /&gt;2011-10-27T13:33:16.738779+07:00 ID41-ND016 sshd[16689]: Accepted password for fazries from 10.62.41.115 port 41924 ssh2&lt;br /&gt;2011-10-27T13:33:16.895793+07:00 ID41-ND016 sshd[16689]: pam_unix(sshd:session): session opened for user fazries by (uid=0)&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-3322541972224943950?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/3322541972224943950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/authentication-failure-using-ssh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3322541972224943950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3322541972224943950'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/authentication-failure-using-ssh.html' title='authentication failure using SSH pam_unix(sshd:auth): authentication failure;'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-6564409249379969846</id><published>2011-10-26T01:34:00.001-07:00</published><updated>2011-11-01T02:46:35.819-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wirausaha'/><title type='text'>Jual Madu Hutan Riau "Pak Arif"</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;Jual Madu Hutan Riau asli.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;spesifikasi:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;- Asli (InsyaAlloh) dari Hutan(Sialang) Riau&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;- Berat 1000gr/ 1kg&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;- Ada tanggal kadularsa nya (InsyaAlloh Aman) dan terjaga&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;- Rasa telah teruji&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Bila berminat silahkan hubungi YM (private message) yang tertera atau kirimkan email ke aji2782@gmail.com&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Ji5dxgRjBsU/TqfFMHfB1aI/AAAAAAAAAcw/8Gu6uhXoCT4/s1600/2011-10-17%2B05.44.13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/-Ji5dxgRjBsU/TqfFMHfB1aI/AAAAAAAAAcw/8Gu6uhXoCT4/s320/2011-10-17%2B05.44.13.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-NBlhd8on5H0/TqfFMa8BhQI/AAAAAAAAAdA/92OrNnhS9C0/s1600/2011-10-17%2B05.56.25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-NBlhd8on5H0/TqfFMa8BhQI/AAAAAAAAAdA/92OrNnhS9C0/s320/2011-10-17%2B05.56.25.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-NcNuojHLBxc/TqfFNDe4gHI/AAAAAAAAAdI/8KeIK3I976Q/s1600/depan.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-NcNuojHLBxc/TqfFNDe4gHI/AAAAAAAAAdI/8KeIK3I976Q/s320/depan.jpg" width="246" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-6564409249379969846?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/6564409249379969846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/jual-madu-hutan-riau.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/6564409249379969846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/6564409249379969846'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/jual-madu-hutan-riau.html' title='Jual Madu Hutan Riau &quot;Pak Arif&quot;'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-Ji5dxgRjBsU/TqfFMHfB1aI/AAAAAAAAAcw/8Gu6uhXoCT4/s72-c/2011-10-17%2B05.44.13.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-6901940163823763691</id><published>2011-10-18T20:38:00.000-07:00</published><updated>2011-10-20T03:12:11.704-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>check files inside a folder,nagios</title><content type='html'>Bagaimana mengecek jumlah file yang ada dalam sebuah folder?, bila file yang terdapat dalam sebuah folder melebihi batas maksimum/kosong yang telah kita tentukan, maka nagios mengirimkan pesan.&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Standard Nagios return codes&lt;br /&gt;#OK       = 0&lt;br /&gt;#WARNING  = 1&lt;br /&gt;#CRITICAL = 2&lt;br /&gt;#UNKNOWN  = 3&lt;br /&gt;&lt;br /&gt;#SUPGEN.csv.base&lt;br /&gt;&lt;br /&gt;usage()&lt;br /&gt;{&lt;br /&gt;        echo "usage: check_file [-c critical_value] [-d directory_path]"&lt;br /&gt;        echo&lt;br /&gt;        echo "check_file -c 0 -d /path/to/file/location"&lt;br /&gt;        exit 3&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;while getopts c:d: OPTNAME; do&lt;br /&gt;        case "$OPTNAME" in&lt;br /&gt;        c)&lt;br /&gt;                CRITVAL="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        d)&lt;br /&gt;                DIRPATH="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        *)&lt;br /&gt;                usage&lt;br /&gt;                ;;&lt;br /&gt;        esac&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;#check value&lt;br /&gt;if [ "$CRITVAL" = "" ]; then&lt;br /&gt;                echo "Error: critical_value must not empty"&lt;br /&gt;                usage&lt;br /&gt;                exit 3&lt;br /&gt;fi&lt;br /&gt;#check dir&lt;br /&gt;if [ "$DIRPATH" = "" ]; then&lt;br /&gt;                echo "Error: directory must exist do not empty"&lt;br /&gt;                usage&lt;br /&gt;                exit 3&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# get file status&lt;br /&gt;NUMFILE=$(($(ls -la $DIRPATH | grep -v '^d'| wc -l)-1))&lt;br /&gt;if [ $NUMFILE -gt $CRITVAL ] ; then&lt;br /&gt;&lt;br /&gt;                echo "*** CRITICAL ***"&lt;br /&gt;                echo "there is $NUMFILE files at $DIRPATH on `hostname`"&lt;br /&gt;                exit 2&lt;br /&gt;&lt;br /&gt;                else&lt;br /&gt;                echo "** OK ** $NUMFILE file at $DIRPATH on `hostname`"&lt;br /&gt;                exit 0&lt;br /&gt;fi&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-6901940163823763691?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/6901940163823763691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/check-files-on-foldernagios.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/6901940163823763691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/6901940163823763691'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/check-files-on-foldernagios.html' title='check files inside a folder,nagios'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-7678934758691265072</id><published>2011-10-18T02:19:00.000-07:00</published><updated>2011-10-20T03:12:28.314-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='active mq'/><category scheme='http://www.blogger.com/atom/ns#' term='JBoss'/><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>check file time stamp inside a folder, nagios</title><content type='html'>Bagaimana bila kita ingin memeriksa seluruh file dalam sebuah folder, lalu bila kita menemukan file yang time stamp nya lebih dari 30 menit/ dari waktu yang kita tentukan, nagios mengirimkan peringatan.&lt;pre class="brush: bash"&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Standard Nagios return codes&lt;br /&gt;#OK       = 0&lt;br /&gt;#WARNING  = 1&lt;br /&gt;#CRITICAL = 2&lt;br /&gt;#UNKNOWN  = 3&lt;br /&gt;&lt;br /&gt;usage()&lt;br /&gt;{&lt;br /&gt;        echo "usage: check_amq [-c critical_value (in minutes)] [-d amq_path]"&lt;br /&gt;        echo&lt;br /&gt;        echo "check_amq -c 30 -d /path/to/amq_journal"&lt;br /&gt;        exit 3&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;while getopts c:d: OPTNAME; do&lt;br /&gt;        case "$OPTNAME" in&lt;br /&gt;        c)&lt;br /&gt;                CRITVAL="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        d)&lt;br /&gt;                DIRPATH="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        *)&lt;br /&gt;                usage&lt;br /&gt;                ;;&lt;br /&gt;        esac&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#check value&lt;br /&gt;if [ "$CRITVAL" = "" ]; then&lt;br /&gt;        echo "Error: critical_value must not empty"&lt;br /&gt;        usage&lt;br /&gt;        exit 3&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;#check directory path&lt;br /&gt;if [ "$DIRPATH" = "" ]; then&lt;br /&gt;        echo "Error: directory path must not empty"&lt;br /&gt;        usage&lt;br /&gt;        exit 3&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;#set status number to 0&lt;br /&gt;stat=0&lt;br /&gt;&lt;br /&gt;# check if file are exist on that directory&lt;br /&gt;CHECKFILE=$(($(ls -la $DIRPATH | grep -v '^d'| wc -l)-1))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if [ $CHECKFILE -gt 0 ]; then&lt;br /&gt;&lt;br /&gt;        for file in $(find $DIRPATH -type f -print)&lt;br /&gt;        do&lt;br /&gt;                CHECK=`stat -c %y $file | cut -f1 -d '.'`&lt;br /&gt;                MINUTES_SINCE=$(((`date +%s` - `date -d "$CHECK" +%s`)/60))&lt;br /&gt;&lt;br /&gt;                if [ $MINUTES_SINCE -gt $CRITVAL ] ; then&lt;br /&gt;                        echo "$file are $MINUTES_SINCE minutes"&lt;br /&gt;                        let stat+=1&lt;br /&gt;                fi&lt;br /&gt;        done&lt;br /&gt;&lt;br /&gt;        if [ $stat -gt 0  ]; then&lt;br /&gt;                echo "*** CRITICAL ***"&lt;br /&gt;                echo "$stat files older than $CRITVAL minutes"&lt;br /&gt;                exit 2;&lt;br /&gt;        else&lt;br /&gt;                echo "OK - all file age lower than $CRITVAL minutes"&lt;br /&gt;                exit 0;&lt;br /&gt;        fi&lt;br /&gt;fi&lt;br /&gt;echo "No file at $DIRPATH"&lt;br /&gt;&lt;/pre&gt;hasil nya:&lt;pre class="brush: bash"&gt;&lt;br /&gt;[fazries@A1008 ~]$ ./check_amq.sh -c 100 -d /home/fazries/123&lt;br /&gt;/home/fazries/123/1.txt are 103 minutes&lt;br /&gt;*** CRITICAL ***&lt;br /&gt;1 files older than 100 minutes&lt;br /&gt;[fazries@A1008 ~]$ ./check_amq.sh -c 150 -d /home/fazries/123&lt;br /&gt;OK - all file age lower than 150 minutes&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-7678934758691265072?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/7678934758691265072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/check-file-time-stamp-inside-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7678934758691265072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7678934758691265072'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/check-file-time-stamp-inside-folder.html' title='check file time stamp inside a folder, nagios'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-994364674508640236</id><published>2011-10-18T02:13:00.000-07:00</published><updated>2011-10-20T03:12:42.896-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>check crond nagios plugin II</title><content type='html'>Metode kedua dengan cara membaca status dari cron log, dengan cara ini lebih sederhana. kita dapat melihat &lt;i&gt;service&lt;/i&gt; status dari log cron.lalu waktu dari log service tersebut di parsing menjadi detik dan dikurangi dengan waktu sekarang.&lt;pre class="brush: bash"&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Standard Nagios return codes&lt;br /&gt;#OK       = 0&lt;br /&gt;#WARNING  = 1&lt;br /&gt;#CRITICAL = 2&lt;br /&gt;#UNKNOWN  = 3&lt;br /&gt;&lt;br /&gt;LOG=/var/log/cron&lt;br /&gt;&lt;br /&gt;usage()&lt;br /&gt;{&lt;br /&gt;        echo "usage: check_crond [-w warning_value (in minutes)] [-c critical_value (in minutes)] -s services"&lt;br /&gt;        echo&lt;br /&gt;        echo "check_crond -w 0 -c 5 -s /usr/bin/yum"&lt;br /&gt;        echo "critical_value must be greater than warning_value"&lt;br /&gt;        exit 3&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;while getopts w:c:s: OPTNAME; do&lt;br /&gt;        case "$OPTNAME" in&lt;br /&gt;        w)&lt;br /&gt;                WARNVAL="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        c)&lt;br /&gt;                CRITVAL="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        s)&lt;br /&gt;                SERVICES="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        *)&lt;br /&gt;                usage&lt;br /&gt;                ;;&lt;br /&gt;        esac&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#check value&lt;br /&gt;if [ "$WARNVAL" != "" -a "$CRITVAL" != "" ]; then&lt;br /&gt;        if [ $CRITVAL -le $WARNVAL ] ; then&lt;br /&gt;                echo "Error: critical_value must be greater than warning_value"&lt;br /&gt;                echo        &lt;br /&gt;                usage&lt;br /&gt;                exit 3&lt;br /&gt;        fi&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;#check dir&lt;br /&gt;if [ "$SERVICES" = "" ]; then&lt;br /&gt;                echo "Error: services must exist do not empty"&lt;br /&gt;                echo&lt;br /&gt;                usage&lt;br /&gt;                exit 3&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Compare&lt;br /&gt;LASTRUN=$(grep $SERVICES $LOG  | tail -n 1 | cut -f1 -d  '.' | sed -e 's/T/ /')&lt;br /&gt;CHECK=$(((`date +%s` - `date -d "$LASTRUN" +%s`)/60))&lt;br /&gt;HOURS=$(((`date +%s` - `date -d "$LASTRUN" +%s`)/3600))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if [ $CHECK != "" ] ; then&lt;br /&gt;&lt;br /&gt;        if [ $WARNVAL -ge $CHECK ] ; then&lt;br /&gt;                echo "** WARNING **"&lt;br /&gt;                echo "last error at $CHECK minutes ago"&lt;br /&gt;                exit 1;&lt;br /&gt;        fi&lt;br /&gt;&lt;br /&gt;        if [ $CHECK -gt $CRITVAL ] ; then&lt;br /&gt;                echo "** CRITICAL **"&lt;br /&gt;                echo "last error at $CHECK minutes ago,$HOURS hours"&lt;br /&gt;                exit 2;&lt;br /&gt;        fi&lt;br /&gt;        else&lt;br /&gt;                echo "** OK **";&lt;br /&gt;                echo "crond run at $LASTRUN at `hostname`"&lt;br /&gt;fi&lt;br /&gt;exit 0&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-994364674508640236?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/994364674508640236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/check-crond-nagios-plugin-ii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/994364674508640236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/994364674508640236'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/check-crond-nagios-plugin-ii.html' title='check crond nagios plugin II'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-9025737535675674294</id><published>2011-10-12T21:12:00.000-07:00</published><updated>2011-10-18T02:20:25.025-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>check crond nagios plugin</title><content type='html'>kasus:&lt;br /&gt;Dalam server produksi menjalankan &lt;i&gt;service&lt;/i&gt; secara otomatis menggunakan crond, masalah muncul bila &lt;i&gt;crond&lt;/i&gt; mati atau gagal menjalan kan &lt;i&gt;service.&lt;/i&gt;&lt;br /&gt;maka saya buat plugins untuk check &lt;i&gt;crond service&lt;/i&gt; berdasarkan log file, mengikuti referensi&lt;br /&gt;&lt;a href="http://rubypond.com/blog/bash-script-to-check-timestamp-on-logfile"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;http://rubypond.com/blog/bash-script-to-check-timestamp-on-logfile&lt;/span&gt;&lt;/i&gt;&lt;/a&gt;&lt;br /&gt;saya rubah sesuai kebutuhan.&lt;br /&gt;di dalam crond file, buat agar service menghasilkan dua file, log file dan error log file&lt;br /&gt;&lt;pre class="brush: bash"&gt;/path/to/myscript &amp;gt; /var/log/myscript 2&amp;gt;&amp;amp;1; echo $? &amp;gt; /var/log/myscript-error-code&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;#!/bin/bash&lt;br /&gt;# Standard Nagios return codes&lt;br /&gt;#OK       = 0&lt;br /&gt;#WARNING  = 1&lt;br /&gt;#CRITICAL = 2&lt;br /&gt;#UNKNOWN  = 3&lt;br /&gt;&lt;br /&gt;usage()&lt;br /&gt;{&lt;br /&gt;        echo "usage: check_crond [-w warning_value (in minutes)] [-c critical_value (in minutes)] [-d log_path] [ -l log_file] [-e error_log_file]"&lt;br /&gt;        echo&lt;br /&gt;        echo "check_crond -w 0 -c 5 -d /var/log -l my_log_file -e my_error_log_file"&lt;br /&gt;        echo&lt;br /&gt;        echo "warning value must less than critical value"&lt;br /&gt;        exit 3&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;while getopts w:c:d:l:e: OPTNAME; do&lt;br /&gt;        case "$OPTNAME" in&lt;br /&gt;        w)&lt;br /&gt;                WARNVAL="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        c)&lt;br /&gt;                CRITVAL="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        d)&lt;br /&gt;                LOGDIR="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        l)&lt;br /&gt;                LOGFILE="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        e)&lt;br /&gt;                LOGERROR="$OPTARG"&lt;br /&gt;                ;;&lt;br /&gt;        *)&lt;br /&gt;                usage&lt;br /&gt;                ;;&lt;br /&gt;        esac&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;#check value&lt;br /&gt;if [ "$WARNVAL" != "" -a "$CRITVAL" != "" ]; then&lt;br /&gt;        if [ $CRITVAL -le $WARNVAL ] ; then&lt;br /&gt;                echo "Error: critical_value must be greater than warning_value"&lt;br /&gt;                exit 3&lt;br /&gt;        fi&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Compare&lt;br /&gt;if [[ $(find $LOGDIR -name $LOGERROR) ]] ; then&lt;br /&gt;&lt;br /&gt;        # Get last change time stamp from log and error file&lt;br /&gt;        RUN=`stat -c %y $LOGDIR/$LOGFILE | cut -f1 -d '.'`&lt;br /&gt;        ERROR=`stat -c %y $LOGDIR/$LOGERROR | cut -f1 -d '.'`&lt;br /&gt;&lt;br /&gt;        # Convert date into second &lt;br /&gt;        MIN_RUN=`date -d "$RUN" +%s`&lt;br /&gt;        MIN_ERROR=`date -d "$ERROR" +%s`&lt;br /&gt;&lt;br /&gt;        if [ $MIN_ERROR -gt $MIN_RUN ] ; then&lt;br /&gt;                MINUTES_SINCE=$(((`date +%s` - `date -d "$ERROR" +%s`)/60))&lt;br /&gt;&lt;br /&gt;                if [ $MINUTES_SINCE -ge $WARNVAL ] ; then&lt;br /&gt;                        echo "** WARNING **"&lt;br /&gt;                        echo "last error at $MINUTES_SINCE minutes ago"&lt;br /&gt;                        exit 1;&lt;br /&gt;                fi&lt;br /&gt;&lt;br /&gt;                if [ $MINUTES_SINCE -gt $CRITVAL ] ; then&lt;br /&gt;                        echo "** CRITICAL **"&lt;br /&gt;                        echo "last error at $MINUTES_SINCE minutes ago"&lt;br /&gt;                        exit 2;&lt;br /&gt;                fi&lt;br /&gt;                else&lt;br /&gt;                        echo "** OK **";&lt;br /&gt;                        echo "crond run at $RUN at `hostname`"&lt;br /&gt;        fi&lt;br /&gt;&lt;br /&gt;        else&lt;br /&gt;                echo "Error: file not found, please put the right path file"&lt;br /&gt;                exit 3&lt;br /&gt;fi&lt;br /&gt;exit 0&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-9025737535675674294?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/9025737535675674294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/check-crond-nagios-plugins.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/9025737535675674294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/9025737535675674294'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/10/check-crond-nagios-plugins.html' title='check crond nagios plugin'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-3124946780550011016</id><published>2011-09-22T20:42:00.000-07:00</published><updated>2011-09-28T02:49:26.330-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Directory Server'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><title type='text'>Password Policy pada Redhat Directory Server</title><content type='html'>Redhat Directory Server support password policy, pada kesempatan ini saya akan jelaskan bagaimana membuat password policy pada level subtree/ lokal.&lt;br /&gt;&lt;br /&gt;Untuk subtree (contoh, ou=Accounts,dc=kuragurun,dc=com), masukan beberapa entri berikut:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Aktif kan nssldap-pwpolicy-local = on, agar server dapat mengenali password policy pada subtree / bukan password policy global.&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: cpp"&gt;dn: cn=config&lt;br /&gt;changetype: modify&lt;br /&gt;replace: nsslapd-pwpolicy-local: on&lt;br /&gt;nsslapd-pwpolicy-local: off&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Entri &lt;i&gt;Container&lt;/i&gt;&amp;nbsp;(nsPwPolicyContainer) pada level &lt;i&gt;subtree &lt;/i&gt;untuk menyimpan macam-macam entri &lt;i&gt;password-policy&lt;/i&gt; untuk subtree dan directory di bawah nya:&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: cpp"&gt;#nsPwPolicyContainer&lt;br /&gt;dn: cn=nsPwPolicyContainer,ou=Accounts,dc=kuragurun,dc=com&lt;br /&gt;objectClass: nsContainer&lt;br /&gt;objectClass: top&lt;br /&gt;cn: nsPwPolicyContainer&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;Password policy&lt;/i&gt; entri, fungsi entri ini untuk menyimpan berbagai &lt;i&gt;attribute password policy&lt;/i&gt; yang akan digunakan oleh subtree dan directory di bawah nya,&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;berikut ini adalah contoh policy yang saya implementasikan di server kantor, anda bisa merujuk ke dokumentasi redhat untuk menambah policy dengan menggunakan attribut yang lain sesuai kebutuhan dan policy yang akan anda buat.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;pre class="brush: cpp"&gt;#nsPwPolicyEntry&lt;br /&gt;dn:      cn="cn=nsPwPolicyEntry,ou=Accounts,dc=kuragurun,dc=com",cn=nsPwPolicyContainer,ou=Accounts,dc=kuragurun,dc=com&lt;br /&gt;objectClass: extensibleObject&lt;br /&gt;objectClass: ldapsubentry&lt;br /&gt;objectClass: passwordpolicy&lt;br /&gt;objectClass: top&lt;br /&gt;cn: "cn=nsPwPolicyEntry,ou=Accounts,dc=kuragurun,dc=com"&lt;br /&gt;passwordChange: on&lt;br /&gt;passwordCheckSyntax: on&lt;br /&gt;passwordExp: on&lt;br /&gt;passwordGraceLimit: 0&lt;br /&gt;passwordInHistory: 5&lt;br /&gt;passwordLockout: on&lt;br /&gt;passwordLockoutDuration: 1800&lt;br /&gt;passwordMaxAge: 10368000&lt;br /&gt;passwordMaxFailure: 3&lt;br /&gt;passwordMinAge: 0&lt;br /&gt;passwordMinDigits: 1&lt;br /&gt;passwordMinLength: 8&lt;br /&gt;passwordMinUppers: 1&lt;br /&gt;passwordMinSpecials: 1&lt;br /&gt;passwordMustChange: on&lt;br /&gt;passwordResetFailureCount: 900&lt;br /&gt;passwordStorageScheme: ssha&lt;br /&gt;passwordUnlock: on&lt;br /&gt;passwordWarning: 604800&lt;br /&gt;passwordHistory:: b24=&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;table border="1" style="text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;th&gt;Attribute&lt;/th&gt; &lt;th&gt;Keterangan&lt;/th&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordChange&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;bila on;User di izinkan untuk bisa mengganti password nya&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordCheckSyntax&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;bila on;Server DS akan men cek password syantax sebelum di simpan kedalam database&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordExp&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;bila on;User password akan kadaluarsa setelah diberikan interval waktu oleh attribute passwordMaxAge &lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordGraceLimit&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;0 (int); User tidak di izin kan login ketika password nya telah kadaluarsa&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordInHistory&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;5 (int); Server akan menyimpan password di dalam history sebanyak 5 kali, untuk mencegah user menggunakan password yang telah dipakai sebelum nya,lihat &lt;i&gt;passwordMaxAge&lt;i&gt;&lt;/i&gt;&lt;/i&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordLockout&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;bila on; Bila user salah memasukkan password,Server dapat mengunci password/account, lihat &lt;i&gt;passwordMaxFailure,passwordLockoutDuration&lt;/i&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordLockoutDuration&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;1800 (dtk); Bila user gagal/salah memasukkan password makan account nya akan terkunci selama 30 menit berhubungan dengan &lt;i&gt;passwordMaxFailure,passwordMaxFailure&lt;/i&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordMaxAge&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;10368000 (dtk); Usia password aktif hingga 120 hari (3 Bulan), setelah 3 bulan password akan kadaluarsa&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordMaxFailure&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;3 (int); Maksimal kesalahan yang di izinkan oleh Server, sebanyak 3 kali setelah itu user akan terkunci lihat &lt;i&gt;passwordLockoutDuration&lt;/i&gt;.&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordMinAge&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;0 (dtk); User bisa langsung mengganti password nya tanpa harus menunggu waktu yang telah ditentukan &lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordMinDigits&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;1 (int); Password syntax harus memiliki 1 angka (12345...dst )&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordMinLength&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;8 (int); Minimal panjang password 8 karakter&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordMinUppers&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;1 (int); Password syntax harus memiliki 1 huruf besar (ABCD... dst)&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordMinSpecials&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;1 (int); Password syntax harus memiliki 1 spesial karakter (!@#$%^&amp;amp;*()&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordMustChange&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;bila on; User harus mengganti password nya saat pertama kali login&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordResetFailureCount&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;900 (dtk); Bila user salah meng entri password account nya akan terkunci selama 30 menit, lihat &lt;i&gt;passwordMaxFailure,passwordLockout&lt;/i&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordStorageScheme&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;ssha; Password menggunakan enkripsi ssha&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordUnlock&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;bila on; Password user dapat di unlock bila user telah melanggar policy&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordWarning&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;604800 (dtk); Server mengirimkan pemberitahuan kepada user apa bila password user akan kadaluarsa, 7 hari sebelum kadaluarsa&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;passwordHistory&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div style="text-align: left;"&gt;:: b24=; binary (ok) untuk mengaktifkan password history,lihat &lt;i&gt;passwordInHistory&lt;/i&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Entri&amp;nbsp;template&amp;nbsp;CoS class of service &amp;nbsp;(&lt;i&gt;nsPwTemplateEntry&lt;/i&gt;) harus memiliki value &lt;i&gt;pwdpolicysubentry&lt;/i&gt;&amp;nbsp;yang diarahkan ke entri (&lt;i&gt;nsPwPolicyEntry&lt;/i&gt;).&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: cpp"&gt;&lt;br /&gt;# nsPwTemplateEntry&lt;br /&gt;     dn: cn="cn=nsPwTemplateEntry,ou=Accounts,dc=kuragurun,dc=com",cn=nsPwPolicyContainer,ou=Accounts,dc=kuragurun,dc=com&lt;br /&gt;     objectClass: extensibleObject&lt;br /&gt;     objectClass: costemplate&lt;br /&gt;     objectClass: ldapsubentry&lt;br /&gt;     objectClass: top&lt;br /&gt;     cn: "cn=nsPwTemplateEntry,ou=Accounts,dc=kuragurun,dc=com"&lt;br /&gt;     cosPriority: 1&lt;br /&gt;     pwdpolicysubentry:      cn="cn=nsPwPolicyEntry,ou=Accounts,dc=kuragurun,dc=com",cn=nsPwPolicyContainer,ou=Accounts,dc=kuragurun,dc=com&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Entri spesifikasi CoS (&lt;i&gt;nsPwPolicy_CoS&lt;/i&gt;) pada level subentry.&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: cpp"&gt;&lt;br /&gt;# nsPwPolicy_CoS&lt;br /&gt;     dn: cn=nsPwPolicy_CoS,ou=Accounts,dc=kuragurun,dc=com&lt;br /&gt;     objectClass: ldapsubentry&lt;br /&gt;     objectClass: cosSuperDefinition&lt;br /&gt;     objectClass: cosPointerDefinition&lt;br /&gt;     objectClass: top&lt;br /&gt;     cosAttribute: pwdpolicysubentry default operational-default&lt;br /&gt;     cn: nsPwPolicy_CoS&lt;br /&gt;     costemplatedn:      cn="cn=nsPwTemplateEntry,ou=Accounts,dc=kuragurun,dc=com",cn=nsPwPolicyContainer,ou=Accounts,dc=kuragurun,dc=com&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-3124946780550011016?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/3124946780550011016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/09/password-policy-pada-redhat-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3124946780550011016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3124946780550011016'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/09/password-policy-pada-redhat-directory.html' title='Password Policy pada Redhat Directory Server'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-5550633903485417542</id><published>2011-09-20T03:42:00.000-07:00</published><updated>2011-09-29T20:57:07.155-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><category scheme='http://www.blogger.com/atom/ns#' term='SELinux'/><title type='text'>tips and trick part 5 (error after update chrome fedora)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="background-color: white; max-width: 80em; padding-left: 0.7em; white-space: pre-wrap;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;error after install update google chrome at fedora 14&lt;/span&gt;&lt;/pre&gt;&lt;pre style="background-color: white; max-width: 80em; padding-left: 0.7em; white-space: pre-wrap;"&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="brush: shell"&gt;/opt/google/chrome/chrome: error while loading shared libraries: cannot restore segment prot after reloc: Permission denied&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;fix with :&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: shell"&gt;[roots@A1012 fazries]# sudo chcon -t usr_t chrome-sandbox&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;or make selinux modules:first make .te file&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: shell"&gt;[root@A1012 fazries]# vi chrome.te&lt;br /&gt;#type this:&lt;br /&gt;module chrome 1.0;&lt;br /&gt;&lt;br /&gt;require {&lt;br /&gt;        type user_t;&lt;br /&gt;        type execmem_exec_t;&lt;br /&gt;        type setroubleshootd_t;&lt;br /&gt;        class file { read execmod };&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#============= chrome_sandbox_t ==============&lt;br /&gt;allow user_t execmem_exec_t:file execmod;&lt;br /&gt;&lt;br /&gt;#============= setroubleshootd_t ==============&lt;br /&gt;allow setroubleshootd_t execmem_exec_t:file read;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;generate module .mod from .te file&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: shell"&gt;[root@A1012 fazries]# checkmodule -M -m -o chrome.mod chrome.te &lt;br /&gt;checkmodule:  loading policy configuration from chrome.te&lt;br /&gt;checkmodule:  policy configuration loaded&lt;br /&gt;checkmodule:  writing binary representation (version 10) to chrome.mod&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Create binary file .pp from module file&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: shell"&gt;[root@A1012 fazries]# semodule_package -o chrome.pp -m chrome.mod&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Install the binary using semodule&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: shell"&gt;[root@A1012 fazries]# semodule -i chrome.pp &lt;br /&gt;&lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;i&gt;referece :&amp;nbsp;&lt;a href="http://code.google.com/p/chromium/issues/detail?id=87704"&gt;http://code.google.com/p/chromium/issues/detail?id=87704&lt;/a&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-5550633903485417542?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/5550633903485417542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/09/tips-and-trick-part-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5550633903485417542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5550633903485417542'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/09/tips-and-trick-part-3.html' title='tips and trick part 5 (error after update chrome fedora)'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-1572167762478226649</id><published>2011-09-14T02:54:00.000-07:00</published><updated>2011-09-22T19:15:32.102-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kerja'/><category scheme='http://www.blogger.com/atom/ns#' term='cuap cuap'/><title type='text'>System Networking + System Administrator = System Engineer</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Instalation&amp;nbsp;&amp;nbsp;network&amp;nbsp;cable&amp;nbsp;via eternit&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-3XeM6PTdeY0/TnB4Y3qWXMI/AAAAAAAAAUg/igkqf-MX4EM/s1600/IMG129.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-3XeM6PTdeY0/TnB4Y3qWXMI/AAAAAAAAAUg/igkqf-MX4EM/s400/IMG129.jpg" width="300" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-uHwaMVSG4iU/TnB4cfEwUII/AAAAAAAAAUk/n2p-L6QlTKE/s1600/IMG130.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://4.bp.blogspot.com/-uHwaMVSG4iU/TnB4cfEwUII/AAAAAAAAAUk/n2p-L6QlTKE/s400/IMG130.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-N1tL0vTvbB0/TnB4hhgXO8I/AAAAAAAAAUo/7wNrbMW2gjc/s1600/IMG131.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/-N1tL0vTvbB0/TnB4hhgXO8I/AAAAAAAAAUo/7wNrbMW2gjc/s640/IMG131.jpg" width="480" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-1572167762478226649?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/1572167762478226649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/09/system-networking-system-administator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1572167762478226649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1572167762478226649'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/09/system-networking-system-administator.html' title='System Networking + System Administrator = System Engineer'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-3XeM6PTdeY0/TnB4Y3qWXMI/AAAAAAAAAUg/igkqf-MX4EM/s72-c/IMG129.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-7741673170261483613</id><published>2011-09-13T21:12:00.000-07:00</published><updated>2011-09-23T02:14:34.303-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>Nagios Escalations Notification</title><content type='html'>&lt;div&gt;analogi:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Suatu ketika ada sebuah Rumah Sakit dan memiliki 3 ( Hilal, Dzaki dan Gally) orang Dokter (IT Staff) dan 1 orang Kepala RS (si Bos),&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Lalu di suatu malam yang indah dan bertaburan bintang salah satu pasien (service) tiba-tiba kejang-kejang (akibat sakit menahun), dan si perawat (nagios) yang selalu setia menmantau pasiennya akan mengirimkan sebuah pesan pemberitahuan klo ada pasien (service) yang kejang-kejang.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Karena tidak ada tingkatan / jenjang kepada siapa&amp;nbsp;pemberitahuan&amp;nbsp;tersebut dikirim pertama kali, maka semua orang yang bertanggung jawab akan dikirimi semua yaitu 3 orang dokter (IT Staff) dan ke&amp;nbsp;Kepala RS,&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;Si Bos yang sedang tidur nyenyak sangat terganggu dengan kiriman pemberitahuan yang bertubi-tubi itu. Akhir nya untuk mengatasi masalah tersebut maka si Bos akan mengirim kan perintah kepada si perawat, bila nanti ada yang kejang-kejang lagi yang pertama harus dikirim pemberitahuan adalah Dokter Hilal, bila masih kejang-kejang juga kirim pemberitahuan ke Dokter Dzaki, klo ternyata masih juga kejang-kejang kirim pemberitahuan ke Dokter Gally, begitu seterus nya sampai si pasien berhenti kejang-kejang..&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;okeh lalu bagaimana cara membuat escalation notification di nagios?&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;1.) define contact group&lt;/div&gt;&lt;div style="text-align: justify;"&gt;definisikan semua kontak yang akan dikirimi pemberitahuan (ketiga Dokter itu)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;/etc/nagios/objects/contacts.cfg&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;define contact {&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contact_name &amp;nbsp; &amp;nbsp;Hilal&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; generic-contact &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alias &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr.Hilal&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hilal@rs-sehat-selalu.com&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;define contact {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contact_name &amp;nbsp; &amp;nbsp;Dzaki&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; generic-contact &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alias &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr.Dzaki&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dazki@rs-sehat-selalu.com&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;define contact {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contact_name &amp;nbsp; &amp;nbsp;Gally&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; generic-contact &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alias &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr.Gally&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gally@rs-sehat-selalu.com&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;2.) define service&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;define service {&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; use &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hardware-service&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; host_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pasien_raid&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; service_description &amp;nbsp; md-raid_status&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; check_command &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; check_nrpe!check_mdraid&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;check_interval &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; max_check_attempts &amp;nbsp; &amp;nbsp;4&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notification_interval 30&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; notification_period &amp;nbsp; 24x7&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;3.) define serviceescalation berdasarkan service yang ingin kita monitor&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# Escalation 1&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;define serviceescalation&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;host_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;pasien_raid&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;service_description &amp;nbsp;&amp;nbsp;md-raid_status&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;first_notification &amp;nbsp; &amp;nbsp;4&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;last_notification &amp;nbsp; &amp;nbsp; 8&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;contacts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Hilal&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;notification_interval 15&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# Escalation 2&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;define serviceescalation&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;host_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;pasien_raid&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;service_description &amp;nbsp;&amp;nbsp;md-raid_status&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;first_notification &amp;nbsp; &amp;nbsp;8&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;last_notification &amp;nbsp; &amp;nbsp; 0&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;contacts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dzaki&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;notification_interval 120&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# Escalation 3&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;define serviceescalation&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp;...... untuk latihan ......rubah last_notification pada eskalasi 2, agar hasil nya bisa berjenjang... :)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Keterangan&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;contacts&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;daftar semua kontak yang terkait dengan pemberitahuan ini eskalasi&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;b&gt;first_notification&lt;/b&gt; : &amp;nbsp;nomor pemberitahuan yang menyebabkan eskalasi aktif &amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;last_notification&lt;/b&gt; : nomor pemberitahuan yang menyebabkan eskalasi mati; men set ke 0 akan menyebabkan pemberitahuan secara terus-menerus&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Eskalasi 1 akan aktif setelah di picu oleh pemberitahuan ke empat yang dikirim oleh nagios, dan akan berhenti mengirimkan pesan pemberitahuan setelah pesan ke delapan yang dikirim kan oleh nagios, interval dari pemberitahuan ini adalah 15 menit.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Eskalasi 2 akan aktif setelah dipicu oleh pemberitahuan ke delapan yang dikirim kan oleh nagios, dan tidak akan berhenti sampai service bisa teratasi karena &lt;i&gt;last_notification &lt;/i&gt;di set ke &lt;i&gt;0. &lt;/i&gt;interval dari pemberitahuan ini adalah 2 jam.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-w-tj9Z7b6w4/TnApDFzviMI/AAAAAAAAAUc/2ZdKP62Zrmo/s1600/escalation.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="289" src="http://2.bp.blogspot.com/-w-tj9Z7b6w4/TnApDFzviMI/AAAAAAAAAUc/2ZdKP62Zrmo/s640/escalation.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;sumber: &amp;nbsp;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Wojciech Kocjan (Learning Nagios 3.0)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-7741673170261483613?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/7741673170261483613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/09/nagios-escalations-notification.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7741673170261483613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7741673170261483613'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/09/nagios-escalations-notification.html' title='Nagios Escalations Notification'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-w-tj9Z7b6w4/TnApDFzviMI/AAAAAAAAAUc/2ZdKP62Zrmo/s72-c/escalation.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-3514045789360355196</id><published>2011-08-23T21:36:00.000-07:00</published><updated>2011-09-28T02:52:11.490-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><title type='text'>Reseting pam_tally2 login failure</title><content type='html'>&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@kurakura ~]# pam_tally2 -u fazries&lt;br /&gt;Login           Failures Latest failure     From&lt;br /&gt;fazries             8    08/24/11 11:32:40  /dev/pts/1&lt;br /&gt;[root@kurakura ~]# pam_tally2 -u fazries -r&lt;br /&gt;Login           Failures Latest failure     From&lt;br /&gt;fazries             8    08/24/11 11:32:40  /dev/pts/1&lt;br /&gt;[root@kurakura ~]# pam_tally2 -u fazries&lt;br /&gt;Login           Failures Latest failure     From&lt;br /&gt;fazries             0  &lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-3514045789360355196?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/3514045789360355196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/08/reseting-pamtally2-login-failure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3514045789360355196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3514045789360355196'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/08/reseting-pamtally2-login-failure.html' title='Reseting pam_tally2 login failure'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-8536756090133249841</id><published>2011-08-22T23:10:00.000-07:00</published><updated>2011-09-29T00:15:32.784-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Directory Server'/><title type='text'>Automake home dir for ldap user</title><content type='html'>&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;Automake home dir for ldap user, when first time login,&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;add the bold line below at &lt;i&gt;"/etc/pam.d/system-auth"&lt;/i&gt; :&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#%PAM-1.0&lt;br /&gt;# This file is auto-generated.&lt;br /&gt;# User changes will be destroyed the next time authconfig is run.&lt;br /&gt;auth        required      pam_env.so&lt;br /&gt;auth        sufficient    pam_unix.so nullok try_first_pass&lt;br /&gt;auth        requisite     pam_succeed_if.so uid &gt;= 500 quiet&lt;br /&gt;auth        sufficient    pam_ldap.so use_first_pass&lt;br /&gt;auth        required      pam_deny.so&lt;br /&gt;account     required      pam_unix.so broken_shadow&lt;br /&gt;account     sufficient    pam_succeed_if.so uid &lt; 500 quiet&lt;br /&gt;account     [default=bad success=ok user_unknown=ignore] pam_ldap.so&lt;br /&gt;account     required      pam_permit.so&lt;br /&gt;password    requisite     pam_cracklib.so try_first_pass retry=3&lt;br /&gt;password    sufficient    pam_unix.so md5 shadow nullok try_first_pass use_authtok&lt;br /&gt;password    sufficient    pam_ldap.so use_authtok&lt;br /&gt;password    required      pam_deny.so&lt;br /&gt;session     optional      pam_keyinit.so revoke&lt;br /&gt;session     required      pam_limits.so&lt;br /&gt;session     [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid&lt;br /&gt;session     required      pam_unix.so&lt;br /&gt;&lt;br /&gt;#Add this line&lt;br /&gt;session     required      pam_mkhomedir.so skel=/etc/skel/ umask=0077&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;session     optional      pam_ldap.so&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;example:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak ~]# ssh kura@localhost&lt;br /&gt;kura@localhost's password: &lt;br /&gt;Creating directory '/home/kura'.&lt;br /&gt;Creating directory '/home/kura/.mozilla'.&lt;br /&gt;Creating directory '/home/kura/.mozilla/extensions'.&lt;br /&gt;Creating directory '/home/kura/.mozilla/plugins'.&lt;br /&gt;Last login: Mon Aug 22 10:23:56 2011 from ketoprak.asik.com&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-8536756090133249841?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/8536756090133249841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/08/automake-home-dir-for-ldap-user-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8536756090133249841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8536756090133249841'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/08/automake-home-dir-for-ldap-user-when.html' title='Automake home dir for ldap user'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-4608913827705331649</id><published>2011-08-08T19:10:00.000-07:00</published><updated>2011-09-28T23:49:32.562-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='openvpn'/><title type='text'>openvpn howto make OCSP server using OpenSSL [Part2]</title><content type='html'># At Server 192.168.5.1&lt;br /&gt;&lt;br /&gt;create OCSP server using openssl ocsp at vpnserver&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# cd /etc/openvpn/my_keys&lt;br /&gt;# openssl ocsp -index keys/index.txt -port 4444 -CA keys/ca.crt -rsigner keys/ca.crt -rkey keys/ca.key -resp_text&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;download ocsp script at &lt;i&gt;&lt;b&gt;&lt;a href="http://svn.openvpn.net/projects/openvpn/contrib/dazo/contrib/OCSP_check/OCSP_check.sh"&gt;http://svn.openvpn.net/projects/openvpn/contrib/dazo/contrib/OCSP_check/OCSP_check.sh&lt;/a&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;save as &lt;b&gt;&lt;i&gt;/etc/openvpn/my_keys/ocsp.sh&lt;/i&gt;&lt;/b&gt;,&lt;br /&gt;this script will be use by openvpn server for check sertificate validation.&lt;br /&gt;&lt;br /&gt;edit the script&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# vim ocsp.sh&lt;br /&gt;ocsp_url="http://192.168.5.1:4444"&lt;br /&gt;issuer="/etc/openvpn/my_keys/ca.crt"&lt;br /&gt;verify="/etc/eopnvpn/my_keys/ca.crt"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;at the end of the script add this echo command below "&lt;i&gt;# check that it's good&lt;/i&gt;"&lt;br /&gt;so become like this.&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# check that it's good&lt;br /&gt;  echo "OCSP status: $status"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;make sure the scipt executable&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# chmod 755 ocsp.sh&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;enable tls option,unmark ; at server.conf&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;script-security 2&lt;br /&gt;tls-verify /etc/openvpn/my_keys/ocsp.sh&lt;br /&gt;tls-auth   /etc/openvpn/my_keys/ta.key 0&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# openvpn --config server.conf&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;At Client 192.168.5.5&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Server&lt;/div&gt;&lt;div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# scp /etc/openvpn/my_keys/ta.key root@192.168.5.5:/etc/openvpn/my_keys/&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Back to client&amp;nbsp;&lt;/div&gt;&lt;div&gt;enable tls option, unmark ; at client.conf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;ns-cert-type server&lt;br /&gt;tls-auth /etc/openvpn/my_keys/ta.key 1&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# openvpn --config client.conf&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-4608913827705331649?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/4608913827705331649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/08/openvpn-howto-make-ocsp-server-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/4608913827705331649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/4608913827705331649'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/08/openvpn-howto-make-ocsp-server-using.html' title='openvpn howto make OCSP server using OpenSSL [Part2]'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-1416138848471369434</id><published>2011-08-07T23:32:00.000-07:00</published><updated>2011-09-29T00:12:41.801-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='openvpn'/><title type='text'>openpvn howto make CA,server,client sertificate on openvpn [Part1]</title><content type='html'>On SERVER ip 192.168.5.1&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# cd /etc/openvpn/&lt;br /&gt;# mkdir my_keys/&lt;br /&gt;# cd my_keys/&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;copied entire easy-rsa to my_keys&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# cp /usr/share/openvpn/easy-rsa/2.0/* .&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;edit vars&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# vim vars&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	 export EASY_RSA="/etc/openvpn/my_keys"&lt;br /&gt;	 export	OPENSSL="openssl"&lt;br /&gt;	 export PKCS11TOOL="pkcs11-tool"&lt;br /&gt;	 export GREP="grep"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	 export KEY_CONFIG=`$EASY_RSA/whichopensslcnf $EASY_RSA`&lt;br /&gt;	 export KEY_DIR="$EASY_RSA/keys"&lt;br /&gt;	 echo NOTE: If you run ./clean-all, I will be doing a rm -rf on $KEY_DIR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	 export PKCS11_MODULE_PATH="dummy"&lt;br /&gt;	 export PKCS11_PIN="dummy"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	 export KEY_SIZE=2048&lt;br /&gt;	 export CA_EXPIRE=3650&lt;br /&gt;	 export KEY_EXPIRE=1000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	 export KEY_COUNTRY="ID"&lt;br /&gt;	 export KEY_PROVINCE="BANTEN"&lt;br /&gt;	 export KEY_CITY="TANGERANG"&lt;br /&gt;	 export KEY_ORG="Fort-Funston"&lt;br /&gt;	 export KEY_EMAIL="me@myhost.mydomain"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;update vars&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# . ./vars&lt;br /&gt;# ./clean-all&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;build dh&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# ./build-dh&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;build ca&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# ./build-ca&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;build server sertificate&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# ./build-key-server openvpnserver&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;build client sertificate&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# ./build-key openvpnclient1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;generate tls key&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# openvpn --genkey --secret ta.key&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;copied ca.crt,dh2048.pem,server.crt,server.key&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# cp keys/ca.crt /etc/openvpn/my_keys/ca.crt&lt;br /&gt;# cp keys/dh2048.pem /etc/openvpn/my_keys/dh2048.pem&lt;br /&gt;# cp keys/openvpnserver.crt /etc/openvpn/my_keys/server.crt&lt;br /&gt;# cp keys/openvpnserver.key /etc/openvpn/my_keys/server.key&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;make server config file&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# cp /usr/share/doc/openvpn-2.1.1/sample-config-files/server.conf /etc/openvpn/&lt;br /&gt;# cd /etc/openvpn/&lt;br /&gt;# vim /etc/openvpn/server.conf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	port 1194&lt;br /&gt;	proto udp&lt;br /&gt;	dev tun&lt;br /&gt;	ca   my_keys/ca.crt&lt;br /&gt;	cert my_keys/server.crt&lt;br /&gt;	key  my_keys/server.key  &lt;br /&gt;	dh   my_keys/dh2048.pem&lt;br /&gt;	server 10.8.0.0 255.255.255.0&lt;br /&gt;	ifconfig-pool-persist ipp.txt&lt;br /&gt;	keepalive 10 120&lt;br /&gt;	comp-lzo&lt;br /&gt;	persist-key&lt;br /&gt;	persist-tun&lt;br /&gt;	;script-security 2&lt;br /&gt;        ;tls-verify /etc/openvpn/my_keys/ocsp.sh&lt;br /&gt;	;tls-auth   /etc/openvpn/my_keys/ta.key 0&lt;br /&gt;	status openvpn-status.log&lt;br /&gt;	verb 3&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;running openvpn&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# openvpn --config server.conf&lt;br /&gt;# ifconfig -a&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;On Client ip 192.168.5.5&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# cd /etc/openvpn&lt;br /&gt;# mkdir /etc/openvpn/my_keys&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;on server copied openvpnclient1.crt,openvpnclient1.key and rename into client.crt,client.key&lt;br /&gt;&lt;i&gt;client certificate&lt;/i&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# scp /etc/openvpn/my_keys/keys/openvpnclient1.crt  root@192.168.5.5:/etc/openvpn/my_keys/client.crt&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;client certificate key&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# scp /etc/openvpn/my_keys/keys/openvpnclient1.key  root@192.168.5.5:/etc/openvpn/my_keys/client.key&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;i&gt;ta key&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# scp /etc/openvpn/my_keys/ta.key  root@192.168.5.5:/etc/openvpn/my_keys/ta.key&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;back to client, make client config file&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# cp /usr/share/doc/openvpn-2.1.1/sample-config-files/client.conf /etc/openvpn/&lt;br /&gt;# cd /etc/openvpn/&lt;br /&gt;# vim client.conf&lt;br /&gt;&lt;br /&gt;	client&lt;br /&gt;	dev tun&lt;br /&gt;	proto udp&lt;br /&gt;	remote 192.168.5.1 1194&lt;br /&gt;	resolv-retry infinite&lt;br /&gt;	nobind&lt;br /&gt;	persist-key&lt;br /&gt;	persist-tun&lt;br /&gt;	ca    /etc/openvpn/my_keys/ca.crt&lt;br /&gt;	cert  /etc/openvpn/my_keys/client.crt&lt;br /&gt;	key   /etc/openvpn/my_keys/client.key&lt;br /&gt;	;ns-cert-type server&lt;br /&gt;	;tls-auth /etc/openvpn/my_keys/ta.key 1	&lt;br /&gt;	comp-lzo&lt;br /&gt;	verb 3&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;running openvpn client&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# openvpn --config client.conf&lt;br /&gt;# ifconfig -a&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-1416138848471369434?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/1416138848471369434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/08/openpvn-howto-make-caserverclient.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1416138848471369434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1416138848471369434'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/08/openpvn-howto-make-caserverclient.html' title='openpvn howto make CA,server,client sertificate on openvpn [Part1]'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-4492708217974726795</id><published>2011-07-19T02:49:00.000-07:00</published><updated>2011-09-29T20:57:16.710-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><category scheme='http://www.blogger.com/atom/ns#' term='VBox'/><category scheme='http://www.blogger.com/atom/ns#' term='SELinux'/><title type='text'>tip n trik linux part 4</title><content type='html'>Biar enggak lupa, :-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;menghapus chace memory pada linux&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: bash"&gt;# sync; echo 3 &amp;gt; /proc/sys/vm/drop_caches&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;mengganti vbox hd-uuid&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: bash"&gt;# VBoxManage internalcommands sethduuid hardisk.vdi&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="background-color: white;"&gt;Set bash time out&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: bash"&gt;# vim /etc/profile.d/tmout.sh&lt;br /&gt;TMOUT=900 &lt;br /&gt;readonly TMOUT&lt;br /&gt;export TMOUT&lt;br /&gt;&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="background-color: white;"&gt;extract zip file&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: bash"&gt;$ unzip file.zip&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: inherit;"&gt;dump partition tables&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: bash"&gt;# sfdisk -d /dev/sda &amp;gt; sda_dump.out&lt;/pre&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: inherit;"&gt;import partition tables ke disk lain&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: bash"&gt;# sfdisk /dev/sda &amp;lt; sda_dump.out&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: 'Times New Roman'; font-size: small;"&gt;membuat module SELinux&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre class="brush: bash"&gt;# audit2allow -M namamodule &amp;lt; /var/log/audit/audit.log &lt;/pre&gt;atau&lt;br /&gt;&lt;pre class="brush: bash"&gt; &lt;br /&gt;# less /var/log/audit/audit.log | grep nagios &amp;gt; audit2allow -M namamodule&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="background-color: #cccccc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-4492708217974726795?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/4492708217974726795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/07/tip-n-trik-linux-part-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/4492708217974726795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/4492708217974726795'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/07/tip-n-trik-linux-part-i.html' title='tip n trik linux part 4'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-1903722669411792071</id><published>2011-07-10T21:33:00.000-07:00</published><updated>2011-07-10T21:33:18.489-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='raid'/><title type='text'>Replace 2nd bay hard drive on DLINK 323 NAS</title><content type='html'>Two days ago my boss send me an email he ask me to repair office NAS because one of the hard drive fail.My office have 2x2 TB Hard drive on DLINK-323 in the office, He just give me the ip address and admin password for nas storage.&lt;br /&gt;Then I decide access it via ssh first, although the DNS-323 have web interfaces.&lt;br /&gt;next check raid status.&lt;br /&gt;&lt;br /&gt;root@xxxx:~# cat /proc/mdstat&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; line-height: 18px;"&gt;Personalities&amp;nbsp;:&amp;nbsp;[linear]&amp;nbsp;[multipath]&amp;nbsp;[raid0]&amp;nbsp;[raid1]&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;md0&amp;nbsp;:&amp;nbsp;active&amp;nbsp;raid1&amp;nbsp;sda1[0]&amp;nbsp;sdb1[2](F)&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;24418688&amp;nbsp;blocks&amp;nbsp;[2/1]&amp;nbsp;[U_]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, mono;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; font-size: 12px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: verdana, sans-serif; font-size: 12px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;then I see&amp;nbsp;&lt;/span&gt;&lt;span class="system" style="color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;[U_]&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;that mean I have degraded RAID1 Array&lt;span class="Apple-style-span" style="border-collapse: collapse; font-family: verdana, sans-serif; font-size: 12px; line-height: 18px;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, mono;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; font-size: 12px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;next I'm using dmesg.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;root@xxxx:~# dmesg&lt;br /&gt;#######################################       &lt;br /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HD1 awake now       ! &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #       &lt;br /&gt;#######################################       &lt;br /&gt;&lt;br /&gt;SCSI error : &amp;lt;1 0 0 0&amp;gt; return code = 0x8000002       &lt;br /&gt;sdb: Current: sense key=0x3       &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ASC=0x0 ASCQ=0x0       &lt;br /&gt;Info fld=0xa707ec94       &lt;br /&gt;end_request: I/O error, dev sdb, sector 2802314386       &lt;br /&gt;raid1: Disk failure on sdb2, disabling device.       &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Operation continuing on 1 devices       &lt;br /&gt;raid1: sdb2: rescheduling sector 2800225936       &lt;br /&gt;RAID1 conf printout:       &lt;br /&gt;&amp;nbsp;--- wd:1 rd:2       &lt;br /&gt;&amp;nbsp;disk 0, wo:0, o:1, dev:sda2       &lt;br /&gt;&amp;nbsp;disk 1, wo:1, o:0, dev:sdb2       &lt;br /&gt;RAID1 conf printout:       &lt;br /&gt;&amp;nbsp;--- wd:1 rd:2       &lt;br /&gt;&amp;nbsp;disk 0, wo:0, o:1, dev:sda2       &lt;br /&gt;raid1: sda2: redirecting sector 2800225936 to another mirror &amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;br /&gt;Broken Hard drive on /dev/sdb,&lt;br /&gt;okay after knowing the problem, then second step is read the manual, how to add/ replace hard drive on DNS-323.&lt;br /&gt;you can read the manual from here&lt;br /&gt;&lt;a href="http://wiki.dns323.info/information:known_issues"&gt;http://wiki.dns323.info/information:known_issues&lt;/a&gt;&lt;br /&gt;after read carefully still in the same page i found this link on the section "Adding an extra disc can wipe data on existing drive!!"&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 19px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;&lt;a href="http://forum.dsmg600.info/t885-OMFG,-Lost-data!-D-link-terrible!.html"&gt;http://forum.dsmg600.info/t885-OMFG,-Lost-data!-D-link-terrible!.html&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 19px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;and&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 19px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;&lt;a href="http://forum.dsmg600.info/t3113-Arghhh.-Drive-wiped.html"&gt;http://forum.dsmg600.info/t3113-Arghhh.-Drive-wiped.html&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hmm.. I found DNS-323 web gui have a bug from that forum, web gui has wrong define hard drive between right bay (hd00) and left bay(hd01). I don't wanna take a risk using web gui. anyways my boss still in vacation in Holland. After lot of searching on google,&lt;br /&gt;Alhamdulillah then I found this manual &lt;a href="http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array"&gt;http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array&lt;/a&gt;.&lt;br /&gt;using &lt;i&gt;sfdisk&lt;/i&gt; commands&amp;nbsp;&lt;a href="http://linux.die.net/man/8/sfdisk"&gt;http://linux.die.net/man/8/sfdisk&lt;/a&gt;.&lt;br /&gt;but I cannot find sfdisk command on DNS-323. yup another problem has been found :-).&lt;br /&gt;&lt;br /&gt;Hey I can put broken hard drive on a pc then read the partition tables using sfdisk,&lt;br /&gt;then I follow the manual from "how to forge" link above, next I put broken disk on pc. dump the partition:&lt;br /&gt;sfdisk -d /dev/sdb &amp;gt; sdb_partition_tables.out&lt;br /&gt;&lt;br /&gt;# cat&amp;nbsp;sdb_partition_tables.out&lt;br /&gt;# partition table of /dev/sdb&lt;br /&gt;unit: sectors&lt;br /&gt;&lt;br /&gt;/dev/sdb1 : start= &amp;nbsp; &amp;nbsp; &amp;nbsp; 63, size= &amp;nbsp;1060227, Id=82&lt;br /&gt;/dev/sdb2 : start= &amp;nbsp;2088450, size=3902815035, Id=83&lt;br /&gt;/dev/sdb3 : start= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0, size= &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0, Id= 0&lt;br /&gt;/dev/sdb4 : start= &amp;nbsp;1060290, size= &amp;nbsp;1028160, Id=83&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;then put new hard drive and import it:&lt;br /&gt;sfdisk /dev/sdb &amp;lt;&amp;nbsp;sdb_partition_tables.out&lt;br /&gt;&lt;br /&gt;replace new hard drive, access it via ssh,check again using mdstat.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;root@xxxx:~# cat /proc/mdstat&lt;br /&gt;Personalities : [linear] [raid0] [raid1]&lt;br /&gt;md0 : active raid1 sdb2[2](F) sda2[0]&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;1951407424 blocks [2/1] [U_]&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;[==========================================&amp;gt;] &amp;nbsp;recovery =210.0% (4098891072/1951407424) finish=28.0min speed=1261990K/sec&lt;br /&gt;unused devices: &amp;lt;none&amp;gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;it will start recovery now.just wait....&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-1903722669411792071?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/1903722669411792071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/07/replace-2nd-bay-hard-drive-on-dlink-323.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1903722669411792071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1903722669411792071'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/07/replace-2nd-bay-hard-drive-on-dlink-323.html' title='Replace 2nd bay hard drive on DLINK 323 NAS'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-3828094939766325286</id><published>2011-07-10T21:24:00.000-07:00</published><updated>2011-09-29T20:52:18.983-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DogTag'/><category scheme='http://www.blogger.com/atom/ns#' term='Directory Server'/><title type='text'>dog tag (Error code: sec_error_reused_issuer_and_serial)</title><content type='html'>After I remove dogtag instance and rebuild again, suddenly I cannot access web gui dog tag, in firefox it say the certificate number is same but cannot verify this certificate please ask new certivicate.&lt;br /&gt;&lt;br /&gt;find certificate db at firefox &lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak ~]# locate cert8.db&lt;br /&gt;/etc/dirsrv/admin-serv/cert8.db&lt;br /&gt;/etc/dirsrv/slapd-ketoprak/cert8.db&lt;br /&gt;/etc/httpd/alias/cert8.db&lt;br /&gt;/etc/pki/nssdb/cert8.db&lt;br /&gt;/root/.dogtag-idm-console/cert8.db&lt;br /&gt;/root/.mozilla/firefox/lirlvw2m.default/cert8.db&lt;br /&gt;/var/lib/pki-ca/alias/cert8.db&lt;br /&gt;/var/lib/pki-kra/alias/cert8.db&lt;br /&gt;/var/lib/pki-ra/alias/cert8.db&lt;br /&gt;/var/lib/pki-tps/alias/cert8.db&lt;br /&gt;&lt;/pre&gt;delete the certificate&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;[root@ketoprak ~]# rm -rf /root/.mozilla/firefox/lirlvw2m.default/cert8.db&lt;/pre&gt;&lt;br /&gt;restart firefox, and try to access dogtag web gui again.&lt;br /&gt;&lt;br /&gt;reference:&lt;br /&gt;&amp;nbsp;http://saltwetbytes.wordpress.com/2009/09/14/firefox-issues-error-sec_error_reused_issuer_and_serial/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-3828094939766325286?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/3828094939766325286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/07/dog-tag-error-code-secerrorreusedissuer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3828094939766325286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3828094939766325286'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/07/dog-tag-error-code-secerrorreusedissuer.html' title='dog tag (Error code: sec_error_reused_issuer_and_serial)'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-2626053344505678947</id><published>2011-06-27T01:27:00.000-07:00</published><updated>2011-12-20T19:48:05.540-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>Put FireWall on dom0 XEN</title><content type='html'>&lt;pre&gt;topology:&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;+------------------------+&lt;br /&gt;.              | physical machine, dom0 |&lt;br /&gt;.              |   +---------------+    |&lt;br /&gt;-- Internet -------+ Firewall domU +--------- Intranet&lt;br /&gt;.              |   +------+--------+    |&lt;br /&gt;.              |          |             |&lt;br /&gt;.              |          |   DMZ       |&lt;br /&gt;.              |    +-----+-+-------+   |&lt;br /&gt;.              |    |       |       |   |&lt;br /&gt;.              | +--+--+ +--+--+ +--+--+|&lt;br /&gt;.              | |domU1| |domU2| |domU3||&lt;br /&gt;.              | +-----+ +-----+ +-----+|&lt;br /&gt;.              +------------------------+&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;gateway     192.168.1.1&lt;/pre&gt;&lt;pre&gt;dom0 eth0   192.168.1.199&lt;/pre&gt;&lt;pre&gt;dom0 virbr0 192.168.122.1&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;on dom0 firewall.&lt;/pre&gt;&lt;pre&gt;REJECT all access to dom0, but accept only from local network.&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# iptables -P INPUT ACCEPT&lt;br /&gt;# iptables -P FORWARD ACCEPT&lt;br /&gt;# iptables -P OUTOUT DROP&lt;br /&gt;# iptables -A INPUT  -i eth0 -j ACCEPT    //accept all access from local network&lt;br /&gt;# iptables -A INPUT -j REJECT               //reject all access where not come from local network&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;pre&gt;next SNAT package for domU subnet, snat tcp,udp protocol from domU subnet where destination not to domU subnet to eth0 192.168.1.199&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# iptables -A POSTROUTING -p tcp -s 192.168.122.0/24 -d ! 192.168.122.0/24 -j SNAT --to 192.168.1.199 &lt;br /&gt;# iptables -A POSTROUTING -p udp -s 192.168.122.0/24 -d ! 192.168.122.0/24 -j SNAT --to 192.168.1.199 &lt;br /&gt;# iptables -A POSTROUTING -s 192.168.122.0/24 -d ! 192.168.122.0/24 -j SNAT --to 192.168.1.199 &lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-2626053344505678947?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/2626053344505678947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/put-firewall-on-dom0-xen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2626053344505678947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2626053344505678947'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/put-firewall-on-dom0-xen.html' title='Put FireWall on dom0 XEN'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-2551842579047851530</id><published>2011-06-13T23:04:00.000-07:00</published><updated>2011-09-21T20:57:45.765-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='ossec'/><title type='text'>Howto Install OSSEC HIDS</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table class="toc" id="toc" style="background-color: #f9f9f9; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: solid; border-top-width: 1px; color: black; font-size: 12px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;div id="toctitle" style="text-align: center;"&gt;&lt;a href="http://www.blogger.com/goog_1894797258"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; border-width: initial; color: black; display: inline; font-size: 12px; font-weight: bold; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;Contents&lt;/h2&gt;&lt;/div&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-1 tocsection-1" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Prepare RPMs required by ossec:&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-2" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Install the main ossec RPMs:&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-2 tocsection-3" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;2.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;On the ossec server:&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-4" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;2.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;On the ossec agent:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-5" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Make symbolic link on ossec server and agent:&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-6" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;4&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Edit ossec.conf, make sure fill this property base on your environment:&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-2 tocsection-7" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;4.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;On the server:&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-8" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;4.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;On the agent:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-9" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;5&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Generate key for new agent:&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-2 tocsection-10" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;5.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Add agent on the ossec server&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-11" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;5.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Extract key for an agent&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-12" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad;"&gt;5.3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;On the ossec agent&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Prepare_RPMs_required_by_ossec:" style="font-size: x-small;"&gt;Tribute to Heriyanto, for making this manual and ask me to put in my blog&lt;/span&gt;&lt;/h2&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Prepare_RPMs_required_by_ossec:"&gt;Prepare RPMs required by ossec:&lt;/span&gt;&lt;/h2&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;libprelude-0.9.24-3.el5.x86_64.rpm &lt;a class="external autonumber" href="http://download.fedora.redhat.com/pub/epel/5/x86_64/libprelude-0.9.24-3.el5.x86_64.rpm" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/vector/images/external-link-ltr-icon.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-bottom: 0px; padding-left: 0px; padding-right: 13px; padding-top: 0px; text-decoration: none;"&gt;[1]&lt;/a&gt;&lt;br /&gt;ossec-hids-2.5.1-2.x86_64.rpm&lt;br /&gt;ossec-hids-server-2.5.1-2.x86_64.rpm&lt;br /&gt;ossec-hids-client-2.5.1-2.x86_64.rpm  &lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Install_the_main_ossec_RPMs:"&gt;Install the main ossec RPMs:&lt;/span&gt;&lt;/h2&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="On_the_ossec_server:"&gt;On the ossec server:&lt;/span&gt;&lt;/h3&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="background-color: black;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;yum localinstall libprelude-0.9.24-3.el5.x86_64.rpm hids-2.5.1-2.x86_64.rpm ossec-hids-server-2.5.1-2.x86_64.rpm&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="On_the_ossec_agent:"&gt;On the ossec agent:&lt;/span&gt;&lt;/h3&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="background-color: black;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;yum localinstall libprelude-0.9.24-3.el5.x86_64.rpm hids-2.5.1-2.x86_64.rpm ssec-hids-client-2.5.1-2.x86_64.rpm&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Make_symbolic_link_on_ossec_server_and_agent:"&gt;Make symbolic link on ossec server and agent:&lt;/span&gt;&lt;/h2&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="background-color: black;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;ln -s /etc/init.d/ossec-hids /usr/bin/&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Edit_ossec.conf.2C_make_sure_fill_this_property_base_on_your_environment:"&gt;Edit ossec.conf, make sure fill this property base on your environment:&lt;/span&gt;&lt;/h2&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="On_the_server:"&gt;On the server:&lt;/span&gt;&lt;/h3&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="background-color: black;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;[root@ossec ~]#vi /var/ossec/etc/ossec.conf&lt;br /&gt; &amp;lt;global&amp;gt;&lt;br /&gt;   &amp;lt;email_notification&amp;gt;yes&amp;lt;/email_notification&amp;gt;&lt;br /&gt;   &amp;lt;email_to&amp;gt;root@localhost&amp;lt;/email_to&amp;gt;&lt;br /&gt;   &amp;lt;smtp_server&amp;gt;127.0.0.1&amp;lt;/smtp_server&amp;gt;&lt;br /&gt;   &amp;lt;email_from&amp;gt;ossec@asoy.com&amp;lt;/email_from&amp;gt;&lt;br /&gt; &amp;lt;/global&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; color: black;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="On_the_agent:"&gt;On the agent:&lt;/span&gt;&lt;/h3&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="background-color: black;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;[root@client ~]#vi /var/ossec/etc/ossec.conf&lt;br /&gt;&amp;lt;client&amp;gt;&lt;br /&gt;   &amp;lt;server-ip&amp;gt;192.168.0.2&amp;lt;/server-ip&amp;gt;  # make sure this your ossec server IP.&lt;br /&gt;&amp;lt;/client&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Generate_key_for_new_agent:"&gt;Generate key for new agent:&lt;/span&gt;&lt;/h2&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Add_agent_on_the_ossec_server"&gt;Add agent on the ossec server&lt;/span&gt;&lt;/h3&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;The server-agent traffic is encrypted and validated using pre-shared keys. These keys must be generated on the server and then imported on the agent side. Create a key for each agent by adding the agent using the manage_agents utility. Run the utility and then choose Add an agent by entering A.&lt;/div&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="background-color: black;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;[root@ossec ~]# /var/ossec/bin/manage_agents&lt;br /&gt;****************************************&lt;br /&gt;* OSSEC HIDS v2.5.1 Agent manager.     *&lt;br /&gt;* The following options are available: *&lt;br /&gt;****************************************&lt;br /&gt;  (A)dd an agent (A).&lt;br /&gt;  (E)xtract key for an agent (E).&lt;br /&gt;  (L)ist already added agents (L).&lt;br /&gt;  (R)emove an agent (R).&lt;br /&gt;  (Q)uit.&lt;br /&gt;Choose your action: A,E,L,R or Q: A&lt;br /&gt;- Adding a new agent (use '\q' to return to the main menu).&lt;br /&gt; Please provide the following:&lt;br /&gt;  * A name for the new agent: client.ossec.net    &lt;br /&gt;  * The IP Address of the new agent: 192.168.1.3 &lt;br /&gt;  * An ID for the new agent[001]: 001&lt;br /&gt;Agent information:&lt;br /&gt;  ID:001&lt;br /&gt;  Name:client.ossec.net&lt;br /&gt;  IP Address:192.168.1.3&lt;br /&gt;Confirm adding it?(y/n): y&lt;br /&gt;Agent added.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Extract_key_for_an_agent"&gt;Extract key for an agent&lt;/span&gt;&lt;/h3&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;From the manage agents menu, enter E to extract a key. You are provided with a list of already configured agents. Choose your agent by entering the correct ID. The key is displayed so you can copy it to your clipboard.&lt;/div&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="background-color: black;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;[root@ossec ~]# /var/ossec/bin/manage_agents&lt;br /&gt;****************************************&lt;br /&gt;* OSSEC HIDS v2.5.1 Agent manager.     *&lt;br /&gt;* The following options are available: *&lt;br /&gt;****************************************&lt;br /&gt;  (A)dd an agent (A).&lt;br /&gt;  (E)xtract key for an agent (E).&lt;br /&gt;  (L)ist already added agents (L).&lt;br /&gt;  (R)emove an agent (R).&lt;br /&gt;  (Q)uit.&lt;br /&gt;Choose your action: A,E,L,R or Q: E&lt;br /&gt;Available agents: &lt;br /&gt;  ID: 001, Name: client.ossec.net, IP: 192.168.1.3&lt;br /&gt;Provide the ID of the agent to extract the key (or '\q' to quit): 001&lt;br /&gt;Agent key information for '001' is: MDAxIGNsaWVudC5vc3NlYy5uZXQgMTkyLjE2OC4xLjMgZTIxN2E0MzU1Nzg2OWNmNTdhNTAxYzNlOGFjZTQ4ZTViMTU2MjhkY2ZjMjViYmYwYWMyMDI4OGViMGFhMDg3Nw==&lt;br /&gt;** Press ENTER to return to the main menu.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;press q button for quit from ossec Agent manager&lt;/div&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="On_the_ossec_agent"&gt;On the ossec agent&lt;/span&gt;&lt;/h3&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;To import the key, run the manage_agents utility on the agent host. The menu for agents is much simpler, because importing keys is the only option. Enter I to import and then paste the key value previously saved to your clipboard.&lt;/div&gt;&lt;pre style="border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="background-color: black;"&gt;&lt;span class="Apple-style-span" style="color: lime;"&gt;[root@client ~]# /var/ossec/bin/manage_agents&lt;br /&gt;****************************************&lt;br /&gt;* OSSEC HIDS v2.5.1 Agent manager.     *&lt;br /&gt;* The following options are available: *&lt;br /&gt;****************************************&lt;br /&gt;  (I)mport key from the server (I).&lt;br /&gt;  (Q)uit.&lt;br /&gt;Choose your action: I or Q: I&lt;br /&gt;* Provide the Key generated by the server.&lt;br /&gt;* The best approach is to cut and paste it.&lt;br /&gt;*** OBS: Do not include spaces or new lines.&lt;br /&gt;Paste it here (or '\q' to quit):  MDAxIGNsaWVudC5vc3NlYy5uZXQgMTkyLjE2OC4xLjMgZTIxN2E0MzU1Nzg2OWNmNTdhNTAxYzNlOGFjZTQ4ZTViMTU2MjhkY2ZjMjViYmYwYWMyMDI4OGViMGFhMDg3Nw==&lt;br /&gt;Agent information:&lt;br /&gt;  ID:001&lt;br /&gt;  Name:client.ossec.net&lt;br /&gt;  IP Address:192.168.1.3&lt;br /&gt;Confirm adding it?(y/n): y&lt;br /&gt;Added.&lt;br /&gt;** Press ENTER to return to the main menu.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="background-color: #f9f9f9; color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;press q button for quit from ossec Agent manager&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;note: Libprelude is the Prelude library. Prelude is a Universal "Security Information Management" (SIM) system. Prelude collects, normalizes, sorts, aggregates, correlates and reports all security-related events independently of the product brand or license giving rise to such events; Prelude is "agentless".&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-2551842579047851530?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/2551842579047851530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/howto-install-ossec-hids.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2551842579047851530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2551842579047851530'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/howto-install-ossec-hids.html' title='Howto Install OSSEC HIDS'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-5998944496463903249</id><published>2011-06-13T22:58:00.000-07:00</published><updated>2011-09-29T00:52:27.567-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='bacula'/><title type='text'>Howto setup Bacula</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table class="toc" id="toc" style="background-color: #f9f9f9; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: solid; border-top-width: 1px; color: black; font-size: 12px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;div id="toctitle" style="text-align: center;"&gt;&lt;a href="http://www.blogger.com/goog_1717325854"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; border-width: initial; color: black; display: inline; font-size: 12px; font-weight: bold; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; width: auto;"&gt;Contents&lt;/h2&gt;&lt;/div&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-1 tocsection-1" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Installation&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-2 tocsection-2" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Bacula&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-3 tocsection-3" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Package&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-3 tocsection-4" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Configuration&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-4 tocsection-5" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Server&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-5 tocsection-6" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2.1.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;bacula-dir&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-5 tocsection-7" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2.1.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;bacula-sd&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-5 tocsection-8" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2.1.3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;bacula-fd&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-5 tocsection-9" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2.1.4&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;bconsole.conf&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-5 tocsection-10" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2.1.5&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;read-client.conf&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-4 tocsection-11" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Client&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-5 tocsection-12" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.2.2.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;bacula-fd.conf&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-3 tocsection-13" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.1.3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Test Run&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-2 tocsection-14" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;1.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Webacula&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-1 tocsection-15" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0645ad;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;"&gt;Firewall&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Installation"&gt;Installation&lt;/span&gt;&lt;/h1&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Bacula"&gt;Bacula&lt;/span&gt;&lt;/h2&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Package"&gt;Package&lt;/span&gt;&lt;/h3&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Download bacula package&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;bacula-bat-5.0.3-2.x86_64.rpm&lt;br /&gt;bacula-client-5.0.3-1.x86_64.rpm&lt;br /&gt;bacula-docs-5.0.3-1.noarch.rpm&lt;br /&gt;bacula-libs-5.0.3-1.x86_64.rpm&lt;br /&gt;bacula-mtx-5.0.3-1.x86_64.rpm&lt;br /&gt;bacula-mysql-5.0.3-1.x86_64.rpm&lt;br /&gt;bacula-updatedb-5.0.3-1.x86_64.rpm&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Install all package using yum&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;yum localinstall --nogpgcheck bacula-*.rpm &lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Configuration"&gt;Configuration&lt;/span&gt;&lt;/h3&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;You should config Bacula at Server and Client&lt;/div&gt;&lt;h4 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 15px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Server"&gt;Server&lt;/span&gt;&lt;/h4&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;At server side, we need configure several files, include one file we need to create,&lt;/div&gt;&lt;h5 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 13px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="bacula-dir"&gt;bacula-dir&lt;/span&gt;&lt;/h5&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;In bacula-dir we should define Director, Jobs, File Sets need to backup, client, storage and console.&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Director&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;Director {                     # define myself&lt;br /&gt; Name = bacula.server-dir      # will be read at bconsole.conf ( Director ),bacula-fd.conf (Director) and bacula-sd.conf (Director)&lt;br /&gt; DIRport = 9101                # where we listen for UA connections&lt;br /&gt; QueryFile = "/usr/lib64/bacula/query.sql"&lt;br /&gt; WorkingDirectory = "/var/lib/bacula"&lt;br /&gt; PidDirectory = "/var/run"&lt;br /&gt; Maximum Concurrent Jobs = 1&lt;br /&gt; Password = "director-pass"    # bconsole.conf will using this password&lt;br /&gt; Messages = Daemon&lt;br /&gt;}&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Jobs Definition and Job&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;JobDefs {&lt;br /&gt; Name = "DefaultJob"&lt;br /&gt; Type = Backup&lt;br /&gt; Level = Incremental&lt;br /&gt; Client = package.asik.com-fd&lt;br /&gt; FileSet = "Full Set"&lt;br /&gt; Schedule = "WeeklyCycle"&lt;br /&gt; Storage = package-storage&lt;br /&gt; Messages = Standard&lt;br /&gt; Pool = Default&lt;br /&gt; Priority = 10&lt;br /&gt;}&lt;br /&gt;#&lt;br /&gt;# Define the main nightly save backup job&lt;br /&gt;#   By default, this job will back up to disk in /tmp&lt;br /&gt;Job {&lt;br /&gt; Name = "BackupClient1"&lt;br /&gt; JobDefs = "DefaultJob"&lt;br /&gt; Write Bootstrap = "/var/lib/bacula/Client1.bsr"&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Another Job Backup example&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# Backup the catalog database (after the nightly save)&lt;br /&gt;Job {&lt;br /&gt; Name = "BackupCatalog"&lt;br /&gt; JobDefs = "DefaultJob"&lt;br /&gt; Level = Full&lt;br /&gt; FileSet="Catalog"&lt;br /&gt; Schedule = "WeeklyCycleAfterBackup"&lt;br /&gt; # This creates an ASCII copy of the catalog&lt;br /&gt; # WARNING!!! Passing the password via the command line is insecure.&lt;br /&gt; # see comments in make_catalog_backup for details.&lt;br /&gt; # Arguments to make_catalog_backup are:&lt;br /&gt; #  make_catalog_backup &amp;lt;database-name&amp;gt; &amp;lt;user-name&amp;gt; &amp;lt;password&amp;gt; &amp;lt;host&amp;gt;&lt;br /&gt; RunBeforeJob = "/usr/lib64/bacula/make_catalog_backup bacula bacula"&lt;br /&gt; # This deletes the copy of the catalog&lt;br /&gt; RunAfterJob  = "/usr/lib64/bacula/delete_catalog_backup"&lt;br /&gt; Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"&lt;br /&gt; Priority = 11                   # run after main backup&lt;br /&gt;}&lt;br /&gt;#&lt;br /&gt;# Standard Restore template, to be changed by Console program&lt;br /&gt;#  Only one such job is needed for all Jobs/Clients/Storage ...&lt;br /&gt;#&lt;br /&gt;Job {&lt;br /&gt; Name = "RestoreFiles"&lt;br /&gt; Type = Restore&lt;br /&gt; Client=package.asik.com-fd&lt;br /&gt; FileSet="Full Set"&lt;br /&gt; Storage = package-storage&lt;br /&gt; Pool = Default&lt;br /&gt; Messages = Standard&lt;br /&gt; Where = /tmp/bacula-restores&lt;br /&gt;}&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;File Set, you can define which file need to be backup&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# List of files to be backed up&lt;br /&gt;FileSet {&lt;br /&gt; Name = "Full Set"&lt;br /&gt; Include {&lt;br /&gt;   Options {&lt;br /&gt;     signature = MD5&lt;br /&gt;   }&lt;br /&gt;#    &lt;br /&gt;#  Put your list of files here, preceded by 'File =', one per line&lt;br /&gt;#    or include an external list with:&lt;br /&gt;#&lt;br /&gt;#    File = &amp;lt;file-name&lt;br /&gt;#&lt;br /&gt;#  Note: / backs up everything on the root partition.&lt;br /&gt;#    if you have other partitions such as /usr or /home&lt;br /&gt;#    you will probably want to add them too.&lt;br /&gt;#&lt;br /&gt;#  By default this is defined to point to the Bacula binary&lt;br /&gt;#    directory to give a reasonable FileSet to backup to&lt;br /&gt;#    disk storage during initial testing.&lt;br /&gt;#&lt;br /&gt;   File = /usr/sbin&lt;br /&gt; }&lt;br /&gt;#&lt;br /&gt;# If you backup the root directory, the following two excluded&lt;br /&gt;#   files can be useful&lt;br /&gt;#&lt;br /&gt; Exclude {&lt;br /&gt;   File = /var/lib/bacula&lt;br /&gt;   File = /tmp&lt;br /&gt;   File = /proc&lt;br /&gt;   File = /tmp&lt;br /&gt;   File = /.journal&lt;br /&gt;   File = /.fsck&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Client&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# Client (File Services) to backup&lt;br /&gt;Client {&lt;br /&gt; Name = package.asik.com-fd&lt;br /&gt; Address = localhost&lt;br /&gt; FDPort = 9102&lt;br /&gt; Catalog = MyCatalog&lt;br /&gt; Password = "package-pass"           # password for FileDaemon&lt;br /&gt; File Retention = 30 days            # 30 days&lt;br /&gt; Job Retention = 6 months            # six months&lt;br /&gt; AutoPrune = yes                     # Prune expired Jobs/Files&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Storage&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# Definition of file storage device&lt;br /&gt;Storage {&lt;br /&gt; Name = package-storage&lt;br /&gt;# Do not use "localhost" here    &lt;br /&gt; Address = localhost                 # N.B. Use a fully qualified name here&lt;br /&gt; SDPort = 9103&lt;br /&gt; Password = "storage-pass" # Will be used at bacula-sd.conf as (Director) password&lt;br /&gt; Device = FileStorage                #will be read at bacula-sd.conf&lt;br /&gt; Media Type = File                   #will be read at bacula-sd.conf&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Catalog&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# Generic catalog service&lt;br /&gt;Catalog {&lt;br /&gt; Name = MyCatalog&lt;br /&gt;# Uncomment the following line if you want the dbi driver&lt;br /&gt;# dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport =  &lt;br /&gt; dbname = "bacula"; dbuser = "bacula"; dbpassword = "baculapass"&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Message&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# Reasonable message delivery -- send most everything to email address&lt;br /&gt;#  and to the console&lt;br /&gt;Messages {&lt;br /&gt; Name = Standard&lt;br /&gt;#&lt;br /&gt;# NOTE! If you send to two email or more email addresses, you will need&lt;br /&gt;#  to replace the&amp;nbsp;%r in the from field (-f part) with a single valid&lt;br /&gt;#  email address in both the mailcommand and the operatorcommand.&lt;br /&gt;#  What this does is, it sets the email address that emails would display&lt;br /&gt;#  in the FROM field, which is by default the same email as they're being&lt;br /&gt;#  sent to.  However, if you send email to more than one address, then&lt;br /&gt;#  you'll have to set the FROM address manually, to a single address. &lt;br /&gt;#  for example, a 'no-reply@mydomain.com', is better since that tends to&lt;br /&gt;#  tell (most) people that its coming from an automated source.&lt;br /&gt;#&lt;br /&gt; mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \&amp;lt;%r\&amp;gt;\" -s \"Bacula:&amp;nbsp;%t&amp;nbsp;%e of&amp;nbsp;%c&amp;nbsp;%l\"&amp;nbsp;%r"&lt;br /&gt; operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \&amp;lt;%r\&amp;gt;\" -s \"Bacula: Intervention needed for&amp;nbsp;%j\"&amp;nbsp;%r"&lt;br /&gt; mail = root@localhost = all,&amp;nbsp;!skipped&lt;br /&gt; operator = root@localhost = mount&lt;br /&gt; console = all,&amp;nbsp;!skipped,&amp;nbsp;!saved&lt;br /&gt;#&lt;br /&gt;# WARNING! the following will create a file that you must cycle from&lt;br /&gt;#          time to time as it will grow indefinitely. However, it will&lt;br /&gt;#          also keep all your messages if they scroll off the console.&lt;br /&gt;#&lt;br /&gt; append = "/var/lib/bacula/log" = all,&amp;nbsp;!skipped&lt;br /&gt; catalog = all ,&amp;nbsp;!skipped,&amp;nbsp;!saved&lt;br /&gt;}&lt;br /&gt;# Message delivery for daemon messages (no job).&lt;br /&gt;Messages {&lt;br /&gt; Name = Daemon&lt;br /&gt; mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \&amp;lt;%r\&amp;gt;\" -s \"Bacula daemon message\"&amp;nbsp;%r"&lt;br /&gt; mail = root@localhost = all,&amp;nbsp;!skipped&lt;br /&gt; console = all,&amp;nbsp;!skipped,&amp;nbsp;!saved&lt;br /&gt; append = "/var/lib/bacula/log" = all,&amp;nbsp;!skipped&lt;br /&gt;}&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Pool&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# Default pool definition&lt;br /&gt;Pool {&lt;br /&gt; Name = Default&lt;br /&gt; Pool Type = Backup&lt;br /&gt; Recycle = yes                       # Bacula can automatically recycle Volumes&lt;br /&gt; AutoPrune = yes                     # Prune expired volumes&lt;br /&gt; Volume Retention = 365 days         # one year&lt;br /&gt;}&lt;br /&gt;# Scratch pool definition&lt;br /&gt;Pool {&lt;br /&gt; Name = Scratch&lt;br /&gt; Pool Type = Backup&lt;br /&gt;}&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Console, bacula can access via bconsole&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#&lt;br /&gt;# Restricted console used by tray-monitor to get the status of the director&lt;br /&gt;#&lt;br /&gt;Console {&lt;br /&gt; Name = package.asik.com-mon&lt;br /&gt; Password = "fazrie"&lt;br /&gt; CommandACL = status, .status&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Add this line at the end of config file, this command will tell bacula server to read all client config at file read-client.conf&lt;/div&gt;&lt;pre class="brush: bash"&gt;@/etc/bacula/read-client.conf&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h5 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 13px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="bacula-sd"&gt;bacula-sd&lt;/span&gt;&lt;/h5&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Define the storage&lt;/div&gt;&lt;pre class="brush: bash"&gt;Storage {                             # definition of myself&lt;br /&gt; Name = package.asik.com-sd&lt;br /&gt; SDPort = 9103                        # Director's port      &lt;br /&gt; WorkingDirectory = "/var/lib/bacula"&lt;br /&gt; Pid Directory = "/var/run"&lt;br /&gt; Maximum Concurrent Jobs = 20&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Define the director to be used based on Director at bacula-dir.conf&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#&lt;br /&gt;# List Directors who are permitted to contact Storage daemon&lt;br /&gt;#&lt;br /&gt;Director {&lt;br /&gt; Name = bacula.server-dir&lt;br /&gt; Password = "storage-pass"&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#&lt;br /&gt;# Restricted Director, used by tray-monitor to get the&lt;br /&gt;#   status of the storage daemon&lt;br /&gt;#&lt;br /&gt;Director {&lt;br /&gt; Name = package.asik.com-mon&lt;br /&gt; Password = "director-pass"&lt;br /&gt; Monitor = yes&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;Define Device should be used, based on Device config at bacula-dir.conf&lt;br /&gt;#&lt;br /&gt;# Devices supported by this Storage daemon&lt;br /&gt;# To connect, the Director's bacula-dir.conf must have the&lt;br /&gt;#  same Name and MediaType. &lt;br /&gt;#&lt;br /&gt;Device {&lt;br /&gt; Name = FileStorage    # read from bacula-dir.conf at Storage section  &lt;br /&gt; Media Type = File     # read from bacula-dir.conf at Storage section&lt;br /&gt; Archive Device = /home/bacula&lt;br /&gt; LabelMedia = yes;                   # lets Bacula label unlabeled media&lt;br /&gt; Random Access = Yes;&lt;br /&gt; AutomaticMount = yes;               # when device opened, read it&lt;br /&gt; RemovableMedia = no;&lt;br /&gt; AlwaysOpen = no;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Message&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;Messages {&lt;br /&gt; Name = Standard&lt;br /&gt; director = package.asik.com-dir = all&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;h5 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 13px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="bacula-fd"&gt;bacula-fd&lt;/span&gt;&lt;/h5&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#&lt;br /&gt;# List Directors who are permitted to contact this File daemon&lt;br /&gt;#&lt;br /&gt;Director {&lt;br /&gt; Name = bacula.server-dir&lt;br /&gt; Password = "package-pass"&lt;br /&gt;}&lt;br /&gt;#&lt;br /&gt;# Restricted Director, used by tray-monitor to get the&lt;br /&gt;#   status of the file daemon&lt;br /&gt;#&lt;br /&gt;Director {&lt;br /&gt; Name = package.asik.com-mon&lt;br /&gt; Password = "fazrie"&lt;br /&gt; Monitor = yes&lt;br /&gt;}&lt;br /&gt;#&lt;br /&gt;# "Global" File daemon configuration specifications&lt;br /&gt;#&lt;br /&gt;FileDaemon {                          # this is me&lt;br /&gt; Name = package.asik.com-fd&lt;br /&gt; FDport = 9102                  # where we listen for the director&lt;br /&gt; WorkingDirectory = /var/lib/bacula&lt;br /&gt; Pid Directory = /var/run&lt;br /&gt; Maximum Concurrent Jobs = 20&lt;br /&gt;}&lt;br /&gt;# Send all messages except skipped files back to Director&lt;br /&gt;Messages {&lt;br /&gt; Name = Standard&lt;br /&gt; director = package.asik.com-dir = all,&amp;nbsp;!skipped,&amp;nbsp;!restored&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;h5 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 13px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="bconsole.conf"&gt;bconsole.conf&lt;/span&gt;&lt;/h5&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#&lt;br /&gt;# Bacula User Agent (or Console) Configuration File&lt;br /&gt;#&lt;br /&gt;Director {&lt;br /&gt; Name = bacula.server-dir   # director name at bacula-dir.conf&lt;br /&gt; DIRport = 9101             # director port&lt;br /&gt; address = localhost        # director address&lt;br /&gt; Password = "director-pass" # director password&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;h5 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 13px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="read-client.conf"&gt;read-client.conf&lt;/span&gt;&lt;/h5&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Make a Client Directory at /etc/bacula/, we will put all client configuration at that directory, so the read-client.conf will read all config file.&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;mkdir -p /etc/bacula/client&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#&lt;br /&gt;# Include subfiles associated with configuration of clients.&lt;br /&gt;# They define the bulk of the Clients, Jobs, and FileSets.&lt;br /&gt;# Remember to "reload" the Director after adding a client file.&lt;br /&gt;#&lt;br /&gt;@|"sh -c 'for f in /etc/bacula/client/*.conf&amp;nbsp;; do echo @${f}&amp;nbsp;; done'"&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 15px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Client"&gt;Client&lt;/span&gt;&lt;/h4&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Edit bacula config file at /etc/bacula/bacula-fd.conf&lt;/div&gt;&lt;h5 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 13px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="bacula-fd.conf"&gt;bacula-fd.conf&lt;/span&gt;&lt;/h5&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Password should be macth with the server&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;Director {&lt;br /&gt;       Name            = bacula.server-dir&lt;br /&gt;       Password        = Agw6a4ckidwQ493JwAVl9oTPu3R8PaJGtv3PptWb9Yh2HyryaO1kOm9KiCVLOmaB51FIk8ReEapvrg9reON7k7nDutbadcj4wA5L5ajyuyusVSwovt5Gy4EBZMFd9BxPDYm3W23LK6mtiaJiCZUufiwEq8C9lDDmE4wt3w66tP8EK7ACaFmiMsv9aOjTeSETep7NeaOrPQqhfeR8TDkqO4eBADWYTPjwE1QugpHgWNsta3i91UvVkAOJjztzBKSn&lt;br /&gt;}&lt;br /&gt;FileDaemon {&lt;br /&gt;       Name    = messaging&lt;br /&gt;       FDport  = 9102&lt;br /&gt;       WorkingDirectory = /var/bacula&lt;br /&gt;       Pid Directory    = /var/run&lt;br /&gt;       Maximum Concurrent Jobs = 20&lt;br /&gt;}&lt;br /&gt;Messages {&lt;br /&gt;       Name = Standard&lt;br /&gt;       director = bacula.server-dir = all,&amp;nbsp;!skipped,&amp;nbsp;!restored&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;At the server make a client config file at /etc/bacula/client/&lt;i&gt;me_the_client.conf&lt;/i&gt;&amp;nbsp;and put this line&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;#/etc/bacula/cilentdef/&amp;lt;hostname&amp;gt;.conf&lt;br /&gt;Client {&lt;br /&gt;       Name            = messaging # client name&lt;br /&gt;       Address         = messaging.asik.com # fqdn address&lt;br /&gt;       FDPort          = 9102&lt;br /&gt;       Catalog         = MyCatalog #DefaultCatalog &amp;lt;= ASYX server using this&lt;br /&gt;       Password        = Agw6a4ckidwQ493JwAVl9oTPu3R8PaJGtv3PptWb9Yh2HyryaO1kOm9KiCVLOmaB51FIk8ReEapvrg9reON7k7nDutbadcj4wA5L5ajyuyusVSwovt5Gy4EBZMFd9BxPDYm3W23LK6mtiaJiCZUufiwEq8C9lDDmE4wt3w66tP8EK7ACaFmiMsv9aOjTeSETep7NeaOrPQqhfeR8TDkqO4eBADWYTPjwE1QugpHgWNsta3i91UvVkAOJjztzBKSn # director password&lt;br /&gt;       File Retention  = 30 days&lt;br /&gt;       Job Retention   = 6 months&lt;br /&gt;       AutoPrune       = yes&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;h3 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: initial; border-bottom-style: none; border-bottom-width: initial; color: black; font-size: 17px; font-weight: bold; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Test_Run"&gt;Test Run&lt;/span&gt;&lt;/h3&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Start the bacula server daemon&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# service bacula-dir start&lt;br /&gt;# service bacula-sd start&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;open bacula manager using bconsole,just type&amp;nbsp;&lt;i&gt;bconsole&lt;/i&gt;&amp;nbsp;on the terminal&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# bconsole&lt;br /&gt;&lt;/pre&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Webacula"&gt;Webacula&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;To use Webcaula we need the latest PHP , ZendFramework and MySQL, download this packages&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;webacula-5.0.3-1.el5.noarch.rpm&lt;br /&gt;&lt;/pre&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;json-c-0.9-1.el5.x86_64.rpm&lt;br /&gt;libedit-20090923-3.0_1.el5.rf.x86_64.rpm&lt;br /&gt;php-5.3.5-1.el5.remi.1.x86_64.rpm&lt;br /&gt;php-cli-5.3.5-1.el5.remi.1.x86_64.rpm&lt;br /&gt;php-common-5.3.5-1.el5.remi.1.x86_64.rpm&lt;br /&gt;php-devel-5.3.5-1.el5.remi.1.x86_64.rpm&lt;br /&gt;php-gd-5.3.5-1.el5.remi.1.x86_64.rpm&lt;br /&gt;php-pdo-5.3.5-1.el5.remi.1.x86_64.rpm&lt;br /&gt;php-pear-1.9.1-6.el5.remi.noarch.rpm&lt;br /&gt;php-process-5.3.5-1.el5.remi.x86_64.rpm&lt;br /&gt;php-xml-5.3.5-1.el5.remi.1.x86_64.rpm&lt;br /&gt;php-ZendFramework-1.11.0-1.el5.remi.noarch.rpm&lt;br /&gt;t1lib-5.1.2-1.el5.rf.x86_64.rpm&lt;br /&gt;ZendFramework-1.11.3-minimal.tar.gz&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Install all using yum&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;yum localinstall --nogpgcheck *.rpm&lt;br /&gt;&lt;/pre&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Firewall"&gt;Firewall&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Bacula need several port to be open&lt;/div&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;daemon       |    port&lt;br /&gt;bacula-dir        9101&lt;br /&gt;bacula-fd         9102&lt;br /&gt;bacula-sd         9103&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;in iptables&lt;/div&gt;&lt;pre class="brush: bash"&gt;# iptables -I INPUT -p tcp -m multiport --dport 9101,9102,9103 -j ACCEPT&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-5998944496463903249?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/5998944496463903249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/howto-setup-bacula.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5998944496463903249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5998944496463903249'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/howto-setup-bacula.html' title='Howto setup Bacula'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-226645358629402968</id><published>2011-06-13T22:48:00.000-07:00</published><updated>2011-06-13T22:48:21.963-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='snort'/><title type='text'>Configuring SNORT in SPLUNK</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;1. Download snort plugins for splunk, choose manager, the data inputs&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-q46Tu5gcWLY/Tfb1KJaZwpI/AAAAAAAAATE/AoVIR-rqCDM/s1600/step1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="136" src="http://2.bp.blogspot.com/-q46Tu5gcWLY/Tfb1KJaZwpI/AAAAAAAAATE/AoVIR-rqCDM/s320/step1.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;2. Make new data files, ponting data path to your barnyard2/alert file.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-hPQcbX1ZsrM/Tfb1KoDUAXI/AAAAAAAAATI/OpYTq33C3WM/s1600/step2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="197" src="http://3.bp.blogspot.com/-hPQcbX1ZsrM/Tfb1KoDUAXI/AAAAAAAAATI/OpYTq33C3WM/s320/step2.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-lczaoNFTNmo/Tfb1LOSkCnI/AAAAAAAAATM/r0z1TymvVIE/s1600/step3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="135" src="http://4.bp.blogspot.com/-lczaoNFTNmo/Tfb1LOSkCnI/AAAAAAAAATM/r0z1TymvVIE/s320/step3.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;3.&amp;nbsp;edit the&amp;nbsp;&lt;i&gt;host field&lt;/i&gt;&amp;nbsp;value &amp;nbsp;based on your snort host name and&amp;nbsp;&lt;i&gt;source type &lt;/i&gt;&amp;nbsp;value into snor_alert_full&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-T4Ga5ZbAdG4/Tfb1L6CGNOI/AAAAAAAAATQ/x-FyvK6EvvY/s1600/step4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="296" src="http://3.bp.blogspot.com/-T4Ga5ZbAdG4/Tfb1L6CGNOI/AAAAAAAAATQ/x-FyvK6EvvY/s320/step4.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;4. view the result&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-7xuDs9UQNIk/Tfb1MqpT8BI/AAAAAAAAATU/8LvLIFbbgQE/s1600/step5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="146" src="http://3.bp.blogspot.com/-7xuDs9UQNIk/Tfb1MqpT8BI/AAAAAAAAATU/8LvLIFbbgQE/s320/step5.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-226645358629402968?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/226645358629402968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/configuring-snort-in-splunk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/226645358629402968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/226645358629402968'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/configuring-snort-in-splunk.html' title='Configuring SNORT in SPLUNK'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-q46Tu5gcWLY/Tfb1KJaZwpI/AAAAAAAAATE/AoVIR-rqCDM/s72-c/step1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-8275340130577777609</id><published>2011-06-13T22:15:00.001-07:00</published><updated>2011-06-13T22:53:48.612-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='snort'/><title type='text'>Howto Install SNORT IDS</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Installation"&gt;Spec files&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;I rebuild my snort package, you can search or downloaded the snort rpm package&amp;nbsp;snort-2.9.0.5.src.rpm.&lt;/div&gt;&lt;div&gt;i make little bit changes in my spec file,&lt;/div&gt;&lt;div&gt;extract src.rpm package using rpm2cpio&amp;nbsp;snort-2.9.0.5.src.rpm | cpio -idv&lt;/div&gt;&lt;div&gt;edit the spec.file&amp;nbsp;and change this line into&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;SNORT_BASE_CONFIG="--prefix=%{_prefix} \&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --bindir=%{_sbindir} \&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --sysconfdir=%{_sysconfdir}/snort \&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --with-libpcap-includes=%{_includedir} \&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --enable-decoder-preprocessor-rules --enable-targetbased \&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp; &lt;b&gt;--enable-dynamicplugin &amp;nbsp;--enable-zlib --enable-ipv6 --enable-normalizer&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt; &amp;nbsp;"&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="mw-headline" id="Installation"&gt;and start to rebuild the package. read my manual how to build a package from source&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="mw-headline" id="Installation"&gt;&lt;a href="http://kura2gurun.blogspot.com/2011/01/make-rpm-packages-from-source.html"&gt;http://kura2gurun.blogspot.com/2011/01/make-rpm-packages-from-source.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Installation"&gt;Installation&lt;/span&gt;&lt;/h1&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;yum localinstall libdnet-1.12-7.x86_64.rpm libdnet-progs-1.12-7.x86_64.rpm libdnet-devel-1.12-7.x86_64.rpm&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;yum localinstall libpcap1-devel-1.1.1-9.x86_64.rpm libpcap1-1.1.1-9.x86_64.rpm&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;yum localinstall daq-0.5-1.x86_64.rpm&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;yum localinstall snort-2.9.0.5-1.x86_64.rpm&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;yum localinstall barnyard2-1.9-1.x86_64.rpm&lt;br /&gt;&lt;/pre&gt;&lt;div style="margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;div style="line-height: 1.5em;"&gt;Download snort rules from official website snortrules-snapshot-2904.tar.gz&lt;/div&gt;&lt;div style="line-height: 1.5em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 1.5em;"&gt;you can also install snort and barnyard using source package and configure the snort installation with&lt;/div&gt;&lt;div style="line-height: 1.5em;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;--enable-dynamicplugin &amp;nbsp;--enable-zlib --enable-ipv6 --enable-normalizer&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="line-height: 1.5em;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="line-height: 1.5em;"&gt;And follow this configurations&lt;/div&gt;&lt;/div&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Configuration"&gt;Configuration&lt;/span&gt;&lt;/h1&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="snort"&gt;snort&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;make snort log file directory&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;mkdir /var/log/snort/&lt;br /&gt;chown snort:snort /var/log/snort/&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;edit snort config file at /etc/snort/snort.conf&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;change ipvar into var&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;set HOME_NET to your ip subnet&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;var HOME_NET 192.168.1.0/24&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;setup path to your rule path&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;var RULE_PATH rules&lt;br /&gt;var SO_RULE_PATH so_rules&lt;br /&gt;var PREPROC_RULE_PATH preproc_rules&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;remark dynamic rules and preprocessors because we dont need it&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# path to dynamic rules libraries&lt;br /&gt;### dynamicdetection directory /usr/local/lib/snort_dynamicrules&lt;br /&gt;&lt;br /&gt;# Inline packet normalization. For more information, see README.normalize&lt;br /&gt;# Does nothing in IDS mode&lt;br /&gt;### preprocessor normalize_ip4&lt;br /&gt;### preprocessor normalize_tcp: ips ecn stream&lt;br /&gt;### preprocessor normalize_icmp4&lt;br /&gt;### preprocessor normalize_ip6&lt;br /&gt;### preprocessor normalize_icmp6&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;set the output to&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;output unified2: filename snort.log, limit 128&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;extract snortrules-snapshot-2904.tar.gz and put these folder into /etc/snort&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;rules&lt;br /&gt;so_rules&lt;br /&gt;preproc_rules &lt;br /&gt;&lt;/pre&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="barnyard2"&gt;barnyard2&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;make directory for barnyard2 log&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;mkdir -p /var/log/barnyard2/&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;make waldo file for barnyard2&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;touch /var/log/snort/barnyard2.waldo&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;edit baryard2 config at /etc/snort/barnyard2.conf&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;setup path for barnyard2 where the snort config files use&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# set the appropriate paths to the file(s) your Snort process is using.&lt;br /&gt;#&lt;br /&gt;config reference_file:      /etc/snort/reference.config&lt;br /&gt;config classification_file: /etc/snort/classification.config&lt;br /&gt;config gen_file:            /etc/snort/gen-msg.map&lt;br /&gt;config sid_file:            /etc/snort/sid-msg.map&lt;br /&gt;&lt;br /&gt;# set the directory for any output logging&lt;br /&gt;#&lt;br /&gt;config logdir: /var/log/barnyard2&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# set the hostname and interface&lt;br /&gt;config hostname:        ketoprak.humor.com&lt;br /&gt;config interface:       eth0&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# enable the year being shown in timestamps&lt;br /&gt;#&lt;br /&gt;config show_year&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# define the full waldo filepath.&lt;br /&gt;#&lt;br /&gt;config waldo_file: /var/log/snort/barnyard2.waldo&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# Step 2: setup the input plugins&lt;br /&gt;#&lt;br /&gt;# this is not hard, only unified2 is supported&amp;nbsp;;)&lt;br /&gt;input unified2&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# set output alert mode&lt;br /&gt;output alert_full&lt;br /&gt;&lt;/pre&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="oinkmaster"&gt;oinkmaster&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Download oink master from here&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;a class="external free" href="http://pkgs.org/download/centos-5-rhel-5/atomic-i386/oinkmaster-2.0-0.el5.art.noarch.rpm.html" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/vector/images/external-link-ltr-icon.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-bottom: 0px; padding-left: 0px; padding-right: 13px; padding-top: 0px; text-decoration: none;"&gt;http://pkgs.org/download/centos-5-rhel-5/atomic-i386/oinkmaster-2.0-0.el5.art.noarch.rpm.html&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Install the package&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@ketoprak tmp]# yum localinstall oinkmaster-2.0-0.el5.art.noarch.rpm -y --nogpgcheck&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;locate the file to make sure the files was install correctly, and oinkmaster.pl has been send to /usr/bin/&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@ketoprak tmp]# locate oink&lt;br /&gt;/etc/oinkmaster.conf&lt;br /&gt;/usr/bin/oinkmaster.pl&lt;br /&gt;/usr/share/doc/oinkmaster-2.0&lt;br /&gt;/usr/share/doc/oinkmaster-2.0/ChangeLog&lt;br /&gt;/usr/share/doc/oinkmaster-2.0/LICENSE&lt;br /&gt;/usr/share/doc/oinkmaster-2.0/README&lt;br /&gt;/usr/share/doc/oinkmaster-2.0/README.gui&lt;br /&gt;/usr/share/doc/oinkmaster-2.0/README.templates&lt;br /&gt;/usr/share/doc/oinkmaster-2.0/README.win32&lt;br /&gt;/usr/share/doc/oinkmaster-2.0/UPGRADING&lt;br /&gt;/usr/share/doc/oinkmaster-2.0/template-examples.conf&lt;br /&gt;/usr/share/man/man1/oinkmaster.1.gz&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Check the snort version using&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;snort -v&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;and the result is&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@ketoprak ~]# snort -v&lt;br /&gt;Running in packet dump mode&lt;br /&gt;       --== Initializing Snort ==--&lt;br /&gt;Initializing Output Plugins!&lt;br /&gt;pcap DAQ configured to passive.&lt;br /&gt;Acquiring network traffic from "eth1".&lt;br /&gt;Decoding Ethernet&lt;br /&gt;       --== Initialization Complete ==--&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;,,_     -*&amp;gt; Snort! &amp;lt;*-&lt;br /&gt; o"  )~   Version 2.9.0.5 (Build 135) &lt;br /&gt;  '&lt;b&gt;    By Martin Roesch &amp;amp; The Snort Team: &lt;a class="external free" href="http://www.snort.org/snort/snort-team" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/vector/images/external-link-ltr-icon.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-bottom: 0px; padding-left: 0px; padding-right: 13px; padding-top: 0px; text-decoration: none;"&gt;http://www.snort.org/snort/snort-team&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;          Copyright (C) 1998-2011 Sourcefire, Inc., et al.&lt;br /&gt;          Using libpcap version 1.1.1&lt;br /&gt;          Using PCRE version: 6.6 06-Feb-2006&lt;br /&gt;          Using ZLIB version: 1.2.3&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;Edit the oinkmaster.conf locate at /etc/oinkmaster.conf&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;url = &lt;a class="external free" href="http://www.snort.org/pub-bin/oinkmaster.cgi/" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/vector/images/external-link-ltr-icon.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-bottom: 0px; padding-left: 0px; padding-right: 13px; padding-top: 0px; text-decoration: none;"&gt;http://www.snort.org/pub-bin/oinkmaster.cgi/&lt;/a&gt;&amp;lt;oinkcode here&amp;gt;/&amp;lt;filename&amp;gt; &lt;br /&gt;edit like this&lt;br /&gt;url = &lt;a class="external free" href="http://www.snort.org/pub-bin/oinkmaster.cgi/ee4075a398290459/snortrules-snapshot-2861.tar.gz" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/vector/images/external-link-ltr-icon.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-bottom: 0px; padding-left: 0px; padding-right: 13px; padding-top: 0px; text-decoration: none;"&gt;http://www.snort.org/pub-bin/oinkmaster.cgi/ee4075a398290459/snortrules-snapshot-2861.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;note:&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;you will get the oinkcode from snort official website after you register,&lt;br /&gt;&lt;/pre&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Run_Snort_and_Barnyard_and_Oinkmaster"&gt;Run Snort and Barnyard and Oinkmaster&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;First run snort service&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;snort -c /etc/snort/snort.conf -i eth0&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;then run the Barnyard2&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;barnyard2 -c /etc/snort/barnyard2.conf -d /var/log/snort -f snort.log&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;then run the Oinkmaster&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;oinkmaster.pl -o &amp;lt;snort rules located&amp;gt;&lt;br /&gt;oinkmaster.pl -o /etc/snort/rules&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;make the crontab schedule&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# crontab -e &lt;br /&gt; 0 3 * * * /usr/local/bin/oinkmaster.pl -C /etc/oinkmaster.conf -o /etc/snort/rules 2&amp;gt;&amp;amp;1&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-8275340130577777609?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/8275340130577777609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/howto-install-snort-ids.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8275340130577777609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8275340130577777609'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/howto-install-snort-ids.html' title='Howto Install SNORT IDS'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-3215293162624199094</id><published>2011-06-13T22:12:00.000-07:00</published><updated>2011-06-13T22:12:29.612-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>Howto Copy Log Files using rsync</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Configure_rsync_daemon.28_at_rsyslog_server_.29"&gt;Configure rsync daemon( at rsyslog server )&lt;/span&gt;&lt;/h1&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="rsyncd.conf"&gt;rsyncd.conf&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;create file rsyncd.conf at /etc/ with this content&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;max connections = 2&lt;br /&gt;log file = /var/log/rsync.log&lt;br /&gt;timeout = 300&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[rsyslog]&lt;br /&gt;comment = Copy rsyslog Log file for splunk&lt;br /&gt;path = /var/log/rsyslog&lt;br /&gt;read only = yes&lt;br /&gt;list = yes&lt;br /&gt;uid = nobody&lt;br /&gt;gid = nobody&lt;br /&gt;# auth users = root&lt;br /&gt;# secrets file = /etc/rsyncd.secrets&lt;br /&gt;# host allow = 192.168.0.200&lt;br /&gt;&lt;/pre&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="rsyncd.secret_.28optional.29"&gt;rsyncd.secret (optional)&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;just unmark the # at rsyncd.conf to activate the secret file&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;root:PLa1nr0otP4s$wOrd&lt;br /&gt;&lt;/pre&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="run_the_rsync_daemon"&gt;run the rsync daemon&lt;/span&gt;&lt;/h2&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;#rsync --daemon --config=/etc/rsyncd.conf&lt;br /&gt;&lt;/pre&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="rsync_client_.28_at_splunk_server_.29"&gt;rsync client ( at splunk server )&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;run this command for copy the log file&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;#rsync -avuzP rsync://192.168.0.3/rsyslog /var/log/rsyslog&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="create_schedules_to_run_rsync_using_cron"&gt;create schedules to run rsync using cron&lt;/span&gt;&lt;/h1&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;PATH=/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;5 * * * * /usr/bin/rsync -avuzP rsync://192.168.0.3/rsyslog /var/log/rsyslog&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;"&gt;&lt;span class="mw-headline" id="Firewall_Issue"&gt;Firewall Issue&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Daemon need to open port 873:&lt;/div&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; font-size: 13px; line-height: 14px; white-space: pre;"&gt;#iptables -I INPUT -p tcp --dport 873 -j ACCEPT&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-3215293162624199094?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/3215293162624199094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/howto-copy-log-files-using-rsync.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3215293162624199094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3215293162624199094'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/howto-copy-log-files-using-rsync.html' title='Howto Copy Log Files using rsync'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-4801091482337160403</id><published>2011-06-01T03:06:00.000-07:00</published><updated>2011-10-12T20:49:59.264-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Samba'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Directory Server'/><title type='text'>Samba PDC with Centos Directory Server  backend</title><content type='html'>hostname = ketoprak&lt;br /&gt;domain   = sidoel.com&lt;br /&gt;ipaddres = 192.168.1.100&lt;br /&gt;&lt;br /&gt;edit hosts&lt;br /&gt;# vim /etc/hosts/&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;192.168.1.100 ketoprak.sidoel.com ketoprak&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;install directory server&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# setup-ds-admin.pl&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;setup nss&lt;br /&gt;edit ldap.conf&lt;br /&gt;&lt;br /&gt;# vim /etc/ldap.conf&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;host 127.0.0.1&lt;br /&gt;&lt;br /&gt;base dc=sidoel,dc=com&lt;br /&gt;binddn uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot&lt;br /&gt;bindpw admin&lt;br /&gt;timelimit 120&lt;br /&gt;bind_timelimit 120&lt;br /&gt;idle_timelimit 3600&lt;br /&gt;pam_lookup_policy yes&lt;br /&gt;nss_base_passwd         ou=People,dc=sidoel,dc=com?one&lt;br /&gt;nss_base_passwd         ou=Machines,dc=sidoel,dc=com?one&lt;br /&gt;nss_base_group          ou=Groups,dc=sidoel,dc=com?one&lt;br /&gt;nss_initgroups_ignoreusers  root,ldap,named,avahi,haldaemon,dbus,radvd,tomcat,radiusd,news,mailman,nscd,gdm&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;# vim /etc/nsswitch.conf&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;passwd:     files ldap&lt;br /&gt;shadow:     files ldap&lt;br /&gt;group:      files ldap&lt;br /&gt;&lt;br /&gt;hosts:      files dns&lt;br /&gt;&lt;br /&gt;bootparams: nisplus [NOTFOUND=return] files&lt;br /&gt;&lt;br /&gt;ethers:     files&lt;br /&gt;netmasks:   files&lt;br /&gt;networks:   files&lt;br /&gt;protocols:  files&lt;br /&gt;rpc:        files&lt;br /&gt;services:   files&lt;br /&gt;&lt;br /&gt;netgroup:   files ldap&lt;br /&gt;&lt;br /&gt;publickey:  nisplus&lt;br /&gt;&lt;br /&gt;automount:  files ldap&lt;br /&gt;aliases:    files nisplus&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;install samba&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# yum install samba3x samba3x-client&lt;br /&gt;&lt;br /&gt;libtalloc-2.0.1-11.el5.x86_64.rpm&lt;br /&gt;libtdb-1.2.1-5.el5.x86_64.rpm&lt;br /&gt;samba3x-winbind-3.5.4-0.70.el5_6.1.x86_64.rpm&lt;br /&gt;samba3x-3.5.4-0.70.el5_6.1.x86_64.rpm&lt;br /&gt;samba3x-common-3.5.4-0.70.el5_6.1.x86_64.rpm&lt;br /&gt;samba3x-client&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;make directory server samba schema by converting samba schema&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# cd /usr/share/doc/samba3x-3.5.4/LDAP/&lt;br /&gt;# perl ol-schema-migrate.pl -b samba.schema &amp;gt; ~/61samba.ldif&lt;br /&gt;&lt;br /&gt;copied to your slap-instance&lt;br /&gt;# cp ~/61samba.ldif /etc/dirsrv/slapd-ketoprak/schema/&lt;br /&gt;&lt;br /&gt;restart the service (your-instance)&lt;br /&gt;# service dirsrv restart ketoprak&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;First get the Samba SID for your PDC : remember this SID&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# net getlocalsid&lt;br /&gt;SID for domain KETOPRAK is: S-1-5-21-3965608580-1676198639-4080886704&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Edit samba configuration&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# cp /etc/samba/smb.conf /etc/samba/smb.conf.orig&lt;br /&gt;# echo "" &amp;gt; /etc/samba/smb.conf&lt;br /&gt;# vi /etc/samba/smb.conf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[global]&lt;br /&gt;workgroup = SIDOEL&lt;br /&gt;netbios name = KETOPRAK &lt;br /&gt;&lt;br /&gt;log file = /var/log/samba/log.%m&lt;br /&gt;socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 &lt;br /&gt;&lt;br /&gt;security = user&lt;br /&gt;passdb backend = ldapsam:ldap://127.0.0.1&lt;br /&gt;#ldap admin dn = cn=Directory Manager&lt;br /&gt;ldap admin dn = uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot&lt;br /&gt;ldap suffix = dc=sidoel,dc=com&lt;br /&gt;ldap user suffix = ou=People&lt;br /&gt;ldap machine suffix = ou=Computers&lt;br /&gt;ldap group suffix = ou=Groups&lt;br /&gt;#ldap ssl = start tls&lt;br /&gt;ldap ssl = off &lt;br /&gt;&lt;br /&gt;domain master = yes&lt;br /&gt;domain logons = yes&lt;br /&gt;logon path = \\%L\profiles\%u&lt;br /&gt;logon home = \\%L\%u\profiles&lt;br /&gt;logon drive = H: &lt;br /&gt;&lt;br /&gt;local master = yes&lt;br /&gt;os level = 65 &lt;br /&gt;preferred master = yes &lt;br /&gt;&lt;br /&gt;wins support = yes &lt;br /&gt;&lt;br /&gt;template shell = /bin/false&lt;br /&gt;winbind use default domain = no &lt;br /&gt;&lt;br /&gt;load printers = yes&lt;br /&gt;printcap name = cups&lt;br /&gt;printing = cups &lt;br /&gt;&lt;br /&gt;[homes]&lt;br /&gt;comment = Home Directories&lt;br /&gt;browseable = no&lt;br /&gt;writable = yes&lt;br /&gt;valid users = %S&lt;br /&gt;create mask = 0775&lt;br /&gt;directory mask = 0775 &lt;br /&gt;&lt;br /&gt;[printers]&lt;br /&gt;comment = All Printers&lt;br /&gt;path = /var/spool/samba&lt;br /&gt;browseable = yes&lt;br /&gt;guest ok = no&lt;br /&gt;writable = yes&lt;br /&gt;printable = yes&lt;br /&gt;create mask = 0700&lt;br /&gt;public = yes&lt;br /&gt;available = yes&lt;br /&gt;print command = /usr/bin/lpr -P %p -r %s &lt;br /&gt;&lt;br /&gt;[netlogon]&lt;br /&gt;comment = Network Logon Service&lt;br /&gt;path = /var/lib/samba/netlogon&lt;br /&gt;guest ok = no&lt;br /&gt;writable = no&lt;br /&gt;share modes = no&lt;br /&gt;browseable = no&lt;br /&gt;admin users = Administrator&lt;br /&gt;valid users = %U &lt;br /&gt;&lt;br /&gt;[profiles]&lt;br /&gt;comment = Users profiles&lt;br /&gt;path = /var/lib/samba/profiles&lt;br /&gt;browseable = yes&lt;br /&gt;guest ok = no&lt;br /&gt;read only = no&lt;br /&gt;create mask = 0700&lt;br /&gt;directory mask = 0700&lt;br /&gt;valid users = %U &lt;br /&gt;&lt;br /&gt;[public]&lt;br /&gt;comment = Public Stuff&lt;br /&gt;path = /home/samba&lt;br /&gt;public = yes&lt;br /&gt;writable = yes&lt;br /&gt;printable = no&lt;br /&gt;valid users = %U&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;make netlogon and profile directory&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# mkdir -p /var/lib/samba&lt;br /&gt;# mkdir /var/lib/samba/{netlogon,profiles}&lt;br /&gt;# chown root:root -R /var/lib/samba&lt;br /&gt;# chmod 0755 /var/lib/samba/netlogon&lt;br /&gt;# chmod 1755 /var/lib/samba/profiles&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Setup samba ldap administrator&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# smbpasswd -w (ldap-admin-password)&lt;br /&gt;Setting stored password for "uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot" in secrets.tdb&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Importing samba domain name and net group&lt;br /&gt;&lt;br /&gt;make sambaDomain entries and save as sambaDomainName.ldif file.&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;dn: sambaDomainName=SIDOEL,dc=sidoel,dc=com&lt;br /&gt;objectclass: sambaDomain&lt;br /&gt;objectclass: sambaUnixIdPool&lt;br /&gt;objectclass: top&lt;br /&gt;sambaDomainName: SIDOEL&lt;br /&gt;sambaSID: S-1-5-21-3965608580-1676198639-4080886704&lt;br /&gt;uidNumber: 550&lt;br /&gt;gidNumber: 550&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;import to database&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# /usr/lib64/dirsrv/slapd-ketoprak/ldif2ldap "uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot" admin sambaDomainName.ldif&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Create Samba Domain Groups entries and save as sambaGroups.ldif file.&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;dn: cn=Domain Admins,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: posixGroup&lt;br /&gt;objectClass: top&lt;br /&gt;cn: Domain Admins&lt;br /&gt;userPassword: {crypt}x&lt;br /&gt;gidNumber: 512&lt;br /&gt;&lt;br /&gt;dn: cn=Domain Users,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: posixGroup&lt;br /&gt;objectClass: top&lt;br /&gt;cn: Domain Users&lt;br /&gt;userPassword: {crypt}x&lt;br /&gt;gidNumber: 513&lt;br /&gt;&lt;br /&gt;dn: cn=Domain Guests,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: posixGroup&lt;br /&gt;objectClass: top&lt;br /&gt;cn: Domain Guests&lt;br /&gt;userPassword: {crypt}x&lt;br /&gt;gidNumber: 514&lt;br /&gt;&lt;br /&gt;dn: cn=Domain Computers,ou=Groups,dc=sidoel,dc=com&lt;br /&gt;objectClass: posixGroup&lt;br /&gt;objectClass: top&lt;br /&gt;cn: Domain Computers&lt;br /&gt;userPassword: {crypt}x&lt;br /&gt;gidNumber: 515&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;import to database&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# /usr/lib64/dirsrv/slapd-ketoprak/ldif2ldap "uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot" admin sambaGroups.ldif&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Map samba groups to linux groups&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# net groupmap add rid=512 ntgroup='Domain Admins'  unixgroup='Domain Admins'&lt;br /&gt;# net groupmap add rid=513 ntgroup='Domain Users' unixgroup='Domain Users'&lt;br /&gt;# net groupmap add rid=514 ntgroup='Domain Guests' unixgroup='Domain Guests'&lt;br /&gt;# net groupmap add rid=515 ntgroup='Domain Computers' unixgroup='Domain Computers'&lt;br /&gt;&lt;br /&gt;# net groupmap list&lt;br /&gt;Domain Admins (S-1-5-21-3965608580-1676198639-4080886704-512) -&amp;gt; Domain Admins&lt;br /&gt;Domain Users (S-1-5-21-3965608580-1676198639-4080886704-513) -&amp;gt; Domain Users&lt;br /&gt;Domain Guests (S-1-5-21-3965608580-1676198639-4080886704-514) -&amp;gt; Domain Guests&lt;br /&gt;Domain Computers (S-1-5-21-3965608580-1676198639-4080886704-515) -&amp;gt; Domain Computers&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;make ldap admin for samba and save as sambaAdmin.ldif file&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;dn: uid=Administrator,ou=People,dc=sidoel,dc=com&lt;br /&gt;objectClass: top&lt;br /&gt;objectClass: posixaccount&lt;br /&gt;cn: Samba Admin&lt;br /&gt;gidNumber: 0&lt;br /&gt;homeDirectory: /root&lt;br /&gt;uid: Administrator&lt;br /&gt;uidNumber: 0&lt;br /&gt;gecos: Samba Admin&lt;br /&gt;loginShell: /bin/bash&lt;br /&gt;userPassword: {crypt}x&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;import to ldap database&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# /usr/lib64/dirsrv/slapd-ketoprak/ldif2ldap "uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot" admin sambaAdmin.ldif&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Create a Samba Administrator account, we already register samba admin to ldap, then setup the password, here my samba Administrator password similar like my ldap admin (uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot)the password is = admin&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# smbpasswd -a Administrator&lt;br /&gt;New SMB password: admin&lt;br /&gt;Retype new SMB password: admin&lt;br /&gt;Added user Administrator.&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Show the Database Samba users&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# pdbedit -L &lt;br /&gt;Administrator:0:Samba Admin&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;modify the account to use the correct Samba SID :&lt;br /&gt;pdbedit -U your_machines_sid-500 -u Administrator&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# pdbedit -U S-1-5-21-3965608580-1676198639-4080886704-500 -u Administrator&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Start samba and testing samba&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;#/etc/init.d/smb start&lt;br /&gt;#/etc/init.d/nmb start&lt;br /&gt;&lt;br /&gt;you can use debug mode for nmbd&lt;br /&gt;#/usr/sbin/nmbd -d 3 -i &lt;br /&gt;&lt;br /&gt;# smbclient -L localhost -U%&lt;br /&gt;Domain=[SIDOEL] OS=[Unix] Server=[Samba 3.5.4-0.70.el5_6.1]&lt;br /&gt;&lt;br /&gt;Sharename       Type      Comment&lt;br /&gt;---------       ----      -------&lt;br /&gt;profiles        Disk      Users profiles&lt;br /&gt;public          Disk      Public Stuff&lt;br /&gt;IPC$            IPC       IPC Service (Samba 3.5.4-0.70.el5_6.1)&lt;br /&gt;Domain=[SIDOEL] OS=[Unix] Server=[Samba 3.5.4-0.70.el5_6.1]&lt;br /&gt;&lt;br /&gt;Server               Comment&lt;br /&gt;---------            -------&lt;br /&gt;KETOPRAK             Samba 3.5.4-0.70.el5_6.1&lt;br /&gt;&lt;br /&gt;Workgroup            Master&lt;br /&gt;---------            -------&lt;br /&gt;SIDOEL               KETOPRAK&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;see if your nss work, this should show the group list and user list based on ldap database&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# getent passwd&lt;br /&gt;# getent group&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Join Domain with WinXP&lt;br /&gt;1. Control Panel -&amp;gt; Network and Internet Connection -&amp;gt; Network Connection -&amp;gt; (right click) properties -&amp;gt; Internet protocol /TCP IP &lt;br /&gt;setup to enable netbios over tcp ip,&lt;br /&gt;2. fill the wins server to your samba/ldap ip 192.168.1.100 ,&lt;br /&gt;3. change computer name with machine name then restart after that change domain name to your samba domain name&lt;br /&gt;&lt;br /&gt;for win 7 you need to change registry setting,&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;Windows Registry Editor Version 5.00&lt;br /&gt;&lt;br /&gt;; Win7_Samba3DomainMember&lt;br /&gt;[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters]&lt;br /&gt;"DNSNameResolutionRequired"=dword:00000000&lt;br /&gt;"DomainCompatibilityMode"=dword:00000001&lt;br /&gt;&lt;br /&gt;; Speedup settings&lt;br /&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]&lt;br /&gt;"SlowLinkDetectEnabled"=dword:00000000&lt;br /&gt;"DeleteRoamingCache"=dword:00000001&lt;br /&gt;"WaitForNetwork"=dword:00000000&lt;br /&gt;"CompatibleRUPSecurity"=dword:00000001&lt;br /&gt;&lt;br /&gt;; Can drive you nuts&lt;br /&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]&lt;br /&gt;"EnableLUA"=dword:00000000&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;or you can download it at&lt;br /&gt;&lt;a href="https://bugzilla.samba.org/attachment.cgi?id=4988&amp;amp;action=view"&gt;https://bugzilla.samba.org/attachment.cgi?id=4988&amp;amp;action=view&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wiki.samba.org/index.php/Windows7"&gt;http://wiki.samba.org/index.php/Windows7&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;continue with same step like windows XP&lt;br /&gt;&lt;br /&gt;refrence:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://directory.fedoraproject.org/wiki/Howto:Samba"&gt;http://directory.fedoraproject.org/wiki/Howto:Samba&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Alhamdulillah....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-4801091482337160403?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/4801091482337160403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/samba-pdc-with-centos-directory-server.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/4801091482337160403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/4801091482337160403'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/06/samba-pdc-with-centos-directory-server.html' title='Samba PDC with Centos Directory Server  backend'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-5992436990831883869</id><published>2011-05-31T00:52:00.000-07:00</published><updated>2011-12-20T19:48:26.524-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>tip n trik part 3 (Increase bash history storage)</title><content type='html'>edit your home .bashrc,and add this line&lt;br /&gt;&lt;pre class="brush: bash"&gt;export HISTSIZE=100000&lt;br /&gt; export HISTFILE=~/.bash_history&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;becoming like this&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt; # .bashrc&lt;br /&gt; # User specific aliases and functions&lt;br /&gt; &lt;br /&gt; alias rm='rm -i'&lt;br /&gt; alias cp='cp -i'&lt;br /&gt; alias mv='mv -i'&lt;br /&gt;&lt;br /&gt; export HISTSIZE=100000&lt;br /&gt; export HISTFILE=~/.bash_history&lt;br /&gt;&lt;br /&gt; # Source global definitions&lt;br /&gt; if [ -f /etc/bashrc ]; then&lt;br /&gt;        . /etc/bashrc&lt;br /&gt; fi&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;reload the configuration&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;source ~/.bashrc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and your bash hisrtory will increasing,it can save 100000 command.you also can change the HISTFILE target.&lt;br /&gt;&lt;br /&gt;Alhamdulillah.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-5992436990831883869?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/5992436990831883869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/05/increase-bash-history-storage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5992436990831883869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5992436990831883869'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/05/increase-bash-history-storage.html' title='tip n trik part 3 (Increase bash history storage)'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-518529339031572972</id><published>2011-05-25T20:38:00.000-07:00</published><updated>2011-10-18T20:10:15.376-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kerja'/><title type='text'>The A Team</title><content type='html'>ASYX Indonesia team while gathering on friday Mei 2011&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-99bIEu_j1xs/Td3NvZ72kRI/AAAAAAAAASk/NWiGN003lm4/s1600/2011-05-20%2B16.56.50.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5610866925072978194" src="http://3.bp.blogspot.com/-99bIEu_j1xs/Td3NvZ72kRI/AAAAAAAAASk/NWiGN003lm4/s320/2011-05-20%2B16.56.50.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-2rfSLJXHbk0/Td3Mkho2WLI/AAAAAAAAASc/-tuyQdEKHx0/s1600/2011-05-20%2B17.00.11.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5610865638650566834" src="http://4.bp.blogspot.com/-2rfSLJXHbk0/Td3Mkho2WLI/AAAAAAAAASc/-tuyQdEKHx0/s320/2011-05-20%2B17.00.11.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-JJ11c_cCPrA/Td3NwIVCRjI/AAAAAAAAAS8/wpCZ-gDCy-w/s1600/IMG001.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5610866937526634034" src="http://2.bp.blogspot.com/-JJ11c_cCPrA/Td3NwIVCRjI/AAAAAAAAAS8/wpCZ-gDCy-w/s320/IMG001.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-pWTzSkqjX-A/Td3Nv2G9hyI/AAAAAAAAAS0/aG2Qyedqyo0/s1600/2011-05-20%2B16.48.49.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5610866932635764514" src="http://4.bp.blogspot.com/-pWTzSkqjX-A/Td3Nv2G9hyI/AAAAAAAAAS0/aG2Qyedqyo0/s320/2011-05-20%2B16.48.49.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-pCYF96VsioY/Td3Nv-0QxdI/AAAAAAAAASs/Mi8rppvoTTU/s1600/2011-05-20%2B16.55.02.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5610866934973253074" src="http://3.bp.blogspot.com/-pCYF96VsioY/Td3Nv-0QxdI/AAAAAAAAASs/Mi8rppvoTTU/s320/2011-05-20%2B16.55.02.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-518529339031572972?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/518529339031572972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/05/a-team.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/518529339031572972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/518529339031572972'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/05/a-team.html' title='The A Team'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-99bIEu_j1xs/Td3NvZ72kRI/AAAAAAAAASk/NWiGN003lm4/s72-c/2011-05-20%2B16.56.50.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-3018931741759708241</id><published>2011-05-10T20:46:00.000-07:00</published><updated>2011-09-29T20:49:30.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Directory Server'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>Error Centos-Directory Server wont running</title><content type='html'>Today i have a plan to resolve my sssd project, then this morning when i start my virtual machine for run centos-ds then i found an error like this, &lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak dirsrv]# service dirsrv start&lt;br /&gt;Starting dirsrv: &lt;br /&gt;ketoprak...Warning: Incorrect PIN may result in disabling the token&lt;br /&gt;Enter PIN for Internal (Software) Token: &lt;br /&gt;[FAILED]&lt;br /&gt;*** Warning: 1 instance(s) failed to start&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;woaa, yesterday my machine look fine?? then start googling to find an answer, i found this link&lt;br /&gt;&lt;a href="http://www.mail-archive.com/fedora-directory-users@redhat.com/msg09219.html"&gt;http://www.mail-archive.com/fedora-directory-users@redhat.com/msg09219.html&lt;/a&gt;&lt;br /&gt;from this link i find how to run dirsrv-instance in debug mode,&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;/usr/lib64/dirsrv/slapd-myinstance/start-slapd -d 1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;then i find another problem&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[11/May/2011:10:28:10 +0700]Error - Problem accessing the lockfile /var/lock/dirsrv/slapd-myinstance/lock&lt;br /&gt;[11/May/2011:10:28:10 +0700] - Shutting down due to possible conflicts with other slapd processes&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;getting deeper into rabbit hole,&lt;br /&gt;&lt;br /&gt;&lt;i&gt;ls /var/lock/dirsrv/&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;then i cannot find my instance folder for keep the lock files, then use the slackware way, if you dont have it then build it :)&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# mkdir /var/lock/dirsrv/slapd-myinstance&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;try to run again, trial and error &lt;br /&gt;&lt;pre class="brush: bash"&gt;# /usr/lib64/dirsrv/slapd-myinstance/start-slapd -d 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;now the error message has change.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[11/May/2011:10:31:19 +0700] - Warning - couldn't set the ownership for /var/lock/dirsrv/slapd-ketoprak&lt;br /&gt;[11/May/2011:10:31:19 +0700] - Shutting down due to possible conflicts with other slapd processes&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Ohh, the permission, then i try to run setup-ds.pl, at the middle of reinstallation the script ask for user and group with nobody as a default name, then i canceled the installation, and try to changes the ownership to nobody without reinstall.&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;chown nobody:nobody -vR /var/lock/dirsrv/slapd-myinstance&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;okay,then try again, trial and error&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;[root@ketoprak dirsrv]# service dirsrv start ketoprak&lt;br /&gt;Starting dirsrv: &lt;br /&gt;ketoprak...Warning: Incorrect PIN may result in disabling the token&lt;br /&gt;Enter PIN for Internal (Software) Token: &lt;br /&gt;[  OK  ]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Woalaa, then the problem solve.. thanks to Alloh Subhanahu wa ta'ala.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-3018931741759708241?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/3018931741759708241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/05/error-centos-directory-server-wont.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3018931741759708241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/3018931741759708241'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/05/error-centos-directory-server-wont.html' title='Error Centos-Directory Server wont running'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-581755966588304421</id><published>2011-04-18T19:46:00.000-07:00</published><updated>2011-09-29T20:57:40.598-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>tip n trik part 2 (multiple grep)</title><content type='html'>using grep to catch  multiple string&lt;br /&gt;&lt;br /&gt;example :&lt;br /&gt;&lt;br /&gt;find more than one package list&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;rpm -qa | grep -i -e "ruby" -e "python"&lt;br /&gt;&lt;/pre&gt;or&lt;br /&gt;find more than one string at file&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;egrep -i "str1|str2" /your/file&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.unix.com/shell-programming-scripting/21737-grep-multiple-patterns.html"&gt;reference&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-581755966588304421?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/581755966588304421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/04/multiple-grep.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/581755966588304421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/581755966588304421'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/04/multiple-grep.html' title='tip n trik part 2 (multiple grep)'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-1278738553830184925</id><published>2011-04-12T00:11:00.000-07:00</published><updated>2011-09-29T20:40:48.435-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Directory Server'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>Generate RedHat Directory Server SSL</title><content type='html'>1. install the packages Centos-ds&lt;br /&gt;&lt;br /&gt;2. run setup-ds-admin.pl&lt;br /&gt;fill all the step, you can search on google...&lt;br /&gt;bla bla bla, insert this, answer yes, bla bla..&lt;br /&gt;&lt;br /&gt;3. create SSL certificate&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;# cd /etc/dirsrv/slapd-instance&lt;br /&gt;# tar -cf * ~/db_backup.tar&lt;br /&gt;# touch /tmp/pwdfile; echo "p4ssw0rd" &amp;gt; /tmp/pwdfile&lt;br /&gt;# certutil -N -d . -f /tmp/pwdfile&lt;br /&gt;# certutil -S -n "CA certificate" -s "cn=My Org CA cert,dc=combro,dc=com" -2 -x -t "CT,," -m 1000 -v 120 -d . -k rsa -f /tmp/pwdfile         &lt;br /&gt;# certutil -S -n "Server-Cert" -s "cn=hostname.combro.com" -c "CA certificate" -t "u,u,u" -m 1001 -v 120 -d . -k rsa -f /tmp/pwdfile&lt;br /&gt;# certutil -d . -L -n "CA certificate" -a &amp;gt; cacert.asc&lt;br /&gt;# pk12util -d . -o ldap1.p12 -n Server-Cert -w /tmp/pwdfile -k /tmp/pwdfile&lt;br /&gt;# touch pin.txt; echo "Internal (Software) Token: p4ssw0rd" &amp;gt; pin.txt&lt;br /&gt;# chmod 0400 pin.txt&lt;br /&gt;# vim dse.ldif&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;edit cn=config&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;dn: cn=config&lt;br /&gt;nsslapd-security: on&lt;br /&gt;nsslapd-ssl-check-hostname: off&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;edit cn=encryption,cn=config&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;dn: cn=encryption,cn=config&lt;br /&gt;nsSSL3: on&lt;br /&gt;nsSSLClientAuth: allowed&lt;br /&gt;nsSSL3Ciphers: -rsa_null_md5,+rsa_rc4_128_md5,+rsa_rc4_40_md5,+rsa_rc2_40_md5,&lt;br /&gt;244  +rsa_des_sha,+rsa_fips_des_sha,+rsa_3des_sha,+rsa_fips_3des_sha,+fortezza,&lt;br /&gt;245  +fortezza_rc4_128_sha,+fortezza_null,+tls_rsa_export1024_with_rc4_56_sha,&lt;br /&gt;246  +tls_rsa_export1024_with_des_cbc_sha&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;add cn=RSA,cn=ecryption,cn=config:&lt;br /&gt;&lt;pre class="brush: bash"&gt;&lt;br /&gt;dn: cn=RSA,cn=encryption,cn=config&lt;br /&gt;objectClass: nsEncryptionModule&lt;br /&gt;objectClass: top&lt;br /&gt;nsSSLActivation: on&lt;br /&gt;nsSSLToken: internal (software)&lt;br /&gt;nsSSLPersonalitySSL: Server-Cert&lt;br /&gt;cn: RSA&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;note: you can modify dse.ldif easier using ApacheDirectoryStudio&lt;br /&gt;1. at Root DSE -&amp;gt; right click (go to DN..)&lt;br /&gt;2. type cn=config&lt;br /&gt;3. make new entry for cn=RSA,cn=encryption,cn=config&lt;br /&gt;then put the attribute like above &lt;br /&gt;4. then modify the cn=config and cn=encryption&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# service dirsrv start&lt;/b&gt;&lt;br /&gt;Starting dirsrv: &lt;br /&gt;package...Warning: Incorrect PIN may result in disabling the token&lt;br /&gt;Enter PIN for Internal (Software) Token: p4ssw0rd&lt;br /&gt;[  OK  ]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-1278738553830184925?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/1278738553830184925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/04/generate-redhat-directory-server-ssl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1278738553830184925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1278738553830184925'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/04/generate-redhat-directory-server-ssl.html' title='Generate RedHat Directory Server SSL'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-2564889736664924167</id><published>2011-03-29T21:46:00.000-07:00</published><updated>2011-03-29T21:46:04.252-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wirausaha'/><title type='text'>Usaha Gila Part 1 "JAMBAN PORTABLE"</title><content type='html'>Berawal dari pembicaraan dengan heri mengenai usaha tiba-tiba terlintas dalam benak saya,&lt;br /&gt;bila kita berpergian jauh terkadang kita sulit menemukan toilet, apa lagi kalau perjalanan nya menembus hutan atau melewati lautan bahkan untuk berhenti sebentar saja susah, kalau pun kendaraan bisa berhenti kita tetap saja sulit untuk buang air. entah karena tempat nya seram, atau posisi nya gak enak misal, banyak pohonan atau semak-semak. kan gak lucu kalau lagi pipis tiba-tiba di gigit ular?.&lt;br /&gt;&lt;br /&gt;oleh karena persoalan diatas, saya memiliki ide original untuk membuat sebuah alat yang berfungsi sebagai toilet, dan saya menyebut nya sebagai "Jamban Portabel ver.1" (ini original made in indonesia makannya nama nya jamban).&lt;br /&gt;&lt;br /&gt;baiklah akan saya lanjut kan, mengenai cetak biru produk ini.&lt;br /&gt;jamban portable di buat seminimal mungkin sehingga bisa disimpan di mana pun, di dalam tas, di bagasi mobil, bahkan nanti sampai bisa di kantongin. bahkan produk ini bisa di buat sendiri (sekalian anda prakarya) dan alat-alat nya sangat mudah di temukan di sekitar kita :)&lt;br /&gt;nah dengan baik hati saya akan terang kan bagaimana cara membuat nya, (sebelum saya produksi masal).&lt;br /&gt;&lt;br /&gt;Alat-alat :&lt;br /&gt;1. Cutter / pisau&lt;br /&gt;2. Selotip&lt;br /&gt;3. tali&lt;br /&gt;4. Masker&lt;br /&gt;5. Pengharum ruangan&lt;br /&gt;&lt;br /&gt;Bahan :&lt;br /&gt;&lt;br /&gt;1. Kardus yang tidak tepakai, di saran kan kardus bekas tv atau bekas kulkas lebih baik&lt;br /&gt;2. Kangtong Plastik hitam ukuran sedang kalau tidak ada bisa menggunakan kantong kresek yang biasa di pakai ibu-ibu berbelanja.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cara membuat nya:&lt;br /&gt;1. Potong kardus secara vertikal dengan menggunakan cutter atau pisau pada bagian samping, ingat potong hanya bagian sisi saja seperti terlihat pada gambar:&lt;br /&gt;&lt;br /&gt;2. Lubangi sisi kardus tadi seukuran dengan tali, lubangi pada dua sisi saja, seperti terlihat pada gambar:&lt;br /&gt;&lt;br /&gt;3. Gunakan selotip untuk menahan tali agar sisi kardus tidak terbuka, seperti terlihat pada gambar:&lt;br /&gt;&lt;br /&gt;4. Selalu siap kan kantong plastik ukuran sedang setiap kali ingin menggunakan jamban portable ini, dan letakkan tepat di tengah-tengah kardus. seperti terlihat pada gambar:&lt;br /&gt;&lt;br /&gt;sampai disini jamban portable sudah dapat digunakan, selanjut nya adalah cara penggunaan nya yang benar,&lt;br /&gt;&lt;br /&gt;5. Selalu gunakan masker sebelum masuk kedalam jamban portable,(ini bagian penting jangan sampai anda lupa)&lt;br /&gt;&lt;br /&gt;6. Jongkok lah sesuai posisi plastik berada, dan anda bisa merubah posisi plastik sesuai keinginan anda.&lt;br /&gt;&lt;br /&gt;7. Gunakan pengharum ruangan setelah anda selesai menuntaskan hajat anda,&lt;br /&gt;8. Buang plastik hitam ketempat sampah yang telah disediakan.&lt;br /&gt;&lt;br /&gt;Kelak saya akan memproduksi produk ini secara masal, anda bisa membeli nya atau membuat sendiri? semua kembali kepada anda?&lt;br /&gt;&lt;br /&gt;Jamban Portable ini sangat berguna bila anda seorang &lt;i&gt;traveller&lt;/i&gt;, atau seorang pebisnis yang terus &lt;i&gt;mobile&lt;/i&gt;. bisa digunakan dimana saja, dan kapan saja.&lt;br /&gt;&lt;br /&gt;JAMBAN PORTABLE, any where, any time, build, use, and go ....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-2564889736664924167?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/2564889736664924167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/usaha-gila-part-1-jamban-portable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2564889736664924167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2564889736664924167'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/usaha-gila-part-1-jamban-portable.html' title='Usaha Gila Part 1 &quot;JAMBAN PORTABLE&quot;'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-1241579763136951560</id><published>2011-03-22T04:25:00.000-07:00</published><updated>2011-12-20T19:48:46.965-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>tip n trik part 1 (Copy file with yes option)</title><content type='html'>&lt;pre class="brush: bash"&gt;yes n | cp -R -h -i /dirone/* /dirtwo&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;reference :&lt;br /&gt;&lt;a href="http://www.unix.com/unix-dummies-questions-answers/30292-cp-no-all-option.html"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-1241579763136951560?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/1241579763136951560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/copy-file-with-yes-option.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1241579763136951560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/1241579763136951560'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/copy-file-with-yes-option.html' title='tip n trik part 1 (Copy file with yes option)'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-7356672071350967759</id><published>2011-03-17T02:44:00.000-07:00</published><updated>2011-10-18T20:13:18.216-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kerja'/><title type='text'>New Island, New Adventure</title><content type='html'>Genap empat bulan sudah mendarat disini setelah perjalan panjang dan melelahkan dari pulau sebelum nya akhir nya saya memutus kan untuk memulai perjalan kembali untuk berlayar, banyak ketemu hal-hal baru yang belum pernah dilihat bahkan dicoba di pulau ini, penduduk sedikit banget sampe bisa di hitung jari, hehehe....&lt;br /&gt;Alhamdulillah saya di berikan banyak waktu untuk melakukan riset dan belajar hampir 8 jam penuh untuk riset sebuah pekerjaan,:P weks, puass banget deh..&lt;br /&gt;&lt;br /&gt;dan kebebasan untuk beribadah yang paling penting, karena pulau ini deket dengan masjid jadi bisa tiap waktu sholat pergi kemasjid, tinggal naik sampan sebentar nyampe..&lt;br /&gt;&lt;br /&gt;kepala suku di pulau ini baik, dan juga jago. banyak hal-hal kecil yang bisa dipelajari dari dia. seperti memperkuat keamanan kapal Linux saya. jadi lebih aware lagi deh masalah security Linux.&lt;br /&gt;&lt;br /&gt;Semoga bisa bertahan lama di pulau ini.. atau saya akan berlayar lagi?hmmm.. banyak belahan lautan yang belum terjamah di luar sana, semoga bisa sampai menyebrang benua. doakan saja (amin).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-7356672071350967759?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/7356672071350967759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/new-island-new-adventure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7356672071350967759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7356672071350967759'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/new-island-new-adventure.html' title='New Island, New Adventure'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-8387764143663089271</id><published>2011-03-16T20:16:00.000-07:00</published><updated>2011-10-18T20:10:50.058-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='keluarga'/><title type='text'>Anyer Februari 2011</title><content type='html'>Akhir Februari lalu diberikan kesempatan oleh alloh subhanawata'ala untuk berwisata ke Anyer, dalam rangka mengisi liburan Sinar Mulia Foto Copy ( punya bang ikrom ), sekalian ajah ikut. karena awal tahun baru kemarin tidak bisa ikut.&lt;br /&gt;&lt;br /&gt;pemandangan sore hari di anyer&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Xnzx59McPUo/TYF5pQbXG5I/AAAAAAAAARU/hN1ysJb7A5o/s1600/100_4952.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-Xnzx59McPUo/TYF5pQbXG5I/AAAAAAAAARU/hN1ysJb7A5o/s320/100_4952.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Sinar Mulia Foto Copy &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;bersama keluarga&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;detik-detik keberangkatan bermain banana "boat"&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;di kapal feri&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;semoga diberikan kesempatan lagi oleh alloh, untuk jalan-jalan lagi ketempat yang lebih jauh misal nya lombok atau pulau komodo &amp;lt;= huhu..hu...hu.. (obsesi terpendam) :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-8387764143663089271?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/8387764143663089271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/anyer-februari-2011.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8387764143663089271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8387764143663089271'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/anyer-februari-2011.html' title='Anyer Februari 2011'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-Xnzx59McPUo/TYF5pQbXG5I/AAAAAAAAARU/hN1ysJb7A5o/s72-c/100_4952.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-5962595800106069195</id><published>2011-03-16T03:29:00.000-07:00</published><updated>2011-06-17T04:47:50.275-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>Howto Copy Log Files using rsync</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h1 class="firstHeading" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;br /&gt;&lt;/h1&gt;&lt;div id="bodyContent"&gt;&lt;div id="contentSub" style="color: #7d7d7d; font-size: 11px; line-height: 1.2em; margin-bottom: 1.4em; margin-left: 1em; margin-right: 0px; margin-top: 0px; width: auto;"&gt;&lt;/div&gt;&lt;table class="toc" id="toc" style="background-color: #f9f9f9; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: solid; border-top-width: 1px; color: black; font-size: 12px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;" summary="Contents"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;div id="toctitle" style="text-align: center;"&gt;&lt;a href="http://www.blogger.com/goog_1506977618"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; border-width: initial; color: black; display: inline; font-size: 12px; font-weight: bold; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Contents&lt;/h2&gt;&lt;/div&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Configure rsync daemon( at rsyslog server )&lt;/span&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-2" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;1.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;rsyncd.conf&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-2" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;1.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;rsyncd.secret (optional)&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-2" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;1.3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;run the rsync daemon&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;rsync client ( at splunk server )&lt;/span&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;create schedules to run rsync using cron&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=5962595800106069195" name="Configure_rsync_daemon.28_at_rsyslog_server_.29" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;Configure rsync daemon( at rsyslog server )&lt;/span&gt;&lt;/h1&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=5962595800106069195" name="rsyncd.conf" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;rsyncd.conf&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;create file rsyncd.conf at /etc/ with this content&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;max connections = 2&lt;br /&gt;log file = /var/log/rsync.log&lt;br /&gt;timeout = 300&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[rsyslog]&lt;br /&gt;comment = Copy rsyslog Log file for splunk&lt;br /&gt;path = /var/log/rsyslog&lt;br /&gt;read only = yes&lt;br /&gt;list = yes&lt;br /&gt;uid = nobody&lt;br /&gt;gid = nobody&lt;br /&gt;# auth users = root&lt;br /&gt;# secrets file = /etc/rsyncd.secrets&lt;br /&gt;# host allow = 192.168.0.200&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=5962595800106069195" name="rsyncd.secret_.28optional.29" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;rsyncd.secret (optional)&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;just unmark the # at rsyncd.conf to activate the secret file&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;root:PLa1nr0otP4s$wOrd&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=5962595800106069195" name="run_the_rsync_daemon" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;run the rsync daemon&lt;/span&gt;&lt;/h2&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;#rsync --daemon --config=/etc/rsyncd.conf&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=5962595800106069195" name="rsync_client_.28_at_splunk_server_.29" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;rsync client ( at splunk server )&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;run this command for copy the log file&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;#rsync -avuzP rsync://192.168.0.3/rsyslog /var/log/rsyslog&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=5962595800106069195" name="create_schedules_to_run_rsync_using_cron" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;create schedules to run rsync using cron&lt;/span&gt;&lt;/h1&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;PATH=/sbin:/bin:/usr/sbin:/usr/bin&lt;br /&gt;5 * * * * /usr/bin/rsync -avuzP rsync://192.168.0.3/rsyslog /var/log/rsyslog&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-5962595800106069195?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/5962595800106069195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/howto-copy-log-files-using-rsync.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5962595800106069195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/5962595800106069195'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/howto-copy-log-files-using-rsync.html' title='Howto Copy Log Files using rsync'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-6977539436659471144</id><published>2011-03-16T03:27:00.000-07:00</published><updated>2011-06-17T04:48:06.930-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='rsyslog'/><title type='text'>Howto setup Centralize logs using rsyslog</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h1 class="firstHeading" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-weight: normal; margin-bottom: 0.1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Hasil ngporek dikantor sama bung Heri ( new partner )....&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;div id="bodyContent"&gt;&lt;div id="contentSub" style="color: #7d7d7d; font-size: 11px; line-height: 1.2em; margin-bottom: 1.4em; margin-left: 1em; margin-right: 0px; margin-top: 0px; width: auto;"&gt;&lt;/div&gt;&lt;table class="toc" id="toc" style="background-color: #f9f9f9; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: solid; border-top-width: 1px; color: black; font-size: 12px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;" summary="Contents"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;div id="toctitle" style="text-align: center;"&gt;&lt;a href="http://www.blogger.com/goog_1414759248"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; border-width: initial; color: black; display: inline; font-size: 12px; font-weight: bold; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;a href="http://www.blogger.com/goog_1414759248"&gt;Contents&lt;/a&gt;&lt;/h2&gt;&lt;a href="http://www.blogger.com/goog_1414759248"&gt;&amp;nbsp;&lt;span class="toctoggle" style="font-size: 11px;"&gt;[&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;hide&lt;/span&gt;&lt;/span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_1414759260"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Install rsyslog&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_1414759260"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Enable rsyslog&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_1414759260"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Configuration&lt;/span&gt;&lt;/a&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 2em; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-2" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_1414759260"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;3.1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Rsyslog Server&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-2" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_1414759260"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;3.2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="toctext" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;&lt;a href="http://./"&gt;Rsyslog Clien&lt;/a&gt;t&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=6977539436659471144" name="Install_rsyslog" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Install rsyslog&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Download and install rsyslog package from&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;a class="external free" href="http://www.rsyslog.com/" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/monobook/external.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-right: 13px; text-decoration: none;" title="http://www.rsyslog.com"&gt;http://www.rsyslog.com&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;both for server and client&lt;/div&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=6977539436659471144" name="Enable_rsyslog" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;Enable rsyslog&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;By default most of Linux Distribution use syslog as their log maintenance, but we will replace the syslog and using rsyslog turn off syslog run level&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;chkconfig syslog off&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;shutting down syslog&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;service syslog stop&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;set run level for rsyslog&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;chkconfig --level 234 rsyslog on&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;check and see run level for rsyslog&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;chkconfig --list | grep rsyslog&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;b&gt;Do this both at server and client or each time you install rsyslog&lt;/b&gt;. rsyslog will takeover syslog.&lt;/div&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=6977539436659471144" name="Configuration" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;Configuration&lt;/span&gt;&lt;/h1&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=6977539436659471144" name="Rsyslog_Server" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;Rsyslog Server&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;At server,&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Make mkdir for rsyslog log file&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;#mkdir /var/log/rsyslog&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;edit rsyslog config file at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;/etc/rsyslog.conf&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;add some modules and make a template for client log files&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;$template DailyPerHostLogs,"/var/log/rsyslog/%HOSTNAME%/%HOSTNAME%.%$YEAR%-%$MONTH%-%$DAY%.log"&lt;br /&gt;$ModLoad imtcp&lt;br /&gt;$InputTCPServerRun 514&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;run template&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;*.* -?DailyPerHostLogs;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;&lt;br /&gt;so the configuration files will like this&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;Use traditional timestamp format&lt;br /&gt;$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat&lt;br /&gt;$template DailyPerHostLogs,"/var/log/rsyslog/%HOSTNAME%/%HOSTNAME%.%$YEAR%-%$MONTH%-%$DAY%.log"&lt;br /&gt;$ModLoad imtcp&lt;br /&gt;$InputTCPServerRun 514&lt;br /&gt;# Provides kernel logging support (previously done by rklogd)&lt;br /&gt;$ModLoad imklog&lt;br /&gt;# Provides support for local system logging (e.g. via logger command)&lt;br /&gt;$ModLoad imuxsock&lt;br /&gt;# Log all kernel messages to the console.&lt;br /&gt;# Logging much else clutters up the screen.&lt;br /&gt;#kern.*                                      /dev/console&lt;br /&gt;# Log anything (except mail) of level info or higher.&lt;br /&gt;# Don't log private authentication messages!&lt;br /&gt;*.info;mail.none;authpriv.none;cron.none     /var/log/messages&lt;br /&gt;# The authpriv file has restricted access.&lt;br /&gt;authpriv.*                                   /var/log/secure&lt;br /&gt;# Log all the mail messages in one place.&lt;br /&gt;mail.*                                      -/var/log/maillog&lt;br /&gt;# Log cron stuff&lt;br /&gt;cron.*                                       /var/log/cron&lt;br /&gt;# Everybody gets emergency messages&lt;br /&gt;*.emerg                                      *&lt;br /&gt;# Save news errors of level crit and higher in a special file.&lt;br /&gt;uucp,news.crit                              /var/log/spooler&lt;br /&gt;# Save boot messages also to boot.log&lt;br /&gt;local7.*                                    /var/log/boot.log&lt;br /&gt;*.* -?DailyPerHostLogs;                                         &lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Edit another rsyslog file at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;/etc/sysconfig/rsyslog.conf&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Replace&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;replace "-m 0" with "-c3"&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=6977539436659471144" name="Rsyslog_Client" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 19px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;Rsyslog Client&lt;/span&gt;&lt;/h2&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;At client, edit rsyslog config file at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;/etc/rsyslog.conf&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;add tcp module&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;$ModLoad imtcp&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;add log server ip and port,&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;*.* @@192.168.1.200:514&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;we can define the port,not only using 514, the @@ mark it means the rsyslog will using TCP connection.&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;so the configuration files will like this&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# Use traditional timestamp format&lt;br /&gt;$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat&lt;br /&gt;# Provides kernel logging support (previously done by rklogd)&lt;br /&gt;$ModLoad imklog&lt;br /&gt;# Provides support for local system logging (e.g. via logger command)&lt;br /&gt;$ModLoad imuxsock&lt;br /&gt;$ModLoad imtcp&lt;br /&gt;# Log all kernel messages to the console.&lt;br /&gt;# Logging much else clutters up the screen.&lt;br /&gt;#kern.*                                  /dev/console&lt;br /&gt;# Log anything (except mail) of level info or higher.&lt;br /&gt;# Don't log private authentication messages!&lt;br /&gt;*.info;mail.none;authpriv.none;cron.none /var/log/messages&lt;br /&gt;# The authpriv file has restricted access.&lt;br /&gt;authpriv.*                               /var/log/secure&lt;br /&gt;# Log all the mail messages in one place.&lt;br /&gt;mail.*                                  -/var/log/maillog&lt;br /&gt;# Log cron stuff&lt;br /&gt;cron.*                                   /var/log/cron&lt;br /&gt;# Everybody gets emergency messages&lt;br /&gt;*.emerg                                  *&lt;br /&gt;# Save news errors of level crit and higher in a special file.&lt;br /&gt;uucp,news.crit                          /var/log/spooler&lt;br /&gt;# Save boot messages also to boot.log&lt;br /&gt;local7.*                                /var/log/boot.log&lt;br /&gt;#Add this line,for send log file to rsyslog server&lt;br /&gt;&lt;b&gt; *.* @@192.168.1.200:514&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Edit another rsyslog file at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;/etc/sysconfig/rsyslog.conf&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Replace&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;replace "-m 0" with "-c3"&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Then restart rsyslog service&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;service rsyslog restart&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-6977539436659471144?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/6977539436659471144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/howto-setup-centralize-logs-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/6977539436659471144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/6977539436659471144'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/howto-setup-centralize-logs-using.html' title='Howto setup Centralize logs using rsyslog'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-7205632748591622136</id><published>2011-03-02T23:13:00.000-08:00</published><updated>2011-06-14T21:37:09.510-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><category scheme='http://www.blogger.com/atom/ns#' term='JBoss'/><title type='text'>Mod cluster on JBoss AS 5.x</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h1 class="firstHeading" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;br /&gt;&lt;/h1&gt;&lt;div id="bodyContent"&gt;&lt;div id="contentSub" style="color: #7d7d7d; font-size: 11px; line-height: 1.2em; margin-bottom: 1.4em; margin-left: 1em; margin-right: 0px; margin-top: 0px; width: auto;"&gt;&lt;/div&gt;&lt;table class="toc" id="toc" style="background-color: #f9f9f9; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: solid; border-top-width: 1px; color: black; font-size: 12px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;" summary="Contents"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;div id="toctitle" style="text-align: center;"&gt;&lt;h2 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-style: none; border-color: initial; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; border-width: initial; color: black; display: inline; font-size: 12px; font-weight: bold; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Contents&lt;/h2&gt;&lt;/div&gt;&lt;ul style="line-height: 1.5em; list-style-image: none; list-style-type: none; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;"&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_50647077"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;1&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;Download Files&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_50647077"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;2&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Install&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_50647077"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;3&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Web Server&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_50647077"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;4&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Restart Web Server&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://www.blogger.com/goog_50647077"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;5&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext"&gt;Build application tester&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class="toclevel-1" style="margin-bottom: 0.1em;"&gt;&lt;a href="http://kura2gurun.blogspot.com/2011/03/mod-cluster-on-jboss-as-5.html"&gt;&lt;span class="tocnumber" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;6&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #002bb8;"&gt;&lt;span class="Apple-style-span" style="background-attachment: initial; background-clip: initial; background-color: initial; background-origin: initial;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="toctext" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #002bb8; text-decoration: none;"&gt;Run application tester&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=7205632748591622136" name="Download_Files" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Download Files&lt;/span&gt;&lt;/h1&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Download all files, to build mod_cluster and mod_proxy_ajp&lt;/span&gt;&lt;/h1&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;1.Download packages for Mod_cluster module version 1.1.1&amp;nbsp;:&lt;br /&gt;  &lt;a class="external free" href="http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-bin.tar.gz" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/monobook/external.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-right: 13px; text-decoration: none;" title="http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-bin.tar.gz"&gt;http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-bin.tar.gz&lt;/a&gt;&lt;br /&gt;2.Download library for Mod_cluster&amp;nbsp;:&lt;br /&gt;  &lt;a class="external free" href="http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-linux2-x64-so.tar.gz" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/monobook/external.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-right: 13px; text-decoration: none;" title="http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-linux2-x64-so.tar.gz"&gt;http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-linux2-x64-so.tar.gz&lt;/a&gt;&lt;br /&gt;3.Reference Documentation for mod_cluster and how it works&lt;br /&gt;  wget -c &lt;a class="external free" href="http://www.jugs.ch/html/events/slides/090313_BrianStansberry_mod-cluster-jug.pdf" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/monobook/document.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-right: 12px; text-decoration: none;" title="http://www.jugs.ch/html/events/slides/090313_BrianStansberry_mod-cluster-jug.pdf"&gt;http://www.jugs.ch/html/events/slides/090313_BrianStansberry_mod-cluster-jug.pdf&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;a href="http://community.jboss.org/thread/162859"&gt;http://community.jboss.org/thread/162859&lt;/a&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=7205632748591622136" name="Install" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Install&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Install mod_cluster&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;extract file mod_cluster-1.1.1.Final-bin.tar.gz&lt;br /&gt;copy folder mod_cluster.sar to &lt;i&gt;JBoss AS/server/node01/deploy&lt;/i&gt; or where the server node stored&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;configure file mod_cluster-jboss-beans.xml at&amp;nbsp;&lt;i&gt;mod_cluster.sar/META-INF&lt;/i&gt;&amp;nbsp;add this following lines&amp;nbsp;:&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&amp;lt;bean name="HAModClusterConfig" class="org.jboss.modcluster.config.ha.HAModClusterConfig" mode="On Demand"&amp;gt;&lt;br /&gt;&amp;lt;property name="proxyList"&amp;gt;${jboss.modcluster.proxyList:localhost:80}&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="domain"&amp;gt;${jboss.Domain:DefaultDomain}&amp;lt;/property&amp;gt;&lt;br /&gt;&amp;lt;property name="stickySession"&amp;gt;true&amp;lt;/property&amp;gt;&lt;br /&gt;       &amp;lt;property name="stickySessionForce"&amp;gt;true&amp;lt;/property&amp;gt;&lt;br /&gt;           &amp;lt;property name="stickySessionRemove"&amp;gt;false&amp;lt;/property&amp;gt;&lt;br /&gt;               &amp;lt;property name="maxAttempts"&amp;gt;1&amp;lt;/property&amp;gt;&lt;br /&gt;                   &amp;lt;property name="workerTimeout"&amp;gt;-1&amp;lt;/property&amp;gt;&lt;br /&gt;                       &amp;lt;property name="balancer"&amp;gt;${jboss.modcluster.balancer}&amp;lt;/property&amp;gt;&lt;br /&gt; &amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=7205632748591622136" name="Web_Server" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Web Server&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Install the Web Server for this you can use the native jboss web server you can download it at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;a class="external free" href="http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-linux2-x64-ssl.tar.gz" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/monobook/external.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-right: 13px; text-decoration: none;" title="http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-linux2-x64-ssl.tar.gz"&gt;http://downloads.jboss.org/mod_cluster//1.1.1.Final/mod_cluster-1.1.1.Final-linux2-x64-ssl.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;extract and put it at&amp;nbsp;&lt;i&gt;/opt&lt;/i&gt;&lt;/div&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Configure Web server Edit the http.conf and add the Virtual hosts for JBoss AS node if you want use a web server from download.jboss.org:&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;edit the configuration at &lt;i&gt;/opt/jboss/httpd/httpd/conf&lt;/i&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Unmark this line&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# Virtual hosts&lt;br /&gt;Include conf/extra/httpd-vhosts.conf&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;then leave this native configuration we only need to remark the Advertise module, so we still can access the mod_cluster-manager from localhost&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# MOD_CLUSTER_ADDS&lt;br /&gt;# Adjust to you hostname and subnet.&lt;br /&gt;&amp;lt;IfModule manager_module&amp;gt;&lt;br /&gt;  Listen 127.0.0.1:6666&lt;br /&gt;  ManagerBalancerName mycluster&lt;br /&gt;   &amp;lt;VirtualHost 127.0.0.1:6666&amp;gt;&lt;br /&gt;      &amp;lt;Location /&amp;gt;&lt;br /&gt;       Order deny,allow&lt;br /&gt;       Deny from all&lt;br /&gt;       Allow from 127.0.0&lt;br /&gt;      &amp;lt;/Location&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;KeepAliveTimeout 300&lt;br /&gt;  MaxKeepAliveRequests 0&lt;br /&gt;  #ServerAdvertise on &lt;a class="external free" href="http://%40IP@:6666/" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/monobook/external.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-right: 13px; text-decoration: none;" title="http://@IP@:6666"&gt;http://@IP@:6666&lt;/a&gt;&lt;br /&gt;  #AdvertiseFrequency 5 ==&amp;gt; remark this line, so the Advertise modules will not conflict with the virtual host &lt;br /&gt;  #AdvertiseSecurityKey secret&lt;br /&gt;  #AdvertiseGroup @ADVIP@:23364&lt;br /&gt; &lt;br /&gt;      &amp;lt;Location /mcm&amp;gt;&lt;br /&gt;        SetHandler mod_cluster-manager&lt;br /&gt;        Order deny,allow&lt;br /&gt;        #Deny from all&lt;br /&gt;        Allow from 127.0.0&lt;br /&gt;      &amp;lt;/Location&amp;gt;&lt;br /&gt;  &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;In this configuration modules is already loaded, and the *.so files is already at modules directory. next we need to configure the VirtualHost at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;i&gt;/opt/jboss/httpd/httpd/conf/extra/httpd-vhost.conf&lt;/i&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;add this line:&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&amp;lt;VirtualHost node01.asik.local:80&amp;gt; # change the node&lt;br /&gt; &amp;lt;Directory /&amp;gt;&lt;br /&gt;    Order deny,allow&lt;br /&gt;    Allow from all&lt;br /&gt; &amp;lt;/Directory&amp;gt;&lt;br /&gt; &amp;lt;Location /mcm&amp;gt;&lt;br /&gt;     SetHandler mod_cluster-manager&lt;br /&gt;     Order deny,allow&lt;br /&gt;     Allow from all&lt;br /&gt;     Allow from 192.168&lt;br /&gt; &amp;lt;/Location&amp;gt;&lt;br /&gt; KeepAliveTimeout 60&lt;br /&gt; MaxKeepAliveRequests 0&lt;br /&gt; ManagerBalancerName testcluster&lt;br /&gt; AdvertiseFrequency 5&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt; ServerAdmin admin@asik.local&lt;br /&gt; DocumentRoot /opt/jboss/httpd/htdocs/htdocs/node01.asik.local/data&lt;br /&gt; ServerName node01.asik.local:80                                        # change the node&lt;br /&gt; ErrorLog logs/node01.asik.local-error_log                              # change the node&lt;br /&gt; CustomLog logs/node01.asik.local-access_log combined                   # change the node&lt;br /&gt; LogLevel debug&lt;br /&gt; ProxyPass / balancer://cluster1/application1 stickysession=JSESSIONID|jsessionid nofailover=On&lt;br /&gt; ProxyPassReverse / balancer://cluster1/application1 #the application1 is a test aplication for cluster we will use it&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=7205632748591622136" name="Restart_Web_Server" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Restart Web Server&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Run the web server&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;#/opt/jboss/httpd/sbin/httpd -k start&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;or&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;#/opt/jboss/httpd/sbin/apachectl start&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=7205632748591622136" name="Build_application_tester" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Build application tester&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;download the file at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;a class="external free" href="http://community.jboss.org/servlet/JiveServlet/download/588259-27006/clusterjsp.war" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: url(http://i.asyx.com/w/skins/monobook/external.png); background-origin: initial; background-position: 100% 50%; background-repeat: no-repeat no-repeat; color: #3366bb; padding-right: 13px; text-decoration: none;" title="http://community.jboss.org/servlet/JiveServlet/download/588259-27006/clusterjsp.war"&gt;http://community.jboss.org/servlet/JiveServlet/download/588259-27006/clusterjsp.war&lt;/a&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;extract and repack again with different name&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;jar xvf clusterjsp.war&lt;br /&gt;jar cvf application1.war *&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Put the application1.war at&amp;nbsp;&lt;i&gt;JBoss AS/server/deploy/&lt;/i&gt;&amp;nbsp;Run the JBoss AS&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;./bin/run.sh -c node01 -g cluster1 -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-default &lt;br /&gt;-Djboss.jvmRoute="node01" -Djboss.Domain=domain1 -Djboss.mod_cluster.proxyList="192.168.1.176:80" &lt;br /&gt;-Djboss.modcluster.balancer="cluster1"  -Djboss.bind.address="0.0.0.0"&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=7205632748591622136" name="Run_application_tester" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Run application tester&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;open the mod_cluster-manager&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&amp;lt; JBoss server fqdn / ip address &amp;gt;/mcm&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;open application tester&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&amp;lt; JBoss server fqdn / ip address &amp;gt;/application1&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-7205632748591622136?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/7205632748591622136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/mod-cluster-on-jboss-as-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7205632748591622136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7205632748591622136'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/03/mod-cluster-on-jboss-as-5.html' title='Mod cluster on JBoss AS 5.x'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-8833499412633831776</id><published>2011-01-26T21:52:00.000-08:00</published><updated>2011-01-26T21:52:50.053-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cuap cuap'/><title type='text'>Tak terasa Waktu berlalu</title><content type='html'>1/4 Abad sudah waktu berlalu tepat pada hari ini, tak terasa memang. seperti baru kemarin menapaki bukit ternyata perjalanan sudah sampai se per-empat nya.&lt;br /&gt;tidak banyak yang telah dilakukan bila menengok kebelakang, seakan diri ini kecil sekali dan bukan apa-apa...&lt;br /&gt;banyak hati yang tersakiti dan bahkan terluka oleh diri ini selama menapaki bukit kehidupan, baik yang terasa atau tidak.&lt;br /&gt;belum banyak diri ini bermanfaat bagi orang lain, bagi keluarga, istri , dan teman.&lt;br /&gt;kadang ketika merenung dalam proses panjang ini, seakan hati ini bersedih dan selalu bertanya;&lt;br /&gt;apa yang aku cari? apa yang aku kejar? untuk apa aku disini?&lt;br /&gt;cukup kah kebahagiaan hanya dengan uang?tidak. ternyata bukan itu...&lt;br /&gt;iya 1/4 Abad bukan waktu yang sebentar, cukup sudah bermain-main nya, cukup sudah waktu untuk menjelajah, cukup sudah hidup dalam semu keinginan. karena 1/4 Abad yang akan datang belum tentu aku bisa menulis ini lagi... atau tidak akan sampai puncak perjalanan dengan segala target yang belum tercapai?&lt;br /&gt;Ya Alloh swt engkau lah pemilik jagat raya ini, yang didalam nya terdapat mahkluk-mahkluk mu yang kecil dan hina, dengan kesombongan mereka yang sudah merasa lebih dari apapun. jadi kan lah aku hambamu yang bertakwa lindungi lah aku dari sifat sombong, dengan 1/4 Abad ini semoga aku bisa lebih dekat kepada-Mu mengejar ketertinggalan ku di masa lalu.&lt;br /&gt;&lt;br /&gt;air mata ku berlinang pada hari ini takkala mendengar istri ku mengucapkan sebuah kalimat yang membuat ku terharu di sela-sela rasa khawtir kami, ketika ku buka handphone dan membaca pesan dari adik ku, ketika kudengar keponakan ku berteriak untuk ku.terimakasih semoga kita selalu dalam rahmat Alloh sesungguh nya Dia lah yang menyayangi kita lebih dari siapapun di dunia yang semu ini....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-8833499412633831776?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/8833499412633831776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/01/tak-terasa-waktu-berlalu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8833499412633831776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8833499412633831776'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/01/tak-terasa-waktu-berlalu.html' title='Tak terasa Waktu berlalu'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-7550581544872738129</id><published>2011-01-12T19:46:00.000-08:00</published><updated>2011-06-14T21:37:43.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><category scheme='http://www.blogger.com/atom/ns#' term='Cups'/><title type='text'>Enable remote CUPS web interface</title><content type='html'>I have a problem with cups, one of my employee in the office cannot access the printer. and don't wanna fix it form his machine, so i think i will remote the cups from my linux box :)&lt;br /&gt;&lt;br /&gt;lets start, open and edit the cups config file at&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;/etc/cups/cupsd.conf&lt;/pre&gt;edit this line&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# Only listen for connections from the local machine.&lt;br /&gt;Listen localhost:631&lt;br /&gt;Listen /var/run/cups/cups.sock&lt;/pre&gt;into&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# Only listen for connections from the local machine.&lt;br /&gt;Port 631&lt;br /&gt;Listen /var/run/cups/cups.sock&lt;/pre&gt;add the bold line into config file&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# Restrict access to the server...&lt;br /&gt;&amp;lt;Location /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Allow From 192.168.1.176&lt;/b&gt; or &lt;b&gt;Allow all&lt;/b&gt;&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;br /&gt;# Restrict access to the admin pages...&lt;br /&gt;&amp;lt;Location /admin&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;Allow @LOCAL&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;b&gt;Allow From 192.168.1.176&lt;/b&gt; or &lt;b&gt;Allow all&lt;/b&gt;&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;br /&gt;&lt;br /&gt;# Restrict access to configuration files...&lt;br /&gt;&amp;lt;Location /admin/conf&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;AuthType Default&lt;br /&gt;&amp;nbsp;&amp;nbsp;Require user @SYSTEM&lt;br /&gt;&amp;nbsp;&amp;nbsp;Order allow,deny&lt;br /&gt;&amp;nbsp;&amp;nbsp;Allow @LOCAL&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;Allow From 192.168.1.176&lt;/b&gt; or &lt;b&gt;Allow all&lt;/b&gt;&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;br /&gt;&lt;/pre&gt;restart the services&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;/etc/init.d/cups restart&lt;/pre&gt;then access the cups web interface from your linux box&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;http://ip-cups-remote:631&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-7550581544872738129?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/7550581544872738129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/01/enable-remote-cups-web-interface.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7550581544872738129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/7550581544872738129'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/01/enable-remote-cups-web-interface.html' title='Enable remote CUPS web interface'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-8061696311005318004</id><published>2011-01-10T23:52:00.000-08:00</published><updated>2011-06-14T21:38:21.947-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jmx'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='active mq'/><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>Enable JMX on activeMQ</title><content type='html'>Apache activeMQ provide some startup daemon, if you extract the package and go into bin/ folder you will see&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;bin/&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;activemq&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;activemq-admin &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;linux-x86-32 &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;linux-x86-64&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --activemq &amp;nbsp;libwrapper.so &amp;nbsp;wrapper &amp;nbsp;wrapper.conf&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;macosx &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;run.jar &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;wrapper.jar&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: sans-serif; font-size: 13px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div id="bodyContent"&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Configure config file&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;Edit activemq config files at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;apache-activemq-5.4.2/conf/activemq.xml&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;change this following lines from false into true&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&amp;lt;managementContext&amp;gt;&lt;br /&gt;           &amp;lt;managementContext createConnector="false"/&amp;gt;&lt;br /&gt;&amp;lt;/managementContext&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;into&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&amp;lt;managementContext&amp;gt;&lt;br /&gt;           &amp;lt;managementContext createConnector="true"/&amp;gt;&lt;br /&gt;&amp;lt;/managementContext&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;if you wanna using wrapper, unmark the jmx option at&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;apache-activemq-5.4.2/bin/linux-x86-64/wrapper.conf&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;become&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;wrapper.java.additional.n=-Dcom.sun.management.jmxremote.authenticate=false&lt;br /&gt;wrapper.java.additional.n=-Dcom.sun.management.jmxremote.ssl=false&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=8061696311005318004" name="Run_ActiveMQ" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Run ActiveMQ&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;start the activeMQ, we are using the 64bit architecture&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;cd &lt;i&gt;apache-activemq-5.4.2/bin/linux-x86-64/&lt;/i&gt;&lt;br /&gt;./activemq start&lt;br /&gt;&lt;/pre&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;test the jmx connection using activemq query&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;./../activemq query&lt;br /&gt;&lt;/pre&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=8670658671630537166&amp;amp;postID=8061696311005318004" name="Test_JMX" style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #002bb8; text-decoration: none;"&gt;&lt;/a&gt;&lt;br /&gt;&lt;h1 style="background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; color: black; font-size: 24px; font-weight: normal; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0.17em; padding-top: 0.5em;"&gt;&lt;span class="mw-headline"&gt;&lt;br /&gt;Test JMX&lt;/span&gt;&lt;/h1&gt;&lt;div style="line-height: 1.5em; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.4em;"&gt;if success it will appears&lt;/div&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;INFO: Using default configuration&lt;br /&gt;(you can configure options in one of these file: /etc/default/activemq /home/fazries/.activemqrc)&lt;br /&gt;INFO: Invoke the following command to create a configuration file&lt;br /&gt;./activemq setup [ /etc/default/activemq | /home/fazries/.activemqrc ]&lt;br /&gt;INFO: Using java '/usr/java/latest//bin/java'&lt;br /&gt;Java Runtime: Sun Microsystems Inc. 1.6.0_20 /usr/java/jdk1.6.0_20/jre&lt;br /&gt; Heap sizes: current=42496k  free=42042k  max=629888k&lt;br /&gt; JVM args: -Dactivemq.classpath=/home/fazries/activemq/conf; -Dactivemq.home=/home/fazries/activemq - Dactivemq.base=/home/fazries/activemq&lt;br /&gt;ACTIVEMQ_HOME: /home/fazries/activemq&lt;br /&gt;ACTIVEMQ_BASE: /home/fazries/activemq&lt;br /&gt;Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;TemporaryQueues = []&lt;br /&gt;TemporaryTopics = []&lt;br /&gt;DurableTopicSubscribers = []&lt;br /&gt;QueueSubscribers = []&lt;br /&gt;BrokerVersion = 5.4.2&lt;br /&gt;TempLimit = 107374182400&lt;br /&gt;Persistent = true&lt;br /&gt;InactiveDurableTopicSubscribers = []&lt;br /&gt;TempPercentUsage = 0&lt;br /&gt;MemoryLimit = 67108864&lt;br /&gt;SslURL = &lt;br /&gt;StorePercentUsage = 0&lt;br /&gt;Type = Broker&lt;br /&gt;TemporaryTopicSubscribers = []&lt;br /&gt;BrokerId = ID:A1008.asyx.com-33582-1294640921569-0:1&lt;br /&gt;TotalMessageCount = 0&lt;br /&gt;TotalEnqueueCount = 3&lt;br /&gt;StompSslURL = &lt;br /&gt;Queues = [org.apache.activemq:BrokerName=localhost,Type=Queue,Destination=example.A,   org.apache.activemq:BrokerName=localhost,Type=Queue,Destination=TEST.FOO,  org.apache.activemq:BrokerName=localhost,Type=Queue,Destination=example.B] &lt;br /&gt;Topics = [org.apache.activemq:BrokerName=localhost,Type=Topic,Destination=ActiveMQ.Advisory.Queue]&lt;br /&gt;OpenWireURL = tcp://A1008.asyx.com:61616&lt;br /&gt;DataDirectory = /home/fazries/activemq/data&lt;br /&gt;StoreLimit = 107374182400&lt;br /&gt;TopicSubscribers = []&lt;br /&gt;BrokerName = localhost&lt;br /&gt;TotalDequeueCount = 0&lt;br /&gt;VMURL = vm://localhost&lt;br /&gt;StompURL = &lt;br /&gt;TemporaryQueueSubscribers = []&lt;br /&gt;StatisticsEnabled = true&lt;br /&gt;MemoryPercentUsage = 0&lt;br /&gt;TotalConsumerCount = 0&lt;br /&gt;Slave = false&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;try using jconsole&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;jconsole&amp;nbsp;service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-8061696311005318004?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/8061696311005318004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/01/enable-jmx-on-activemq.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8061696311005318004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/8061696311005318004'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/01/enable-jmx-on-activemq.html' title='Enable JMX on activeMQ'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-2152271336334053690</id><published>2011-01-09T20:44:00.000-08:00</published><updated>2011-11-17T23:38:39.189-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jmx'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>make RPM packages from source</title><content type='html'>My boss give me a project with nagios and ActiveMQ and MySQL, the nagios should monitoring the message queue in ActiveMQ and for MysQL i should know the replication delay.&lt;br /&gt;Okay then the adventure is begin.&lt;br /&gt;After searching in google, i found very interesting plugins at exchange.nagios.org, the issue is those packages are build in source not in RPM packet. hmm then i should build it into a RPM.&lt;br /&gt;the solution is rebuild the source into a rpm.&lt;br /&gt;let's start.&lt;br /&gt;&lt;br /&gt;I try this with Fedora 13 and Centos 5.5&lt;br /&gt;&lt;br /&gt;ingredients&lt;br /&gt;1. download and install.&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;rpm-build&lt;br /&gt;redhat-rpm-config&lt;br /&gt;gcc&lt;br /&gt;make&lt;br /&gt;&lt;/pre&gt;note : &lt;b&gt;you should use ordinary user account for build the package not using root.&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;you can use this package rpmdev-setup for auto configuration, so you no need to build the folder again&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;yum install rpmdev-setup&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;2. create folders for build the rpm package and create hidden files named rpmmacros at your home directory.&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;in &lt;b&gt;centos&lt;/b&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;mkdir -p ~/rpm/{SOURCES,BUILD,SPEC,SRPMS,RPMS,tmp}&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;touch ~/.rpmmacros&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;span class="Apple-style-span" style="line-height: 14px;"&gt;%packager check_logfiles&lt;br /&gt;%_topdir /home/fazries/rpm           &lt;br /&gt;%_tmppath /home/fazries/rpm/tmp&lt;/span&gt;&lt;span class="Apple-style-span" style="color: black; line-height: 1.1em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if you using Fedora you don't need to create those directory, its automatic create when you install the &amp;nbsp;depedency packet.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; in&lt;b&gt; fedora&lt;/b&gt; the directory structure will become like this:&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;rpmbuild/&lt;br /&gt;BUILD/&lt;br /&gt;BUILDROOT/&lt;br /&gt;RPMS/&lt;br /&gt;SOURCES/&lt;br /&gt;SPEC/&lt;br /&gt;SPECS/&lt;br /&gt;SRPMS/&lt;br /&gt;tmp/&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;3. for example i will rebuild the &lt;i&gt;check_mysql_health&lt;/i&gt; (need to be complie) and &lt;i&gt;check_jmx&amp;nbsp;&lt;/i&gt;(binary already)&amp;nbsp;plugins&lt;br /&gt;&lt;i&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;download the source.&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;cd ~/rpm/SOURCES/&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;wget -c&amp;nbsp;http://labs.consol.de/wp-content/uploads/2010/12/check_mysql_health-2.1.5.tar.gz&lt;/pre&gt;4. next create a spec file, inside this file is a configuration for making a RPM packet.&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;cd ~/rpm/SPEC/touch check_mysql_health.spec&lt;/pre&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; copy and paste this config into check_mysql_health.spec:&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;Summary: Mysql check plugin for nagios&lt;br /&gt;Name: check_mysql_health&lt;br /&gt;Version: 2.1.5&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;Release: 1%{?dist}&lt;br /&gt;License: GPL &lt;br /&gt;Group: Applications/System&lt;br /&gt;URL: http://sourceforge.net/projects/check-logfiles&lt;br /&gt;Packager: Dag Wieers &lt;br /&gt;Vendor: Dag Apt Repository, http://dag.wieers.com/apt/&lt;br /&gt;Source: http://labs.consol.de/wp-content/uploads/2010/12/check_mysql_health-%{version}.tar.gz&lt;br /&gt;BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root&lt;br /&gt;&lt;br /&gt;%description&lt;br /&gt;check_logfiles is a plugin for Nagios which searches for patterns in mysql It is capable of scanning multiple    logfiles and their rotated ancestors in a single run.&lt;br /&gt;&lt;br /&gt;%prep&lt;br /&gt;&lt;br /&gt;%setup -n %{name}-%{version}&lt;br /&gt;&lt;br /&gt;%build&lt;br /&gt;&lt;br /&gt;%configure  --libexecdir=%_libdir/nagios/plugins&lt;br /&gt;&lt;br /&gt;%install&lt;br /&gt;%{__rm} -rf %{buildroot}&lt;br /&gt;%{__make} install DESTDIR="%{buildroot}"&lt;br /&gt;&lt;br /&gt;%clean&lt;br /&gt;%{__rm} -rf %{buildroot}&lt;br /&gt;&lt;br /&gt;%files&lt;br /&gt;%defattr(-, root, root, 0755)&lt;br /&gt;%{_libdir}/nagios/plugins/check_mysql_health&lt;br /&gt;&lt;br /&gt;%changelog&lt;br /&gt;* Thu Sep 16 2010 Christoph Maser - 3.4.2-1 - 9115/yury- Update to version 3.4.2.&lt;br /&gt;* Thu Jan 10 2008 Christoph Maser - 2.3.1.2-1- Initial package.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;5. build the packet&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;rpmbuild -ba check_mysql_health.spec&lt;/pre&gt;6. the your rpm packet will create an stored at ~/rpm/RPMS/check_mysql_health-2.1.5-1.x86_64.rpm&lt;br /&gt;&lt;br /&gt;and for the check_jmx you can download it at:&lt;br /&gt;&lt;a href="http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/check_jmx-II/details"&gt;http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/check_jmx-II/details&lt;/a&gt;&lt;br /&gt;put it into SOURCES folder&lt;br /&gt;install the &lt;i&gt;unzip&lt;/i&gt; ,&amp;nbsp;cause&amp;nbsp;the source is&amp;nbsp;compressed&amp;nbsp;by zip&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;# yum install unzip&lt;/pre&gt;&lt;br /&gt;repeat,start from step 4. and create the .spec file for check_jmx&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;touch check_jmx.spec&lt;/pre&gt;&lt;br /&gt;copy and paste this config:&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;Version:2&lt;br /&gt;Release:1%{?dist}&lt;br /&gt;Summary:check_jmx&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;Name: check_jmx&lt;br /&gt;Group:Application/System&lt;br /&gt;License:APL 2.0&lt;br /&gt;URL:http://exchange.nagios.org&lt;br /&gt;BuildRoot:%{_builddir}/%{name}-root&lt;br /&gt;BuildArch:noarch&lt;br /&gt;&lt;br /&gt;%description&lt;br /&gt;jmx plugins for nagios&lt;br /&gt;&lt;br /&gt;%prep&lt;br /&gt;rm -rf %{buildroot}&lt;br /&gt;rm -rf $RPM_BUILD_ROOT/*&lt;br /&gt;&lt;br /&gt;%build&lt;br /&gt;pwd&lt;br /&gt;cd %{_sourcedir}unzip -e check_jmxII.zip&lt;br /&gt;&lt;br /&gt;%install&lt;br /&gt;cd %{_sourcedir}&lt;br /&gt;ls&lt;br /&gt;cd jmxquery/nagios/plugin&lt;br /&gt;mkdir -p $RPM_BUILD_ROOT/usr/lib64/nagios/plugin&lt;br /&gt;scp * $RPM_BUILD_ROOT/usr/lib64/nagios/plugins&lt;br /&gt;&lt;br /&gt;%clean&lt;br /&gt;rm -rf $RPM_BUILD_ROOT&lt;br /&gt;&lt;br /&gt;%files&lt;br /&gt;%defattr(755,root,root)/usr/lib64/nagios/plugins&lt;br /&gt;%changelog&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;* Tue Jan 15 2011 Vash27- recreated&lt;br /&gt;* Tue Jan 10 2011 Vash27- Created initial spec file for check_jmx&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;great tutorial,you can download it at:&lt;br /&gt;&lt;a href="http://www.gurulabs.com/downloads/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.PDF"&gt;http://www.gurulabs.com/downloads/GURULABS-RPM-LAB/GURULABS-RPM-GUIDE-v1.0.PDF&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;next i will explain how to use those plugins with nagios&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8670658671630537166-2152271336334053690?l=kura2gurun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kura2gurun.blogspot.com/feeds/2152271336334053690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kura2gurun.blogspot.com/2011/01/make-rpm-packages-from-source.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2152271336334053690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8670658671630537166/posts/default/2152271336334053690'/><link rel='alternate' type='text/html' href='http://kura2gurun.blogspot.com/2011/01/make-rpm-packages-from-source.html' title='make RPM packages from source'/><author><name>Setyadi Fazrie</name><uri>http://www.blogger.com/profile/01872796099776602386</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8670658671630537166.post-8925073923255417266</id><published>2011-01-04T00:52:00.000-08:00</published><updated>2011-09-29T21:04:49.493-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='tip n trik'/><title type='text'>Replicating MySQL Server  ( Fedora 13 )</title><content type='html'>IP mysql server master = 192.168.1.193&lt;br /&gt;IP myslq slave = 192.168.1.176&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Master Side&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;- create user in mysql server master for replicating&lt;br /&gt;user = replicator&lt;br /&gt;pass = replicate&lt;br /&gt;- setup the user privilage&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1003 ~]# mysql -u root -p&lt;br /&gt;Enter password:&amp;nbsp;&lt;br /&gt;Welcome to the MySQL monitor. &amp;nbsp;Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 3&lt;br /&gt;Server version: 5.1.52-log Source distribution&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.&lt;br /&gt;This software comes with ABSOLUTELY NO WARRANTY. This is free software,&lt;br /&gt;and you are welcome to modify and redistribute it under the GPL v2 license&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&amp;nbsp;create user replicator@192.168.1.176 identified by 'replicate';&lt;br /&gt;Query OK, 0 rows affected (0.04 sec)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&amp;nbsp;grant replication slave on *.* to replicator@192.168.1.176 identified by 'replicate';&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&amp;nbsp;flush privileges;&lt;br /&gt;Query OK, 0 rows affected (0.03 sec)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&amp;nbsp;quit;&lt;br /&gt;Bye&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Edit the /etc/my.conf, added the bold lines&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1003 ~]# vi /etc/my.cnf&lt;br /&gt;[mysqld]&lt;br /&gt;datadir=/var/lib/mysql&lt;br /&gt;socket=/var/lib/mysql/mysql.sock&lt;br /&gt;user=mysql&lt;br /&gt;# Disabling symbolic-links is recommended to prevent assorted security risks&lt;br /&gt;symbolic-links=0&lt;br /&gt;&lt;br /&gt;&lt;b&gt;log-bin = /var/log/mysql/mysql-bin.log&lt;/b&gt;&lt;br /&gt;&lt;b&gt;binlog-do-db=drupaldb&lt;/b&gt;&lt;br /&gt;&lt;b&gt;server-id=1&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;[mysqld_safe]&lt;br /&gt;log-error=/var/log/mysqld.log&lt;br /&gt;pid-file=/var/run/mysqld/mysqld.pid&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1003 ~]# service mysqld start&lt;br /&gt;MySQL Daemon failed to start.&lt;br /&gt;Starting mysqld: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [FAILED]&lt;br /&gt;&lt;br /&gt;Make the log file&lt;br /&gt;and see the master status&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1003 ~]# tail -n 50 /var/log/mysql.log&lt;br /&gt;110104 14:28:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql&lt;br /&gt;&lt;b&gt;/usr/libexec/mysqld: File '/var/log/mysql/mysql-bin.index' not found (Errcode: 2)&lt;/b&gt;&lt;br /&gt;110104 14:28:35 [ERROR] Aborting&lt;br /&gt;110104 14:28:35 [Note] /usr/libexec/mysqld: Shutdown complete&lt;br /&gt;110104 14:28:35 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended&lt;br /&gt;[root@A1003 ~]# &lt;b&gt;mkdir /var/log/mysql&lt;/b&gt;&lt;br /&gt;[root@A1003 ~]# &lt;b&gt;touch /var/log/mysql/mysql-bin.index&lt;/b&gt;&lt;br /&gt;[root@A1003 ~]# &lt;b&gt;chown -R mysql:mysql /var/log/mysql&lt;/b&gt;&lt;br /&gt;[root@A1003 ~]# service mysqld start&lt;br /&gt;Starting mysqld: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1003 ~]# mysql -u root -p&lt;br /&gt;Enter password:&amp;nbsp;&lt;br /&gt;Welcome to the MySQL monitor. &amp;nbsp;Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 3&lt;br /&gt;Server version: 5.1.52-log Source distribution&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.&lt;br /&gt;This software comes with ABSOLUTELY NO WARRANTY. This is free software,&lt;br /&gt;and you are welcome to modify and redistribute it under the GPL v2 license&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&amp;nbsp;show master status;&lt;br /&gt;+------------------+----------+--------------+------------------+&lt;br /&gt;| File &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Position | Binlog_Do_DB | Binlog_Ignore_DB |&lt;br /&gt;+------------------+----------+--------------+------------------+&lt;br /&gt;| mysql-bin.000001 | &amp;nbsp; &amp;nbsp; &amp;nbsp;106 | drupaldb &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;+------------------+----------+--------------+------------------+&lt;br /&gt;1 row in set (0.00 sec)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; quit;&lt;br /&gt;Bye&lt;br /&gt;&lt;/pre&gt;Dump Database to mysql slave&lt;br /&gt;copied to slave server&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1003 ~]# &lt;b&gt;mysqldump -u root -p --opt drupaldb &amp;gt; drupal.sql&lt;/b&gt;&lt;br /&gt;Enter password:&amp;nbsp;&lt;br /&gt;[root@A1003 ~]# &lt;b&gt;scp drupal.sql root@192.168.1.176:/root&lt;/b&gt;&lt;br /&gt;root@192.168.1.176's password:&amp;nbsp;&lt;br /&gt;drupal.sql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100% 6970KB 410.0KB/s &amp;nbsp; 00:17 &amp;nbsp; &amp;nbsp;&lt;br /&gt;[root@A1003 ~]# mysql -u root -p&lt;br /&gt;Enter password:&amp;nbsp;&lt;br /&gt;Welcome to the MySQL monitor. &amp;nbsp;Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 6&lt;br /&gt;Server version: 5.1.52-log Source distribution&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.&lt;br /&gt;This software comes with ABSOLUTELY NO WARRANTY. This is free software,&lt;br /&gt;and you are welcome to modify and redistribute it under the GPL v2 license&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&amp;nbsp;unlock tables;&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&amp;nbsp;quit;&lt;br /&gt;Bye&lt;br /&gt;&lt;/pre&gt;&lt;b&gt;Slave Side&lt;/b&gt;&lt;br /&gt;Edit the /etc/my.cnf and added the Bold lines&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1008 ~]# cat /etc/my.cnf&amp;nbsp;&lt;br /&gt;&lt;br /&gt;[mysqld]&lt;br /&gt;datadir=/var/lib/mysql&lt;br /&gt;socket=/var/lib/mysql/mysql.sock&lt;br /&gt;user=mysql&lt;br /&gt;&lt;br /&gt;# Disabling symbolic-links is recommended to prevent assorted security risks&lt;br /&gt;symbolic-links=0&lt;br /&gt;&lt;b&gt;server-id=2&lt;/b&gt;&lt;br /&gt;&lt;b&gt;master-host=192.168.1.193&lt;/b&gt;&lt;br /&gt;&lt;b&gt;master-user=replicator&lt;/b&gt;&lt;br /&gt;&lt;b&gt;master-password=replicate&lt;/b&gt;&lt;br /&gt;&lt;b&gt;master-connect-retry=60&lt;/b&gt;&lt;br /&gt;&lt;b&gt;replicate-do-db=drupaldb&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;[mysqld_safe]&lt;br /&gt;log-error=/var/log/mysqld.log&lt;br /&gt;pid-file=/var/run/mysqld/mysqld.pid&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Make Database for replicating in this example drupaldb&lt;br /&gt;Import the drupa.sql into database&lt;br /&gt;Restart mysql server&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1008 ~]# mysql -u root -p&lt;br /&gt;&lt;br /&gt;Enter password:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Welcome to the MySQL monitor. &amp;nbsp;Commands end with ; or \g.&lt;br /&gt;&lt;br /&gt;Your MySQL connection id is 24&lt;br /&gt;&lt;br /&gt;Server version: 5.1.51 Source distribution&lt;br /&gt;&lt;br /&gt;Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.&lt;br /&gt;&lt;br /&gt;This software comes with ABSOLUTELY NO WARRANTY. This is free software,&lt;br /&gt;&lt;br /&gt;and you are welcome to modify and redistribute it under the GPL v2 license&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; create database drupaldb;&lt;br /&gt;&lt;br /&gt;Query OK, 1 row affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; quit;&lt;br /&gt;&lt;br /&gt;Bye&lt;br /&gt;&lt;br /&gt;[root@A1008 ~]# &lt;b&gt;mysql -u root -p drupaldb &amp;lt; /root/drupal.sql&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enter password:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;[root@A1008 ~]# service mysqld restart&lt;br /&gt;&lt;br /&gt;Stopping mysqld: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;&lt;br /&gt;Starting mysqld: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ &amp;nbsp;OK &amp;nbsp;]&lt;br /&gt;&lt;/pre&gt;Replacing the values&lt;br /&gt;&lt;pre style="background-color: #f9f9f9; border-bottom-color: rgb(47, 111, 171); border-bottom-style: dashed; border-bottom-width: 1px; border-left-color: rgb(47, 111, 171); border-left-style: dashed; border-left-width: 1px; border-right-color: rgb(47, 111, 171); border-right-style: dashed; border-right-width: 1px; border-top-color: rgb(47, 111, 171); border-top-style: dashed; border-top-width: 1px; color: black; line-height: 1.1em; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em;"&gt;[root@A1008 ~]# mysql -u root -p&lt;br /&gt;&lt;br /&gt;Enter password:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Welcome to the MySQL monitor. &amp;nbsp;Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 4&lt;br /&gt;Server version: 5.1.51 Source distribution&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.&lt;br /&gt;This software comes with ABSOLUTELY NO WARRANTY. This is free software,&lt;br /&gt;and you are welcome to modify and redistribute it under the GPL v2 license&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; stop slave;&lt;br /&gt;&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&lt;b&gt;change master to master_host='192.168.1.193'&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;-&amp;gt;&lt;b&gt;, master_user='replicator'&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;-&amp;gt;&lt;b&gt;, master_password='replicate'&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;-&amp;gt;&lt;b&gt;, master_log_file='mysql-bin.000001'&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;-&amp;gt;&lt;b&gt;, master_log_pos=106;&lt;/b&gt;&lt;br /&gt;Query OK, 0 rows affected (0.20 sec)&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; slave start;&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; show slave status;&lt;br /&gt;&lt;br /&gt;---------------+-------------------------------+---------------+---------------+----------------+----------------+&lt;br /&gt;&lt;br /&gt;| Slave_IO_State &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_Host &amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_User&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_Port&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Connect_Retry&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_Log_File &amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Read_Master_Log_Pos&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Relay_Log_File &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Relay_Log_Pos&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Relay_Master_Log_File&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Slave_IO_Running&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Slave_SQL_Running&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Replicate_Do_DB&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Replicate_Ignore_DB&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Replicate_Do_Table&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Replicate_Ignore_Table&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Replicate_Wild_Do_Table&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Replicate_Wild_Ignore_Table&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Last_Errno&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Last_Error&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Skip_Counter&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Exec_Master_Log_Pos&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Relay_Log_Space&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Until_Condition&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Until_Log_File&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Until_Log_Pos&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_SSL_Allowed&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_SSL_CA_File&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_SSL_CA_Path&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_SSL_Cert&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_SSL_Cipher&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_SSL_Key&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Seconds_Behind_Master&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Master_SSL_Verify_Server_Cert&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Last_IO_Errno&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Last_IO_Error&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Last_SQL_Errno&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| Last_SQL_Error |&lt;br /&gt;&lt;br /&gt;+----------------------------------+---------------+-------------+-------------+---------------+-----------&lt;br /&gt;&lt;br /&gt;| Waiting for master to send event&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| 192.168.1.193&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| replicator &amp;nbsp;&lt;br /&gt;&lt;br /&gt;| 3306&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| 60&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| mysql-bin.000001&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| 106&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| mysqld-relay-bin.000002&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| 251&amp;nbsp;&lt;br /&gt;&lt;br /&gt;| mysql-bin.000001 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /
