<?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-5476332775639329133</id><updated>2024-11-06T05:07:04.426+02:00</updated><category term="Linux"/><category term="Windows"/><category term="Open Source"/><category term="lifehack"/><category term="відкрите ПЗ"/><category term="Free"/><category term="загальна інфа"/><category term="Debian"/><category term="mysql"/><category term="IIS"/><category term="help"/><category term="Helm 4"/><category term="Joomla"/><category term="On-line"/><category term="centos"/><category term="PHP"/><category term="ASP.NET"/><category term="Ubuntu"/><category term="Особисте"/><category term="VM"/><category term="ape"/><category term="flac"/><category term="gentoo"/><category term="hosing"/><category term="lenny"/><category term="mp3"/><category term="ssh"/><category term="zabbix"/><category term="Mac OS X"/><category term="Virtuozzo"/><category term="cacti"/><category term="control panels"/><category term="innodb"/><category term="mdadm"/><category term="percona"/><category term="postgres"/><category term="raid"/><category term="uTorrent"/><category term="upgrade"/><category term="xenserver"/><category term="960"/><category term="BSD"/><category term="CPAN"/><category term="Flex"/><category term="JDK"/><category term="JIRA"/><category term="JRE"/><category term="Live Writer"/><category term="NOD32"/><category term="Nagios"/><category term="Nokia"/><category term="Outpost"/><category term="PAM"/><category term="Perl"/><category term="Plesk"/><category term="Plesk Billing"/><category term="QA"/><category term="SHOUTcast"/><category term="SNMP"/><category term="Samba"/><category term="SmarterMail"/><category term="SuggestiMate"/><category term="Suse"/><category term="VirtualBox"/><category term="ansible"/><category term="apache"/><category term="awk"/><category term="blacklist"/><category term="bugtracking"/><category term="cat"/><category term="change root password"/><category term="cpanel"/><category term="css"/><category term="curl"/><category term="email"/><category term="fastCGI"/><category term="ffmpeg"/><category term="freebsd"/><category term="grep"/><category term="html"/><category term="lighttpd"/><category term="linksys"/><category term="locate"/><category term="logging"/><category term="mail"/><category term="master-master"/><category term="mercurial"/><category term="mielophone"/><category term="mod_dphpbb3_last_topics"/><category term="monitoring"/><category term="msi"/><category term="myisam"/><category term="netstat"/><category term="onapp"/><category term="pf"/><category term="psql"/><category term="rails"/><category term="replication"/><category term="repos"/><category term="reset admin password"/><category term="reset root password"/><category term="root password"/><category term="ruby"/><category term="script"/><category term="sshd"/><category term="test"/><category term="vzpkg"/><category term="web development"/><category term="wrt54gl"/><category term="xen"/><category term="Айкідо"/><title type='text'>OMGSW Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.omgsw.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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>110</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5476332775639329133.post-3484120788554610750</id><published>2015-07-21T15:41:00.004+03:00</published><updated>2015-07-21T15:41:58.740+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ansible"/><category scheme="http://www.blogger.com/atom/ns#" term="freebsd"/><category scheme="http://www.blogger.com/atom/ns#" term="PAM"/><category scheme="http://www.blogger.com/atom/ns#" term="sshd"/><title type='text'>Ansible freebsd ssh connection hung </title><content type='html'>Recently I faced with problem which caused almost a week to find right solution&lt;br /&gt;
&lt;br /&gt;
So the problem was that I wasn&#39;t able to connect to my freebsd host from ansible server.&lt;br /&gt;
&lt;br /&gt;
so symptoms were like that&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sshpass -d6 ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=&quot;/home/michael/.ansible/cp/ansible-ssh-%h-%p-%r&quot; -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o User=root -o ConnectTimeout=10 192.168.xxx.xxx /bin/csh -c &#39;LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/local/bin/python&#39;&lt;br /&gt;[............]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Warning: Permanently added &#39;192.168.2.110&#39; (ECDSA) to the list of known hosts.&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;debug1: SSH2_MSG_NEWKEYS received&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;debug1: Roaming not allowed by server&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;debug1: Authentications that can continue: publickey,keyboard-interactive&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;debug1: Next authentication method: keyboard-interactive&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;ansible new-hosts -l freebsd.local -m shell -a &#39;uptime&#39; &amp;nbsp;-vvv&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;lt;192.168.2.110&amp;gt; ESTABLISH CONNECTION FOR USER: root&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;lt;192.168.2.110&amp;gt; REMOTE_MODULE command uptime #USE_SHELL&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;lt;192.168.2.110&amp;gt; EXEC sshpass -d6 ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=&quot;/home/michael/.ansible/cp/ansible-ssh-%h-%p-%r&quot; -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o User=root -o ConnectTimeout=10 192.168.xxx.xxx /bin/sh -c &#39;LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/local/bin/python&#39;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
and in that state connection could be couple of hours without any output on ansible server or freebsd logs.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The reason of the problem was FreeBSD PAM module&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I had to change line 12 (in my case ) in&amp;nbsp;/etc/pam.d/sshd&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
was :&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
auth &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;required &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pam_unix.so &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no_warn try_first_pass&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
become:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
auth &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;required &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pam_unix.so &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; no_warn try_first_pass authtok_prompt=Password:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
no sshd restart required&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
after that changes I was able to get info from my freebsd hosts&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp;ansible new-hosts -l freebsd.local -m &amp;nbsp;ping &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
freebsd.local | success &amp;gt;&amp;gt; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;changed&quot;: false,&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &quot;ping&quot;: &quot;pong&quot;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
ansible new-hosts -l freebsd.local -m shell -a &#39;uptime&#39; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
freebsd.local | success | rc=0 &amp;gt;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;2:30PM &amp;nbsp;up 4 days, 45 mins, 2 users, load averages: 0.11, 0.09, 0.07&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/3484120788554610750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/3484120788554610750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/3484120788554610750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/3484120788554610750'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2015/07/ansible-freebsd-ssh-connection-hung.html' title='Ansible freebsd ssh connection hung '/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-5079581883472206438</id><published>2014-01-20T23:04:00.001+02:00</published><updated>2014-01-20T23:04:15.389+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="ffmpeg"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>installing ffmpeg-php with php5.3+  </title><content type='html'>the main purpose of this small note is to save your time from the mistakes I&#39;ve made&lt;br /&gt;
&lt;br /&gt;
so what we have:&lt;br /&gt;
&lt;br /&gt;
centos 5 or 6&lt;br /&gt;
php 5.3, 5.4 or 5.5&lt;br /&gt;
&lt;br /&gt;and great desire to have ffmpeg-php installed on that server :)&lt;br /&gt;
&lt;br /&gt;
so&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;wget &lt;a class=&quot;external&quot; href=&quot;http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download&quot;&gt;http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download&lt;/a&gt;&lt;br /&gt;tar xf ffmpeg-php-0.6.0.tbz2&lt;br /&gt;cd ffmpeg-php-0.6.0  &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;phpize&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;./configure&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;and right before make we will do a magic&lt;br /&gt;
&lt;br /&gt;
1) vi ffmpeg_frame.c&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2) vi ffmpeg_movie.c&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;row 311: list_entry *le; TO zend_rsrc_list_entry *le;&lt;br /&gt;
row 346: list_entry new_le; TO zend_rsrc_list_entry new_le;&lt;br /&gt;
row 360: hashkey_length+1, (void *)&amp;amp;new_le, sizeof(list_entry), TO hashkey_length+1, (void *)&amp;amp;new_le,sizeof(zend_rsrc_list_entry),&amp;nbsp;    &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
make &amp;amp;&amp;amp; make install&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/5079581883472206438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/5079581883472206438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5079581883472206438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5079581883472206438'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2014/01/installing-ffmpeg-php-with-php53.html' title='installing ffmpeg-php with php5.3+  '/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-3508146897864599197</id><published>2013-05-13T00:02:00.001+03:00</published><updated>2013-05-13T00:03:39.735+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mercurial"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Push to multiple remote repositories from a single local repo in Mercurial</title><content type='html'>You can set multiple remote repository aliases in the &lt;code&gt;[paths]&lt;/code&gt; section of the repository configuration file. This file is in .hg/hgrc, and you would add paths like this:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;[paths]&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;default = &lt;a href=&quot;http://your-default-repo.com/repo&quot;&gt;http://your-default-repo.com/repo&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;2nd = &lt;a href=&quot;http://your-second-repo.com/repo&quot;&gt;http://your-second-repo.com/repo&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Then you would run &lt;code&gt;hg push &lt;code&gt;2nd&lt;/code&gt;&lt;/code&gt; to push to your second repo and &lt;code&gt;hg push&lt;/code&gt; to push to your default repo.&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Unfortunately its not possible to run  &lt;span style=&quot;font-family: Courier New;&quot;&gt;hg push *&lt;/span&gt; to push to all remote hosts at once, you have to specify&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;each push destination one by one.&lt;/span&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/3508146897864599197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/3508146897864599197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/3508146897864599197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/3508146897864599197'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2013/05/push-to-multiple-remote-repositories.html' title='Push to multiple remote repositories from a single local repo in Mercurial'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-6672923344758023676</id><published>2012-08-09T10:58:00.000+03:00</published><updated>2012-08-09T10:58:11.848+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cat"/><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="grep"/><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>view confs without comments</title><content type='html'>Just to note to myself. how to generate clean configs w/out any comments&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sed -e &#39;/^$/d;/^#/d;/^;/d&#39; /etc/php.ini &amp;gt; php.ini.clean&lt;br /&gt;
&lt;br /&gt;
result&lt;br /&gt;
&lt;br /&gt;
root@ ~ # cat /etc/php.ini |wc -l&lt;br /&gt;
1249&lt;br /&gt;
root@ ~ # cat php.ini.clean |wc -l&lt;br /&gt;
182&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/6672923344758023676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/6672923344758023676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/6672923344758023676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/6672923344758023676'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2011/11/view-confs-without-comments.html' title='view confs without comments'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-4220259651156777389</id><published>2012-05-24T00:03:00.003+03:00</published><updated>2012-05-24T00:03:57.196+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="zabbix"/><title type='text'>{new  stable release} Zabbix auto install scripts</title><content type='html'>&lt;span style=&quot;color: red;&quot;&gt;!!!NOTE: this scripts only for education/testing/investigation purposes, use on your own risk&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
I&#39;ve prepared 2 auto Zabbix 2.0.0&amp;nbsp; installation scripts, tested on Centos 5.8 and 6.2&lt;br /&gt;
&lt;br /&gt;
https://www.dropbox.com/s/pdekmf5yi6on8o3/zabbix20_el6_install.sh &amp;lt;&amp;lt; Centos 6.2 &lt;br /&gt;
https://www.dropbox.com/s/6sdlerh4ufthys4/zabbix20_el5_install.sh &amp;lt;&amp;lt; Centos 5.8 &lt;br /&gt;
&lt;br /&gt;
short desc&lt;br /&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;bash preprocessor bold&quot;&gt;#!/bin/sh&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;#&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# Centos 6.2 (5.8) zabbix 2 install w/ psql9.1 jabber IPv6 support &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;#&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# known problems:&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# zabbix web config not fully configured during installation &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# need manually to&amp;nbsp; setup $ZBX_SERVER&amp;nbsp; and $ZBX_SERVER_NAME parameters after installation finish &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# after installation rpm prepared and it is in /root/rpmbuild/RPMS/&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# do not know why but in this version zabbix won&#39;t work with DB user other than root had to create role for root &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;#&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# reboot required after installation &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# software distributed under the License is distributed on an &quot;AS IS&quot; BASIS,&amp;nbsp; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# (c) Michael Veselovski support@omgsw.com&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v1: initial release 4/10/2011&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number17 index16 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v2: 24/12/2011 new release:&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number18 index17 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - psql 9.1 support added&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number19 index18 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - db user should be provided during installation &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number20 index19 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - zabbix 1.9.8 support added&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number21 index20 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v3.1: 15/05/2012 new release&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number22 index21 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - script complete rewitten for Centos 6.2 suppport &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number23 index22 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - script installing Zabbix 2.0.0rc4 /psql&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number24 index23 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v3.2: 15/05/2012 second script for Centos 5.8&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - separate script for Centos 5.8&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;div class=&quot;line number26 index25 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v4: 23/05/2012 script for zabbix 2.0.0 &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number27 index26 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - same problems as above&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/4220259651156777389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/4220259651156777389' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/4220259651156777389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/4220259651156777389'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2012/05/new-stable-release-zabbix-auto-install.html' title='{new  stable release} Zabbix auto install scripts'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-4874346836771076637</id><published>2012-05-15T15:13:00.001+03:00</published><updated>2012-05-15T15:13:34.001+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="zabbix"/><title type='text'>{new release} Zabbix auto install scripts</title><content type='html'>&lt;span style=&quot;color: red;&quot;&gt;!!!NOTE: this scripts only for education/testing/investigation purposes, use on your own risk&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.dropbox.com/s/unzvemer4itptdt/zabbix2rc4_el5_install.sh&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;I&#39;ve prepared 2 auto Zabbix 2.0.0rc4 installation scripts, tested on Centos 5.8 and 6.2&lt;br /&gt;
&lt;br /&gt;
https://www.dropbox.com/s/unzvemer4itptdt/zabbix2rc4_el5_install.sh&lt;br /&gt;
https://www.dropbox.com/s/88nudr29280xm61/zabbix2rc4_el6_install.sh&lt;br /&gt;
&lt;br /&gt;
short desc&lt;br /&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;code class=&quot;bash preprocessor bold&quot;&gt;#!/bin/sh&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number2 index1 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;#&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number3 index2 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# Centos 6.2 (5.8) zabbix 2rc4 install w/ psql9.1 jabber IPv6 support &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number4 index3 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;#&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number5 index4 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# known problems:&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number6 index5 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# zabbix web config not fully configured during installation &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number7 index6 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# need manually to&amp;nbsp; setup $ZBX_SERVER&amp;nbsp; and $ZBX_SERVER_NAME parameters after installation finish &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number8 index7 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# after installation rpm prepared and it is in /root/rpmbuild/RPMS/&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number9 index8 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# do not know why but in this version zabbix won&#39;t work with DB user other than root had to create role for root &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number10 index9 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;#&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number11 index10 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# reboot required after installation &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number12 index11 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number13 index12 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number14 index13 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# software distributed under the License is distributed on an &quot;AS IS&quot; BASIS,&amp;nbsp; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number15 index14 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# (c) Michael Veselovski support@omgsw.com&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number16 index15 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v1: initial release 4/10/2011&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number17 index16 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v2: 24/12/2011 new release:&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number18 index17 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - psql 9.1 support added&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number19 index18 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - db user should be provided during installation &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number20 index19 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - zabbix 1.9.8 support added&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number21 index20 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v3.1: 15/05/2012 new release&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number22 index21 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - script complete rewitten for Centos 6.2 suppport &lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number23 index22 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - script installing Zabbix 2.0.0rc4 /psql&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number24 index23 alt1&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# v3.2: 15/05/2012 second script for Centos 5.8&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;line number25 index24 alt2&quot;&gt;
&lt;code class=&quot;bash comments&quot;&gt;# - separate script for Centos 5.8 &lt;/code&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/4874346836771076637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/4874346836771076637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/4874346836771076637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/4874346836771076637'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2012/05/new-release-zabbix-auto-install-scripts.html' title='{new release} Zabbix auto install scripts'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-5879388140821761649</id><published>2012-05-07T13:00:00.000+03:00</published><updated>2012-05-07T13:00:06.646+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Joomla"/><category scheme="http://www.blogger.com/atom/ns#" term="upgrade"/><title type='text'>How to upgrade Joomla from 1.5/1.6 to 2.5</title><content type='html'>&lt;span style=&quot;color: red;&quot;&gt;BEFORE APPLYING ANY CHANGES YOU SHOULD CREATE A BACKUP&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
1) Go to http://domain/administrator =&amp;gt; Extensions =&amp;gt; Install/Uninstall =&amp;gt; Upload Package File “com_jupgrade-2.5.1.zip” =&amp;gt; Upload File &amp;amp; Install&lt;br /&gt;
&lt;br /&gt;
2) Extensions =&amp;gt; Plugin Manager =&amp;gt; find “System - Mootools Upgrade” =&amp;gt; Enabled “Yes”&lt;br /&gt;
&lt;br /&gt;
3) create “jupgrade”subfolder in RootDirectory (/var/www/public_html/jupgrade), change owner to Apache user and change permissions to “777”&lt;br /&gt;
&lt;br /&gt;
4) Download “http://joomlacode.org/gf/download/frsrelease/16804/73116/Joomla_2.5.3-Stable-Full_Package.zip” (download link: http://joomlacode.org/gf/project/joomla/frs/) to this directory (./jupgrade) and unpack&lt;br /&gt;
&lt;br /&gt;
5) Go to http://domain/administrator =&amp;gt; Components =&amp;gt; Jupgrade =&amp;gt; Parameters:&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Distribution =&amp;gt; Joomla 2.5&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Skip checks =&amp;gt; Yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Skip Download =&amp;gt; Yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Skip Decompress =&amp;gt; Yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Enable migration debug =&amp;gt; Yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Enable Mootools version debug =&amp;gt; Yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;DO NOT FORGET&lt;/span&gt; “Save” on the top and close this window.&lt;br /&gt;
&lt;br /&gt;
6) Press “START UPGRADE”&lt;br /&gt;
&lt;br /&gt;
7) After upgrade you should check all links. You may do that via “Xenu&#39;s Link Sleuth”.&lt;br /&gt;
This program works under Fedora, Red Hat, Ubuntu (use Wine) and Windows.&lt;br /&gt;
You may download it from “http://home.snafu.de/tilman/XENU.ZIP”, just unzip, install and start under Wine.&lt;br /&gt;
1) Go to “File =&amp;gt; Check URL”&lt;br /&gt;
2) Enter “http://domain/jupgrade/”, NOT http://domain/jupgrade, &lt;span style=&quot;color: red;&quot;&gt;DO NOT FORGET &lt;/span&gt;the last “/”.&lt;br /&gt;
(More about this program: http://home.snafu.de/tilman/xenulink.html)&lt;br /&gt;
&lt;br /&gt;
8) If all looks fine - create another subfolder “my_old_joomla” in RootDirectory and move all content FROM RootDirectory to this subdirectory (from /var/www/public_html/ to /var/www/public_html/my_old_joomla) except “jupgrade” and “my_old_joomla” folders.&lt;br /&gt;
&lt;br /&gt;
9) As we can see the RootDirectory is contained only two folders “jupgrade” and “my_old_joomla” you should move all content from /var/www/public_html/jupgrade to /var/www/public_html/&lt;br /&gt;
&lt;br /&gt;
10) That’s all.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(c)&amp;nbsp; &lt;a href=&quot;https://www.facebook.com/profile.php?id=100000897917252&quot; target=&quot;_blank&quot;&gt;Yan Ternovsky&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/5879388140821761649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/5879388140821761649' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5879388140821761649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5879388140821761649'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2012/05/how-to-upgrade-joomla-from-1516-to-25.html' title='How to upgrade Joomla from 1.5/1.6 to 2.5'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-6841860305479004792</id><published>2012-05-05T21:25:00.001+03:00</published><updated>2012-05-05T21:29:21.841+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="innodb"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="myisam"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="percona"/><title type='text'>Changing tables engine from MyISAM to InnoDB</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
1. Edit /etc/my.cnf , make sure that:&lt;/div&gt;
&lt;div class=&quot;quotecontent&quot; style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;quotecontent&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
#skip-innodb - commented out&lt;br /&gt;
innodb_file_per_table = ON&lt;/div&gt;
&lt;div class=&quot;quotecontent&quot; style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
2. install &lt;a href=&quot;http://www.percona.com/software/percona-toolkit/&quot; target=&quot;_blank&quot;&gt;Percona toolkit&lt;/a&gt; &lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;quotecontent&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;quotecontent&quot; style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
Visit &lt;a class=&quot;reference external&quot; href=&quot;http://www.percona.com/software/percona-toolkit/&quot;&gt;http://www.percona.com/software/percona-toolkit/&lt;/a&gt; to download the
latest release of Percona Toolkit.  Or, get the latest release from the
command line:&lt;/div&gt;
&lt;div class=&quot;highlight-perl&quot;&gt;
&lt;div class=&quot;highlight&quot;&gt;
&lt;pre&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;wget&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;percona&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;sr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/get/&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;percona&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;toolkit&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;tar&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;gz&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;wget&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;percona&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;sr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/get/&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;percona&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;toolkit&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;rpm&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;wget&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;percona&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;sr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/get/&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;percona&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;toolkit&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;deb&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
You can also get individual tools from the latest release:&lt;/div&gt;
&lt;div class=&quot;highlight-perl&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;div class=&quot;highlight&quot;&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span class=&quot;n&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span class=&quot;n&quot;&gt;wget&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;percona&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;com&lt;/span&gt;&lt;span class=&quot;sr&quot;&gt;/get/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TOOL&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
Replace &lt;span class=&quot;docutils literal&quot;&gt;&lt;span class=&quot;pre&quot;&gt;TOOL&lt;/span&gt;&lt;/span&gt; with the name of any tool.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
3. using pt-find convert tables from MyISAM to&amp;nbsp; InnoDB&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
pt-find db-name --engine MyISAM --exec &quot;ALTER TABLE %D.%N ENGINE=INNODB&quot; --print&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/6841860305479004792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/6841860305479004792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/6841860305479004792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/6841860305479004792'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2012/05/changing-tables-engine-from-myisam-to.html' title='Changing tables engine from MyISAM to InnoDB'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-2943317756147740859</id><published>2012-05-05T20:58:00.002+03:00</published><updated>2012-05-05T20:58:54.251+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="onapp"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><category scheme="http://www.blogger.com/atom/ns#" term="xen"/><title type='text'>[how to]Windows slow download speed</title><content type='html'>in case if Windows servers show poor download performance in clouds based on Onapp software its necessary to do the following&lt;br /&gt;
&lt;br /&gt;
Networking: Xen network adapter-&amp;gt;Xen network device drivers-&amp;gt; Properties&lt;br /&gt;Configure:&amp;nbsp; -&amp;gt; Properties-&amp;gt;Advanced&lt;br /&gt;&lt;br /&gt;In advanced properties should be set:&lt;br /&gt;CheckSumOffload-&amp;gt; Disabled&lt;br /&gt;LargeSendOffload-&amp;gt;Disabled&lt;br /&gt;
&lt;br /&gt;
and as usual reboot VPS</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/2943317756147740859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/2943317756147740859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/2943317756147740859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/2943317756147740859'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2012/05/how-towindows-slow-download-speed.html' title='[how to]Windows slow download speed'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-8828409241675437423</id><published>2012-01-20T04:25:00.004+02:00</published><updated>2012-01-20T04:25:56.344+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mdadm"/><category scheme="http://www.blogger.com/atom/ns#" term="raid"/><title type='text'>mdadm</title><content type='html'>1. start raid&lt;br /&gt;
&lt;br /&gt;
mdadm --assemble --scan&lt;br /&gt;
&lt;br /&gt;
2. start raid in case if you do not have /etc/mdadm.conf (should have raid UUID) &lt;br /&gt;
&lt;br /&gt;
mdadm /dev/md0 --assemble -u e6d85d3d:d20ddcfc:c7cxxxxx:6a0xxxx&lt;br /&gt;
&lt;br /&gt;
3. generate /etc/mdadm.conf&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;mdadm --detail --scan &amp;gt;&amp;gt; /etc/mdadm.conf</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/8828409241675437423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/8828409241675437423' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8828409241675437423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8828409241675437423'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2012/01/mdadm.html' title='mdadm'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-8369336921199608442</id><published>2012-01-10T20:55:00.000+02:00</published><updated>2012-01-10T20:55:42.333+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mdadm"/><category scheme="http://www.blogger.com/atom/ns#" term="raid"/><title type='text'>[mdadm]  2 how-tos</title><content type='html'>1. how to cancel sync:&lt;br /&gt;
&lt;br /&gt;
in order to cancel raid sync its necessary to left only one drive as active (we are talking about raid1):&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;mdadm --fail /dev/md2 /dev/sda3&lt;/blockquote&gt;
and&amp;nbsp; we will receive something like that (in my case it was md2 and /dev/sda3): &lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;mdadm --detail /dev/md2&lt;br /&gt;
/dev/md2:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version : 0.90&lt;br /&gt;
&amp;nbsp; Creation Time : Fri Feb&amp;nbsp; 4 21:22:50 2011&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Raid Level : raid1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Array Size : 1462766336 (1395.00 GiB 1497.87 GB)&lt;br /&gt;
&amp;nbsp; Used Dev Size : 1462766336 (1395.00 GiB 1497.87 GB)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Raid Devices : 2&lt;br /&gt;
&amp;nbsp; Total Devices : 2&lt;br /&gt;
Preferred Minor : 2&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Persistence : Superblock is persistent&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Update Time : Tue Jan 10 18:37:27 2012&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; State : clean, degraded&lt;br /&gt;
&amp;nbsp;Active Devices : 1&lt;br /&gt;
Working Devices : 1&lt;br /&gt;
&amp;nbsp;Failed Devices : 1&lt;br /&gt;
&amp;nbsp; Spare Devices : 0&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UUID : 71b91f85:bdd01b3f:776c2c25:004bd7b2&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Events : 0.28394&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Number&amp;nbsp;&amp;nbsp; Major&amp;nbsp;&amp;nbsp; Minor&amp;nbsp;&amp;nbsp; RaidDevice State&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; removed&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; active sync&amp;nbsp;&amp;nbsp; /dev/sdb3&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; faulty spare&amp;nbsp;&amp;nbsp; /dev/sda3&lt;/blockquote&gt;
&amp;nbsp;&lt;i&gt;/dev/sda3 &lt;/i&gt;was set as failed.&lt;br /&gt;
&lt;br /&gt;
2. how to re-add failed disk into existing array and restart scan :)&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;set disk as failed (we already did that in 1st how-to )&lt;/li&gt;
&lt;li&gt;remove device from array&lt;/li&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mdadm --remove /dev/md2 /dev/sda3&amp;nbsp;&lt;/blockquote&gt;
&lt;li&gt;add device one more time &lt;/li&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mdadm --add /dev/md2/ /dev/sda3&lt;/blockquote&gt;
&lt;/ul&gt;
&lt;br /&gt;
We can check the status of the arrays on the system with:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
watch -n .1 cat /proc/mdstat&lt;/blockquote&gt;
&amp;nbsp;or&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mdadm --detail /dev/md0
 &lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/8369336921199608442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/8369336921199608442' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8369336921199608442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8369336921199608442'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2012/01/mdadm-2-how-tos.html' title='[mdadm]  2 how-tos'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-1926963441166551280</id><published>2011-10-04T15:54:00.000+03:00</published><updated>2011-10-04T15:54:59.762+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="postgres"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="test"/><category scheme="http://www.blogger.com/atom/ns#" term="zabbix"/><title type='text'>Zabbix auto install script</title><content type='html'>few weeks ago I&#39;ve noticed that Zabbix team actively developed version 2 of their nice monitoring tool. I decided to install beta version with Postgresql 9.1. Unfortunately Zabbix 1.9.6 does not support Psql 9.1, but with my &lt;a href=&quot;https://support.zabbix.com/browse/ZBX-4145&quot;&gt;help&lt;/a&gt; :) they fixed that issue. meanwhile I&#39;ve prepared script which install zabbix from source on clean Centos with Psql 8.4 support.&lt;br /&gt;
