<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-34980303</id><updated>2024-09-05T21:00:12.889-07:00</updated><title type='text'>LINUX SOLUTIONS</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jyotirbhandari.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jyotirbhandari.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01079172149209810817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-34980303.post-46510230628948741</id><published>2013-04-18T07:04:00.001-07:00</published><updated>2013-04-18T07:04:39.366-07:00</updated><title type='text'>How to take backup of sharded tables in mysql </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There is an immense need of taking backup of tables which are sharded when you are working on critical servers.&lt;br /&gt;
Shard tables are an important part of any database and therefore system administrator should be able to provide the backup of these table at any given time.&lt;br /&gt;
&lt;br /&gt;
Usage : To backup shard tables&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #0b5394; font-family: Georgia, Times New Roman, serif; font-size: large;&quot;&gt;mysql &amp;lt;databasename&amp;gt; -h &amp;lt;host&amp;gt; -u &amp;lt;user&amp;gt; -p &amp;lt;password&amp;gt; -e&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #0b5394; font-family: Georgia, Times New Roman, serif; font-size: large;&quot;&gt;&#39;show tables like &amp;lt;shard_table&amp;gt;%&quot;&#39; | grep -v Tables_in | xargs mysqldump --skip-lock-tables&amp;nbsp;&amp;lt;databasename&amp;gt;&amp;nbsp; --host=&amp;lt;host&amp;gt; --user=&amp;lt;user&amp;gt; --password=&amp;lt;password&amp;gt; &amp;gt; table.sql&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jyotirbhandari.blogspot.com/feeds/46510230628948741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jyotirbhandari.blogspot.com/2013/04/how-to-take-backup-of-sharded-tables-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default/46510230628948741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default/46510230628948741'/><link rel='alternate' type='text/html' href='http://jyotirbhandari.blogspot.com/2013/04/how-to-take-backup-of-sharded-tables-in.html' title='How to take backup of sharded tables in mysql '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01079172149209810817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34980303.post-5394459170382295582</id><published>2011-09-17T19:08:00.000-07:00</published><updated>2011-09-17T19:58:31.713-07:00</updated><title type='text'>Java Error InvalidAlgorithmParameterException: the trustAnchors on EC2 Amazon Jenkins</title><content type='html'>InvalidAlgorithmParameterException: the trustAnchors on EC2 Amazon&lt;br /&gt;&lt;br /&gt;This error is due to the fact that gmail cert is not included in the JAVA HOME cacerts or else when the apache tomcat is not knowing as to where to pick the trusted cacerts file in any of the case here the complete procedure to do the same.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@server1 ~]# echo $JAVA_HOME&lt;br /&gt;/usr/lib/jvm/java&lt;br /&gt;&lt;br /&gt;[root@server1 ~]$ openssl s_client -connect smtp.gmail.com:465 &gt; /tmp/smtp.cert&lt;br /&gt;&lt;br /&gt;( openssl can be available by install openssl package )&lt;br /&gt;&lt;br /&gt;It will generate a certificate&lt;br /&gt;&lt;br /&gt;Edit /tmp/smtp.cert and remove everything before or after the following tags(both begin certificate and end certificate should be included)&lt;br /&gt;—–BEGIN CERTIFICATE—–&lt;br /&gt;—–END CERTIFICATE—–&lt;br /&gt;&lt;br /&gt;Now import the file /tmp/smtp.cert to JAVA_HOME cacerts&lt;br /&gt;&lt;br /&gt;[root@server1 ~]# $JAVA_HOME/bin/keytool -import -alias smtp.gmail.com -keystore $JAVA_HOME/jre/lib/security/cacerts -file /tmp/smtp_gmail.cert&lt;br /&gt;&lt;br /&gt;It will ask for password first time, make sure you remember this password.&lt;br /&gt;&lt;br /&gt;you can check the list in cacerts, which increases by number, to check it&lt;br /&gt;&lt;br /&gt;[root@server1 ~]# $JAVA_HOME/bin/keytool -list -keystore # $JAVA_HOME/jre/lib/security/cacerts&lt;br /&gt;&lt;br /&gt;Now if you are using tomcat or any other application based on tomcat, just include the following paths in catalina.sh or if you have a startup-script for your apps then include it.&lt;br /&gt;&lt;br /&gt;-Djavax.net.ssl.trustStore=$JAVA_HOME/jre/lib/security/cacerts &lt;br /&gt;-Djavax.net.ssl.trustStorePassword=password</content><link rel='replies' type='application/atom+xml' href='http://jyotirbhandari.blogspot.com/feeds/5394459170382295582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jyotirbhandari.blogspot.com/2011/09/java-error-invalidalgorithmparameterexc.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default/5394459170382295582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default/5394459170382295582'/><link rel='alternate' type='text/html' href='http://jyotirbhandari.blogspot.com/2011/09/java-error-invalidalgorithmparameterexc.html' title='Java Error InvalidAlgorithmParameterException: the trustAnchors on EC2 Amazon Jenkins'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01079172149209810817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34980303.post-4848182061923811511</id><published>2010-07-28T21:30:00.000-07:00</published><updated>2010-07-28T21:33:57.181-07:00</updated><title type='text'>How to convert .mp3 format to .ogg format</title><content type='html'>Packages required for installation on both Redhat and Debian based servers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Redhat&lt;br /&gt;&lt;br /&gt;sh# yum install libmad libid3tag which are available in rpm forge repository.&lt;br /&gt;&lt;br /&gt;download and install mpg321 rpm which is available on the internet or you can download it from http://rpm.pbone.net&lt;br /&gt; &lt;br /&gt;sh# rpm -Uvh mpg321-0.2.10.4-2.fc10.i386.rpm&lt;br /&gt;&lt;br /&gt;next is to install vorbis-tools&lt;br /&gt;&lt;br /&gt;sh# yum install vorbis-tools&lt;br /&gt;&lt;br /&gt;For Ubuntu&lt;br /&gt;&lt;br /&gt;sh# apt-get install mpg321 vorbis-tools&lt;br /&gt;&lt;br /&gt;Action &lt;br /&gt;&lt;br /&gt;suppose you are have test.mp3 and need to convert it into test.ogg&lt;br /&gt;run the mentioned command&lt;br /&gt;&lt;br /&gt;sh #  mpg321 test.mp3  -w - | oggenc -o test.ogg -&lt;br /&gt;&lt;br /&gt;Note : Don&#39;t forget to put trailing &quot;-&quot;</content><link rel='replies' type='application/atom+xml' href='http://jyotirbhandari.blogspot.com/feeds/4848182061923811511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jyotirbhandari.blogspot.com/2010/07/how-to-convert.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default/4848182061923811511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default/4848182061923811511'/><link rel='alternate' type='text/html' href='http://jyotirbhandari.blogspot.com/2010/07/how-to-convert.html' title='How to convert .mp3 format to .ogg format'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01079172149209810817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-34980303.post-626382137587406681</id><published>2010-07-21T22:51:00.000-07:00</published><updated>2010-07-21T22:54:58.949-07:00</updated><title type='text'>Degrade PHP-5.3 to PHP-5.2 in Ubuntu</title><content type='html'>The mentioned script would degrade php-5.3 to php-5.2 in ubuntu. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#! /bin/sh&lt;br /&gt;php_packages=`dpkg -l | grep php | awk &#39;{print $2}&#39;`&lt;br /&gt;&lt;br /&gt;sudo apt-get remove $php_packages&lt;br /&gt;&lt;br /&gt;sed s/lucid/karmic/g /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/karmic.list&lt;br /&gt;&lt;br /&gt;sudo mkdir -p /etc/apt/preferences.d/&lt;br /&gt;&lt;br /&gt;for package in $php_packages;&lt;br /&gt;do echo &quot;Package: $package&lt;br /&gt;Pin: release a=karmic&lt;br /&gt;Pin-Priority: 991&lt;br /&gt;&quot; | sudo tee -a /etc/apt/preferences.d/php&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;sudo apt-get update&lt;br /&gt;&lt;br /&gt;sudo apt-get install $php_packages</content><link rel='replies' type='application/atom+xml' href='http://jyotirbhandari.blogspot.com/feeds/626382137587406681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jyotirbhandari.blogspot.com/2010/07/degrade-php-53-to-php-52-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default/626382137587406681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/34980303/posts/default/626382137587406681'/><link rel='alternate' type='text/html' href='http://jyotirbhandari.blogspot.com/2010/07/degrade-php-53-to-php-52-in-ubuntu.html' title='Degrade PHP-5.3 to PHP-5.2 in Ubuntu'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01079172149209810817</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>