tag:blogger.com,1999:blog-42172150923358102532024-03-13T15:34:02.435+05:30Shehan's blog Technology tips and tricks I never knew before mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.comBlogger28125tag:blogger.com,1999:blog-4217215092335810253.post-42798073356801068082014-04-13T20:24:00.001+05:302014-04-13T20:40:21.072+05:30Set up a Remote Desktop Connection to Windows Server 2012Configuring remote desktop connection to windows servers is tricky.In this tutorial I will describe how to do it with minimum steps<br />
<br />
<h4>
1)Allow RDP Connection</h4>
<br />
Goto "Control Panel\All Control Panel Items\System"<br />
then click "Remote Settings" and select "Allow remote connection to this computer" and apply it by clicking "ok" button.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBZxWwLzd_yf9PSCePWhkdQGTpqjeh5Bn5WZJJgUM28WdxuFiZOyNPo-Sk1_wFlHHILJiNFBgZ68jMGyP_HqZkQsxxa8iNV_bQXXdjgyvKQlE3IGiOyAZQfNJIaMx-txrBNc32EoZq18o/s1600/Windows+server+Remote+settings.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Windows server Remote settings" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBZxWwLzd_yf9PSCePWhkdQGTpqjeh5Bn5WZJJgUM28WdxuFiZOyNPo-Sk1_wFlHHILJiNFBgZ68jMGyP_HqZkQsxxa8iNV_bQXXdjgyvKQlE3IGiOyAZQfNJIaMx-txrBNc32EoZq18o/s1600/Windows+server+Remote+settings.PNG" title="Windows server Remote settings" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h4>
2) Turn On network discovery</h4>
<br />
go to "Control Panel\All Control Panel Items\Network and Sharing Center" and select <br />
"Change advanced sharing settings" and then select "Turn on network discovery"<br />
Sometimes this change will not affect if following services are not running.To make sure whether changes apply, again follow the above steps and check "Turn on network discovery" is selected or not. If it is not you have to start Network Discovery Supporting Services<br />
<br />
<b>Network Discovery Supporting Services</b><br />
<ul>
<li> DNS Client</li>
</ul>
<ul>
<li>Function Discovery Resource Publication</li>
</ul>
<ul>
<li>SSDP Discovery</li>
</ul>
<ul>
<li>UPnP Device Host</li>
</ul>
<br />
to Enable those services goto "Control Panel\All Control Panel Items\Administrative Tools"<br />
and open "Services" and start above 4 services .<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqcjDDpj4BffXoAasLY8dCx7wkc4d6RAet3HKbY1g7trhipuzgJMQeEh94O9_xzQrVWpEAjp8wWFToanqb1zYLqdbci_hcje0rQTVJp_75BqeB-gc2_G4vqZkJuWeo8yr_U54H37gjIhg/s1600/services+enable+01.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Windows server services" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqcjDDpj4BffXoAasLY8dCx7wkc4d6RAet3HKbY1g7trhipuzgJMQeEh94O9_xzQrVWpEAjp8wWFToanqb1zYLqdbci_hcje0rQTVJp_75BqeB-gc2_G4vqZkJuWeo8yr_U54H37gjIhg/s1600/services+enable+01.PNG" title="Windows server services" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPeEAtZt_NpKIYYxW34C0OKm5jqa5m_V-QNml1MWz_1w9wfhVf8s3mXzJ4e1w5z_wx44YBBsHu7NzZQn9lfj_X9sEfATyW2KO_BJmW4JiT0oKZg-8qVEDCDlHMxiuNkr9zQuXruGQYZ_Q/s1600/services+enable+02.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Windows server services" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPeEAtZt_NpKIYYxW34C0OKm5jqa5m_V-QNml1MWz_1w9wfhVf8s3mXzJ4e1w5z_wx44YBBsHu7NzZQn9lfj_X9sEfATyW2KO_BJmW4JiT0oKZg-8qVEDCDlHMxiuNkr9zQuXruGQYZ_Q/s1600/services+enable+02.PNG" title="Windows server services" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h4>
3) Configure Firewall</h4>
<br />
<br />
<br />
<br />
<br />
<ul>
<li> <b>If you can't ping server from remote host</b></li>
</ul>
<br />
<br />
open Firewall and select "Inbound Rules" and find "File and Printer sharing (Echo Request - ICMPv4-In)" and Enable that Rule<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFehjZDyT6lbCq9WilrmALCAuxgPVIyduhqr_IZYnpfSZhd6zoU0irVUToGiJXW23hWUaiM2S1jkfwqo6YjXmQWbOiC6Ifgy8iRJbX6MOB4BoYNmjL1CBLufl9WvYqVNt5yzl-e04OC9w/s1600/File+and+Printer+Sharing+-+ICMP+-+Windows+Firewall.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="File and Printer Sharing - ICMP - Windows Firewall" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFehjZDyT6lbCq9WilrmALCAuxgPVIyduhqr_IZYnpfSZhd6zoU0irVUToGiJXW23hWUaiM2S1jkfwqo6YjXmQWbOiC6Ifgy8iRJbX6MOB4BoYNmjL1CBLufl9WvYqVNt5yzl-e04OC9w/s1600/File+and+Printer+Sharing+-+ICMP+-+Windows+Firewall.PNG" height="48" title="File and Printer Sharing - ICMP - Windows Firewall" width="640" /></a></div>
<br />
<br />
<br />
<ul>
<li><b>Enable RDP port on Windows Server</b></li>
</ul>
<br />
<br />
Sometimes remote machine can ping to server but unable to establish "Remote Desktop connection", in that case RDP port should be enabled/opened on Windows Server. <br />
<br />
Right click "Inbound Rules" and select "New Rule" and Wizard window will be opened.<br />
you need to select or fill attributes in wizard windows as below.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx4EAO6LbMWmXDP3b2AfxJ5904Z9BkAtiBVqQJ-pj1qk9Wbi3A0SAREEBQnHHlER7zku8zsqO-hO90gxLBVvMSyYMoaH3fyo0hnRX7lHUy9HycwZDYjasn0KySEjpG8xjURYudtFipUWQ/s1600/Windows+server+Firewall+New+Inbound+Rule+Wizard.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Windows server Firewall New Inbound Rule Wizard" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx4EAO6LbMWmXDP3b2AfxJ5904Z9BkAtiBVqQJ-pj1qk9Wbi3A0SAREEBQnHHlER7zku8zsqO-hO90gxLBVvMSyYMoaH3fyo0hnRX7lHUy9HycwZDYjasn0KySEjpG8xjURYudtFipUWQ/s1600/Windows+server+Firewall+New+Inbound+Rule+Wizard.PNG" height="436" title="Windows server Firewall New Inbound Rule Wizard" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Rule Type</b> --> Port<br />
<b>Protocol and Ports</b> --> TCP , Specific local ports:3389<br />
<b>Action</b> --> Allow the connection<br />
<b>Profile</b> --> Tick all profiles or select as you wish (By default every ting is ticked)<br />
<b>Name</b> --> Give meaningful name like "<b>enable-port-3389-RDP</b>" <br />
<br />
Finally enable that rule as well<br />
<br />
<br />
<br />
<h4>
4 ) Start Remote Desktop connection</h4>
<br />
Now go to remote computer and start "Remote Desktop connection" as below screen capture.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIApEonyaBjdbkVRgEkDsBWobJrpzSLIxJD2Fw5Nqep1VaWdobcVSxpCPHQ0ZP8Ji_tG3bqL23v49UQqxx-ExHAlTCTdHAznRkTO1JVaHCKDBDydNjndpQvFRuzZ6FQXTiUjln3B4atd8/s1600/Remote+Desktop+connection.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Remote Desktop connection" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIApEonyaBjdbkVRgEkDsBWobJrpzSLIxJD2Fw5Nqep1VaWdobcVSxpCPHQ0ZP8Ji_tG3bqL23v49UQqxx-ExHAlTCTdHAznRkTO1JVaHCKDBDydNjndpQvFRuzZ6FQXTiUjln3B4atd8/s1600/Remote+Desktop+connection.PNG" height="320" title="Remote Desktop connection" width="280" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJOAlTa31fqVAsX55H15U6K-esqGrFZibE02CnRg3KubT4eLGJzbwSj4dpd7fAf-frKyE6C4Cqg_9TXfRaT4jr4rI7w_rv-G-ID3fWNMaKXO1H576anoHsMwxBCbQbukmgPP-vwCl5dFI/s1600/Remote+Desktop+connection+-+Certificate.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Remote Desktop connection - Certificate" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJOAlTa31fqVAsX55H15U6K-esqGrFZibE02CnRg3KubT4eLGJzbwSj4dpd7fAf-frKyE6C4Cqg_9TXfRaT4jr4rI7w_rv-G-ID3fWNMaKXO1H576anoHsMwxBCbQbukmgPP-vwCl5dFI/s1600/Remote+Desktop+connection+-+Certificate.PNG" height="319" title="Remote Desktop connection - Certificate" width="320" /></a></div>
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com10tag:blogger.com,1999:blog-4217215092335810253.post-59935032237507894722014-02-21T21:39:00.003+05:302014-02-21T21:49:42.888+05:30Change ScureCRT default terminal emulation type<br />
The <a href="http://www.vandyke.com/download/securecrt/" target="_blank">SecureCRT</a> default terminal "Delete" button does not function properly instead it works like backspace key. This is painful when need delete characters after current prompt.In this tutorial shows you how to overcome this problem by changing default terminal. The SecureCRT provides different types of terminals such as Xterm, Linux etc... <br />
<br />
<h4>
1) open SecureCRT </h4>
then choose Options -> Global Options.<br />
<br />
<h4>
2)Then following sub windows is appeared.</h4>
select "Default Session" and click "Edit Default Settings ..."<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhykd05WsMp_AKMmruDL_fjaj4hV8AT31eds-7Y5Q0aXWBoeMwS0Fiom9pFSErOngKYvzrGvQ1Ill2VzOzB_3boVha2glepxDnuDuVx8jIF1bslIg-Dq-eFWh4kZ8ou2PcXRXMSGblkSks/s1600/Capture-1.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhykd05WsMp_AKMmruDL_fjaj4hV8AT31eds-7Y5Q0aXWBoeMwS0Fiom9pFSErOngKYvzrGvQ1Ill2VzOzB_3boVha2glepxDnuDuVx8jIF1bslIg-Dq-eFWh4kZ8ou2PcXRXMSGblkSks/s1600/Capture-1.PNG" /></a></div>
<br />
<br />
<br />
<br />
<br />
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h4>
3) After that second sub window will be appeared as below.</h4>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhykd05WsMp_AKMmruDL_fjaj4hV8AT31eds-7Y5Q0aXWBoeMwS0Fiom9pFSErOngKYvzrGvQ1Ill2VzOzB_3boVha2glepxDnuDuVx8jIF1bslIg-Dq-eFWh4kZ8ou2PcXRXMSGblkSks/s1600/Capture-1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br /></a></div>
click on "Emulation" and choose "Xterm" from drop down. <br />
then click ok to apply the changes.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvPFjYZNEBg5Tup6IINSKQk3Ed6lSx5LA0pOgH7uii-0BgYMIMEAoqA8hurFY0YvxNOji4j1l1iJrIcbyK3gh41Ew5MxXAHgP13GA-rFNpuRYcKMqG4JsiCZU3UCO7gZPJlTbPPP1atcE/s1600/Capture-2.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvPFjYZNEBg5Tup6IINSKQk3Ed6lSx5LA0pOgH7uii-0BgYMIMEAoqA8hurFY0YvxNOji4j1l1iJrIcbyK3gh41Ew5MxXAHgP13GA-rFNpuRYcKMqG4JsiCZU3UCO7gZPJlTbPPP1atcE/s1600/Capture-2.PNG" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h4>
</h4>
<h4>
4)Now it is done. restart the SecureCRT and try ..!!</h4>
<h4>
</h4>
<h4>
</h4>
mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com10tag:blogger.com,1999:blog-4217215092335810253.post-63400645334947439992013-12-16T14:34:00.000+05:302013-12-16T18:20:53.816+05:30Install Packages via yum using CentOS Media repowhen need to install new packages using yum, you can use either online repo or dvd repo. If there is no internet connection, possible solution is DVD repo. Here is simple way to configure DVD repo on Centos.<br />
<br />
<h4>
1) View Centos media repo file.</h4>
Since I use Centos 6.3 it is similar to following.you can use either less or cat command to view the file content. Some lines are removed due to brevity<br />
<br />
less /etc/yum.repos.d/CentOS-Media.repo<br />
<b>[c6-media]<br />name=CentOS-$releasever - Media<br />baseurl=file:///media/CentOS/<br /> file:///media/cdrom/<br /> file:///media/cdrecorder/<br />gpgcheck=1<br />enabled=0<br />gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6</b><br />
<br />
give more attention to following parameters<br />
<b>repo name</b> -> c6-media<br />
<b>baseurl</b> -> there is 3 file paths, those are the mount point of Centos DVD. you can customize it. <br />
<br />
<br />
<br />
<br />
<h4>
2) Create mount point if not exist</h4>
since this is demo, I create DVD mount location as first base URL. possible use any location which is defined in <b>baseurl</b>.<br />
[root@localhost ~]# mkdir /media/CentOS<br />
<br />
<br />
<h4>
3) mount centos cdrom</h4>
mount /dev/cdrom /media/CentOS/<br />
<br />
<h4>
4)Install your package using yum</h4>
yum --disablerepo=\* --enablerepo=[repo name] install [pakage name]<br />
<br />
ex:-<br />
yum --disablerepo=\* --enablerepo=c6-media install cpan<br />
<br />
if this is not working, you may need to clean repo using following command<br />
[root@localhost ~]# yum clean allmbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com9tag:blogger.com,1999:blog-4217215092335810253.post-9709515416271040242013-12-11T22:24:00.001+05:302013-12-11T22:27:11.340+05:30Prevent SSH connection from freezingRecently I have experinced my ssh connection to remote server is hung after idle time. this is very annoying because ssh connection was established over vpn and take time to reconnect the session again. If your ssh connection hung/freeze time to time following solution may be helpful.<br /><br /><br />
<h4>
1) Open the ssh_config file.</h4>
<br />location may differ,in centos <br />vim /etc/ssh/ssh_config<br /><br />
<h4>
2) Add following lines</h4>
<br /><b>Host *<br /> ServerAliveInterval 300<br /> ServerAliveCountMax 2</b><br /><br /><br />Remember, this configuration is done at client side. client send keep alive message to server every 180 seconds and server send ack (acknowledgement) message.If 2 consecutive ack messages are lost from server side. connection will be dropped as server is not available. mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com2tag:blogger.com,1999:blog-4217215092335810253.post-84487012115680922552013-11-17T16:26:00.001+05:302013-12-07T08:09:18.816+05:30Installing vpnc - Linux VPN Client for Cisco VPN This tutorial, I will show you how to configure vpnc on Linux and connect Cisco devices through vpn using pcf file. The vpnc is an alternative Linux software for Cisco vpn client. <br />
all the things are done on centos 6.3 but steps should be same for any Linux system.<br />
<br />
<br />
<h4>
1) Installing EPEL repo</h4>
Since centos repo doesn't contain the vpnc, we need to configure additional repo call EPEL.<br />
It is straightforward installation and document can be found form here.<br />
<br />
<a href="http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F" target="_blank">http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F</a><br />
<br />
Please find "How can I install the packages from the EPEL software repository? " from content and install it. you may need to enable EPEL repo sometime.<br />
<br />
<h4>
2) Installing vpnc</h4>
once you enabled the rpmforge repo, type following command to install vpnc <br />
<b>[root@localhost ~]#yum install vpnc</b><br />
<br />
<h4>
3)Chang folder permission </h4>
I installed the vpnc as root.if you wish to run vpnc as normal user other than root .change file permission of vpnc installaion directory<br />
<b>/etc/vpnc/vpnc-script</b><br />
<br />
<h4>
4)Download pcf2vpnc</h4>
[root@localhost ~]#wget http://svn.unix-ag.uni-kl.de/vpnc/trunk/pcf2vpnc<br />
<br />
<h4>
5)Convert pcf file</h4>
<b>[root@localhost ~]#perl pcf2vpnc demopcf.pcf demovpnc.conf</b><br />
change ownership of *.conf file if you need<br />
<br />
<h4>
6)copy *.conf to /etc/vpnc/ </h4>
<b>[root@localhost ~]#cp demovpnc.conf /etc/vpnc/</b><br />
<br />
<h4>
7)Start vpnc </h4>
<b>[root@localhost ~]#vpnc demovpnc</b><br />
Enter password for user@A.B.C.D:<br />
(A.B.C.D is public ip address where you need to connect, user is username , you need to enter password )<br />
<br />
<h4>
8)disconnect vpnc</h4>
<b><b>[root@localhost ~]#</b>vpnc-disconnect</b><br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com5tag:blogger.com,1999:blog-4217215092335810253.post-50730872200693448822013-10-27T22:06:00.000+05:302013-11-10T09:32:10.925+05:30nagios snmptt configurationHi folks after long time !. Today I'm going to demonstrate how to configure SNMP trap inside Nagios using SNMPTT. This simulation is done at Virtualbox 4.1.26 using two guest OS ( one guest act as server and running Nagios and snmptt, other is to generate SNMP trap and it is the client) <br />
<br />
both guest are running Centos 6.3 32bit.<br />
<br />
Server info :- ip 192.168.56.103<br />
Client info :- 1p 192.168.56.104<br />
<br />
I hope you have installed and configured the Nagios, If not you can follow installation guide<br />
<a href="http://nagios.sourceforge.net/docs/nagioscore/4/en/quickstart-fedora.html">http://nagios.sourceforge.net/docs/nagioscore/4/en/quickstart-fedora.html</a><br />
<br />
-----<br />
<br />
So let's install snmptt. :)<br />
download and extract latest version of SNMPTT. you can find official installation document from here<br />
<a href="http://www.snmptt.org/docs/snmptt.shtml#Installation-Overview">http://www.snmptt.org/docs/snmptt.shtml#Installation-Overview</a><br />
<br />
For both server and client require net-snmp-lib , net-snmp-util so install them using using yum <br />
yum install net-snmp-lib<br />
yum install net-snmp-util<br />
<br />
<br />
<h3>
AT Server </h3>
<br />
<h4>
1)Install prerequirement such as net-snmp, perl ,perl modules </h4>
<br />
[root@nagios ~]# yum install net-snmp<br />
[root@nagios ~]# yum install perl<br />
<br />
install perl cpan<br />
[root@nagios ~]# yum install perl-CPAN<br />
<br />
launch the CPAN using following command<br />
[root@nagios ~]# perl -MCPAN -e shell<br />
<br />
install following perlmodules <br />
(Getopt::Long, Text::ParseWords ,SNMP, Config::IniFiles, Time::HiRes , Sys::Hostname , File::Basename, Text::Balanced )<br />
for an instance<br />
cpan[1]> install Text::ParseWords<br />
<br />
<br />
This demonstration is done with Standard handler – with standlone mode which is straightforward (remember there is daemon mode)<br />
<br />
<br />
<h4>
2) Copy snmptt to /usr/sbin/ and ensure it is executable (chmod +x snmptt)</h4>
[root@nagios snmptt_1.3]# cp s[root@nagios snmptt_1.3]# chmod +x /usr/sbin/snmptt nmptt /usr/sbin/<br />
<br />
<h4>
3) Copy snmptthandler to /usr/sbin/ and ensure it is executable (chmod +x snmptthandler)</h4>
[root@nagios snmptt_1.3]# cp snmptthandler /usr/sbin/<br />
[root@nagios snmptt_1.3]# chmod +x /usr/sbin/snmptthandler<br />
<br />
<h4>
4) Copy snmptt.ini to /etc/snmp/ or /etc/ and edit the options inside the file.</h4>
[root@nagios snmptt_1.3]# cp snmptt.ini /etc/snmp/<br />
<br />
<h4>
5) Create the log folder /var/log/snmptt/.</h4>
[root@nagios snmptt_1.3]# mkdir -p /var/log/snmptt/<br />
<br />
<br />
<h4>
6) For standlone mode: Modify the Net-SNMP snmptrapd.conf file by adding the following line:</h4>
[root@nagios ~]# vim /etc/snmp/snmptrapd.conf<br />
traphandle default /usr/sbin/snmptt<br />
disableAuthorization yes<br />
<br />
<h4>
7) Edit the /etc/logrotate.d/snmptt and update the paths and rotate frequency as needed.</h4>
[root@nagios snmptt_1.3]# cp snmptt.logrotate /etc/logrotate.d/snmptt<br />
<br />
<br />
<h4>
8) Start snmptrapd using the command line: snmptrapd -On.</h4>
[root@nagios snmptt_1.3]# snmptrapd –On<br />
<br />
--<br />
<br />
<h4>
9) Convert MIB file </h4>
<br />
Copy eventhandler <br />
[root@nagios ~]# cp /home/shehan/Downloads/nagios-4.0.1/contrib/eventhandlers/* /usr/local/nagios/libexec/eventhandlers<br />
<br />
copy snmpttconvertmib into /usr/sbin/ folder <br />
[root@nagios ~]# cp /home/shehan/Downloads/snmptt_1.3/snmpttconvertmib /usr/sbin/<br />
<br />
then issue below command <br />
[root@nagios ~]#snmpttconvertmib --in=/usr/share/snmp/mibs/SNMPv2-MIB.txt --out=/etc/snmp/snmptt.conf.SNMPv2-MIB \<br />
--exec='/usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP 1'<br />
<br />
<br />
<h4>
10) Edit /etc/snmp/snmptt.ini, and change below settings</h4>
[General]<br />
mode = standalone<br />
net_snmp_perl_enable = 1<br />
unknown_trap_log_enable = 1<br />
<br />
<b>At end of file you can find line similar to this Add /etc/snmp/snmptt.conf.NET-SNMP-EXAMPLES-MIB like below </b><br />
<br />
snmptt_conf_files = <<END<br />
/etc/snmp/snmptt.conf<br />
/etc/snmp/snmptt.conf.NET-SNMP-EXAMPLES-MIB<br />
END<br />
<br />
<br />
<h4>
11) create host cfg file </h4>
[root@nagios ~]# vim /usr/local/nagios/etc/objects/remote-host.cfg<br />
And add below (you may need to change ip host_name)<br />
<br />
<br />
define host {<br />
use linux-server<br />
host_name remote-host<br />
alias remote-host-alias<br />
address 192.168.56.104<br />
}<br />
<br />
define service{<br />
use generic-service<br />
name trap-service<br />
register 0<br />
service_description TRAP<br />
is_volatile 1<br />
check_command check-host-alive<br />
max_check_attempts 1<br />
normal_check_interval 1<br />
retry_check_interval 1<br />
notification_interval 31536000<br />
active_checks_enabled 0<br />
passive_checks_enabled 1<br />
check_period 24x7<br />
}<br />
<br />
define service{<br />
use trap-service<br />
host_name remote-host<br />
}<br />
<br />
<br />
<br />
<h4>
12) Add blow command to nagios.cfg</h4>
[root@nagios ~]# vim /usr/local/nagios/etc/nagios.cfg<br />
cfg_file=/usr/local/nagios/etc/objects/remote-host.cfg<br />
<br />
<br />
<h4>
13)allow snmp trap from firewall</h4>
[root@nagios ~]# iptables -I INPUT 1 -p udp --dport snmptrap -j ACCEPT<br />
<br />
confirm the changes and then save using below command<br />
[root@nagios ~]# iptabless –list<br />
[root@nagios ~]# service iptables save<br />
<br />
<h4>
14) start service at server</h4>
[root@nagios ~]# service snmptrapd start<br />
[root@nagios ~]# service snmpd start<br />
<br />
configure to start at boot<br />
[root@nagios ~]#chkconfig snmptrapd on<br />
[root@nagios ~]#chkconfig snmpd on<br />
<br />
<br />
<h3>
AT Client, </h3>
generate SNMP trap message, this is SNMP v2 message<br />
<br />
[root@localhost ~]# snmptrap -v 2c -c public 192.168.56.101 "" SNMPv2-MIB::coldStart coldStart s "start"<br />
<br />
<br />
<h3>
AT Server </h3>
<br />
check below log messages <br />
/var/log/messages<br />
/var/log/snmptt/snmptt.log <br />
And check nagios web interface.If everything works fine you can have similar output like below<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX0KObSWKn9kcd69yn1sjLshHl13mA-UFK0QmAMG3L-Twua0rltKDbu0RWxsv69csKgW5ILu8eHlKAyhSxgRVPc8SLnoSAs-jaFFQHOKcBzyd5QkkSsy5mLS5xRGdNTf1JyodNZgEKaD0/s1600/Capture.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="nagios and snmptt" border="0" height="103" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiX0KObSWKn9kcd69yn1sjLshHl13mA-UFK0QmAMG3L-Twua0rltKDbu0RWxsv69csKgW5ILu8eHlKAyhSxgRVPc8SLnoSAs-jaFFQHOKcBzyd5QkkSsy5mLS5xRGdNTf1JyodNZgEKaD0/s1600/Capture.PNG" title="nagios and snmptt" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
----<br />
<br />
<br />
Reference URLS<br />
<br />
<a href="http://xavier.dusart.free.fr/nagios/en/snmptraps.html">http://xavier.dusart.free.fr/nagios/en/snmptraps.html</a><br />
<a href="http://hummy.wikidot.com/how-to-send-and-receive-snmp-traps">http://hummy.wikidot.com/how-to-send-and-receive-snmp-traps</a><br />
<a href="http://socketubs.org/docs/sysadmin/snmp_traps_nagios.html">http://socketubs.org/docs/sysadmin/snmp_traps_nagios.html</a><br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com0tag:blogger.com,1999:blog-4217215092335810253.post-84737439971237137832013-05-22T08:39:00.000+05:302013-05-22T08:42:25.725+05:30sync log timestamp with system clock on cisco devicesBy default most of Cisco devices, log time stamp is not sync with system clock.<br />
I have experienced similar situation. refer to the below output, show clock and log time stamp is totally different<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAEQluWYvGvezmNEyFb0sPujJSvQa0qi0CYdwWfxcYmW03XXPwq8CxPoZXx1lyvFYGAJjyaLvBJuwbRYVTovCql_KQJG2KdWIc-whbkluES7pVAg7j_ZbbswwTIzvo9hat-K0gChHZzDc/s1600/1.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAEQluWYvGvezmNEyFb0sPujJSvQa0qi0CYdwWfxcYmW03XXPwq8CxPoZXx1lyvFYGAJjyaLvBJuwbRYVTovCql_KQJG2KdWIc-whbkluES7pVAg7j_ZbbswwTIzvo9hat-K0gChHZzDc/s1600/1.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAEQluWYvGvezmNEyFb0sPujJSvQa0qi0CYdwWfxcYmW03XXPwq8CxPoZXx1lyvFYGAJjyaLvBJuwbRYVTovCql_KQJG2KdWIc-whbkluES7pVAg7j_ZbbswwTIzvo9hat-K0gChHZzDc/s1600/1.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="show clock and log timestamp" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAEQluWYvGvezmNEyFb0sPujJSvQa0qi0CYdwWfxcYmW03XXPwq8CxPoZXx1lyvFYGAJjyaLvBJuwbRYVTovCql_KQJG2KdWIc-whbkluES7pVAg7j_ZbbswwTIzvo9hat-K0gChHZzDc/s1600/1.PNG" height="122" title="show clock and log timestamp" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
To solve this problem, need to set log timestamps to local time (system time).<br />
issue the below command<br />
<br />
<br />
<b>SW-2(config)#conf t<br />SW-2(config)#service timestamps log datetime localtime</b><br />
<b>SW-2(config)#exit</b><br />
<b><b>SW-2#</b>wr</b><br />
<br />
after that, the problem should be solved, below output prove that<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1Gxy_sf7omT9SpB7yRa97sNgfD4UGFJ38gSq3Dy6ThXGiT8WtfA_UMlc2gAx76NKYgVgp-MmRPSTFCfA-9LLf6y2nORsrn6Mw4Y2LyuUIsDCTiCcMDnXyp0xaCbKkzXpOpATeafl9jZs/s1600/2.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="service timestamps log datetime localtime" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1Gxy_sf7omT9SpB7yRa97sNgfD4UGFJ38gSq3Dy6ThXGiT8WtfA_UMlc2gAx76NKYgVgp-MmRPSTFCfA-9LLf6y2nORsrn6Mw4Y2LyuUIsDCTiCcMDnXyp0xaCbKkzXpOpATeafl9jZs/s1600/2.PNG" height="161" title="service timestamps log datetime localtime" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com0tag:blogger.com,1999:blog-4217215092335810253.post-10344386077094435752013-04-18T06:50:00.000+05:302013-04-19T08:24:12.238+05:30Virtualbox file sharing between guest and host OSHave you ever try to transfer files between VirtualBox guest OS and host OS ?<br />
unfortunately drag and drop file transferring/sharing is not yet implemented on virtaulbox.so we have to look for alternative method.This is what I have done.my both host and guest OS are windows , remember this is possible on Linux environment with different commands.<br />
<br />
<br />
<h4>
[1] Run the guest OS</h4>
<br />
open Virtualbox then select and run guest OS that you need to transfer file.Here I used Windows XP as my guest OS <br />
<br />
<br />
<h4>
[2] Install Guest Additions</h4>
<br />
On the VirtualBox menu click " Devices " --> " Install Guest Additions... " and follow the instruction, If you get warning similar to below Click " continue anyway" to continue the installation and finally reboot guest OS.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM65uJXAC9Ql9X-4iosEWxu8E6jsSs7P-Lz8Gzar7tUhMCx6K5xAN1405yTGFUGMpapdzE7WxMqbXGXAxkva8M3DvWQqxpMY6us9-WEslPF94Cq4ssQVxS2VqXKPfPMfB2-kLGWfZfvz8/s1600/virtualbox+guestadditions+Hardware+installation.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="virtualbox guestadditions Hardware installation" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM65uJXAC9Ql9X-4iosEWxu8E6jsSs7P-Lz8Gzar7tUhMCx6K5xAN1405yTGFUGMpapdzE7WxMqbXGXAxkva8M3DvWQqxpMY6us9-WEslPF94Cq4ssQVxS2VqXKPfPMfB2-kLGWfZfvz8/s1600/virtualbox+guestadditions+Hardware+installation.PNG" title="virtualbox guestadditions Hardware installation" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h4>
[3] Create shared folder</h4>
<br />
go Machine --> Settings... you will have Virtual machine setting windows<br />
then select " shared Folders " ,as below<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHMuP7RyJoFZl8zz79e9dUiihn878GL49qjB2z2kMXw6GGCYIZb_ciwkptG0tQJMHTXibknv7LAiqe9knay5PcOBLVpDWLaZl5dXOORX0j5utt9abPs-tVt9xojgKVgm0bUaV10uAo_YY/s1600/create+Shared+folder+virtualbox.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="create Shared folder virtualbox" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHMuP7RyJoFZl8zz79e9dUiihn878GL49qjB2z2kMXw6GGCYIZb_ciwkptG0tQJMHTXibknv7LAiqe9knay5PcOBLVpDWLaZl5dXOORX0j5utt9abPs-tVt9xojgKVgm0bUaV10uAo_YY/s1600/create+Shared+folder+virtualbox.PNG" title="create Shared folder virtualbox" /></a></div>
<br />
<br />
<br />
then click folder with "+" sign (right-hand corner ) to create shared folder on host OS as above screenshot.<br />
Then you will have window called "Add share" like below, Choose the Folder Path and give a Folder Name. <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-bNQDBcigrgzgpbQJPV-73nDM1syeRU-JlQWG9Uv2mpx079-rnHY2Ywxvnv6Iv-srLmqgDiCzbAIb_ZBFRvWVkhtDk8LizUxWHNYh83FZKeDfik3yMCR8RF8fr6EtaU5XcUYZBtTyGKQ/s1600/virtualbox+shared+folder.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="virtualbox shared folder" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-bNQDBcigrgzgpbQJPV-73nDM1syeRU-JlQWG9Uv2mpx079-rnHY2Ywxvnv6Iv-srLmqgDiCzbAIb_ZBFRvWVkhtDk8LizUxWHNYh83FZKeDfik3yMCR8RF8fr6EtaU5XcUYZBtTyGKQ/s1600/virtualbox+shared+folder.PNG" title="virtualbox shared folder" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h4>
[4]Transfer file to guest OS</h4>
<br />
Start the guest OS (I used windows XP as my guest OS) open " Run " and type the below command <br />
please note I used "<b>sharedfiles</b>" as folder Name. look at above screen shoot<br />
<br />
<b>\\vboxsvr\sharedfiles</b><br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIt_kasDcBorduUcH-_BbzaVMKGscmG__VFlv5xYGDzFGMiHqchlTXv-0cNDf7IxFDccrVtFwJi65PNSoBk99hm8eoWm3TAvP4iSqStGocxQ8F9o59PtZhI8I4RoMN3Am21nGNECUv-DQ/s1600/vboxsvr.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="vboxsvr" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIt_kasDcBorduUcH-_BbzaVMKGscmG__VFlv5xYGDzFGMiHqchlTXv-0cNDf7IxFDccrVtFwJi65PNSoBk99hm8eoWm3TAvP4iSqStGocxQ8F9o59PtZhI8I4RoMN3Am21nGNECUv-DQ/s1600/vboxsvr.PNG" title="vboxsvr" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
once you type click "OK" , then you can open shared folder of the host machine. <br />
If you reboot the guest OS this shared folder may not available therefore change shared folder setting as required<br />
<br />
Happy file sharing !mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com1tag:blogger.com,1999:blog-4217215092335810253.post-6406185132493075792013-03-31T12:28:00.002+05:302015-12-21T21:18:34.284+05:30emulate CISCO ASA 8.4 on GNS3 <br />
This tutorial is outdated. New tutorial can be found at <a href="http://www.tectut.com/2015/12/how-to-setup-cisco-asa-in-gns3/">http://www.tectut.com/2015/12/how-to-setup-cisco-asa-in-gns3/</a> . It is our new blog :-)<br />
<br />
Today, I would like to share how to setup ASA 8.4 Firewall on GNS3. <br />
<br />
<h4>
[1] Download asa image for GNS3</h4>
here is the link :- <a href="http://www.mediafire.com/download/c228c2sjdyrkwf3/ASA_842.7z" target="_blank">http://www.mediafire.com/download/c228c2sjdyrkwf3/ASA_842.7z </a><br />
This file contain with initrd, vmlinuz and asdm 6.4<br />
<br />
In any case above link is not working use below alternative link to download the file :- <br />
link 1 :- <a href="http://ge.tt/9RjhgNs/v/0?c">http://ge.tt/9RjhgNs/v/0?c</a> <br />
link 2 :- <a href="https://www.box.com/s/3fybjit5jsudhwyvqwz8">https://www.box.com/s/3fybjit5jsudhwyvqwz8</a><br />
<br />
<br />
<br />
<h4>
[2] Download & Install GNS3</h4>
<br />
You can download latest version from <br />
<a href="http://www.gns3.net/download/">http://www.gns3.net/download/</a><br />
or<br />
<a href="http://sourceforge.net/projects/gns-3/files/GNS3/">http://sourceforge.net/projects/gns-3/files/GNS3/</a><br />
<br />
<br />
<h4>
[3] Configure GNS3 for ASA</h4>
<br />
go to "Edit" --> "Preferences..."<br />
On "Preferences" window, select "Qemu" and then choose "ASA" from the tabs<br />
<br />
Fill the ASA setting & ASA Specific Settings as below . Screen capture is attached for your reference.<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA_dydEjt5D_Dc96XE5nkW_QP8IzhrXppav_SFz8WJ2zUqSv8QkCi870TWf3EAxULWIN3ZQg9o4TEE1_kP7McRCM2ujgcU4Z4nyGFVZqf-Jk2Og4my1ISl7RCcY6JEuUFbQd7aTHKkbHg/s1600/GNS3+Preferences.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="GNS3 Preferences" border="0" height="452" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA_dydEjt5D_Dc96XE5nkW_QP8IzhrXppav_SFz8WJ2zUqSv8QkCi870TWf3EAxULWIN3ZQg9o4TEE1_kP7McRCM2ujgcU4Z4nyGFVZqf-Jk2Og4my1ISl7RCcY6JEuUFbQd7aTHKkbHg/s1600/GNS3+Preferences.PNG" title="GNS3 Preferences" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>Qemu Options</b> & <b>Kernel cmd line </b>is important<b><br /></b><br />
<br />
<b>Identifier name :</b> ( you can give any name ) <br />
<b>RAM :</b> 1024MB ( at least 1024MB)<br />
<b>Qemu Options :</b> -vnc none -vga none -m 1024 -icount auto -hdachs 980,16,32<br />
<b>Kernel cmd line :</b> -append ide_generic.probe_mask=0x01 ide_core.chs=0.0:980,16,32 auto nousb console=ttyS0,9600 bigphysarea=65536<br />
<br />
Click " save " and then "OK" and exit form that window. <br />
drag and drop ASA firewall into work enviroment and run, It may take some time to boot please be patient !<br />
<br />
<br />
<h4>
[4] Configure activation keys</h4>
<br />
you can use one of below activation key <br />
<b>0x4a3ec071 0x0d86fbf6 0x7cb1bc48 0x8b48b8b0 0xf317c0b5 </b><br />
<b>0xb23bcf4a 0x1c713b4f 0x7d53bcbc 0xc4f8d09c 0x0e24c6b6</b><br />
<br />
for example :-<br />
<br />
ciscoasa#conf t<br />
ciscoasa(config)#activation-key 0x4a3ec071 0x0d86fbf6 0x7cb1bc48 0x8b48b8b0 0xf317c0b5 <br />
ciscoasa(config)#wr <br />
ciscoasa(config)#exit<br />
<br />
now it is done.mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com37tag:blogger.com,1999:blog-4217215092335810253.post-80350970931556702522013-03-08T10:17:00.004+05:302013-03-18T20:18:47.578+05:30sharing folders using nfs on rhel This tutorial guide you how to configure nfs share on rhel system.<br />
Below is the details of nfs Server and client, both running Redhat enterprise Linux 6.2 64-bit<br />
<br />
NFS Server :- host-name is server and ip address is 192.168.5.5/24<br />
NFS Client :- host-name is client and ip address is 192.168.5.3/24<br />
<br />
<h3>
NFS Server Configuration</h3>
<h4>
</h4>
<h4>
[1] Edit /etc/sysconfig/nfs</h4>
To allow nfs traffic , should need to uncomment following variable<b> LOCKD_TCPPORT ,LOCKD_UDPPORT, MOUNTD_PORT, STATD_PORT</b> on /etc/sysconfig/nfs as following<br />
<br />
<br />
<pre class="brush:plain"># TCP port rpc.lockd should listen on.
LOCKD_TCPPORT=32803
# UDP port rpc.lockd should listen on.
LOCKD_UDPPORT=32769
# Port rpc.mountd should listen on.
MOUNTD_PORT=892
# Port rpc.statd should listen on.
STATD_PORT=662
</pre>
<br />
<br />
<h4>
[2] Configure Firewall to allow nfs traffic . </h4>
<br />
TCP port 2049 for NFS.<br />
TCP and UDP port 111 (rpcbind/sunrpc).<br />
<br />
So let's edit the iptables file <br />
<b>[root@server ~]# vim /etc/sysconfig/iptables</b><br />
<br />
By default this file contain few rules . Find following rule <br />
<b>-A INPUT -j REJECT --reject-with icmp-host-prohibited</b><br />
and insert bellow rules before that line <br />
<br />
<pre class="brush:plain">-A INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 32803 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 32769 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 892 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 662 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 662 -j ACCEPT
</pre>
<br />
save and quit the iptabales file, then issue follwing command apply the new rules to system<br />
<b>[root@server ~]# service iptables restart</b><br />
<br />
you can verify it by using following command<br />
<b>[root@server ~]#iptables -L</b><br />
<br />
<br />
<h4>
[3] Create a direcory to share with client </h4>
<br />
my share folder is /svrfile and i have assigned <br />
rwx (read write execute) permission for ugo (user group others).<br />
<b>[root@server ~]# mkdir /svrfile</b><br />
<b>[root@server ~]# chmod 777 /svrfile</b><br />
<br />
<h4>
[4] Edit exports file </h4>
<b>[root@server ~]# vim /etc/exports </b><br />
and insert following line <br />
<br />
<pre class="brush:plain">/svrfile 192.168.5.3(rw,sync,no_root_squash)
</pre>
<br />
192.168.5.3 is nfs client where i'm going share /svrfile . you can specify client host as 192.168.5.3/24 <br />
however /24 is default for class C network. If you wish to share with any host you can use '*' (without qutoes) instead of ipaddress. <br />
Several parameters are available.I used rw,sync and no_root_squash . here is brief explanation.<br />
<br />
<b><span style="color: red;">rw</span></b> :-<b> </b>enable read write <br />
<b><span style="color: red;">sync</span></b> :- Syncs write operations on request. Active by default<br />
<b><span style="color: red;">no_root_squash</span></b> :- Treat remote root user as local root; remote root users get root privileges <br />
on the shared directory<br />
<br />
<h4>
[5] restart rpcbind and nfs </h4>
By default RHEL system is installed this services , If it is not you should have <br />
to install .<br />
<br />
<pre class="brush:plain">[root@server ~]# service rpcbind restart
Stopping rpcbind: [ OK ]
Starting rpcbind: [ OK ]
[root@server ~]#
[root@server ~]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
[root@server ~]#
</pre>
<br />
<br />
<br />
<h4>
[6] refresh the export file </h4>
<br />
<b>[root@server ~]# exportfs -r</b><br />
if it is successful , no message will be displayed<br />
please remember to refresh export file by issuing above command, If you are done any modification to export file. <br />
<br />
further you can verify export file using following commands <br />
<br />
<pre class="brush:plain">[root@server ~]# exportfs -rv
exporting 192.168.5.3:/svrfile
[root@server ~]#
[root@server ~]# showmount -e
Export list for server:
/svrfile 192.168.5.3
[root@server ~]#
</pre>
<br />
<br />
<br />
<br />
<h3>
NFS Client configuration</h3>
<br />
<h4>
[7] enable services and create folder on client </h4>
we are done with NFS server configuration , so lets configure client, first of all create directory to share with server and then restart rpcbind and nfs services.<br />
<br />
<pre class="brush:plain">[root@client ~]# mkdir /clientfile
[root@client ~]# service rpcbind restart
[root@client ~]# service nfs restart
</pre>
<br />
<h4>
[8] Finally let's mount the nfs </h4>
<pre class="brush:plain">[root@client ~]#mount -t nfs 192.168.5.3:/svrfile /clientfile
</pre>
<br />
<br />
That's all , Don't hesitate to comment if you have question . have a nice day !<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com1tag:blogger.com,1999:blog-4217215092335810253.post-64215514586411798072013-03-03T14:51:00.001+05:302013-03-03T15:02:48.767+05:30How to fix Google webmaster duplicate meta descriptions in blogspot<br />
Google web master tool provides collection of tools for analyze the web/blog. Among those tools,<b> HTML Improvements</b> reports HTML errors on web/blog and provides suggestions to overcome those errors.<br />
If you are new to Google webmaster, please look at <b>Optimization</b> --> <b>HTML Improvements</b>.<br />
Most common error web masters are facing is duplicate meta description.<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdM-JtXNm0MRxGT5o5iUKWJuy-vQmlA5vvogQuYQisxEFR2EPnTzjXbJJoteiHsmQGUwTDETkw3ebjDdrMCBxZ101IRbjSUcrjYlkQmOTne55MieDJjYHPo615gxWv482CrOP82inIpiE/s1600/17+01+2013+-+html+improvements.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="google webmaster tools duplicate meta descriptions" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdM-JtXNm0MRxGT5o5iUKWJuy-vQmlA5vvogQuYQisxEFR2EPnTzjXbJJoteiHsmQGUwTDETkw3ebjDdrMCBxZ101IRbjSUcrjYlkQmOTne55MieDJjYHPo615gxWv482CrOP82inIpiE/s1600/17+01+2013+-+html+improvements.PNG" height="114" title="google webmaster tools duplicate meta descriptions" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Most probably reason for that is, you have inserted same description meta tag on each and every page of the web/blog.Solution for blogspot blogs are really simple,<b> <a href="http://www.tectute.com/2013/02/adding-meta-description-to-blogger.html">you can find solution from here</a> </b>including blogger meta description best practices . <b> </b><br />
<br />
If you are non-blogspot web master, please check your individual web page meta description , <br />
and make sure to remove duplicate meta description tag if it is there and create page specific<br />
description that reflect your page content as description meta tag. <br />
<br />
<br />
---<br />
<br />
After 1 and 1/2 month time<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGOudKhDB-imjsuGq9iHzP33Uvvc3b5Hzp8hm1-VyzjI2Fb-nNEOMFgh5M_BbtQpEBv9oWgXYtm30v10ihGoANUqVlH3NUsbQmnwzVOP3X6PV3gONIzhGD_qM7OrUTtqCmHgtzq9V8KnA/s1600/28+02+2013.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGOudKhDB-imjsuGq9iHzP33Uvvc3b5Hzp8hm1-VyzjI2Fb-nNEOMFgh5M_BbtQpEBv9oWgXYtm30v10ihGoANUqVlH3NUsbQmnwzVOP3X6PV3gONIzhGD_qM7OrUTtqCmHgtzq9V8KnA/s1600/28+02+2013.PNG" height="61" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com4tag:blogger.com,1999:blog-4217215092335810253.post-18763504430178301482013-02-21T17:54:00.003+05:302013-03-11T22:29:04.475+05:30blogger meta description best practicesWhen creating a brand new blog, it's really important to insert meta tags on the bloggspot site such as title, keywords, description, robots ... etc.The major search engine such as google is intelligent enough to create relevant keywords for the blog/site by crawling the page. so what is the point of adding keyword meta tag to site ?? It is not really important perspective to Google. however other search engine may be use keyword meta tag, so do not forget to add keyword meta tag. <br />
<br />
The description meta tag plays major role on Google page ranking. don't forget Google own more than 60% percent of search engine traffic.Traditionally we are used to adding meta tag to blogger site similar to below by editing the html code of the blog. <br />
<br />
<meta content='your site Title is here' name='title'/><br />
<meta content='your site keyword is here' name='keyword'/><br />
<br />
But what happen if you do the same for description tag ?? If you do that, every page of your blog has same description and search engine refuse to index those page by considering they have same content.so I'm going to discuss best practices of creating meta description to your blog. <br />
<br />
<br />
<h3>
* Adding Global meta description</h3>
<br />
<h4>
<br /></h4>
<h4>
1) Write a blog/web description</h4>
Take your time and create best description that is suitable to your site. it should be clear and concise with characters of 80 - 100.<br />
<br />
<h4>
2) Login to blogger site</h4>
so let's take advantage of blogger inbuilt tool of putting meta description.<br />
go to <b>Setting </b>--> <b>Search preference</b> --> edit <b>Description</b> and save. Use blow screen capture for your reference<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieTggRSfBbSOwIdcZ97G0CCYzB5pv1E894nMIP9HiOl8EtcjMGipyFnrZSux8RLPaHCKtXfW4PQ8OOZlSMhtjist2a6zL4jgeV6s2s8t7QzBFtyeS19JD2J8lN0vGB8LPPmr3ozLxmcDc/s1600/blog+description.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Adding global meta Description to Blogger" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieTggRSfBbSOwIdcZ97G0CCYzB5pv1E894nMIP9HiOl8EtcjMGipyFnrZSux8RLPaHCKtXfW4PQ8OOZlSMhtjist2a6zL4jgeV6s2s8t7QzBFtyeS19JD2J8lN0vGB8LPPmr3ozLxmcDc/s1600/blog+description.PNG" title="Adding global meta Description to Blogger" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h3>
* Adding meta description for each post</h3>
<br />
<br />
3) So now you have successfully added global description to your blog. next thing is, put a description to each blog post.It's so simple. go to <b>Post</b> --> click "<b>edit</b>" which post you want to add description<br />
find "<b>Search Description</b>" field from left hand side panel, insert you page description, now you are done.<br />
<br />
<br />
<br />
<br />
<div style="text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrAzSYD17iCfItb-yhRJx9WCPmVLD-sO9nJLWSKeEFhOQKnC7Q8oKVP3aF-NxS2mCWIO-o8qwli9Kjk9hYcT2QklLtfn3yXjRlJAptjQePhjFMqL2OXaOw-4kKL53KhaMABobvcfe1I64/s1600/post+description.PNG" imageanchor="1" style="clear: left; margin-bottom: 1em;"><img alt="individual description to each blog post" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrAzSYD17iCfItb-yhRJx9WCPmVLD-sO9nJLWSKeEFhOQKnC7Q8oKVP3aF-NxS2mCWIO-o8qwli9Kjk9hYcT2QklLtfn3yXjRlJAptjQePhjFMqL2OXaOw-4kKL53KhaMABobvcfe1I64/s1600/post+description.PNG" title="individual description to each blog post" /></a></div>
<br />
<br />
<br />
<b></b>
<br />
<br />
<b>Tip:-</b> your page description should be the summary of the post. Remeber to add as much as keyword when you writing that summary ( to find relevant keywords use Google Adwords tool)<br />
you can verify each meta tags including description meta tag using below tool. <br />
<a href="http://www.submitexpress.com/analyzer/" target="_blank">http://www.submitexpress.com/analyzer/ </a><br />
<br />
<br />
4) happy blogging :) <br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com6tag:blogger.com,1999:blog-4217215092335810253.post-76201784010324361832013-02-06T21:20:00.000+05:302013-03-11T22:36:14.759+05:30Fixed Missing eth0 after creating a clone vm on linux kvmRecently I have created a cloned virtual machine using redhat linux kvm, once the system is booted up <br />
virtual machine was unable to connect to system eth0 instead it's connected to Auto eth0 interface as below,<br />
after doing some google search and reading some forums I have found a reason for this error.<br />
this is due to cloned VM is using original VM mac address. in this tutorial I'm going to <br />
show you how i solved that problem<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihQ5iYECFPaVgGdbrXEk-6sdqUT7big0OB9N3QvS9GvAATVTeRW77JpdZVaHANvN7G3QxneFL4pW27cdZlXS0_mnDNuQ88oNYlz6E8Uvx4d0jA7iP_POCAEJBEFQqLmjbPrCtvbtvN6XE/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Auto eth0 on kvm cloned virtual machine" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihQ5iYECFPaVgGdbrXEk-6sdqUT7big0OB9N3QvS9GvAATVTeRW77JpdZVaHANvN7G3QxneFL4pW27cdZlXS0_mnDNuQ88oNYlz6E8Uvx4d0jA7iP_POCAEJBEFQqLmjbPrCtvbtvN6XE/s1600/1.png" title="Auto eth0 on kvm cloned virtual machine" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h4>
1) Edit ifcfg-eth0</h4>
go to /etc/sysconfig/network-scropts/ifcfg-eth0<br />
and remove or comment the HWADDR line as following<br />
<br />
<br />
<br />
<div style="text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5e8ydLv35QyXi8Fx4uDLosKf2wTPhiTNFMyfPzy99YJ6ef0HzYL6Wyrdl4o2OgPWphaBmeBL_oIcSOaQcVL5g0WNC5ZgtNMT0mjbtQG3MYE0-16-qGR7frZ0LnjaT9DXvIEw8LJVRfdE/s1600/2.png" imageanchor="1" style="clear: left; margin-bottom: 1em;"><img alt="ifcfg-eth0" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5e8ydLv35QyXi8Fx4uDLosKf2wTPhiTNFMyfPzy99YJ6ef0HzYL6Wyrdl4o2OgPWphaBmeBL_oIcSOaQcVL5g0WNC5ZgtNMT0mjbtQG3MYE0-16-qGR7frZ0LnjaT9DXvIEw8LJVRfdE/s1600/2.png" title="ifcfg-eth0" /></a></div>
<br />
<br />
<br />
if you want check newly cloned vm NIC mac address pls follow this steps<br />
select guest os click <b>edit</b> --> <b>virtual machine details</b> --> <b>show virtual hardware detils</b> --><br />
select <b>NIC </b>--> view the mac adds.<br />
<br />
<br />
<h4>
2) Remove 70-persistent-net.rules</h4>
command is #<b>rm /etc/udev/rules.d/70-persistent-net.rules </b><br />
you may have different name for persistent-net file<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidIRhG2DhoooscxBuT1n7R2sn8qBL9pPXici-wH9g9eD7N9pz_lqybyxPHQvhKqTy58Dtb7AwS05QdOAibuHNlRjy9xye13f48x1vfSEHYKlmzkvQL-naGKQn4EKtHC2nAs6FBrLHoTuk/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="persistent-net.rules " border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidIRhG2DhoooscxBuT1n7R2sn8qBL9pPXici-wH9g9eD7N9pz_lqybyxPHQvhKqTy58Dtb7AwS05QdOAibuHNlRjy9xye13f48x1vfSEHYKlmzkvQL-naGKQn4EKtHC2nAs6FBrLHoTuk/s1600/3.png" title="persistent-net.rules " /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h4>
3)Reboot the system</h4>
now system eth0 should be available also there should be new persistent-net.rules file with actual NIC mac address of cloned vm.<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com0tag:blogger.com,1999:blog-4217215092335810253.post-5437269423475363692013-02-02T10:21:00.000+05:302013-02-02T10:23:54.953+05:30How to fix audio video out of sync after conversion Sometimes when you are converting video from one format to another, you may be experienced audio video out of syn after conversion.In this tutorial I'm going to show you how to fix it. <br />
<br />
<br />
<br />
<br />
1) Download the Any video convertor.<a href="http://www.any-video-converter.com/products/for_video_free/" target="_blank"> http://www.any-video-converter.com/products/for_video_free/ </a> <br />
.It is totally free. There is ultimate version of that software, but free version is enough for this.<br />
<br />
<br />
2)After installing Any video convertor and select the video file you need to be converted.<br />
please not that, I was tested with flv into mp4 conversion and output mp4 video has similar audio/video syn quality like the original one. I didn't have oppurtunity to test with other video formats but I'm pretty sure, <br />
this method should work for any video format if it is supported by this converting software.<br />
<br />
<br />
3)Now go to <b>edit</b> --> <b>options..</b> --> select <b>video</b> tab --> increase Audio/Video Sync factor ( <b>Default sync factor:</b> ) to about 40 as the following image<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAIHum-Pfba9xEZvoUQy8CXf0FON8GjreQW9JXd-xjpFIOvdUEvlN5S2-GMWjOlfI3yUQ8qAgwNIIirrMegSIlKW7tiHGQFJsA4apHbcY_opIEswArIC4DFarTdR7C6WFwvB-mhQj3ovg/s1600/solution+for+Audio+video+outof+Sync+issue.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="solution for Audio video outof Sync issue from any video convertor " border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAIHum-Pfba9xEZvoUQy8CXf0FON8GjreQW9JXd-xjpFIOvdUEvlN5S2-GMWjOlfI3yUQ8qAgwNIIirrMegSIlKW7tiHGQFJsA4apHbcY_opIEswArIC4DFarTdR7C6WFwvB-mhQj3ovg/s1600/solution+for+Audio+video+outof+Sync+issue.PNG" title="solution for Audio video out of Sync issue from any video convertor " /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
4) by increasing Audio/Video Sync factor to higher value you can have better quality output but remember that takes time to complete the conversion.<br />
<br />
<br />
5) hmm.. that's all , don't forget to put your comment/feedback here :) .<br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com0tag:blogger.com,1999:blog-4217215092335810253.post-15612397160136909132013-01-25T22:41:00.002+05:302013-03-13T20:07:45.149+05:30 virtualbox seamless mouse pointer integration and install guest additionsWhile running the Redhat linux on Virtual box, every time when I want to leave from <br />
guest OS to host system I need to press "Ctrl" key (my Host key is Ctrl) .This is because seamless mouse pointer integration is not enable. This is painful and takes time to jump between guest OS and host system. After reading some forums post and web articles I have come across with a solution.In this method there will be one mouse pointer and pressing the Host key is no longer required to "free" the mouse from being captured by the guest OS and vice-versa. Following steps guide how to enable seamless mouse support on linux based guest system.<br />
<br />
<br />
<h4>
[1] install gcc and kernel-devel</h4>
install the GNU C compiler and the kernel development packages using<br />
<br />
<b>#yum install gcc</b><br />
<br />
followed by<br />
<br />
<b>#yum install kernel-devel</b><br />
<br />
<br />
<h4>
[2] Reboot guest system </h4>
Reboot your guest system in order to activate the updates.<br />
<br />
<h4>
[3]Install Guest Additions</h4>
Click "Devices" --> "Install Guest Additions"<br />
<br />
<br />
<br />
<br />
<div style="text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEiF2EjB2vppfyirIMVqYXtWIW0TuskOmtDpCF1GGFI2xNrgpxmq2aSAhMDx5FxxllfhELlaB2ayrlkZMJQthoJNC6-sXvdaXconsbwH7ZJDyyYM1nIfFbeqrfblncr5dWlQUqiN2XcFE/s1600/01.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="install guest additions" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEiF2EjB2vppfyirIMVqYXtWIW0TuskOmtDpCF1GGFI2xNrgpxmq2aSAhMDx5FxxllfhELlaB2ayrlkZMJQthoJNC6-sXvdaXconsbwH7ZJDyyYM1nIfFbeqrfblncr5dWlQUqiN2XcFE/s1600/01.PNG" title="install guest additions" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b><br /></b>
<b>[4] Follow the installation wizard</b><br />
you will get window similar to below and click "OK" , you may need provide authentication<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS891v2hMAL36hyLBgiPVGVbGudQJvaj_5MpeCVc07kU1Wkcf7VqSxiizOso7Q6fTmL3JeEXu5J_sPzsEMSF8wx4-5RNgDCwJu_nMFnKTeoKLE03PerDUGcXKanpcBSl-lmNycUFM93Mk/s1600/n-02.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="VBOXADDITIONS" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS891v2hMAL36hyLBgiPVGVbGudQJvaj_5MpeCVc07kU1Wkcf7VqSxiizOso7Q6fTmL3JeEXu5J_sPzsEMSF8wx4-5RNgDCwJu_nMFnKTeoKLE03PerDUGcXKanpcBSl-lmNycUFM93Mk/s1600/n-02.PNG" title="VBOXADDITIONS" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
[5] It will be prompted with terminal window similar to following, Press Return and <complete id="goog_1305010988"></complete>close that window... that's all , Now seamless mouse integration should be enabled . have a nice day!<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ZQoftr7-xP7p0ern_8DsmOAp5XN-ft1UhqZCRy74NVZXzRrbzHO-T1PzhXK5hTkuz9cntic7kz9JM4tuH6h1_33Lv2oLzPiwHMhOCpOpwzE89DCM5miUT-0lSev-iAPS29hPaS8XFvo/s1600/03.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="virtualbox guest additions installation" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ZQoftr7-xP7p0ern_8DsmOAp5XN-ft1UhqZCRy74NVZXzRrbzHO-T1PzhXK5hTkuz9cntic7kz9JM4tuH6h1_33Lv2oLzPiwHMhOCpOpwzE89DCM5miUT-0lSev-iAPS29hPaS8XFvo/s1600/03.PNG" height="409" title="virtualbox guest additions installation" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com0tag:blogger.com,1999:blog-4217215092335810253.post-53485896805902695702013-01-22T07:15:00.003+05:302013-03-25T08:14:12.592+05:30Adding categories and sub categories to blogspot At the moment of writing this tutorial, there is no way to add sub categories to blogspot,
may be in future blogger will add this feature . To implement this
feature needs to edit HTML code of your template<br />
<br />
<h4>
[1] Take backup of your
blog. </h4>
<br />
Click " Settings ---> Other --> Export blog " , and download the backup of your blog post , you can even can take template backup also.<br />
<br />
<br />
<h4>
[2] Edit HTML code of your blog</h4>
<br />
Click " Template" --> "Edit HTML" , and you will get HTML code of template .<br />
find a line similar to the following, it should be within first 10 -15 lines of code.<br />
<b><b:skin><![CDATA[/* </b><br />
<br />
then add the following code before to above line.<br />
<b><script src='http://blogcat.site40.net/dtree.js' type='text/javascript'/> </b><br />
<br />
final output should be similar to following<br />
<b><script src='http://blogcat.site40.net/dtree.js' type='text/javascript'/> <br /><b:skin><![CDATA[/*</b><br />
<br />
<br />
<h4>
[3] Adding JavaScript for Subcategories</h4>
go to "Layout" click " add a Gadget " then choose " HTML/JavaScript
" gadget and paste the following code and save the template.<br />
<br />
//start<br />
<br />
<br />
<style type="text/css"><br />
<br />
.dtree {<br />
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;<br />
font-size: 15px;<br />
width:480px;<br />
color: #000;<br />
white-space: nowrap;<br />
}<br />
.dtree img {<br />
border: 0px;<br />
vertical-align: middle;<br />
}<br />
.dtree a {<br />
color: #333;<br />
text-decoration: none;<br />
}<br />
.dtree a.node, .dtree a.nodeSel {<br />
white-space: nowrap;<br />
padding: 1px 2px 1px 2px;<br />
}<br />
.dtree a.node:hover, .dtree a.nodeSel:hover {<br />
color: #333;<br />
text-decoration: underline;<br />
}<br />
.dtree a.nodeSel {<br />
background-color: #c0d2ec;<br />
}<br />
.dtree .clip {<br />
overflow: hidden;<br />
}<br />
<br />
</style><br />
<div class="dtree"><br />
<br />
<br />
<script type="text/javascript"><br />
<!--<br />
<br />
d = new dTree('d');<br />
<br />
d.add(0,-1,'Blog Categories'); //<br />
d.add(1,0,' '); // <br />
d.add(100,1,' ','',''); //<br />
document.write(d);<br />
//--><br />
</script><br />
</div><br />
<br />
//end <br />
<br />
<br />
Now, it is done !<br />
<br />
<b>d.add(0,-1,'Blog Categories'); </b><br />
<b>d.add(1,0,' '); </b><br />
<b>d.add(100,1,' ','',''); </b><br />
<br />
please make sure to edit(fill the parameters) above highlighted lines of code according to<b> </b>your blog<b>, </b>otherwise this will not work<b>. </b>Please refer following code explanation. <br />
<b> </b><br />
<h4>
JavaScript Code explanation </h4>
<br />
bellow is example code I'm using on my blog. now I'm going to explain the code. all my explanation are <b><i>bold italic</i></b><br />
<br />
<i><b>all the categories are staring from 1 and topics are staring from 100</b> </i><br />
/*category index 0-99<br />
0 - Blog categories<br />
1 - OpenCV<br />
2 - Linux<br />
3 - Networking stuff<br />
<br />
topics start 100..<br />
*/<br />
<br />
<i><b>explanation for d.add() functions and it's parameters</b></i><br />
<i><b>d.add( <span style="color: blue;">index</span> <span style="color: blue;">, parent index , topic , topic URL , brief description of the topic</span> ) .this is very simple explanation. you can learn more about from this link </b></i><a href="http://www.destroydrop.com/javascripts/tree/api/" target="_blank">http://www.destroydrop.com/javascripts/tree/api/</a><i><b><br /></b></i><br />
<br />
d.add(0,-1,'Blog Categories');<br />
d.add(1,0,'OpenCV'); //OpenCV category<br />
d.add(100,1,'OpenCV
installation','http://techtute.blogspot.com/2011/01/opencv-22-installation-on-visual-studio.html','opencv
2.2 installation on visual studio 2008');<br />
<br />
d.add(101,1,'Negative
Images','http://techtute.blogspot.com/2011/06/negative-background-images.html','negative
background images');<br />
<br />
d.add(102,1,'Positive
Images','http://techtute.blogspot.com/2011/06/haartraining-positive-samples.html','haartraining
positive samples');<br />
<br />
d.add(103,1,'opencv haartraining','http://techtute.blogspot.com/2011/06/opencv-haartraining.html','opencv haartraining steps');<br />
<br />
<br />
<br />
<br />
If you have followed above steps correctly, you will get an output similar to the following :) .<br />
You can find live demonstration top right hand under name as " categories " <br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr0qjjXdlrYvPKkVWt0kDRG5A__yU5fYy3rKw4O2i7zwQ33TESgFNkCX7BAPVBSlTg8gCWp9onu5hISthQoKZqI5CfVDDzl6gcsmX4waS9use9nhZpZ2kHvF3FCxusAD5klS-gnWBJPOg/s1600/blogger+blogspot+sub+categories.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Adding sub categories to blogspot" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr0qjjXdlrYvPKkVWt0kDRG5A__yU5fYy3rKw4O2i7zwQ33TESgFNkCX7BAPVBSlTg8gCWp9onu5hISthQoKZqI5CfVDDzl6gcsmX4waS9use9nhZpZ2kHvF3FCxusAD5klS-gnWBJPOg/s1600/blogger+blogspot+sub+categories.PNG" title="Adding sub categories to blogspot" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com14tag:blogger.com,1999:blog-4217215092335810253.post-27263067065494472602013-01-21T20:29:00.001+05:302013-01-28T17:26:59.384+05:30set post title before blog title in blogger for better SEO Default blogspot template title structure is " Blog Title | Post
Title ". Appearing blog title before the post title will cause to get low clicks to your content through search engine, because post title provide summary of post/article content not the blog title. So let's change this default behavior .<br />
<br />
click on the " Template " --> " Edit HTML " --> " Proceed " . <br />
find following line of code<br />
<br />
<b><title><data:blog.pageTitle/></title> </b><br />
<br />
and replace the above line with following code<br />
<br />
<b><b:if cond='data:blog.pageType == &quot;item&quot;'></b><br />
<b><title><data:blog.pageName/> |</b><br />
<b><data:blog.title/></title></b><br />
<b><b:else/></b><br />
<b><title><data:blog.pageTitle/></title></b><br />
<b></b:if></b><br />
<br />
save the template, Now blogspot template title structure should be changed into " <b>Post
Title | Blog Title</b> " . please note this takes some times to change on search engine, later you can verify it, from following Google query.<br />
<b>site: yourblog.blogspot.com </b><br />
below is example output of , site:techtute.blogspot.com<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiJLeMdf4ktQ4ayLB5NpuJjVqQI-d2VGPWX4ApwRW53RTSQUVQDqxwjTCRtsqd74ExDYjGwse8rOxxcLIlhyphenhyphenQNlfUGSkv25dIIPl10uO4txKLggu5rkL6CEcZ2o1TYhXswQTYNHXQcJY4/s1600/post+title+before+blog+title+in+blogger.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="post title before blog title in blogger" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiJLeMdf4ktQ4ayLB5NpuJjVqQI-d2VGPWX4ApwRW53RTSQUVQDqxwjTCRtsqd74ExDYjGwse8rOxxcLIlhyphenhyphenQNlfUGSkv25dIIPl10uO4txKLggu5rkL6CEcZ2o1TYhXswQTYNHXQcJY4/s1600/post+title+before+blog+title+in+blogger.PNG" title="post title before blog title in blogger" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com7tag:blogger.com,1999:blog-4217215092335810253.post-28173430925720293752013-01-06T06:49:00.003+05:302013-03-13T20:05:55.844+05:30[SOLVED] the action can't be completed because the file is open in windows explorer mkv fileThere was movie on my hard disk which has mkv format and When I'm going to delete that mkv file, it is prompted with following error message.<br />
" <b>the action can't be completed because the file is open in windows explorer</b> "<br />
<br />
<br />
<div style="text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdaUrKqIG1IWnR6XVysJfrxzAyv1_KgC17_6YeGoG2QcR5CIZxngyrO-zDJknHC337jICuru6LAc-j0kSgn4ZCJ045JAexSLeIF4qtbJilMAL9ppSn2ZT66uBTB94t7YVbVfB9siW2qLI/s1600/Capture.PNG" imageanchor="1" style="clear: left; margin-bottom: 1em;"><img alt="the action can't be completed because the file is open in windows explorer" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdaUrKqIG1IWnR6XVysJfrxzAyv1_KgC17_6YeGoG2QcR5CIZxngyrO-zDJknHC337jICuru6LAc-j0kSgn4ZCJ045JAexSLeIF4qtbJilMAL9ppSn2ZT66uBTB94t7YVbVfB9siW2qLI/s1600/Capture.PNG" title="the action can't be completed because the file is open in windows explorer" /></a></div>
<br />
<br />
<br />
<br />
and it doesn't allow me to delete it at all. I restarted my computer and try to delete it but same error no luck. Finally I have found a solution , it was very simple than I thought . This is what I have done<br />
<br />
<h4>
[1] open command promt</h4>
for windows 7 , click start and type cmd<br />
<br />
<h4>
[2] Change the directory where delete file is located </h4>
in my case, file is at Desktop and I used following command to change the directory <br />
<b>cd c:\Users\Admin\Desktop</b><br />
<br />
Now try to delete file using command line , issue following command<br />
<b>del "file name"</b><br />
<br />
but you will get an error message similar to following for sure :) don't worry !!<br />
"<b> The process cannot access the file because it is being used by another process.</b> "<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitVVIzkRWo7KQBh_yqVtzEgVRAoJqUDvbVWqJtP1XZR4hEP32eaWWTdsMIWDcHeDgbto7Wa1Qhga6o9L-jffPhcrCuic71e16_f0SQGJQZYyWmmhHoKVW6xhyphenhyphenidZt39LszPBtw5DtDL2k/s1600/final.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="The process cannot access the file because it is being used by another process" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitVVIzkRWo7KQBh_yqVtzEgVRAoJqUDvbVWqJtP1XZR4hEP32eaWWTdsMIWDcHeDgbto7Wa1Qhga6o9L-jffPhcrCuic71e16_f0SQGJQZYyWmmhHoKVW6xhyphenhyphenidZt39LszPBtw5DtDL2k/s1600/final.PNG" height="371" title="The process cannot access the file because it is being used by another process" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<h4>
[3] Disable "explorer.exe"</h4>
open the task manager , select "Process" tab and select "explorer.exe" from the process list and click "End Process" button<br />
Now every thing should be vanished except command promt and Task manager , don't be confused we will get back them all later :D<br />
<br />
<h4>
[4] Delete the mkv file</h4>
Now again issue del command , this time it should be executed and you will get no error messages. <br />
ok , big step is done , now time to get back desktop and task bar<br />
<br />
<h4>
[5] bring back desktop and task bar</h4>
type <b>explorer.exe</b> on command prompt . how simple it is :))<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com10tag:blogger.com,1999:blog-4217215092335810253.post-12578723590394154152012-12-14T20:36:00.002+05:302013-01-28T20:14:20.106+05:30How to set a crontab job for a perl scriptIn this tutorial I’m going describe how to set a crontab job for perl script on a linux system. The following example I'm going to demonstrate, how to execute perl script every five minutes. below is the steps<br />
<br />
<br />
[1] list the existing crontab using following command. If you have not set any crontab jobs it will display noting.<br />
[shehan@localhost ~]$ crontab -l<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIg4TLMZzeDy1IUmNzDVIcvd1PBV236gNlepZJD7YoFkdHc90qKgy3pY3wd86FGYJUXt6-p2-9W96aJI_ipKx2Qq4KaOuT-Jg9ckL97BXsphyphenhyphenEAd7971LFD5BupOeja0Tu4EUN4QBvhvA/s1600/crontab+job.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="crontab job" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIg4TLMZzeDy1IUmNzDVIcvd1PBV236gNlepZJD7YoFkdHc90qKgy3pY3wd86FGYJUXt6-p2-9W96aJI_ipKx2Qq4KaOuT-Jg9ckL97BXsphyphenhyphenEAd7971LFD5BupOeja0Tu4EUN4QBvhvA/s1600/crontab+job.png" title="crontab job" /></a></div>
<br />
<br />
<br />
<br />
<br />
[2] issue following command to create a new crontab or edit previously created crontab <br />
[shehan@localhost ~]$ crontab -e<br />
<br />
<br />
[3] add following line of code to crontab and don't forget to edit your perl script path.<br />
*/5 means script will be executed every 5 minutes time , for ex :- 10.00 , 10.05 , 10.10 etc<br />
<br />
<b>*/5 * * * * perl /path/to/your/perlscript/yourscript.pl</b><br />
<br />
<br />
some tricky example<br />
<b>3-58/5 * * * * perl /path/to/your/perlscript/yourscript.pl</b><br />
<br />
This would still execute perl script every five minutes, but it would run on the 3's and 8's - e.g. 12:03, 12:08, 12:13, 12:18, etc.<br />
<br />
<br />
[4]that's it !<br />
<br />
<br />
<br />
<span class="status">5MYZXMQCKJN5</span> mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com1tag:blogger.com,1999:blog-4217215092335810253.post-40323560118199221012012-12-14T20:22:00.001+05:302013-01-28T20:15:42.547+05:30How To Install Perl Modules Manually on linux<br />
I recently try out perl script which is used to test download speed. when I run that script it gives me the following error saying that can’t locate Perl module called Time::Format .<br />
<br />
<b>Can't locate Time/Format.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 ... )....</b><br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfynM9BW3bprgaIfqZjLvk-UXxqrkP9TZcrFrKs17gkVKtzox7TGpctwd4Ws__LfEVs5fAsDOp-_4g2sMGJCBFGy4F9zxqbNm-Hlz57pjyw3yJrAvktqIrE58YYHHaj_IEPeMzuC_EEjw/s1600/perl+module+error.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Can't locate Time/Format.pm in @INC " border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfynM9BW3bprgaIfqZjLvk-UXxqrkP9TZcrFrKs17gkVKtzox7TGpctwd4Ws__LfEVs5fAsDOp-_4g2sMGJCBFGy4F9zxqbNm-Hlz57pjyw3yJrAvktqIrE58YYHHaj_IEPeMzuC_EEjw/s640/perl+module+error.png" height="92" title="Can't locate Time/Format.pm in @INC " width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
Solution for this error is install the perl module, in this case by installing the Time::Format perl module. below is most required steps to install any perl module.<br />
<br />
<br />
[1] switch to root and launch the CPAN using following command<br />
[root@localhost ~]# perl -MCPAN -e shell<br />
<br />
<br />
[2] type the module name according to below format, in this example I’m going to install Time::Format perl module. <br />
cpan[1]> install Time::Format<br />
<br />
<br />
[3] that’s all !! . now run your perl script again :)<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com0tag:blogger.com,1999:blog-4217215092335810253.post-422734096572387812012-11-30T13:08:00.001+05:302013-01-28T20:18:19.264+05:30How to install Redhat enterprise linux from usb drive Installing Redhat Linux from DVD is not a huge task unless not going to customize for advance installation. However if you do same using USB drive ,you have some extra work to do. First time when I installed the Redhat Linux through USB drive I faced so many difficulties, so in this tutorial I'm going describe how I avoid those obstacle to made successful installation.<br />
<br />
1) download and install "linux live usb creator" from this link <a href="http://www.linuxliveusb.com/" target="_blank">http://www.linuxliveusb.com/</a> <br />
<br />
2) format the USB drive with FAT32. open that application and follow the steps mention on that application to create bootable usb drive. it's better un-tick the "Hide created file on key" from options. it will helpful to view all created files on the USB later.<br />
you can test the USB using "mobalivecd" application. link is <a href="http://mobalivecd.mobatek.net/" rel="nofollow" target="_blank">http://mobalivecd.mobatek.net</a><br />
<br />
3) I have faced the following error message in the middle of the installation <br />
<br />
<blockquote class="tr_bq">
<b> Missing ISO 9660 Image</b><br />
<br />
The installer has tried to mount image #1, but cannot find it <br />
on the hard drive.<br />
Please copy this image to the drive and click Retry. Click<br />
Exit to abort the installation.</blockquote>
<br />
4) Solution for that error message is putting a redhat iso image into the USB drive.this is crazy but it's only solution i have found so far and it's worked :) .<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH0Htd9IjPyEwChIeiF58e7Wr_vC-Zxcy8Im3TlsnwZ5OP1IUPveCDR8c09Ez4hsgyUpJ-ntCT8gA8prQlrjTrGVJkKoGyQSAzz94Q5mDvmHg4C9oi3s85qEZDKNEX88DGTYBQ_U97198/s1600/rhel-server-6.1-i386-dvd.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="rhel 6" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH0Htd9IjPyEwChIeiF58e7Wr_vC-Zxcy8Im3TlsnwZ5OP1IUPveCDR8c09Ez4hsgyUpJ-ntCT8gA8prQlrjTrGVJkKoGyQSAzz94Q5mDvmHg4C9oi3s85qEZDKNEX88DGTYBQ_U97198/s1600/rhel-server-6.1-i386-dvd.JPG" title="rhel 6" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
5) Restart your pc and change boot method to USB<br />
<br />
6) Follow Redhat installation steps. after you select the "install or upgrade an existing system" from the menu.<br />
you may get a blinking cursor screen for 10 to 15 mins.pls be patient :-) .<br />
<br />
7) Select "Language " , "key borad" according to your preference. once you got the "Redhat installation method" screen make sure to select "Hard drive" <br />
<br />
<br />
<br />
<div style="text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFS3F7m_MCRdO7JZ1sKxOgXGmgTbjhwVXx0RwIAqZJtI2yOZccvuyUZ2s7_apok4hoKlcX4URaP4Uc1j7r7-JmU8lagMr0gDBDsmZVd5DVsDa2gXOfCiZ4T2WVtyCLGDtdU4Wb4fuCTlk/s1600/Redhat+installation+method.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Redhat Linux Installation Method" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFS3F7m_MCRdO7JZ1sKxOgXGmgTbjhwVXx0RwIAqZJtI2yOZccvuyUZ2s7_apok4hoKlcX4URaP4Uc1j7r7-JmU8lagMr0gDBDsmZVd5DVsDa2gXOfCiZ4T2WVtyCLGDtdU4Wb4fuCTlk/s1600/Redhat+installation+method.PNG" title="Redhat Linux Installation Method" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
8) Click "ok" and then you get an screen similar to the following<br />
it will display all devices connected to your pc. for an example<br />
<br />
<b>/dev/sda1 <-- </b>hard disk partition 1<br />
<b>/dev/sda2 <-- </b>hard disk partition 2<br />
<b>/dev/sdb1 </b><-- <b>USB drive</b><br />
<br />
select your usb device.it's depend on your system , according to above example it is <b>/dev/sdb1 </b>. and click "Ok" to continue.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1kIO1Hhe0_JlE5rQFhszfbxz1NscmJpu-iRUDSXaVlFeHno2WAfaHr5cdqPXc_02jrB82fdo7DyCikP-26Eevd7eNkmBSbov7gHEipClvDIN9Wyhhdg-xBt01W46RF4zgpvigGR5UhmM/s1600/redhat+select+partition.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="select partition holds the installation image for red hat linux" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1kIO1Hhe0_JlE5rQFhszfbxz1NscmJpu-iRUDSXaVlFeHno2WAfaHr5cdqPXc_02jrB82fdo7DyCikP-26Eevd7eNkmBSbov7gHEipClvDIN9Wyhhdg-xBt01W46RF4zgpvigGR5UhmM/s1600/redhat+select+partition.JPG" title="select partition holds the installation image for red hat linux" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
9) Follow rest of the steps, and install the Redhat Linux !.<br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com27tag:blogger.com,1999:blog-4217215092335810253.post-49648801840223945502012-10-31T11:34:00.001+05:302013-01-29T18:50:08.338+05:30how to change default secureCRT appearance into Traditional color schemes Default color scheme of SecureCRT is not eye friendly and if you work for long time with default color scheme your eye may be get tired . It is better to change color scheme into someting eye friendly. My suggestion is Traditional color schemes (Foreground is green and Background is black)<br />
<br />
<br />
[1] Open the SecureCRT , click on " <b>options </b>" --> " <b>Global options.. </b>" . then you will get a window similar to the following<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYe-Gv3vvp0woBvhrtqTx85F4D9rJ46t4Pw3cqcFU4ToNl-SeztA8e4g78QU9_m3Ah_AHcTlifAFMHfoDoj8IfqP9xfXzpmQs6QhQN0DJQF0wxyn85frDtUFp-LBqm4dfBofTiEBVZysE/s1600/1.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYe-Gv3vvp0woBvhrtqTx85F4D9rJ46t4Pw3cqcFU4ToNl-SeztA8e4g78QU9_m3Ah_AHcTlifAFMHfoDoj8IfqP9xfXzpmQs6QhQN0DJQF0wxyn85frDtUFp-LBqm4dfBofTiEBVZysE/s400/1.PNG" height="400" width="388" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
[2 ] select " <b>General </b>" --> " <b>Default Session </b>" --> " <b>Edit Default Settings..</b> ", then you will have a window similar to the following<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikchS6Q7ywvDcE0L4qhW1m6tQNfkOpP8eXIEQGRQ88G4mkDldM0DkccPHw2_lR8wnKa6eLtgJkYhMvwMU9kuNdr3nUD84QrIRmHwahD6hH_t-18lLnluH_05xe-OrOQWw5GFUzGiTfAFw/s1600/2.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikchS6Q7ywvDcE0L4qhW1m6tQNfkOpP8eXIEQGRQ88G4mkDldM0DkccPHw2_lR8wnKa6eLtgJkYhMvwMU9kuNdr3nUD84QrIRmHwahD6hH_t-18lLnluH_05xe-OrOQWw5GFUzGiTfAFw/s400/2.PNG" height="392" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
[3] Select " <b>Appearance</b> " --> and choose " <b>Traditional</b> " form Current color schme drop down list . then click " <b>OK</b> " to apply the setting .<br />
<br />
<br />
[4] Then SecureCRT prompt with a waring message like below, click " <b>YES</b> " and restart the SecureCRT<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilxbZMri_mB7KlBtOOFhtPiKa4RdlqljmEsfbItFDYWsTORhj_KsPeuzPNSyRAFGVc1soMgBKutdYpRFosdptS9KEqJyt9i7ayqFVRTzbbwIwRYSZDQSyYlRGDqQ9qDlSjpLIisFmZORI/s1600/3.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilxbZMri_mB7KlBtOOFhtPiKa4RdlqljmEsfbItFDYWsTORhj_KsPeuzPNSyRAFGVc1soMgBKutdYpRFosdptS9KEqJyt9i7ayqFVRTzbbwIwRYSZDQSyYlRGDqQ9qDlSjpLIisFmZORI/s400/3.PNG" height="173" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
[5] SecureCRT color scheme is changed , hooray !!!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy_xxov_VVNhoaYocJ4fqCUGjO4plV9H6UZyxWWRmmPZUmmfv8w_rX_1-rxPFP7Fwxq639mVlnwuQzNC25JxhnRRheCPL7QaxdHtbXAyKTz4vbzHARUaaTXv1UNU6B0SoTGXDF4o53OUk/s1600/4.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy_xxov_VVNhoaYocJ4fqCUGjO4plV9H6UZyxWWRmmPZUmmfv8w_rX_1-rxPFP7Fwxq639mVlnwuQzNC25JxhnRRheCPL7QaxdHtbXAyKTz4vbzHARUaaTXv1UNU6B0SoTGXDF4o53OUk/s640/4.PNG" height="164" width="640" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com4tag:blogger.com,1999:blog-4217215092335810253.post-208114539240306352012-10-31T04:16:00.000+05:302013-03-11T22:46:28.406+05:30how to add dvd based repository in rhel 6<b style="color: red;"><span style="font-size: small;">Problem :- yum install [package..] gives an error message similar to the following </span></b><br />
<br />
[root@localhost ~]# yum install gcc <br />
Loaded plugins: product-id, refresh-packagekit, subscription-manager<br />
Updating Red Hat repositories.<br />
...(output ommited)<br />
...<br />
No package gcc available <-- here i'm try to install pacakage called 'gcc'<br />
Error: Nothing to do<br />
[root@localhost ~]#<br />
<br />
reason is we do not have access to RHN<br />
<br />
<div style="color: red;">
<b>Solution :- use DVD as base repository </b></div>
<b><br /></b>
<h4>
[1]switch to the root</h4>
[shehan@localhost ~]$ su -<br />
Password: <br />
[root@localhost ~]# <br />
<br />
<h4>
[2]Create DVD based repo</h4>
[root@localhost ~]# vim /etc/yum.repos.d/iso.repo <br />
<br />
Following text should be added to above file (iso.repo)<br />
<br />
[base]<br />
name=CDROM<br />
baseurl=file:///mnt/cd/Server<br />
enabled=1<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-z3-8edR_lT_wknzaFh29HVnj2A8DZr7F_WNmtb7AdKeDAyN_9_TShQc9S94T37aCh3divqyKUJfJH3qPsSZVq6aeVdZ75ccZgWoOUj_bCdkFj_sUcWWa6IDJ_YPooxcUPJMaNG-web4/s1600/iso+repo+file.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="DVD based repository rhel 6" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-z3-8edR_lT_wknzaFh29HVnj2A8DZr7F_WNmtb7AdKeDAyN_9_TShQc9S94T37aCh3divqyKUJfJH3qPsSZVq6aeVdZ75ccZgWoOUj_bCdkFj_sUcWWa6IDJ_YPooxcUPJMaNG-web4/s400/iso+repo+file.PNG" height="87" title="DVD based repository rhel 6" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b>[3]mount installation DVD </b><br />
make a directory called <span style="color: red;">/mnt/cd</span> and it should be similar to baseurl<br />
<br />
[root@localhost ~]# mkdir /mnt/cd <br />
[root@localhost ~]# mount /dev/cdrom /mnt/cd<br />
<br />
[4]now try previous command again. it should work ! <br />
[root@localhost ~]# yum install gcc<br />
<br />
<br />
---<br />
tips :- How to mount iso image ??<br />
baseurl of " iso.repo " file <b></b> should be changed as<br />
<b>file://mnt/iso/Server </b>( I created /mnt/iso directory)<br />
<br />
mount command is <br />
<b>mount -o loop /home/shehan/redhatiso/h-rel62x6.iso /mnt/iso </b><br />
<br />
<br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com1tag:blogger.com,1999:blog-4217215092335810253.post-75812911902536902302011-07-03T21:38:00.000+05:302013-01-29T19:05:12.346+05:30Opencv and Image processing reference books <span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;">I'm recommended following books for learning opencv and image processing . even they tech how to create GUI ( Graphical User Interface ) application. </span><br />
<br />
<span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"> </span><br />
<br />
<br />
<span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"><a class="title" href="http://www.amazon.com/OpenCV-Computer-Application-Programming-Cookbook/dp/1849513244/ref=sr_1_1?ie=UTF8&qid=1309708235&sr=8-1" style="color: #003399; font-weight: bold; text-decoration: none;">Title : OpenCV 2 Computer Vision Application Programming Cookbook</a></span><span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"> </span><span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"><span class="ptBrand"> </span></span><br />
<span class="Apple-style-span" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px;"><span class="ptBrand">Author : Robert Laganière</span></span><br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmWne7s5qA9zTZVrS53yRDu8AtDBGkM7Kjamsk7h9c53uFr_SElyAtdIioSea0gXSx2K1Z-4Kwj7XTuImYX6jQ3PJIW76hDm7lzKAheNo3tnCxe1zcxBEFvNtM3xEtoMumfXb9YndqSho/s1600/OpenCV+2+Computer+Vision+Application+Programming+Cookbook+by+Robert+Lagani%25C3%25A8re.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="OpenCV 2 Computer Vision Application Programming Cookbook by robert laganiere" border="0" height="302" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmWne7s5qA9zTZVrS53yRDu8AtDBGkM7Kjamsk7h9c53uFr_SElyAtdIioSea0gXSx2K1Z-4Kwj7XTuImYX6jQ3PJIW76hDm7lzKAheNo3tnCxe1zcxBEFvNtM3xEtoMumfXb9YndqSho/s320/OpenCV+2+Computer+Vision+Application+Programming+Cookbook+by+Robert+Lagani%25C3%25A8re.gif" title="OpenCV 2 Computer Vision Application Programming Cookbook by robert laganiere" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
You can read sample book from <a href="http://www.packtpub.com/sites/default/files/3241-chpater-5-transforming-images-with-morphological-operations.pdf?utm_source=packtpub&utm_medium=free&utm_campaign=pdf">HERE</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
---</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; color: blue; text-align: left;">
<b>Title : Learning OpenCV: Computer Vision in C++ with the OpenCV Library</b></div>
<div class="separator" style="clear: both; text-align: left;">
Author : Gary Bradski</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6vtWIQhqS3kIdL8Vw2bOq0SsM_Y7vnRLZkRhwqk6766gmq_JQ9nEj5F5VB4ITLA7r7RH4fjmaYRpHvOETAbJTiXcHwKgWxjvVBaP6RbV2HbOHJJPv4nxWEoXeLClsqR1ltd7axZCqdJ8/s1600/Learning+OpenCV+Computer+Vision+in+CPP.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img alt="Learning OpenCV: Computer Vision in C++ with the OpenCV Library by Gary Bradski" border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6vtWIQhqS3kIdL8Vw2bOq0SsM_Y7vnRLZkRhwqk6766gmq_JQ9nEj5F5VB4ITLA7r7RH4fjmaYRpHvOETAbJTiXcHwKgWxjvVBaP6RbV2HbOHJJPv4nxWEoXeLClsqR1ltd7axZCqdJ8/s320/Learning+OpenCV+Computer+Vision+in+CPP.jpg" title="Learning OpenCV: Computer Vision in C++ with the OpenCV Library by Gary Bradski" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com0tag:blogger.com,1999:blog-4217215092335810253.post-19880668441093558272011-06-27T21:06:00.000+05:302013-02-22T07:35:28.017+05:30Background/Negative Images for Opencv haartainingSelecting suitable negative aka background image for haartraining is very important. Collect set of images (about 3000) that does not contain objects of interest, for an example if you are going to train a haarcascade classifier for Face, you should have negatives with no face images.<br />
<br />
<br />
you can download collection of negative images (about 3000 negatives) from here. [Use Internet Download Maneger]<br />
<a href="http://tutorial-haartraining.googlecode.com/svn/trunk/data/negatives/" rel="" target="_blank">http://tutorial-haartraining.googlecode.com/svn/trunk/data/negatives/ </a><br />
<br />
According to your haartraining requirement this may not be not enough . best proposition for No. Positive images : No. Negative images is 1:2, means if you have 2000 positive images you should have at least 4000 negative images. So if this is not enough, you can get more from public databases such as google images.<br />
You can use these softwares to make download easy otherwise it would be boring . below softwares would be helpful <br />
[1]bulk image downloader (commercial software)<br />
[2]google image dowloader (FREE software) <a href="http://www.googleimagedownloader.com/" rel="nofollow" target="_blank">http://www.googleimagedownloader.com</a><br />
<br />
<br />
After you get enough images you should do index and rename all images properly for further use.This tool would be useful <br />
Ant Renamer ( <a href="http://www.antp.be/software/renamer" rel="nofollow" target="_blank">http://www.antp.be/software/renamer</a> )<br />
<br />
<br />
Related Post <br />
<br />
[ Opencv installation ]<br />
<a href="http://www.tectute.com/2011/01/opencv-22-installation-on-visual-studio.html">http://www.tectute.com/2011/01/opencv-22-installation-on-visual-studio.html</a><br />
<br />
[ Positive images for haartraining ]<br />
<a href="http://www.tectute.com/2011/06/haartraining-positive-samples.html">http://www.tectute.com/2011/06/haartraining-positive-samples.html</a><br />
<br />
[ Opencv haartraining and haar cascade xml ]<br />
<a href="http://www.tectute.com/2011/06/opencv-haartraining.html">http://www.tectute.com/2011/06/opencv-haartraining.html</a><br />
<br />mbshttp://www.blogger.com/profile/12123122274249679744noreply@blogger.com1