&lt;br /&gt;
there is download link to that script &lt;a href=&quot;https://www.dropbox.com/s/e205kh9vnwyppp8/zabbix_install_centos.sh&quot;&gt;https://www.dropbox.com/s/e205kh9vnwyppp8/zabbix_install_centos.sh&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
this script will be good for testers, sys admins who want to check new features of zabbix :) </content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/1926963441166551280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/1926963441166551280' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1926963441166551280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1926963441166551280'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2011/10/zabbix-auto-install-script.html' title='Zabbix auto install script'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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><georss:featurename>L&amp;#39;viv, L&amp;#39;vivs&amp;#39;ka oblast, Ukraine</georss:featurename><georss:point>49.839683 24.029717</georss:point><georss:box>49.757759 23.8717885 49.921607 24.187645500000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5476332775639329133.post-3154361571061603597</id><published>2011-09-03T18:40:00.002+03:00</published><updated>2011-09-03T18:40:56.137+03:00</updated><title type='text'>reboot hung server</title><content type='html'>The &quot;&lt;a href=&quot;http://en.wikipedia.org/wiki/Magic_SysRq_key&quot;&gt;magic SysRq key&lt;/a&gt;&quot;
 provides a way to send commands directly to the kernel through the 
/proc filesystem.   It is enabled via a kernel compile time option, 
CONFIG_MAGIC_SYSRQ, which seems to be standard on most distributions.  
First you must activate the magic SysRq option:&lt;br /&gt;
&lt;pre&gt;    echo 1 &amp;gt; /proc/sys/kernel/sysrq
&lt;/pre&gt;
When you are ready to reboot the machine simply run the following:&lt;br /&gt;
&lt;pre&gt;    echo b &amp;gt; /proc/sysrq-trigger
&lt;/pre&gt;
This does not attempt to unmount or sync filesystems, so it should only 
be used when absolutely necessary, but if your drive is already failing 
then that may not be a concern.</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/3154361571061603597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/3154361571061603597' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/3154361571061603597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/3154361571061603597'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2011/09/reboot-hung-server.html' title='reboot hung server'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-1678197850370265354</id><published>2011-07-14T02:06:00.000+03:00</published><updated>2011-07-14T02:06:04.682+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="postgres"/><category scheme="http://www.blogger.com/atom/ns#" term="psql"/><category scheme="http://www.blogger.com/atom/ns#" term="upgrade"/><title type='text'>How to upgrade Postgres 8.4.x to 9.0.x</title><content type='html'>I&#39;ve found a couple of manuals where this procedure is described, but I faced with the problem with postgres-libs which were required for my SVN.&lt;br /&gt;&lt;br /&gt;so there is my way how to perfom upgrade&lt;br /&gt;&lt;br /&gt;
&lt;blockquote&gt;
1. service postgresql stop&lt;br /&gt;2. rsync -a -v --progress /var/lib/pgsql/ /var/lib/pgsql.old/ #this will backup everything&lt;br /&gt;3. wget http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm&lt;br /&gt;4. rpm -i pgdg-centos-9.0-2.noarch.rpm&lt;br /&gt;5. /etc/yum.repos.d/CentOS-Base.repo and add &#39;exclude=postgresql*&#39; to the [base] and [updates] sections&lt;br /&gt;6. yum remove postgresql84*&lt;br /&gt;7. rpm -e postgresql-libs --nodeps&lt;br /&gt;8. yum install postgresql90 postgresql90-server postgresql90-libs postgresql90-contrib postgresql90-devel&lt;br /&gt;9. service postgresql-9.0 initdb&lt;br /&gt;10. export PATH=/usr/pgsql-9.0/bin:$PATH&lt;br /&gt;11. su - postgres ; export PATH=/usr/pgsql-9.0/bin:$PATH ; pg_upgrade --old-datadir &quot;/var/lib/pgsql.old/data&quot; --new-datadir &quot;/var/lib/pgsql/9.0/data&quot; --old-bindir &quot;/usr/bin&quot; --new-bindir &quot;/usr/pgsql-9.0/bin&quot;&lt;br /&gt;12. cp /var/lib/pgsql.old/data/pg_hba.conf /var/lib/pgsql/9.0/data/pg_hba.conf&lt;br /&gt;13. service postgresql-9.0 start&lt;br /&gt;14. vacuumdb --all --analyze-only&lt;/blockquote&gt;
&lt;br /&gt;&lt;br /&gt;Have fun with new Psql version :)&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/1678197850370265354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/1678197850370265354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1678197850370265354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1678197850370265354'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2011/07/how-to-upgrade-postgres-84x-to-90x.html' title='How to upgrade Postgres 8.4.x to 9.0.x'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-8489727073801442877</id><published>2011-05-31T16:35:00.000+03:00</published><updated>2011-05-31T16:35:22.575+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>hackmysql mirror</title><content type='html'>I&#39;ve created &lt;a href=&quot;http://hackmysql.omgsw.com/&quot;&gt;mirror&lt;/a&gt; of &lt;a href=&quot;http://hackmysql.com/&quot;&gt;hackmysql&lt;/a&gt; for personal usage</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/8489727073801442877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/8489727073801442877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8489727073801442877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8489727073801442877'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2011/05/hackmysql-mirror.html' title='hackmysql mirror'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-1866908234753631392</id><published>2011-05-31T16:28:00.000+03:00</published><updated>2011-05-31T16:28:59.176+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="control panels"/><category scheme="http://www.blogger.com/atom/ns#" term="cpanel"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="percona"/><title type='text'>replace mysql-server with percona server</title><content type='html'>what is percona-server: &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;quotetitle&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;quotecontent&quot;&gt;Percona Server is an enhanced drop-in replacement for MySQL. With Percona Server,&lt;br /&gt;
&lt;br /&gt;
Your queries will run faster and more consistently.&lt;br /&gt;
You will consolidate servers on powerful hardware.&lt;br /&gt;
You will delay sharding, or avoid it entirely.&lt;br /&gt;
You will save money on hosting fees and power.&lt;br /&gt;
You will spend less time tuning and administering.&lt;br /&gt;
You will achieve higher uptime.&lt;br /&gt;
You will troubleshoot without guesswork.&lt;br /&gt;
&lt;br /&gt;
Does  this sound too good to be true? It&#39;s not. Percona Server offers  breakthrough performance, scalability, features, and instrumentation.  Its self-tuning algorithms and support for extremely high-performance  hardware make it the clear choice for companies who demand the utmost  performance and reliability from their database server&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
now  if you want to have such miracle on your cpanel server you need to do  this steps for replacing mysql-server with percona-server:&lt;br /&gt;
&lt;br /&gt;
1. backup VPS.&lt;br /&gt;
2. dump all dbs.&lt;br /&gt;
3. stop all services on the vps &lt;br /&gt;
&lt;div class=&quot;codetitle&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot;&gt;/etc/init.d/httpd  stop ; /etc/init.d/exim stop ; /etc/init.d/pure-ftpd stop ;  /etc/init.d/dovecot stop ; /etc/init.d/cpanel stop ; /etc/init.d/lfd  stop ; /etc/init.d/munin-node stop ; /etc/init.d/crond stop ;  /etc/init.d/mysql stop ; /etc/init.d/exim stop ;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
4. make sure that everything is stopped&lt;br /&gt;
5. check what mysql packages are installed&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;codetitle&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot;&gt;rpm -qa | grep -i mysql&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
in my case it was  MySQL-client MySQL-devel MySQL-test MySQL-bench MySQL-shared MySQL-server&lt;br /&gt;
so I run this command to completely remove mysql from vps&lt;br /&gt;
&lt;div class=&quot;codetitle&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot;&gt;yum remove MySQL-client MySQL-devel MySQL-test MySQL-bench MySQL-shared MySQL-server&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
6. add percona repo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;codetitle&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot;&gt;rpm -Uhv http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
7. check what packages are available in percona repo&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;codetitle&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot;&gt;yum list | grep percona&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
should be something like &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;codetitle&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot;&gt;# yum list | grep percona&lt;br /&gt;
percona-release.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0-1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; installed&lt;br /&gt;
Percona-SQL-50-debuginfo.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.0.92-b23.85.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; percona&lt;br /&gt;
Percona-SQL-client-50.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.0.92-b23.85.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; percona&lt;br /&gt;
Percona-SQL-devel-50.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.0.92-b23.85.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; percona&lt;br /&gt;
Percona-SQL-server-50.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.0.92-b23.85.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; percona&lt;br /&gt;
Percona-SQL-shared-50.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.0.92-b23.85.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; percona&lt;br /&gt;
Percona-SQL-shared-compat.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.1.43-2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
Percona-SQL-test-50.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.0.92-b23.85.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; percona&lt;br /&gt;
Percona-Server-51-debuginfo.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.1.56-rel12.7.224.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
Percona-Server-55-debuginfo.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.5.11-rel20.2.115.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
Percona-Server-client-51.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.1.56-rel12.7.224.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
Percona-Server-devel-51.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.1.56-rel12.7.224.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
Percona-Server-server-51.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.1.56-rel12.7.224.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
Percona-Server-shared-51.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.1.56-rel12.7.224.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
Percona-Server-test-51.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.1.56-rel12.7.224.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
gnuplot.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.2.6-14&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
gnuplot-emacs.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.2.6-14&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
maatkit.noarch&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7284-1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;percona&lt;br /&gt;
xtrabackup.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.6-245.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; percona&lt;br /&gt;
xtrabackup-debuginfo.x86_64&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.6-245.rhel5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; percona&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
8. decide what version you need 5.1 or 5.5 &lt;br /&gt;
in my case I&#39;ve installed percona 5.5&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;codetitle&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codecontent&quot;&gt;# rpm -qa | grep Percona&lt;br /&gt;
Percona-Server-client-55-5.5.11-rel20.2.115.rhel5&lt;br /&gt;
Percona-Server-server-55-5.5.11-rel20.2.115.rhel5&lt;br /&gt;
Percona-Server-shared-55-5.5.11-rel20.2.115.rhel5&lt;br /&gt;
Percona-Server-shared-compat-5.5.11-rel20.2.115.rhel5&lt;br /&gt;
Percona-Server-devel-55-5.5.11-rel20.2.115.rhel5&lt;br /&gt;
Percona-Server-test-55-5.5.11-rel20.2.115.rhel5&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
9.  after Percona-server installation it is necessary to check if it  started correctly as some variables in my.cnf are not supported.&lt;br /&gt;
10. after successful start it is necessary to run mysql_upgrade. &lt;br /&gt;
11. for finishing installation run easyapache and recompile apache/php/etc&lt;br /&gt;
12. Go to Server Configuration -&amp;gt; Update Config and set MySQL to &quot;never&quot;, save, double check it has been done&lt;br /&gt;
13. Test new Apache to be sure server is working</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/1866908234753631392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/1866908234753631392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1866908234753631392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1866908234753631392'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2011/05/replace-mysql-server-with-percona.html' title='replace mysql-server with percona server'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-8248537421731165728</id><published>2011-03-25T14:31:00.000+02:00</published><updated>2011-03-25T14:31:17.940+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><title type='text'>add json support into Flex4</title><content type='html'>Adobe itself made a JSON library that you can find at &lt;a href=&quot;https://github.com/mikechambers/as3corelib&quot;&gt;https://github.com/mikechambers/as3corelib &lt;/a&gt;Follow these steps to add your JSON library to your Flex project: &lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Download the .zip archive and extract it. What you need is the .swc file in the lib folder.&lt;/li&gt;
&lt;li&gt;In Flex Builder / Flash Builder, go to your project’s properties, and then to the &lt;b&gt;Flex Build Path&lt;/b&gt; panel.&lt;/li&gt;
&lt;li&gt;Click on &lt;b&gt;Add SWC&lt;/b&gt;, and select the &lt;b&gt;as3corelib.swc&lt;/b&gt; file&lt;/li&gt;
&lt;li&gt;In your project, add the following line: &lt;b&gt;import com.adobe.serialization.json.JSON;&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;You should be able now to use JSON functionalities in your Flex project &lt;img alt=&quot;:)&quot; class=&quot;wp-smiley&quot; src=&quot;http://cyrilmazur.com/wp-includes/images/smilies/icon_smile.gif&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/8248537421731165728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/8248537421731165728' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8248537421731165728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8248537421731165728'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2011/03/add-json-support-into-flex4.html' title='add json support into Flex4'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-3653643251277594435</id><published>2010-12-17T05:01:00.000+02:00</published><updated>2010-12-17T05:01:54.468+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="lenny"/><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>where is my free disk space :)</title><content type='html'>To list files larger than 10M:&lt;br /&gt;
find / -type f -size +10000k -exec ls -lh {} \; | awk &#39;{ print $8 &quot;: &quot; $5 }&#39; &lt;br /&gt;
&lt;br /&gt;
To list files larger than 100M:&lt;br /&gt;
find / -type f -size +100000k -exec ls -lh {} \; | awk &#39;{ print $8 &quot;: &quot; $5 }&#39;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/3653643251277594435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/3653643251277594435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/3653643251277594435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/3653643251277594435'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2010/12/where-is-my-free-disk-space.html' title='where is my free disk space :)'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-5860900655275719848</id><published>2010-11-29T23:18:00.000+02:00</published><updated>2010-11-29T23:18:13.573+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="innodb"/><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>how to convert tables to InnoDB</title><content type='html'>Using nice tool from &lt;a href=&quot;http://www.maatkit.org/&quot;&gt;Maatkit&lt;/a&gt;, we can easy convert tables from any storage engine to other. there is example how to convert from myisam to&amp;nbsp; innodb&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt; mk-find db-name --engine MyISAM --exec &quot;ALTER TABLE %D.%N ENGINE=INNODB&quot; --print&lt;br /&gt;
&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/5860900655275719848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/5860900655275719848' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5860900655275719848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5860900655275719848'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2010/11/how-to-convert-tables-to-innodb.html' title='how to convert tables to InnoDB'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-994307024716229730</id><published>2010-11-22T22:57:00.002+02:00</published><updated>2010-11-22T23:07:30.313+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>how to install php5.3.x &amp; 5.2.x centos</title><content type='html'>there are 3 steps how to install/upgrade php on centos server/vps&lt;br /&gt;
&lt;br /&gt;
1. install webtatic repo:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;bash&quot; style=&quot;font-family: monospace;&quot;&gt;rpm &lt;span style=&quot;color: #660033;&quot;&gt;-ivh&lt;/span&gt; http:&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;//&lt;/span&gt;repo.webtatic.com&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;yum&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;centos&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;/`&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;uname&lt;/span&gt; -i&lt;span style=&quot;color: black; font-weight: bold;&quot;&gt;`/&lt;/span&gt;webtatic-release-&lt;span style=&quot;color: black;&quot;&gt;5&lt;/span&gt;-1.noarch.rpm&lt;/pre&gt;&lt;br /&gt;
2. install/upgrade  php 5.3.x&lt;br /&gt;
&lt;br /&gt;
yum --enablerepo=webtatic install php&lt;br /&gt;
yum --enablerepo=webtatic upgrade php&lt;br /&gt;
&lt;br /&gt;
3. install/upgrade php 5.2.x&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
yum --enablerepo=webtatic --exclude=php*5.3* update php&lt;br /&gt;
yum --enablerepo=webtatic --exclude=php*5.3* install php</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/994307024716229730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/994307024716229730' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/994307024716229730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/994307024716229730'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2010/11/how-to-install-php53x-52x-centos.html' title='how to install php5.3.x &amp; 5.2.x centos'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-8355836087621501926</id><published>2010-10-08T18:55:00.000+03:00</published><updated>2010-10-08T18:55:14.140+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CPAN"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Perl"/><title type='text'>reset CPAN first run</title><content type='html'>to reset CPAN configuration it is necessary to run this command&lt;br /&gt;
&lt;br /&gt;
perl -e &quot;use CPAN::FirstTime; CPAN::FirstTime::init();&quot;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/8355836087621501926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/8355836087621501926' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8355836087621501926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/8355836087621501926'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2010/10/reset-cpan-first-run.html' title='reset CPAN first run'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-1743468167067962990</id><published>2010-09-20T14:04:00.000+03:00</published><updated>2010-09-20T14:04:30.451+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="change root password"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="reset root password"/><category scheme="http://www.blogger.com/atom/ns#" term="відкрите ПЗ"/><title type='text'>3 ways to reset root password in linux</title><content type='html'>today I&#39;m gonna to explain how to reset root password in linux. 2 of this ways can be applied only if you have access to PC physically. 3rd way can be applied if your service provider have recovery console or something like that:)&lt;br /&gt;
&lt;br /&gt;
so lets start:&lt;br /&gt;
&lt;br /&gt;
1 EDITING LOADER (in my case it will be GRUB)&lt;br /&gt;
&lt;br /&gt;
boot machine&lt;br /&gt;
when the GRUB menu appears, use arrow keys to choose OS to be booted&lt;br /&gt;
press letter &quot;e&#39;&#39; on the keyboard to enter edit mode&lt;br /&gt;
use arrow keys to select the kernel line for kernel to be booted&lt;br /&gt;
press &quot;e&quot; to edit line&lt;br /&gt;
go to end of line and type &quot;single&quot; (without quotes) as a separate word&lt;br /&gt;
press ESC key to exit the edit mode&lt;br /&gt;
press &quot;b&quot; to boot into single user mode&lt;br /&gt;
after booting you can set password for root by running &lt;i&gt;passwd&amp;nbsp; &lt;/i&gt;commnad&lt;br /&gt;
reboot and login with new pw&lt;br /&gt;
&lt;br /&gt;
2. MAGIC WAY :)&lt;br /&gt;
&lt;br /&gt;
If the easy method doesn&#39;t work on your machine, another way to solve  the &quot;lost root password&quot; problem is to boot your computer from your  Linux Installation CD/DVD, or from a live-CD/DVD such as Knoppix.&lt;br /&gt;
&lt;br /&gt;
Boot with the live-disk then go to a terminal and su to root (no  password is required) then issue the following commands (be sure to  replace each /sda1 with your own root partition device):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 5px 20px 20px;&quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 66px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;mount -o dev,rw /mnt/sda1
 
cd /mnt/sda1/etc
&lt;/pre&gt;&lt;/div&gt;Once you are into your system &lt;i&gt;/etc&lt;/i&gt; directory, you can use a text editor (vim, nano, pico, etc.) to edit the &lt;i&gt;/etc/shadow&lt;/i&gt;  file where the password is stored.  Various information about root and  user accounts is kept in this plain-text file but we are only concerned  with the password portion.&lt;br /&gt;
&lt;br /&gt;
For example, the &lt;i&gt;/etc/shadow&lt;/i&gt; entry for the &quot;root&quot; account may look something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 5px 20px 20px;&quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;root:&lt;span style=&quot;color: green;&quot;&gt;$1$aB7mx0Licb$CTbs2RQrfPHkz5Vna0.fnz8H68tB.&lt;/span&gt;:10852:0:99999:7:::
&lt;/pre&gt;&lt;/div&gt;Now, using your favorite editor (I&#39;ll use vim) delete the  password hash.  For this example, the password is in green text and is  all those characters between the 1st and 2nd colons.  &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 5px 20px 20px;&quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;vim shadow
&lt;/pre&gt;&lt;/div&gt;After you&#39;ve edited this field, it should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 5px 20px 20px;&quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;root::10852:0:99999:7:::
&lt;/pre&gt;&lt;/div&gt;Now save the file and change back to the root directory and unmount the system root partition (don&#39;t forget to change the &lt;i&gt;/sda1&lt;/i&gt;) as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 5px 20px 20px;&quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 50px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;cd /
umount /mnt/sda1
&lt;/pre&gt;&lt;/div&gt;Now reboot the computer.&lt;br /&gt;
&lt;br /&gt;
Once the computer has booted and you&#39;re at the login prompt, type &quot;root&quot;  and when asked for the password just press ENTER (entering no  password).  After a successful login, you need to set the new password  for root using the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 5px 20px 20px;&quot;&gt;&lt;div class=&quot;smallfont&quot; style=&quot;margin-bottom: 2px;&quot;&gt;Code:&lt;/div&gt;&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 640px;&quot;&gt;passwd
&lt;/pre&gt;&lt;/div&gt;this way was not tested by me and I found it in google :)&lt;br /&gt;
3.RECOVERY CONSOLE or LIVE CD/DVD&lt;br /&gt;
&lt;br /&gt;
1.Boot from LIVECD or in RC&lt;br /&gt;
2. mount root partition&lt;br /&gt;
- if no raid on server than&lt;br /&gt;
&lt;b&gt;&lt;i&gt;mount /dev/hda2 /mnt/newroot&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
- if you have raid&lt;br /&gt;
&lt;i&gt;mount /dev/md1 /mnt/newroot&lt;/i&gt;&lt;br /&gt;
NOTE make sure that you replace hhd name with your own&lt;br /&gt;
&lt;i&gt; &lt;/i&gt;&lt;br /&gt;
3. Bind /dev/random from your server&lt;br /&gt;
&lt;i&gt;&lt;b&gt; mount –bind /dev /mnt/newroot/dev&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
4.  changing the root file system. (e.g.): &lt;i&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;b&gt;# chroot /mnt/newroot /bin/bash&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
5.change root password&lt;br /&gt;
&lt;b&gt;&lt;i&gt;passwd&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
6. reboot in normal mode</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/1743468167067962990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/1743468167067962990' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1743468167067962990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1743468167067962990'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2010/09/3-ways-to-reset-root-password-in-linux.html' title='3 ways to reset root password in linux'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-5575901453961554246</id><published>2010-09-14T13:21:00.000+03:00</published><updated>2010-09-14T13:21:17.235+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gentoo"/><category scheme="http://www.blogger.com/atom/ns#" term="JDK"/><category scheme="http://www.blogger.com/atom/ns#" term="JRE"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>installin JDK and JRE gentoo way</title><content type='html'>had a task to install JDK and JRE on customer server. And when I found that on server Gentoo has been installed it was too late for me :) ( it is my first experience with Gentoo)&lt;br /&gt;
&lt;br /&gt;
so there are the steps&lt;br /&gt;
&lt;br /&gt;
1. update portage&lt;br /&gt;
&lt;br /&gt;
#emerge --sync&lt;br /&gt;
&lt;br /&gt;
2. install JDK/JRE&lt;br /&gt;
&lt;br /&gt;
# emerge virtual/jdk&lt;br /&gt;
or&lt;br /&gt;
# emerge virtual/jre&lt;br /&gt;
&lt;br /&gt;
3. Configuring JVM&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;list of java virtual machines&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;# java-config --list-available-vms&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;out put should be like:&lt;/pre&gt;&lt;pre&gt;# &lt;span class=&quot;code-input&quot;&gt;java-config --list-available-vms&lt;/span&gt;
The following VMs are available for generation-2:
1)      IcedTea6-bin 1.4.1 [icedtea6-bin]
2)      Sun JDK 1.5.0.20 [sun-jdk-1.5] &lt;span class=&quot;code-comment&quot;&gt;(Build Only)&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;3)      Sun JDK 1.6.0.16 [sun-jdk-1.6]&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;set VM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span class=&quot;code-comment&quot;&gt;(By handle (preferred))&lt;/span&gt;
# &lt;span class=&quot;code-input&quot;&gt;java-config --set-system-vm sun-jdk-1.6&lt;/span&gt;
Now using sun-jdk-1.6 as your generation-2 system JVM
&lt;span class=&quot;code-comment&quot;&gt;(By number)&lt;/span&gt;
# &lt;span class=&quot;code-input&quot;&gt;java-config --set-system-vm 3&lt;/span&gt;
Now using sun-jdk-1.6 as your generation-2 system JVM&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
ref http://www.gentoo.org/doc/en/java.xml</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/5575901453961554246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/5575901453961554246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5575901453961554246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5575901453961554246'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2010/09/installin-jdk-and-jre-gentoo-way.html' title='installin JDK and JRE gentoo way'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-1935334859102331966</id><published>2010-09-10T21:11:00.002+03:00</published><updated>2010-09-10T21:20:30.732+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="lifehack"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="master-master"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="Open Source"/><category scheme="http://www.blogger.com/atom/ns#" term="replication"/><category scheme="http://www.blogger.com/atom/ns#" term="відкрите ПЗ"/><category scheme="http://www.blogger.com/atom/ns#" term="загальна інфа"/><title type='text'>Mysql master-master replication</title><content type='html'>Today I’m going to write a short manual how to create failover mysql cluster. &lt;br /&gt;
What we need:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Server1 = master 1/slave2 &lt;br /&gt;
Server2 = master2/slave2  &lt;br /&gt;
Internal or external IPs (in this example I will use server1 _ip and server2_ip)&lt;br /&gt;
Replication user = replicau&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Step-by-step how to:&lt;br /&gt;
Step 1.&lt;br /&gt;
On server 1 in my.cnf we need to add following lines&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;[mysqld]&lt;br /&gt;
#master config&lt;br /&gt;
Server-id =1&lt;br /&gt;
Log-bin = mysql-bin&lt;br /&gt;
binlog-do-db = test_db&lt;br /&gt;
&lt;/i&gt;… #we can add as many DB as we need to replicate&lt;i&gt;&lt;br /&gt;
#slave config&lt;br /&gt;
replicate-do-db = test_db&lt;br /&gt;
&lt;/i&gt;… #we can add as many DB as we need to replicate&lt;i&gt;&lt;br /&gt;
master-host = server2_ip&lt;br /&gt;
master-user= replicau&lt;br /&gt;
master-password =password_of_user_replicau&lt;br /&gt;
master-port = 3306&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
same lines we should add in my.cnf on server2, the only thing we should change is master-host parameter to use server1_ip instead of server2_ip and change server-id parameter&lt;br /&gt;
Step 2&lt;br /&gt;
Restart mysql servers&lt;br /&gt;
Step 3&lt;br /&gt;
On each server we need to create replication user:&lt;br /&gt;
Server1&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mysql&amp;gt;GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO &#39;replicau&#39;@&#39;server2_ip&#39; IDENTIFIED BY &#39;password&#39;;&lt;/i&gt;&lt;br /&gt;
server2&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mysql&amp;gt; GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO &#39;replicau&#39;@&#39;server1_ip&#39; IDENTIFIED BY &#39;password&#39;;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Step 4&lt;br /&gt;
Add server2 as slave to server1&lt;br /&gt;
- we need to set read_only parameter as ON on server1 (master 1)&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mysql&amp;gt; SET GLOBAL read_only = ON;&lt;br /&gt;
mysql&amp;gt; show master status;&lt;br /&gt;
mysql&amp;gt; show master status;&lt;br /&gt;
+------------------+----------+--------------+------------------+&lt;br /&gt;
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |&lt;br /&gt;
+------------------+----------+--------------+------------------+&lt;br /&gt;
| mysql-bin.000006 | 7984 | | | &lt;br /&gt;
+------------------+----------+--------------+------------------+&lt;br /&gt;
1 row in set (0,00 sec)&lt;br /&gt;
&lt;/i&gt;on server2&lt;i&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;
mysql&amp;gt;slave stop;&lt;br /&gt;
mysql&amp;gt; CHANGE MASTER TO MASTER_HOST = &quot;server2_ip&quot;, MASTER_USER = &quot;replicau&quot;, MASTER_PASSWORD = &quot;password_of_user_replication&quot;, MASTER_LOG_FILE = &quot;mysql-bin.000006&quot;, MASTER_LOG_POS = 7984;&lt;br /&gt;
mysql&amp;gt; slave start;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
on server1 &lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mysql&amp;gt; SET GLOBAL read_only = OFF;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
on server2 check connection status&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mysql&amp;gt; show slave status;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
if we do not receive any errors, everything is perfect &lt;br /&gt;
&lt;br /&gt;
Step 5&lt;br /&gt;
Do Step 4 for connecting server 1 as slave to server2.&lt;br /&gt;
&lt;br /&gt;
Step 6&lt;br /&gt;
Check if everything is fine, if no try from step 1 &lt;br /&gt;
&lt;br /&gt;
Step 7 &lt;br /&gt;
It’s time to have a cup of coffee/tea of a bottle of beer</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/1935334859102331966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/1935334859102331966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1935334859102331966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/1935334859102331966'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2010/09/mysql-master-master-replication.html' title='Mysql master-master replication'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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-5476332775639329133.post-5302858649570180906</id><published>2010-09-09T20:41:00.002+03:00</published><updated>2010-09-09T20:41:59.197+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cacti"/><category scheme="http://www.blogger.com/atom/ns#" term="SNMP"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>enable snmp windows 7</title><content type='html'>To install SNMP on Windows 7, open Control Panel and then click on Programs and Features. Then, click on &quot;Turn Windows features on or off&quot; link in the left pane. If UAC prompted, then click on Yes. Then, in the Windows Features window, scroll down and select &quot;Simple Network Management Protocol (SNMP)&quot; check box and click on OK. Then, wait for some time to install SNMP.&lt;br /&gt;
&lt;br /&gt;
After installing SNMP, click on Start Orb and then type Services.msc in the Search box and hit Enter. Then, scroll down in the right pane and right click on SNMP Services and select Properties. Then, click on Traps tab. Now, in the Community Name box, type the community name to which your computer will send trap messages and then click on &quot;Add to list&quot; button. Then, click on Apply and then OK.</content><link rel='replies' type='application/atom+xml' href='http://blog.omgsw.com/feeds/5302858649570180906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5476332775639329133/5302858649570180906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5302858649570180906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5476332775639329133/posts/default/5302858649570180906'/><link rel='alternate' type='text/html' href='http://blog.omgsw.com/2010/09/enable-snmp-windows-7.html' title='enable snmp windows 7'/><author><name>Michael Veselovski</name><uri>http://www.blogger.com/profile/11218726396776172577</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>