<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2russianfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Gentoo Way</title>
	
	<link>http://gentooway.ru</link>
	<description>Linux, Gentoo, Kubuntu, Ubuntu, Debian ... компилируем всё!</description>
	<lastBuildDate>Mon, 23 Aug 2010 05:55:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/GentooWay" /><feedburner:info uri="gentooway" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc/3.0/</creativeCommons:license><feedburner:emailServiceId>GentooWay</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/GentooWay" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://lenta.yandex.ru/settings.xml?name=feed&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://lenta.yandex.ru/i/addfeed.gif">?????? ? ??????.?????</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2FGentooWay" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item>
		<title>WordPress – WEBO Site SpeedUp vs WP Super Cache</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/6NExlRdNPfM/wordpress-webo-site-speedup-vs-wp-super-cache</link>
		<comments>http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache#comments</comments>
		<pubDate>Tue, 27 Jul 2010 19:30:12 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[Тесты]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[webo site speedup]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp super cache]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=262</guid>
		<description><![CDATA[Попалась статейка на хабре про новую версию WEBO Site Speed Up и как выяснилось имеется версия и для WordPress-а - стало интересно т.к. сам пользуюсь WP Super Cache. Решил их сравнить. Сравнил давно, выложить результаты время нашлось только сейчас. Для сравнения результатов оптимизации были использованы следующие инструменты: Плагин для FireBug-a YSlow Плагин для FireBug-a Page [...]]]></description>
			<content:encoded><![CDATA[<p>Попалась <a href="http://habrahabr.ru/blogs/web_optimizator/97077/">статейка на хабре</a> про новую версию <strong>WEBO Site Speed Up</strong> и как выяснилось имеется версия и для WordPress-а - стало интересно т.к. сам пользуюсь <strong>WP Super Cache</strong>. Решил их сравнить.</p>
<p>Сравнил давно, выложить результаты время нашлось только сейчас.</p>
<p>Для сравнения результатов оптимизации были использованы следующие инструменты:</p>
<ul>
<li>Плагин для <a href="http://getfirebug.com/">FireBug</a>-a <a href="http://developer.yahoo.com/yslow/">YSlow</a></li>
<li>Плагин для <em>FireBug</em>-a <a href="http://code.google.com/intl/ru/speed/page-speed/">Page Speed</a></li>
<li>Замер от <a href="http://webo.in/">webo.in</a></li>
<li>Стресс-тест с помощью <a href="http://loadimpact.com/">loadimpact</a></li>
</ul>
<p>Тестируемая версия <em>WEBO Site SpeedUp</em> - 1.2.1<br />
Тестируемая версия <em>WP Super Cache</em> - 0.9.9.3<br />
Тестируемый блог - этот <img src='http://gentooway.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Т.к. <em>loadimpact</em> используется с бесплатными возможностями были выключены все счётчики и вся реклама т.к. при превышении лимита <em>loadimpact</em> не даёт тестировать если есть ресурсы (картинки, скрипты), запрашиваемые с других сайтов, а т.к. тестировал я несколько раз то лимиты были исчерпаны и пришлось ждать пока они восстановятся и проводить тест уже без внешних ресурсов.</p>
<p>При помощи <em>YSlow</em> также производились замеры размера страницы и скорости загрузки.</p>
<p>Сначала представлю сводную таблицу результатов и подведу итог, а уже если будут интересны подробности то их можно прочитать ниже:<br />

<table id="wp-table-reloaded-id-4-no-1" class="wp-table-reloaded wp-table-reloaded-id-4">
<thead>
	<tr class="row-1 odd">
		<th class="column-1"></th><th class="column-2">Чистый сайт</th><th class="column-3">WEBO Site SpeedUp</th><th class="column-4">WP Super Cache</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">Размер страницы, КБ</td><td class="column-2"><b style="color: green">143.2</b></td><td class="column-3">161.2</td><td class="column-4">143.3</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">Рейтинг webo.in</td><td class="column-2">70</td><td class="column-3"><b style="color: green">82</b></td><td class="column-4">70</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">Рейтинг webo.in, интегральный</td><td class="column-2"><b style="color: green">73</b></td><td class="column-3">65</td><td class="column-4"><b style="color: green">73</b></td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">Page Speed Score</td><td class="column-2">82</td><td class="column-3">83</td><td class="column-4"><b style="color: green">86</b></td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">YSlow Score</td><td class="column-2">86</td><td class="column-3"><b style="color: green">96</b></td><td class="column-4">86</td>
	</tr>
	<tr class="row-7 odd">
		<td class="column-1">Среднее время загрузки (YSlow), секунд</td><td class="column-2">2.69</td><td class="column-3">2.86</td><td class="column-4"><b style="color: green">1.91</b></td>
	</tr>
	<tr class="row-8 even">
		<td class="column-1">Самый быстрый по версии Loadimpact</td><td class="column-2">3</td><td class="column-3"><b style="color: green">1</b></td><td class="column-4">2</td>
	</tr>
	<tr class="row-9 odd">
		<td class="column-1">Цена, рублей</td><td class="column-2"><b style="color: green">0</b></td><td class="column-3">499-1999 (~120 тугриков в день на SaaS версии)</td><td class="column-4"><b style="color: green">0</b></td>
	</tr>
</tbody>
</table>
</p>
<p>Исходя из сравнительного тестирования можно сделать вывод что <em>WP Super Cache</em> лучший и это так и есть, почти. Он подходит больше для «домашнего использования» т.к. бесплатный и механизм кеширования действительно позволяет выдержать довольно сильный наплыв посетителей.<br />
Однако для серьёзных блогов я бы использовал <acronym title="WEBO Site Speed Up">WEBO</acronym> т.к. у него огромное количество всевозможных настроек и оптимизаций которые позволят выжать из блога больше чем <acronym title="WP Super Cache">WP SP</acronym>, например мне не удалось протестировать <acronym title="Content Delivery Network">CDN</acronym> и распределение данных по хостам за неимением оных.<br />
<span id="more-262"></span></p>
<h1>Тестирование</h1>
<h2>Чистый блог</h2>
<p>Сначала был протестирован чистый блог, получилась такая картина:<br />
Рейтинг <em>webo.in</em>: 70/100, интегральный: 73/100<br />
Рейтинг <em>Page Speed</em>: 82/100<br />
Рейтинг <em>YSlow</em>: Overall performance score 86	Ruleset applied: Small Site or Blog<br />
<a href="http://loadimpact.com/result/gentooway.ru-7cad2185049ec66f034b1aa36f06555e">Результаты Loadimpact</a> в целом получились предсказумыми, однако я не думал что сайт доживёт до конца тестирования, повезло <img src='http://gentooway.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Табличка с замерами <em>YSlow</em>:<br />

<table id="wp-table-reloaded-id-1-no-1" class="wp-table-reloaded wp-table-reloaded-id-1">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Размер страницы, КБ</th><th class="column-2">Скорость загрузки, секунд</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">143.2</td><td class="column-2">2.62</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">143.2</td><td class="column-2">2.569</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">143.2</td><td class="column-2">2.631</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">143.2</td><td class="column-2">3.09</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">143.2</td><td class="column-2">2.604</td>
	</tr>
</tbody>
</table>
</p>
<h2>WEBO Site SpeedUp</h2>
<p>Правила nginx:</p>
<div class="codecolorer-container perl default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:300px;"><div class="perl codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$http_accept_encoding</span> <span style="color: #339933;">~*</span> deflate<span style="color: #009900;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
set <span style="color: #0000ff;">$wssenc</span> <span style="color: #339933;">.</span>df<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$http_accept_encoding</span> <span style="color: #339933;">~*</span> gzip<span style="color: #009900;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
set <span style="color: #0000ff;">$wssenc</span> <span style="color: #339933;">.</span>gz<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$http_user_agent</span> <span style="color: #339933;">~</span> <span style="color: #ff0000;">&quot;MSIE 6&quot;</span><span style="color: #009900;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
set <span style="color: #0000ff;">$wssbr</span> <span style="color: #339933;">.</span>ie6<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$http_user_agent</span> <span style="color: #339933;">~</span> <span style="color: #ff0000;">&quot;MSIE 7&quot;</span><span style="color: #009900;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
set <span style="color: #0000ff;">$wssbr</span> <span style="color: #339933;">.</span>ie7<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$http_user_agent</span> <span style="color: #339933;">~</span> <span style="color: #ff0000;">&quot;MSIE 8&quot;</span><span style="color: #009900;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
set <span style="color: #0000ff;">$wssbr</span> <span style="color: #339933;">.</span>ie8<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$http_user_agent</span> <span style="color: #339933;">~</span> <span style="color: #ff0000;">&quot;Android|BlackBerry|HTC|iPhone|iPod|LG|MOT|Mobile|NetFront|Nokia|Opera Mini|Palm|PPC|SAMSUNG|Smartphone|SonyEricsson|Symbian|UP.Browser|webOS&quot;</span><span style="color: #009900;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
set <span style="color: #0000ff;">$wssbr</span> <span style="color: #339933;">.</span>ma<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$request_method</span> <span style="color: #339933;">!=</span> POST<span style="color: #009900;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
set <span style="color: #0000ff;">$cache_file_name</span> <span style="color: #0000ff;">$document_root</span><span style="color: #339933;">/</span>wp<span style="color: #339933;">-</span>content<span style="color: #339933;">/</span>plugins<span style="color: #339933;">/</span>webo<span style="color: #339933;">-</span>site<span style="color: #339933;">-</span>speedup<span style="color: #339933;">/</span>cache<span style="color: #0000ff;">$request_uri</span><span style="color: #339933;">/</span><span style="color: #000066;">index</span><span style="color: #0000ff;">$wssbr</span><span style="color: #339933;">.</span>html<span style="color: #0000ff;">$wssenc</span><span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>f <span style="color: #0000ff;">$cache_file_name</span><span style="color: #009900;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
rewrite <span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span>wp<span style="color: #339933;">-</span>content<span style="color: #339933;">/</span>plugins<span style="color: #339933;">/</span>webo<span style="color: #339933;">-</span>site<span style="color: #339933;">-</span>speedup<span style="color: #339933;">/</span>cache<span style="color: #0000ff;">$1</span><span style="color: #339933;">/</span><span style="color: #000066;">index</span><span style="color: #0000ff;">$wssbr</span><span style="color: #339933;">.</span>html<span style="color: #0000ff;">$wssenc</span> break<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Рейтинг <em>webo.in</em>: 82/100, интегральный: 65/100<br />
Рейтинг <em>Page Speed</em>: 83/100<br />
Рейтинг <em>YSlow</em>: Overall performance score 96	Ruleset applied: Small Site or Blog<br />
<a href="http://loadimpact.com/result/gentooway.ru-d0d5f6b0ac7e02729999d455c0f767b6">Результаты Loadimpact</a> - очень не плохо, даже замечательно - почти горизонтальный график. 2 секунды тоже радуют.<br />
Табличка с замерами <em>YSlow</em>:<br />

<table id="wp-table-reloaded-id-2-no-1" class="wp-table-reloaded wp-table-reloaded-id-2">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Размер странички, КБ</th><th class="column-2">Скорость загрузки, секунд</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">161.2</td><td class="column-2">2.552</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">161.2</td><td class="column-2">2.925</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">161.2</td><td class="column-2">3.511</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">161.2</td><td class="column-2">2.607</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">161.2</td><td class="column-2">2.681</td>
	</tr>
</tbody>
</table>
</p>
<h2>WP Super Cache</h2>
<p>Правила nginx:</p>
<div class="codecolorer-container perl default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:300px;"><div class="perl codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>f <span style="color: #0000ff;">$request_filename</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; break<span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
set <span style="color: #0000ff;">$supercache_file</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span><br />
set <span style="color: #0000ff;">$supercache_uri</span> <span style="color: #0000ff;">$request_uri</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$request_method</span> <span style="color: #339933;">=</span> POST<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;set <span style="color: #0000ff;">$supercache_uri</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$query_string</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;set <span style="color: #0000ff;">$supercache_uri</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$http_cookie</span> <span style="color: #339933;">~*</span> <span style="color: #ff0000;">&quot;comment_author_|wordpress|wp-postpass_&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;set <span style="color: #0000ff;">$supercache_uri</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$supercache_uri</span> <span style="color: #339933;">~</span> <span style="color: #339933;">^</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.+</span><span style="color: #009900;">&#41;</span><span style="color: #0000ff;">$)</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;set <span style="color: #0000ff;">$supercache_file</span> <span style="color: #339933;">/</span>wp<span style="color: #339933;">-</span>content<span style="color: #339933;">/</span>cache<span style="color: #339933;">/</span>supercache<span style="color: #339933;">/</span><span style="color: #0000ff;">$http_host</span><span style="color: #339933;">/</span><span style="color: #0000ff;">$1</span><span style="color: #000066;">index</span><span style="color: #339933;">.</span>html<span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>f <span style="color: #0000ff;">$document_root</span><span style="color: #0000ff;">$supercache_file</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;rewrite <span style="color: #339933;">^</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">.*</span><span style="color: #009900;">&#41;</span>$ <span style="color: #0000ff;">$supercache_file</span> break<span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Рейтинг <em>webo.in</em>: 70/100, интегральный: 73/100<br />
Рейтинг <em>Page Speed</em>: 86/100<br />
Рейтинг <em>YSlow</em>: Overall performance score 86	Ruleset applied: Small Site or Blog<br />
<a href="http://loadimpact.com/result/gentooway.ru-8a34f17c05fed790bdf1ea1e0e25cebf">Результаты Loadimpact</a> - тоже не плохо, небольшое увеличение времени загрузки в конце но в целом отлично.<br />
Табличка с замерами <em>YSlow</em>:<br />

<table id="wp-table-reloaded-id-3-no-1" class="wp-table-reloaded wp-table-reloaded-id-3">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Размер странички, КБ</th><th class="column-2">Скорость загрузки, секунд</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">143.3</td><td class="column-2">1.863</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">143.3</td><td class="column-2">2.099</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">143.3</td><td class="column-2">1.996</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">143.3</td><td class="column-2">1.792</td>
	</tr>
	<tr class="row-6 even">
		<td class="column-1">143.3</td><td class="column-2">1.795</td>
	</tr>
</tbody>
</table>
</p>
<p>Во всех тестах были активны следующие правила nginx:</p>
<div class="codecolorer-container perl default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="perl codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #666666; font-style: italic;"># Static files &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
&nbsp; &nbsp; location <span style="color: #339933;">~*</span> \<span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span>jpg<span style="color: #339933;">|</span>jpeg<span style="color: #339933;">|</span>gif<span style="color: #339933;">|</span>png<span style="color: #339933;">|</span>ico<span style="color: #339933;">|</span>zip<span style="color: #339933;">|</span>tgz<span style="color: #339933;">|</span>gz<span style="color: #339933;">|</span>rar<span style="color: #339933;">|</span>bz2<span style="color: #339933;">|</span>doc<span style="color: #339933;">|</span>xls<span style="color: #339933;">|</span>exe<span style="color: #339933;">|</span>pdf<span style="color: #339933;">|</span>ppt<span style="color: #339933;">|</span>txt<span style="color: #339933;">|</span>tar<span style="color: #339933;">|</span>mid<span style="color: #339933;">|</span>midi<span style="color: #339933;">|</span>wav<span style="color: #339933;">|</span>bmp<span style="color: #339933;">|</span>rtf<span style="color: #009900;">&#41;</span>$ <span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp; &nbsp; &nbsp;off<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; log_not_found &nbsp; off<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; expires &nbsp; &nbsp; &nbsp; &nbsp; max<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; add_header Vary User<span style="color: #339933;">-</span>Agent<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; add_header Vary Accept<span style="color: #339933;">-</span>Encoding<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; add_header Cache<span style="color: #339933;">-</span>Control public<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;"># Static files &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
&nbsp; &nbsp; location <span style="color: #339933;">~*</span> \<span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span>css<span style="color: #339933;">|</span>js<span style="color: #009900;">&#41;</span>$ <span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp; &nbsp; &nbsp;off<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; log_not_found &nbsp; off<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; expires &nbsp; &nbsp; &nbsp; &nbsp; max<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; add_header Vary User<span style="color: #339933;">-</span>Agent<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; add_header Vary Accept<span style="color: #339933;">-</span>Encoding<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; add_header Cache<span style="color: #339933;">-</span>Control private<span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></div>
<p>Скриншоты результатов <em>Loadimpact</em>, на всякий случай:<br />

<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t1_1' title='Clean Site - LoadAverage'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T1_1-150x150.png" class="attachment-thumbnail" alt="Clean Site - LoadAverage" title="Clean Site - LoadAverage" /></a>
<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t1_2' title='Clean Site - LoadTime'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T1_2-150x150.png" class="attachment-thumbnail" alt="Clean Site - LoadTime" title="Clean Site - LoadTime" /></a>
<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t1_3' title='Clean Site - Bandwidth usage'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T1_3-150x150.png" class="attachment-thumbnail" alt="Clean Site - Bandwidth usage" title="Clean Site - Bandwidth usage" /></a>
<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t2_1' title='WEBO Site SpeedUp - LoadAverage'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T2_1-150x150.png" class="attachment-thumbnail" alt="WEBO Site SpeedUp - LoadAverage" title="WEBO Site SpeedUp - LoadAverage" /></a>
<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t2_2' title='WEBO Site SpeedUp - LoadTime'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T2_2-150x150.png" class="attachment-thumbnail" alt="WEBO Site SpeedUp - LoadTime" title="WEBO Site SpeedUp - LoadTime" /></a>
<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t2_3' title='WEBO Site SpeedUp - Bandwidth usage'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T2_3-150x150.png" class="attachment-thumbnail" alt="WEBO Site SpeedUp - Bandwidth usage" title="WEBO Site SpeedUp - Bandwidth usage" /></a>
<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t3_1' title='WP Super Cache - LoadAverage'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T3_1-150x150.png" class="attachment-thumbnail" alt="WP Super Cache - LoadAverage" title="WP Super Cache - LoadAverage" /></a>
<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t3_2' title='WP Super Cache - LoadTime'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T3_2-150x150.png" class="attachment-thumbnail" alt="WP Super Cache - LoadTime" title="WP Super Cache - LoadTime" /></a>
<a href='http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/li_t3_3' title='WP Super Cache - Bandwidth usage'><img width="150" height="150" src="http://gentooway.ru/wp-content/uploads/2010/07/LI_T3_3-150x150.png" class="attachment-thumbnail" alt="WP Super Cache - Bandwidth usage" title="WP Super Cache - Bandwidth usage" /></a>
</p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F07%2Fwordpress-webo-site-speedup-vs-wp-super-cache&amp;linkname=WordPress%20%26%238211%3B%20WEBO%20Site%20SpeedUp%20vs%20WP%20Super%20Cache" title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">В закладки!</a> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/pOnvDzhoBEAV6Wk3HT45q0Oo5rA/0/da"><img src="http://feedads.g.doubleclick.net/~a/pOnvDzhoBEAV6Wk3HT45q0Oo5rA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pOnvDzhoBEAV6Wk3HT45q0Oo5rA/1/da"><img src="http://feedads.g.doubleclick.net/~a/pOnvDzhoBEAV6Wk3HT45q0Oo5rA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/6NExlRdNPfM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2010/07/wordpress-webo-site-speedup-vs-wp-super-cache</feedburner:origLink></item>
		<item>
		<title>Kubuntu 10.04 – Эффекты и проприетарные драйвера для ATI</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/NZvcWuel3_g/kubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati</link>
		<comments>http://gentooway.ru/2010/05/kubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati#comments</comments>
		<pubDate>Mon, 10 May 2010 14:30:23 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[hd4860]]></category>
		<category><![CDATA[kwin]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=232</guid>
		<description><![CDATA[После обновления (а точнее после чистой установки) Kubuntu 10.04 установил проприетарные драйвера для своей ATI Radeon HD 4800 Series и как обычно что-то сломалось...на этот раз сломались эффекты рабочего стола (Через XRender работали но уж очень медленно). Что впрочем не удивительно т.к. дрова свежие и ещё толком не обкатанные. К тому же это ведь ATI... [...]]]></description>
			<content:encoded><![CDATA[<p>После обновления (а точнее после чистой установки) <em>Kubuntu 10.04</em> установил проприетарные драйвера для своей <em>ATI Radeon HD 4800 Series</em> и как обычно что-то сломалось...на этот раз сломались эффекты рабочего стола (Через <em>XRender</em> работали но уж очень медленно). Что впрочем не удивительно т.к. дрова свежие и ещё толком не обкатанные. К тому же это ведь <em>ATI</em>...</p>
<p>Для справки - драйвера можно установить через <em>jockey-kde</em> или же:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span> fglrx fglrx-amdcccle fglrx-dev fglrx-modaliases<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> aticonfig <span style="color: #660033;">--initial</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> reboot</div></div>
<p>Покопавшись в настройках обнаружил что эффекты будут работать если выставить флаг «Отключить внутреннюю проверку» в разделе <em>Параметры системы - Рабочий стол - Эффекты рабочего стола - Дополнительно</em></p>
<p>Но нужно же что бы они работали и в обычном режиме <img src='http://gentooway.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Для этого нужно проверить чтобы в соответствующих разделах <em>xorg.conf</em> были эти значения:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Section &quot;Device&quot;<br />
&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp;&quot;AllowGLXWithComposite&quot; &quot;true&quot;<br />
EndSection<br />
<br />
Section &quot;Extensions&quot;<br />
&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp;&quot;Composite&quot; &quot;Enable&quot;<br />
&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp;&quot;DAMAGE&quot; &quot;Enable&quot;<br />
&nbsp; &nbsp; Option &nbsp; &nbsp; &nbsp;&quot;RENDER&quot; &quot;Enable&quot;<br />
EndSection</div></div>
<p>После применения настроек эффекты работают и при отключении «Отключить внутреннюю проверку».</p>
<p><noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F05%2Fkubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati&amp;linkname=Kubuntu%2010.04%20%26%238211%3B%20%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82%D1%8B%20%D0%B8%20%D0%BF%D1%80%D0%BE%D0%BF%D1%80%D0%B8%D0%B5%D1%82%D0%B0%D1%80%D0%BD%D1%8B%D0%B5%20%D0%B4%D1%80%D0%B0%D0%B9%D0%B2%D0%B5%D1%80%D0%B0%20%D0%B4%D0%BB%D1%8F%20ATI"  title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/share_save" class="a2a_dd addtoany_share_save" >В закладки!</a></noindex> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/uTz-qZPNE1bFYj174EHKsJgnwzE/0/da"><img src="http://feedads.g.doubleclick.net/~a/uTz-qZPNE1bFYj174EHKsJgnwzE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uTz-qZPNE1bFYj174EHKsJgnwzE/1/da"><img src="http://feedads.g.doubleclick.net/~a/uTz-qZPNE1bFYj174EHKsJgnwzE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/NZvcWuel3_g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2010/05/kubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2010/05/kubuntu-10-04-effekty-i-proprietarnye-drajvera-dlya-ati</feedburner:origLink></item>
		<item>
		<title>KDE 4.4.0 – Поломался Skype – Kubuntu 9.10</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/wArRUfasvGY/kde-4-4-0-polomalsya-skype-kubuntu-9-10</link>
		<comments>http://gentooway.ru/2010/02/kde-4-4-0-polomalsya-skype-kubuntu-9-10#comments</comments>
		<pubDate>Thu, 11 Feb 2010 11:49:42 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[Skype]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=216</guid>
		<description><![CDATA[С горем пополам обновился на KDE 4.4.0. Всё красиво но сломался Smooth Tasks и Skype. По Smooth Tasks отписал автору (не у меня одного такая проблема), а вот Skype пришлось реанимировать своими силами. Запуск из консоли выдавал вот такой листинг и Skype намертво зависал # skype bt_audio_service_open: connect&#40;&#41; failed: В соединении отказано &#40;111&#41; bt_audio_service_open: connect&#40;&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>С горем пополам обновился на KDE 4.4.0.</p>
<p>Всё красиво но сломался <a href="http://kde-look.org/content/show.php/Smooth+Tasks?content=101586">Smooth Tasks</a> и <em>Skype</em>.<br />
По <em>Smooth Tasks</em> отписал автору (не у меня одного такая проблема), а вот <em>Skype</em> пришлось реанимировать своими силами.</p>
<p>Запуск из консоли выдавал вот такой листинг и <em>Skype</em> намертво зависал <img src='http://gentooway.ru/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># skype</span><br />
bt_audio_service_open: connect<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> failed: В соединении отказано <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">111</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
bt_audio_service_open: connect<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> failed: В соединении отказано <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">111</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Нет такого файла или каталога<br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>process:<span style="color: #000000;">7282</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: GLib-GObject-CRITICAL <span style="color: #000000; font-weight: bold;">**</span>: <span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>buildd<span style="color: #000000; font-weight: bold;">/</span>glib2.0-2.22.3<span style="color: #000000; font-weight: bold;">/</span>gobject<span style="color: #000000; font-weight: bold;">/</span>gtype.c:<span style="color: #000000;">2458</span>: initialization assertion failed, use IA__g_type_init<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> prior to this <span style="color: #000000; font-weight: bold;">function</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>process:<span style="color: #000000;">7282</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: GLib-CRITICAL <span style="color: #000000; font-weight: bold;">**</span>: g_once_init_leave: assertion <span style="color: #000000; font-weight: bold;">`</span>initialization_value <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #000000;">0</span><span style="color: #ff0000;">' failed<br />
<br />
(process:7282): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function<br />
<br />
(process:7282): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function<br />
<br />
(process:7282): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function<br />
<br />
(process:7282): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)'</span> failed<br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>process:<span style="color: #000000;">7282</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: GLib-GObject-CRITICAL <span style="color: #000000; font-weight: bold;">**</span>: <span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>buildd<span style="color: #000000; font-weight: bold;">/</span>glib2.0-2.22.3<span style="color: #000000; font-weight: bold;">/</span>gobject<span style="color: #000000; font-weight: bold;">/</span>gtype.c:<span style="color: #000000;">2458</span>: initialization assertion failed, use IA__g_type_init<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> prior to this <span style="color: #000000; font-weight: bold;">function</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">&#40;</span>process:<span style="color: #000000;">7282</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: GLib-GObject-CRITICAL <span style="color: #000000; font-weight: bold;">**</span>: g_type_add_interface_static: assertion <span style="color: #000000; font-weight: bold;">`</span>G_TYPE_IS_INSTANTIATABLE <span style="color: #7a0874; font-weight: bold;">&#40;</span>instance_type<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #ff0000;">' failed<br />
<br />
(process:7282): Gtk-CRITICAL **: gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)'</span> failed</div></div>
<p>Ничего лучше в голову не пришло как переустановить GKT темы.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> gtk2-engines gtk2-engines-qtcurve</div></div>
<p>Как оказалось <em>gtk2-engines</em> у меня установлено не было (а может оно и не нужно).</p>
<p>После чего зашёл в настройки внешнего вида и заново выбрал тему для GTK+ - оказалось этого достаточно т.к. <em>Skype</em> заработал <img src='http://gentooway.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Версия <em>Skype</em> 2.1.0.81 (ИМХО предыдущая была лучше, эта иногда виснет).</p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F02%2Fkde-4-4-0-polomalsya-skype-kubuntu-9-10&amp;linkname=KDE%204.4.0%20%26%238211%3B%20%D0%9F%D0%BE%D0%BB%D0%BE%D0%BC%D0%B0%D0%BB%D1%81%D1%8F%20Skype%20%26%238211%3B%20Kubuntu%209.10" title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">В закладки!</a> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/IpFrD6wMU9Ezntm0_xqkCUuEWNw/0/da"><img src="http://feedads.g.doubleclick.net/~a/IpFrD6wMU9Ezntm0_xqkCUuEWNw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/IpFrD6wMU9Ezntm0_xqkCUuEWNw/1/da"><img src="http://feedads.g.doubleclick.net/~a/IpFrD6wMU9Ezntm0_xqkCUuEWNw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/wArRUfasvGY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2010/02/kde-4-4-0-polomalsya-skype-kubuntu-9-10/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2010/02/kde-4-4-0-polomalsya-skype-kubuntu-9-10</feedburner:origLink></item>
		<item>
		<title>Linux – MySQL binary log</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/6YU3SVaWIlc/linux-mysql-binary-log</link>
		<comments>http://gentooway.ru/2010/01/linux-mysql-binary-log#comments</comments>
		<pubDate>Sun, 10 Jan 2010 08:09:33 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[binary logs]]></category>
		<category><![CDATA[free space]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[single server]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=205</guid>
		<description><![CDATA[Основательно занявшись решением вопроса "Куда пропадает свободное место?" с удивлением обнаружил что оно занято файлами mysqld-bin.* в /var/lib/mysql Это же надо было так проколоться. Сервер работает больше года и и за это время бинарные логи разрослись и заняли 14 гигабайт из 20 гиг выделенных на всю систему (не очень активно MySQL используется) но т.к. всегда [...]]]></description>
			<content:encoded><![CDATA[<p>Основательно занявшись решением вопроса "Куда пропадает свободное место?" с удивлением обнаружил что оно занято файлами mysqld-bin.* в <em>/var/lib/mysql</em></p>
<p>Это же надо было так проколоться. Сервер работает больше года и и за это время бинарные логи разрослись и заняли 14 гигабайт из 20 гиг выделенных на всю систему (не очень активно MySQL используется) но т.к. всегда было что удалить как-то не особо обращал на это внимание (то сорцы старые удалишь то ещё что-то).</p>
<p>Что можно было бы сделать в данной ситуации:</p>
<ul>
<li>Перенести логи на другой раздел (мне не подходит)</li>
<li>Увеличить размер, выделенный под систему (тоже не подходит)</li>
<li>Уменьшить суммарный объём логов (самое оно)</li>
</ul>
<p>Чтобы уменьшить занимаемое логами место можно в файл настроек <em>/etc/mysql/my.cnf</em> добавить следующую конфигурацию:</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #000099;">expire_logs_days</span> <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> 5</span></div></div>
<p>Вообще не знаю зачем их хранить даже 5 дней, разве что делать репликацию на <em>slave</em> с задержкой до пяти дней...Да и <a href="http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html">восстаноление</a> из них выглядит как-то сомнительно (хотя тоже имеет место быть).</p>
<p>Также можно удалить старые логи до нужного файла выполнив запрос:</p>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #990099; font-weight: bold;">PURGE</span> <span style="color: #990099; font-weight: bold;">BINARY</span> LOGS <span style="color: #990099; font-weight: bold;">TO</span> <span style="color: #008000;">'mysqld-bin.000123'</span><span style="color: #000033;">;</span></div></div>
<p>А вообще если они не нужны (а не нужны они в 99% на единичном сервере) то их можно отключить (в <em>/etc/mysql/my.cnf</em>):</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#log-bin</div></div>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2010%2F01%2Flinux-mysql-binary-log&amp;linkname=Linux%20%26%238211%3B%20MySQL%20binary%20log" title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">В закладки!</a> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/sGm-mXRRPRL_dhFoRNA8uR9P60I/0/da"><img src="http://feedads.g.doubleclick.net/~a/sGm-mXRRPRL_dhFoRNA8uR9P60I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/sGm-mXRRPRL_dhFoRNA8uR9P60I/1/da"><img src="http://feedads.g.doubleclick.net/~a/sGm-mXRRPRL_dhFoRNA8uR9P60I/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/6YU3SVaWIlc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2010/01/linux-mysql-binary-log/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2010/01/linux-mysql-binary-log</feedburner:origLink></item>
		<item>
		<title>BIND – Настройка зоны и домены третьего уровня для сервера разработки.</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/I4_mLVX_nPg/bind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki</link>
		<comments>http://gentooway.ru/2009/12/bind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki#comments</comments>
		<pubDate>Wed, 09 Dec 2009 18:27:25 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[named]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=155</guid>
		<description><![CDATA[В интернете можно найти много документации на тему настройки BIND на любом языке так что пусть это будет ещё один вариант настройки. Данная настройка отличается тем, что предназначена (как видно из заголовка) в первую очередь для сервера разработки но также может быть использована в домашних сетях. Краткое содержание: Настройка своей зоны (в данном случае - [...]]]></description>
			<content:encoded><![CDATA[<p>В интернете можно найти много документации на тему настройки BIND на любом языке так что пусть это будет <em>ещё один вариант настройки</em>.</p>
<p>Данная настройка отличается тем, что предназначена (как видно из заголовка) в первую очередь для сервера разработки но также может быть использована в домашних сетях.</p>
<p>Краткое содержание:</p>
<ul>
<li>Настройка своей зоны (в данном случае - <em>home</em>)</li>
<li>Настройка обратной зоны (PTR)</li>
<li>Настройка зоны третьего уровня для нужд разработки</li>
</ul>
<p><span id="more-155"></span></p>
<h4>Настройка зоны <em>home</em>. Вариант 1.</h4>
<p>Предположим что DNS-сервер и сервер разработки совмещены, тогда настройка своей зоны будет выглядеть следующим образом:<br />
добавить в настройки BIND (<em>named.conf</em>):</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">zone <span style="color: #933;">&quot;home.&quot;</span> <span style="">&#123;</span><br />
&nbsp; &nbsp; type master<span style="color: #666666; font-style: italic;">;</span><br />
&nbsp; &nbsp; file <span style="color: #933;">&quot;pri/home.zone&quot;</span><span style="color: #666666; font-style: italic;">;</span><br />
<span style="">&#125;</span><span style="color: #666666; font-style: italic;">;</span><br />
zone <span style="color: #933;">&quot;1.168.192.in-addr.arpa&quot;</span> <span style="">&#123;</span><br />
&nbsp; &nbsp; type master<span style="color: #666666; font-style: italic;">;</span><br />
&nbsp; &nbsp; file <span style="color: #933;">&quot;pri/192.168.1.in-addr.arpa&quot;</span><span style="color: #666666; font-style: italic;">;</span><br />
<span style="">&#125;</span><span style="color: #666666; font-style: italic;">;</span></div></div>
<p>Файл зоны <em>pri/home.zone</em>:</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$TTL <span style="">38400</span><br />
@ &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;SOA &nbsp; &nbsp; ns.router.home. admin.gentooway.ru. <span style="">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">200912091</span> &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Serial</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">10800</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Refresh</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">3600</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Retry</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">604800</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Expire</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">38400</span> <span style="">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Minimum</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN NS ns.router.home.<br />
ns.router.home. IN A 192.168.1.20<br />
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN A 192.168.1.20 <span style="color: #666666; font-style: italic;">;; Если необходимо чтобы запросы на несуществующие домены</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">;; обрабатывал этот же сервер (типа asfafasfasf.home. или eerte.fgfgfg.home.)</span><br />
router.home. IN A 192.168.1.20<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN TXT <span style="color: #933;">&quot;Router&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN HINFO <span style="color: #933;">&quot;Intel(R) Celeron(TM) CPU 1400MHz&quot;</span> <span style="color: #933;">&quot;Hardened Gentoo&quot;</span><br />
win-digger.home. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN A 192.168.1.198<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN TXT <span style="color: #933;">&quot;My PC&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN HINFO <span style="color: #933;">&quot;Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz&quot;</span> <span style="color: #933;">&quot;Kubuntu&quot;</span></div></div>
<p>Дополнительные поля можно вписывать, а можно и не вписывать...</p>
<p>Файл обратной зоны <em>pri/192.168.1.in-addr.arpa</em>:</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$TTL &nbsp; &nbsp;<span style="">3600</span><br />
@ &nbsp;IN &nbsp; &nbsp; &nbsp;SOA &nbsp; &nbsp; ns.router.home. admin.gentooway.ru. <span style="">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="">200912091</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Serial</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="">3600</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Refresh</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="">900</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Retry</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="">3600000</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Expire</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="">3600</span> <span style="">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Minimum</span><br />
<br />
@ &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;NS &nbsp; &nbsp; &nbsp;ns.router.home.<br />
<span style="">20</span> &nbsp; &nbsp; &nbsp;IN &nbsp; &nbsp; &nbsp;PTR &nbsp; &nbsp; router.home.<br />
<span style="">20</span> &nbsp; &nbsp; &nbsp;IN &nbsp; &nbsp; &nbsp;PTR &nbsp; &nbsp; ns.router.home.<br />
<span style="">198</span> &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;PTR &nbsp; &nbsp; win-digger.home.</div></div>
<p>Проверим:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># host router.home</span><br />
router.home has address 192.168.1.20</div></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># host 192.168.1.20</span><br />
20.1.168.192.in-addr.arpa domain name pointer ns.router.home.<br />
20.1.168.192.in-addr.arpa domain name pointer router.home.</div></div>
<p>Собственно если в конфигурации было указано<br />
<code class="codecolorer ini default"><span class="ini">* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN A 192.168.1.20</span></code><br />
то все запросы на необъявленные имена будут обращены на<br />
 192.168.1.20, это облегчает работу т.к. не нужно обновлять записи на DNS сервере или редактировать файл <em>hosts</em>.</p>
<p>А что вообще подразумевается под сервером разработок?<br />
Это машина на которой "хостятся" рабочие проекты доступные только локально по именам (например) project1.home best-site.home и т.д.</p>
<h4>Настройка зоны <em>home</em>. Вариант 2.</h4>
<p> (с доменами третьего уровня)<br />
Отличие от варианта 1 в том, что DNS сервер и сервер разработки находятся на разных машинах.</p>
<p>Для данного варианта тестовые имена будут выглядеть так: project1.win-digger.home best-site.win-digger.home, а также все домены третьего уровня будут указывать на win-digger.home.</p>
<p>в <em>named.conf</em> необходимо добавить (помимо того, что указано в варианте 1):</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">// Сервер разработки<br />
zone <span style="color: #933;">&quot;win-digger.home.&quot;</span> <span style="">&#123;</span><br />
&nbsp; &nbsp; type master<span style="color: #666666; font-style: italic;">;</span><br />
&nbsp; &nbsp; file <span style="color: #933;">&quot;pri/win-digger.home.&quot;</span><span style="color: #666666; font-style: italic;">;</span><br />
<span style="">&#125;</span><span style="color: #666666; font-style: italic;">;</span><br />
<br />
// DNS сервер<br />
zone <span style="color: #933;">&quot;router.home.&quot;</span> <span style="">&#123;</span><br />
&nbsp; &nbsp; type master<span style="color: #666666; font-style: italic;">;</span><br />
&nbsp; &nbsp; file <span style="color: #933;">&quot;pri/router.home.&quot;</span><span style="color: #666666; font-style: italic;">;</span><br />
<span style="">&#125;</span><span style="color: #666666; font-style: italic;">;</span></div></div>
<p>Обратная зона не изменилась, поэту её можно подсмотреть в первом варианте.</p>
<p>Файл зоны <em>home</em><br />
<em>pri/home.zone</em></p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$TTL <span style="">38400</span><br />
@ &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;SOA &nbsp; &nbsp; ns.router.home. admin.gentooway.ru. <span style="">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">200912091</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Serial</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">10800</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Refresh</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">3600</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Retry</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">604800</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Expire</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">38400</span> <span style="">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Minimum</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN NS ns.router.home.<br />
ns.router.home. IN A 192.168.1.20</div></div>
<p>Файл зоны для DNS сервера:<br />
<em>pri/router.home.</em></p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$TTL <span style="">38400</span><br />
@ &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;SOA &nbsp; &nbsp; ns.router.home. admin.gentooway.ru. <span style="">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">200912091</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Serial</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">10800</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Refresh</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">3600</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Retry</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">604800</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Expire</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">38400</span> <span style="">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Minimum</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN NS ns.router.home.<br />
@ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN A 192.168.1.20<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN TXT <span style="color: #933;">&quot;Router&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN HINFO <span style="color: #933;">&quot;Intel(R) Celeron(TM) CPU 1400MHz&quot;</span> <span style="color: #933;">&quot;Hardened Gentoo&quot;</span><br />
ns &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IN A 192.168.1.20<br />
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN CNAME @</div></div>
<p>Файл зоны для сервера разработки:<br />
<em>pri/win-digger.home.</em></p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$TTL <span style="">38400</span><br />
@ &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;SOA &nbsp; &nbsp; ns.router.home. admin.gentooway.ru. <span style="">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">200912091</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Serial</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">10800</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Refresh</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">3600</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Retry</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">604800</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Expire</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="">38400</span> <span style="">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Minimum</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN NS ns.router.home.<br />
@ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN A 192.168.1.198<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN TXT <span style="color: #933;">&quot;My PC&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN HINFO <span style="color: #933;">&quot;Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz&quot;</span> <span style="color: #933;">&quot;Kubuntu&quot;</span><br />
* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN CNAME @</div></div>
<p>Проверяем:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># host win-digger.home</span><br />
win-digger.home has address 192.168.1.198</div></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># host 192.168.1.198</span><br />
198.1.168.192.in-addr.arpa domain name pointer win-digger.home.</div></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># host non-existent-or-custom-domain.win-digger.home</span><br />
non-existent-or-custom-domain.win-digger.home is an <span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #000000; font-weight: bold;">for</span> win-digger.home.<br />
win-digger.home has address 192.168.1.198</div></div>
<p>Вот и всё, один раз настроить и не нужно больше никуда лазить и что-то где-то прописывать.</p>
<p><noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F12%2Fbind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki&amp;linkname=BIND%20%26%238211%3B%20%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B0%20%D0%B7%D0%BE%D0%BD%D1%8B%20%D0%B8%20%D0%B4%D0%BE%D0%BC%D0%B5%D0%BD%D1%8B%20%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B3%D0%BE%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D1%8F%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0%20%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8."  title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/share_save" class="a2a_dd addtoany_share_save" >В закладки!</a></noindex> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/fmdJUV-FfHyKJS_srhw0CRoVpBs/0/da"><img src="http://feedads.g.doubleclick.net/~a/fmdJUV-FfHyKJS_srhw0CRoVpBs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/fmdJUV-FfHyKJS_srhw0CRoVpBs/1/da"><img src="http://feedads.g.doubleclick.net/~a/fmdJUV-FfHyKJS_srhw0CRoVpBs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/I4_mLVX_nPg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2009/12/bind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2009/12/bind-nastrojka-zony-i-domeny-tretego-urovnya-dlya-servera-razrabotki</feedburner:origLink></item>
		<item>
		<title>SSH – Авторизация по ключу, что делать если ключ украли.</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/NBGEdETXcO0/ssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali</link>
		<comments>http://gentooway.ru/2009/11/ssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali#comments</comments>
		<pubDate>Sat, 28 Nov 2009 16:07:29 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=157</guid>
		<description><![CDATA[Ни для кого ни секрет насколько удобна авторизация по публичному ключу, а если для кого-то секрет - то можете ознакомиться вот с этой статьёй. Но случается и такое, что ключ нужно заменить, причины? Честно говоря вижу только две - ключ скомпрометирован и, что почти то же самое, его украли. Заменить ключ не составляет особого труда [...]]]></description>
			<content:encoded><![CDATA[<p>Ни для кого ни секрет насколько удобна <em>авторизация по публичному ключу</em>, а если для кого-то секрет - то можете ознакомиться <a href="http://www.opennet.ru/base/sec/ssh_pubkey_auth.txt.html">вот с этой статьёй</a>.</p>
<p>Но случается и такое, что ключ нужно заменить, причины? Честно говоря вижу только две - ключ скомпрометирован и, что почти то же самое, его украли.</p>
<p>Заменить ключ не составляет особого труда - всего-то нужно удалить с серверов старый публичный и записать вместо него новый. Вроде бы всё предельно просто, а что если серверов не один, не два и не три, а 10, 20 и более? Вот тут-то и просыпается <em>великая и могучая</em> лень <img src='http://gentooway.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Но есть необходимость, а значит нужно что-то делать.</p>
<p>На этот случай и был написан небольшой скрипт:<br />
<strong>renew.sh</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />
<span style="color: #666666; font-style: italic;"># Author: Dmitriy Beketov (freemandigger --@-- gmail.com)</span><br />
<span style="color: #666666; font-style: italic;"># Site: http://gentooway.ru &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />
<span style="color: #666666; font-style: italic;"># Licence: Attribution-Noncommercial 3.0 Unported (http://creativecommons.org/licenses/by-nc/3.0/)</span><br />
<br />
<span style="color: #007800;">USAGE</span>=<span style="color: #ff0000;">&quot;Usage: <span style="color: #007800;">${0#*/}</span> [-i id_rsa.old] [-d] &lt;id_rsa.pub.old&gt; &lt;id_rsa.pub.new&gt; &lt;host list&gt;&quot;</span><br />
<br />
<span style="color: #007800;">privkey</span>=<span style="color: #ff0000;">&quot;&quot;</span><br />
<span style="color: #007800;">dryrun</span>=<span style="color: #000000;">0</span> &nbsp;<br />
<span style="color: #666666; font-style: italic;"># Parse command line</span><br />
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">getopts</span> i:d opt; <span style="color: #000000; font-weight: bold;">do</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$opt</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; i<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">privkey</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$OPTARG</span>&quot;</span><span style="color: #000000; font-weight: bold;">;;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; d<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #007800;">dryrun</span>=<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">;;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$USAGE</span><span style="color: #000000; font-weight: bold;">;;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">esac</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #000000; font-weight: bold;">done</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">shift</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$OPTIND</span> - <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> == <span style="color: #ff0000;">'--'</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">shift</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-lt</span> <span style="color: #000000;">3</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$USAGE</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #000000; font-weight: bold;">fi</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #007800;">oldpubkey</span>=<span style="color: #007800;">$1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #007800;">hostlist</span>=<span style="color: #007800;">$3</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #007800;">newpubkey</span>=<span style="color: #007800;">$2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #666666; font-style: italic;"># Check files for exist &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$privkey</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$privkey</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$USAGE</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Old private key file not found&quot;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">fi</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">privkey</span>=<span style="color: #ff0000;">&quot;-i <span style="color: #007800;">$privkey</span>&quot;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #000000; font-weight: bold;">fi</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$oldpubkey</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$USAGE</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Old public key file not found&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$hostlist</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$USAGE</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Host list not found&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$newpubkey</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$USAGE</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;New public key file not found&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Get the part of old public key for grep</span><br />
<span style="color: #007800;">OLD</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$oldpubkey</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2}'</span><span style="color: #000000; font-weight: bold;">`</span><br />
<br />
<span style="color: #007800;">SSH</span>=<span style="color: #ff0000;">'/usr/bin/ssh'</span><br />
<span style="color: #007800;">SSH_COPY</span>=<span style="color: #ff0000;">'/usr/bin/ssh-copy-id'</span><br />
<span style="color: #007800;">SCP</span>=<span style="color: #ff0000;">'/usr/bin/scp'</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">$dryrun</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;START DRY RUN&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;START&quot;</span><br />
<span style="color: #000000; font-weight: bold;">for</span> host <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$hostlist</span><span style="color: #000000; font-weight: bold;">`</span><br />
<span style="color: #000000; font-weight: bold;">do</span><br />
<span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;Copy new key to <span style="color: #007800;">$host</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
<span style="color: #007800;">$SCP</span> <span style="color: #660033;">-q</span> <span style="color: #007800;">$privkey</span> <span style="color: #007800;">$newpubkey</span> <span style="color: #007800;">$host</span>:.ssh<span style="color: #000000; font-weight: bold;">/</span>newpubkey<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$?&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[OK]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>Adding new key to authorized_keys<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">$dryrun</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;dry run&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$SSH</span> <span style="color: #007800;">$privkey</span> <span style="color: #007800;">$host</span> <span style="color: #ff0000;">&quot;cat ~/.ssh/newpubkey &gt;&gt; ~/.ssh/authorized_keys&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[FAIL]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[OK]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>Deleting temporary file of new public key<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">$SSH</span> <span style="color: #007800;">$privkey</span> <span style="color: #007800;">$host</span> <span style="color: #ff0000;">&quot;rm ~/.ssh/newpubkey&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[FAIL]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[OK]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>Backup authorized_keys to authorized_keys.bak<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">$dryrun</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;dry run&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$SSH</span> <span style="color: #007800;">$privkey</span> <span style="color: #007800;">$host</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> .ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys .ssh<span style="color: #000000; font-weight: bold;">/</span>authorized_keys.bak<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[FAIL]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[OK]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>Deleting old public key from authorized_keys<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">$dryrun</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;dry run&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #007800;">$SSH</span> <span style="color: #007800;">$privkey</span> <span style="color: #007800;">$host</span> <span style="color: #ff0000;">&quot;cat ~/.ssh/authorized_keys.bak | grep -v '<span style="color: #007800;">$OLD</span>' &gt; ~/.ssh/authorized_keys&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-gt</span> <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[FAIL]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[OK]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>[FALSE]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<span style="color: #000000; font-weight: bold;">done</span><br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;FINISH&quot;</span><br />
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></div></div>
<h5>Параметры вызова (не обязательные):</h5>
<p><strong>-d</strong> - Тестовый запуск, скрипт попробует скопировать новый ключ во временный файл на удалённом сервере, а затем его же и удалить.<br />
<strong>-i</strong> - Ключ для авторизации на серверах, на случай если в <em>~/.ssh/id_rsa</em> уже установлен новый ключ то в данном параметре можно указать где брать старый.</p>
<h5>Параметры вызова (обязательные):</h5>
<p><strong>id_rsa.pub.old</strong> - старый публичный ключ, который нужно заменить.<br />
<strong>id_rsa.pub.new</strong> - новый публичный ключ.<br />
<strong>host list</strong> - файл со списком пользователей/серверов, где нужно заменить ключ, формат <em>user@host</em> или из <em>~/.ssh/config</em></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">user1@host1<br />
user2@host2<br />
user223@host4<br />
my_predefined_host<br />
blabla@eee</div></div>
<p>Также можно <a href="/wp-content/uploads/2009/11/renew.sh.gz#!md5!2538fffc257ac1c67c3a1288e7221e72">скачать скрипт</a></p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali&amp;linkname=SSH%20%26%238211%3B%20%D0%90%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%20%D0%BF%D0%BE%20%D0%BA%D0%BB%D1%8E%D1%87%D1%83%2C%20%D1%87%D1%82%D0%BE%20%D0%B4%D0%B5%D0%BB%D0%B0%D1%82%D1%8C%20%D0%B5%D1%81%D0%BB%D0%B8%20%D0%BA%D0%BB%D1%8E%D1%87%20%D1%83%D0%BA%D1%80%D0%B0%D0%BB%D0%B8." title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">В закладки!</a> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/F1GTOZpEaIiE6CZZuz3Pa8ztNXE/0/da"><img src="http://feedads.g.doubleclick.net/~a/F1GTOZpEaIiE6CZZuz3Pa8ztNXE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/F1GTOZpEaIiE6CZZuz3Pa8ztNXE/1/da"><img src="http://feedads.g.doubleclick.net/~a/F1GTOZpEaIiE6CZZuz3Pa8ztNXE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/NBGEdETXcO0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2009/11/ssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2009/11/ssh-avtorizaciya-po-klyuchu-chto-delat-esli-klyuch-ukrali</feedburner:origLink></item>
		<item>
		<title>Nginx – Как убрать вопрос «?» в строке адреса</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/Cg9pQE7sF5c/nginx-kak-ubrat-vopros-v-stroke-adresa</link>
		<comments>http://gentooway.ru/2009/11/nginx-kak-ubrat-vopros-v-stroke-adresa#comments</comments>
		<pubDate>Thu, 19 Nov 2009 19:14:09 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=142</guid>
		<description><![CDATA[Бывает необходимо сделать из адреса /index.php? просто /index.php (без ненужного вопроса). Для чего? Ну например для SAPE т.к. в индекс попадает страничка без вопроса в конце. Помню что где-то видел решение, но где забыл, а заодно и забыл как это было сделано Пришлось сделать своё, метод далеко не нов, но лучше я его запишу: server [...]]]></description>
			<content:encoded><![CDATA[<p>Бывает необходимо сделать из адреса <strong>/index.php?</strong> просто <strong>/index.php</strong>  (без ненужного вопроса). Для чего? Ну например для <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.sape.ru/r.ocUTQFWRAm.php" >SAPE</a></noindex> т.к. в индекс попадает страничка без вопроса в конце.</p>
<p>Помню что где-то видел решение, но где забыл, а заодно и забыл как это было сделано <img src='http://gentooway.ru/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Пришлось сделать своё, метод далеко не нов, но лучше я его запишу:</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">server <span style="">&#123;</span><br />
&nbsp;...<br />
&nbsp; &nbsp; &nbsp; &nbsp; set $rr <span style="">0</span><span style="color: #666666; font-style: italic;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; if <span style="">&#40;</span>$request_uri ~ ^/index.php\?$<span style="">&#41;</span> <span style="">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set $rr <span style="">1</span><span style="color: #666666; font-style: italic;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; if <span style="">&#40;</span>$request_method <span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"> POST<span style="">&#41;</span> <span style="">&#123;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set $rr <span style="">0</span><span style="color: #666666; font-style: italic;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; if <span style="">&#40;</span>$rr<span style="">&#41;</span> <span style="">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rewrite .* /index.php permanent<span style="color: #666666; font-style: italic;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="">&#125;</span><br />
...<br />
<span style="">&#125;</span></div></div>
<p>Очень просто.</p>
<p><noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fnginx-kak-ubrat-vopros-v-stroke-adresa&amp;linkname=Nginx%20%26%238211%3B%20%D0%9A%D0%B0%D0%BA%20%D1%83%D0%B1%D1%80%D0%B0%D1%82%D1%8C%20%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%20%26laquo%3B%3F%26raquo%3B%20%D0%B2%20%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B5%20%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0"  title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a></noindex> <noindex><a target="_blank" rel="nofollow" href="http://gentooway.ru/goto/http://www.addtoany.com/share_save" class="a2a_dd addtoany_share_save" >В закладки!</a></noindex> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/F9ORvuaV1qb2GKVCIZEWFfiMvbY/0/da"><img src="http://feedads.g.doubleclick.net/~a/F9ORvuaV1qb2GKVCIZEWFfiMvbY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/F9ORvuaV1qb2GKVCIZEWFfiMvbY/1/da"><img src="http://feedads.g.doubleclick.net/~a/F9ORvuaV1qb2GKVCIZEWFfiMvbY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/Cg9pQE7sF5c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2009/11/nginx-kak-ubrat-vopros-v-stroke-adresa/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2009/11/nginx-kak-ubrat-vopros-v-stroke-adresa</feedburner:origLink></item>
		<item>
		<title>Ubuntu – Шифруем home и swap в Ubuntu 9.10 Karmic</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/5YS-1tsvS2g/ubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic</link>
		<comments>http://gentooway.ru/2009/11/ubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic#comments</comments>
		<pubDate>Tue, 17 Nov 2009 10:18:03 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[crypt]]></category>
		<category><![CDATA[luks]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=45</guid>
		<description><![CDATA[При установке (K)Ubuntu 9.10 Karmic (alternate) на очередную виртуальную машину обратил внимание на вопрос системы о том, желаю ли я зашифровать домашнюю директорию, я конечно же ответил "Да". Но при этом вспомнил что у самого домашняя машина была установлена без данной опции (давно устанавливалась, ещё 8.10 кажется была). Вобщем решил и себе сделать "апгрейд", а [...]]]></description>
			<content:encoded><![CDATA[<p>При установке (K)Ubuntu 9.10 Karmic  (alternate) на очередную виртуальную машину обратил внимание на вопрос системы о том, желаю ли я зашифровать домашнюю директорию, я конечно же ответил "Да". Но при этом вспомнил что у самого домашняя машина была установлена без данной опции (давно устанавливалась, ещё 8.10 кажется была). Вобщем решил и себе сделать "апгрейд", а заодно зашифровать home и swap разделы...</p>
<p>Стоит заметить, что, проще наверное было бы переустановить систему с включенной опцией шифрования, но это же не "gentoo way" <img src='http://gentooway.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
К тому же стандартная поставка использует для шифрования <a href="https://launchpad.net/ecryptfs">eCryptfs</a> и не шифрует swap. В чём разница? Это два разных подхода - eCryptfs шифрует на уровне файлов, а <em>LUKS</em> это блочное устройство (<em>/dev/sdb5</em>). Это как SSL и IPSec. У каждого есть свои плюсы и минусы.</p>
<p><strong>Так что инструкция только для ознакомления. Внимание, при неосторожных действиях вы можете потерять весь домашний раздел...вобщем, вы предупреждены.</strong></p>
<p>Используя <em>Linux Unified Key Setup (<a href="http://ru.wikipedia.org/wiki/LUKS">LUKS</a>)</em> установка шифрованного раздела происходит очень быстро.</p>
<h3>Подготовка</h3>
<p>Установим необходимые пакеты:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> cryptsetup libpam-mount</div></div>
<p><em>device-mapper</em> должен быть активирован (если нет - перезагрузитесь):</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span></div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">итого 0<br />
crw-rw---- 1 root root 10, 60 2009-11-16 21:12 control</div></div>
<p>...с поддержкой шифрования:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dmsetup targets <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> crypt</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">crypt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;v1.7.0</div></div>
<p>Отлично. Всё готово, приступим.<br />
<span id="more-45"></span></p>
<h3>Часть 1. Шифруем swap.</h3>
<h4>1) Отключаем swap.</h4>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">swapoff <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5</div></div>
<h4>2) Заполняем swap случайными данными.</h4>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5 <span style="color: #007800;">bs</span>=1M</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">957+0 записей считано<br />
956+0 записей написано<br />
скопировано 1003450368 байт (1,0 GB), 179,14 c, 5,6 MB/c</div></div>
<p>Этот процесс занимает некоторое время...</p>
<h4>3) настраиваем шифрованный swap.</h4>
<p>Добавьте в <em>/etc/crypttab</em></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptoswap <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">cipher</span>=aes-cbc-essiv:sha256,<span style="color: #007800;">size</span>=<span style="color: #000000;">256</span>,<span style="color: #007800;">hash</span>=sha256,swap</div></div>
<p>Почему <em>/dev/urandom</em>, а не <em>/dev/random</em>? Потому что последний остановит загрузку пока не накопит достаточно энтропии (нажатие на клавиши ускорит этот процесс), а urandom не остановит.</p>
<p>Далее нужно заменить запись <em>swap</em> в <em>/etc/fstab</em>:</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/dev/mapper/cryptoswap none swap sw <span style="">0</span> <span style="">0</span></div></div>
<p>При каждой загрузке <em>swap</em> будет шифроваться разным ключом.</p>
<h4>4) Проверяем.</h4>
<p>Для проверки нужно перезагрузиться.<br />
Теперь у нас есть зашифрованный <em>swap</em>:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>swaps</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Filename &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Type &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Size &nbsp; &nbsp;Used &nbsp; &nbsp;Priority<br />
/dev/mapper/cryptoswap &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;partition &nbsp; &nbsp; &nbsp; 979924 &nbsp;0 &nbsp; &nbsp; &nbsp; -1</div></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptsetup status cryptoswap</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/dev/mapper/cryptoswap is active:<br />
cipher: &nbsp;aes-cbc-essiv:sha256<br />
keysize: 256 bits<br />
device: &nbsp;/dev/sda5<br />
offset: &nbsp;0 sectors<br />
size: &nbsp; &nbsp;1959867 sectors<br />
mode: &nbsp; &nbsp;read/write</div></div>
<p>Готово.</p>
<h3>Часть 2. Создание и подключение зашифрованного <em>home</em> раздела.</h3>
<p>Я выбрал путь минимальных разрушений и выделил для домашней директории новый раздел на который потом скопировал данные с текущего.</p>
<h4>1) Заполним будущий <em>home</em> всякой всячиной:</h4>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb5</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">4080385+0 записей считано<br />
4080384+0 записей написано<br />
скопировано 2089156608 байт (2,1 GB), 639,055 c, 3,3 MB/c</div></div>
<p>Это может занять очень много времени (в зависимости от размера нового диска)</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptsetup <span style="color: #660033;">-c</span> aes-cbc-essiv:sha256 <span style="color: #660033;">-y</span> <span style="color: #660033;">-s</span> <span style="color: #000000;">256</span> luksFormat <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb5</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">WARNING!<br />
========<br />
Данные на /dev/sdb5 будут перезаписаны без возможности восстановления.<br />
<br />
Are you sure? (Type uppercase yes): YES<br />
Enter LUKS passphrase:<br />
Verify passphrase:<br />
Команда выполнена успешно.</div></div>
<p>Мы используем шифр "aes-cbc-essi" т.к. дефолтный подвержен так называемой атаке "по следам" (<a href="http://en.wikipedia.org/wiki/Watermarking_attack">Watermarking attack</a>)</p>
<h4>2) Создаём раздел</h4>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptsetup luksOpen <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb5 cryptohome</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Enter LUKS passphrase:<br />
key slot 0 unlocked.</div></div>
<p>Проверим что получилось</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span></div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">итого 0<br />
crw-rw---- 1 root root &nbsp;10, 60 2009-11-16 23:02 control<br />
brw-rw---- 1 root disk 252, &nbsp;1 2009-11-16 23:38 cryptohome<br />
brw-rw---- 1 root disk 252, &nbsp;0 2009-11-16 23:02 cryptoswap</div></div>
<p>или так:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dmsetup <span style="color: #c20cb9; font-weight: bold;">ls</span></div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptoswap &nbsp; &nbsp; &nbsp;(252, 0)<br />
cryptohome &nbsp; &nbsp; &nbsp;(252, 1)</div></div>
<h4>3) Создадим файловую систему.</h4>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkfs.ext4 <span style="color: #660033;">-j</span> <span style="color: #660033;">-m</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-O</span> dir_index,filetype,sparse_super <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>cryptohome</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mke2fs 1.41.9 (22-Aug-2009)<br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
127488 inodes, 509791 blocks<br />
5097 blocks (1.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=524288000<br />
16 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
7968 inodes per group<br />
Superblock backups stored on blocks:<br />
32768, 98304, 163840, 229376, 294912<br />
<br />
Writing inode tables: done<br />
Creating journal (8192 blocks): done<br />
Writing superblocks and filesystem accounting information: done<br />
<br />
This filesystem will be automatically checked every 37 mounts or<br />
180 days, whichever comes first. &nbsp;Use tune2fs -c or -i to override.</div></div>
<h4>4) Проверяем!</h4>
<p>Начнём с того, что закроем раздел и откроем его заново, а затем примонтируем.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptsetup luksClose cryptohome<br />
cryptsetup luksOpen <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb5 cryptohome</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Enter LUKS passphrase:<br />
Enter LUKS passphrase:<br />
key slot 0 unlocked.<br />
Команда выполнена успешно.</div></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>cryptohome<br />
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>cryptohome <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>cryptohome<br />
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>cryptohome<span style="color: #000000; font-weight: bold;">/</span>testfile<br />
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>cryptohome<span style="color: #000000; font-weight: bold;">/</span></div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">lost+found/ &nbsp;testfile</div></div>
<p>Также убедиться в работе можно посмотрев на вывод команды:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptsetup status cryptohome</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/dev/mapper/cryptohome is active:<br />
cipher: &nbsp;aes-cbc-essiv:sha256<br />
keysize: 256 bits<br />
device: &nbsp;/dev/sdb5<br />
offset: &nbsp;2056 sectors<br />
size: &nbsp; &nbsp;4078328 sectors<br />
mode: &nbsp; &nbsp;read/write</div></div>
<p>Самое время скопировать текущий <em>home</em> на новый раздел.<br />
После всего - размонтируем:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>cryptohome<br />
cryptsetup luksClose cryptohome</div></div>
<h4>5) Монтируем cryptohome при загрузке или при авторизации?</h4>
<p>Теперь нужно сделать выбор. Можно монтировать раздел при загрузке системы, но тогда загрузка будет останавливаться и вам нужно будет каждый раз водить пароль. Если вы хотите чтобы раздел автоматически подключался при авторизации то пропустите этот пункт.</p>
<p>Избежать ручного ввода пароля можно сохранив ключ на usb носителе, как это сделать читайте <a href="http://wiki.archlinux.org/index.php/LUKS_Encrypted_Root#Storing_the_key_externally_.28USB_stick.29">тут</a> (на английском).<br />
Хотите включить подключение при загрузке?<br />
Тогда добавьте в <em>/etc/crypttab</em> следующее:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptohome /dev/sdb5 none luks</div></div>
<p>и в <em>/etc/fstab</em>:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/dev/mapper/cryptohome&nbsp; /home ext4 relatime,errors=remount-ro 0 2</div></div>
<p>Если теперь вы перезагрузитесь то загрузка будет прервана с требованием ввести пароль <em>LUKS</em>. Если вы верно введёте пароль то подключится <em>home</em> раздел. Когда вы авторизуетесь то уже будете работать с шифрованным <em>home</em>.</p>
<h3>Часть 3. Автоматическое подключение при авторизации.</h3>
<p>Более элегантным будет подключение раздела при авторизации. Это подразумевает что у вас должен быть <em>такой же пароль</em> на вход, каким вы шифровали раздел. (На самом деле это не true и лучше было бы использовать внешний носитель для хранения ключа расшифровки но, в этой инструкции подразумевается что пароли одинаковые.)</p>
<h4>1) Удаляем запись из <em>/etc/fstab</em></h4>
<p>Если в <em>/etc/fstab</em> есть запись для подключения зашифрованного раздела её нужно удалить:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>mapper<span style="color: #000000; font-weight: bold;">/</span>cryptohome&nbsp; <span style="color: #000000; font-weight: bold;">/</span>home ext4 relatime,<span style="color: #007800;">errors</span>=remount-ro <span style="color: #000000;">0</span> <span style="color: #000000;">2</span> <span style="color: #666666; font-style: italic;"># вот это нужно удалить</span></div></div>
<h4>2) Изменяем <em>/etc/crypttab</em></h4>
<p>Убедитесь что в <em>/etc/crypttab</em> у вас записано именно это:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptohome <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb5 noauto luks</div></div>
<h4>3) настраиваем pam_mount</h4>
<p>Добавьте следующую строчку в <em>/etc/security/pam_mount.conf.xml</em>. Файл достаточно хорошо прокомментирован так что найти куда именно добавить не составит труда.</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;volume</span> <span style="color: #000066;">cipher</span>=<span style="color: #ff0000;">&quot;aes-cbc-essiv:sha256&quot;</span> <span style="color: #000066;">path</span>=<span style="color: #ff0000;">&quot;/dev/sdb5&quot;</span> <span style="color: #000066;">mountpoint</span>=<span style="color: #ff0000;">&quot;/home&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></div>
<p>Также нужно отредактировать ещё одну строчку таким образом:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;logout</span> <span style="color: #000066;">wait</span>=<span style="color: #ff0000;">&quot;5000&quot;</span> <span style="color: #000066;">hup</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">term</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">kill</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></div>
<p>Это связано с тем, что при выходе не все процессы освобождают блокировку <em>home</em> от размонтирования.</p>
<h4>4) Проверяем!</h4>
<p>Входим и авторизуемся - у вас должен подключиться домашний раздел.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dmsetup <span style="color: #c20cb9; font-weight: bold;">ls</span></div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cryptoswap (252, 0)<br />
_dev_sdb5 (252, 1)</div></div>
<p>и:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-h</span></div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">...<br />
/dev/sdb5 2,0G 36M 1,9G 2% /home</div></div>
<p>Поздравляю. Теперь у вас есть зашифрованные <em>swap</em> и <em>home</em>.</p>
<p>Не забывайте делать бэкапы <img src='http://gentooway.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%A8%D0%B8%D1%84%D1%80%D1%83%D0%B5%D0%BC%20home%20%D0%B8%20swap%20%D0%B2%20Ubuntu%209.10%20Karmic" title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">В закладки!</a> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/LWbSItjgfjY2ODLU7WoPL70zqE0/0/da"><img src="http://feedads.g.doubleclick.net/~a/LWbSItjgfjY2ODLU7WoPL70zqE0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LWbSItjgfjY2ODLU7WoPL70zqE0/1/da"><img src="http://feedads.g.doubleclick.net/~a/LWbSItjgfjY2ODLU7WoPL70zqE0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/5YS-1tsvS2g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2009/11/ubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2009/11/ubuntu-shifruem-home-i-swap-v-ubuntu-9-10-karmic</feedburner:origLink></item>
		<item>
		<title>Полезные команды MySQL</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/nvFC_434158/poleznye-komandy-mysql</link>
		<comments>http://gentooway.ru/2009/11/poleznye-komandy-mysql#comments</comments>
		<pubDate>Thu, 12 Nov 2009 18:27:40 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://gentooway.ru/?p=31</guid>
		<description><![CDATA[Авторизация на сервере (из консоли), -h при необходимости авторизации на удалённом сервере mysql -h hostname -u root -p Создание БД mysql&#62; create database `databasename`; Создание БД с указанием необходимой кодировки mysql&#62; create database `databasename` default character set 'utf8' collate 'utf8_unicode_ci'; Получить список всех БД на сервере mysql&#62; show databases; Переключится на БД mysql&#62; use `db [...]]]></description>
			<content:encoded><![CDATA[<br />
<h5>Авторизация на сервере (из консоли), <em>-h</em> при необходимости авторизации на удалённом сервере</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-h</span> <span style="color: #c20cb9; font-weight: bold;">hostname</span> <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></div></div>
<h5>Создание БД</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">create</span> <span style="color: #990099; font-weight: bold;">database</span> <span style="color: #008000;">`databasename`</span><span style="color: #000033;">;</span></div></div>
<h5>Создание БД с указанием необходимой кодировки</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">create</span> <span style="color: #990099; font-weight: bold;">database</span> <span style="color: #008000;">`databasename`</span> <span style="color: #990099; font-weight: bold;">default</span> character <span style="color: #990099; font-weight: bold;">set</span> <span style="color: #008000;">'utf8'</span> <span style="color: #CC0099; font-weight: bold;">collate</span> <span style="color: #008000;">'utf8<span style="color: #008080; font-weight: bold;">_</span>unicode<span style="color: #008080; font-weight: bold;">_</span>ci'</span><span style="color: #000033;">;</span></div></div>
<h5>Получить список всех БД на сервере</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">show</span> <span style="color: #990099; font-weight: bold;">databases</span><span style="color: #000033;">;</span></div></div>
<h5>Переключится на БД</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">use</span> <span style="color: #008000;">`db name`</span><span style="color: #000033;">;</span></div></div>
<h5>Получить список таблиц в базе</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">show</span> <span style="color: #990099; font-weight: bold;">tables</span><span style="color: #000033;">;</span></div></div>
<h5>Посмотреть структуру таблицы</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">describe</span> <span style="color: #008000;">`table name`</span><span style="color: #000033;">;</span></div></div>
<h5>Ещё один вариант</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">show</span> <span style="color: #990099; font-weight: bold;">columns</span> <span style="color: #990099; font-weight: bold;">from</span> <span style="color: #008000;">`table name`</span><span style="color: #000033;">;</span></div></div>
<h5>Удалить БД</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">drop</span> <span style="color: #990099; font-weight: bold;">database</span> <span style="color: #008000;">`database name`</span><span style="color: #000033;">;</span></div></div>
<h5>Удалить таблицу</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">drop</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #008000;">`table name`</span><span style="color: #000033;">;</span></div></div>
<h5>Показать все данные в таблице</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span><span style="color: #000033;">;</span></div></div>
<h5>Показать строки, где поле <em>`field name`</em> имеет значение "<em>whatever</em>".</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`field name`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'whatever'</span><span style="color: #000033;">;</span></div></div>
<h5>Показать строки с именем "Bob" и номеном "3444444"</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">WHERE</span> name <span style="color: #CC0099;">=</span> <span style="color: #008000;">'Bob'</span> <span style="color: #CC0099; font-weight: bold;">AND</span> phone_number <span style="color: #CC0099;">=</span> <span style="color: #008080;">3444444</span><span style="color: #000033;">;</span></div></div>
<h5>Показать строки с номером "3444444" не содержащие имени "Bob" отсортированные по номеру.</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">WHERE</span> name <span style="color: #CC0099;">!=</span> <span style="color: #008000;">'Bob'</span> <span style="color: #CC0099; font-weight: bold;">AND</span> phone_number <span style="color: #CC0099;">=</span> <span style="color: #008080;">3444444</span> <span style="color: #990099; font-weight: bold;">order by</span> phone_number<span style="color: #000033;">;</span></div></div>
<h5>Показать записи с именем, начинающимся на "bob" и номером 3444444</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">WHERE</span> name <span style="color: #CC0099; font-weight: bold;">like</span> <span style="color: #008000;">'Bob<span style="color: #008080; font-weight: bold;">%</span>'</span> <span style="color: #CC0099; font-weight: bold;">AND</span> phone_number <span style="color: #CC0099;">=</span> <span style="color: #008080;">3444444</span><span style="color: #000033;">;</span></div></div>
<h5>Верннуть все данные с именем, начинающемся на "bob" и номером 3444444 ограничить вывод пятью первыми строками</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">WHERE</span> name <span style="color: #CC0099; font-weight: bold;">like</span> <span style="color: #008000;">'Bob<span style="color: #008080; font-weight: bold;">%</span>'</span> <span style="color: #CC0099; font-weight: bold;">AND</span> phone_number <span style="color: #CC0099;">=</span> <span style="color: #008080;">3444444</span> <span style="color: #990099; font-weight: bold;">limit</span> <span style="color: #008080;">0</span><span style="color: #000033;">,</span><span style="color: #008080;">5</span><span style="color: #000033;">;</span></div></div>
<h5>Используем регулярное выражение. Для регистрозависимого выбора используйте "REGEXP BINARY". Данный запрос найдёт все записи, начинающиеся на "a"</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">WHERE</span> rec <span style="color: #CC0099; font-weight: bold;">RLIKE</span> <span style="color: #008000;">'^a'</span><span style="color: #000033;">;</span></div></div>
<p><span id="more-31"></span></p>
<h5>Показать уникальные записи</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #990099; font-weight: bold;">DISTINCT</span> <span style="color: #008000;">`column name`</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span><span style="color: #000033;">;</span></div></div>
<h5>Показать выбранные колонки отсортированные от а до я (ASC) или от я до а (DESC)</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #008000;">`col1`</span><span style="color: #000033;">,</span><span style="color: #008000;">`col2`</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">ORDER BY</span> <span style="color: #008000;">`col2`</span> <span style="color: #990099; font-weight: bold;">DESC</span><span style="color: #000033;">;</span></div></div>
<h5>Вернуть количество строк в таблице.</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #000099;">COUNT</span><span style="color: #FF00FF;">&#40;</span><span style="color: #CC0099;">*</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span><span style="color: #000033;">;</span></div></div>
<h5>Просуммировать все числовые поля таблицы</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #000099;">SUM</span><span style="color: #FF00FF;">&#40;</span><span style="color: #CC0099;">*</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #008000;">`table name`</span><span style="color: #000033;">;</span></div></div>
<h5>Объединение таблиц. <a href="http://www.codinghorror.com/blog/archives/000976.html">Как работает JOIN (в картинках)</a></h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">select</span> lookup.illustrationid<span style="color: #000033;">,</span> lookup.personid<span style="color: #000033;">,</span>person.birthday <span style="color: #990099; font-weight: bold;">from</span> lookup <span style="color: #000099;">left</span> <span style="color: #990099; font-weight: bold;">join</span> person <span style="color: #990099; font-weight: bold;">on</span> lookup.personid<span style="color: #CC0099;">=</span>person.personid<span style="color: #CC0099;">=</span>statement <span style="color: #990099; font-weight: bold;">to</span> <span style="color: #990099; font-weight: bold;">join</span> birthday <span style="color: #990099; font-weight: bold;">in</span> person <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #990099; font-weight: bold;">with</span> primary illustration id<span style="color: #000033;">;</span></div></div>
<h5>Создание пользователя. Вход под root. Переключение на БД mysql. Создание пользователя и обновление привилегий.</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></div></div>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">use</span> mysql<span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">INSERT</span> <span style="color: #990099; font-weight: bold;">INTO</span> <span style="color: #000099;">user</span> <span style="color: #FF00FF;">&#40;</span>Host<span style="color: #000033;">,</span><span style="color: #000099;">User</span><span style="color: #000033;">,</span><span style="color: #000099;">Password</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">VALUES</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'<span style="color: #008080; font-weight: bold;">%</span>'</span><span style="color: #000033;">,</span><span style="color: #008000;">'username'</span><span style="color: #000033;">,</span><span style="color: #000099;">PASSWORD</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'password'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> flush <span style="color: #990099; font-weight: bold;">privileges</span><span style="color: #000033;">;</span></div></div>
<h5>Смена пароля пользователя из консоли</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqladmin <span style="color: #660033;">-u</span> username <span style="color: #660033;">-h</span> <span style="color: #c20cb9; font-weight: bold;">hostname</span> <span style="color: #660033;">-p</span> password <span style="color: #ff0000;">'new-password'</span></div></div>
<h5>Смена пароля пользователя из консоли MySQL. Вход как root. Смена пароля. Обновление привелегий.</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></div></div>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #000099;">PASSWORD</span> FOR <span style="color: #008000;">'user'</span>@<span style="color: #008000;">'hostname'</span> <span style="color: #CC0099;">=</span> <span style="color: #000099;">PASSWORD</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'passwordhere'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> flush <span style="color: #990099; font-weight: bold;">privileges</span><span style="color: #000033;">;</span></div></div>
<h5>Восстановление пароля root пользователя. Остановить MySQL сервер. Запустить с пониженной безопасностью. Залогинится на MySQL как root. Установить новый пароль. Разлогинится и перезапустить MySQL сервер.</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql stop<br />
mysqld_safe <span style="color: #660033;">--skip-grant-tables</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<br />
mysql <span style="color: #660033;">-u</span> root</div></div>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">use</span> mysql<span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">update</span> <span style="color: #000099;">user</span> <span style="color: #990099; font-weight: bold;">set</span> <span style="color: #000099;">password</span><span style="color: #CC0099;">=</span><span style="color: #000099;">PASSWORD</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'newrootpassword'</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">where</span> <span style="color: #000099;">User</span><span style="color: #CC0099;">=</span><span style="color: #008000;">'root'</span><span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> flush <span style="color: #990099; font-weight: bold;">privileges</span><span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> quit</div></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql stop<br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql start</div></div>
<h5>Установка пароля root если он ещё не задавался ранее</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqladmin <span style="color: #660033;">-u</span> root password newpassword</div></div>
<h5>Смена пароля root</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqladmin <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> oldpassword newpassword</div></div>
<h5>Разрешить пользователю "Bob" подключаться к серверу c локального адреса с паролем "passwd". Войти как root. Переключиться на БД mysql. Дать привилегии. Обновить привелегии.</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></div></div>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">use</span> mysql<span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">grant</span> <span style="color: #990099; font-weight: bold;">usage</span> <span style="color: #990099; font-weight: bold;">on</span> <span style="color: #CC0099;">*</span>.<span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">to</span> bob@localhost identified by <span style="color: #008000;">'passwd'</span><span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> flush <span style="color: #990099; font-weight: bold;">privileges</span><span style="color: #000033;">;</span></div></div>
<h5>Предоставить пользователю привилегии на БД. Авторизоваться как root. Переключиться на БД mysql. Предоставить привилегии. Обновить кеш привилегий.</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></div></div>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">use</span> mysql<span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">INSERT</span> <span style="color: #990099; font-weight: bold;">INTO</span> <span style="color: #000099;">user</span> <span style="color: #FF00FF;">&#40;</span>Host<span style="color: #000033;">,</span>Db<span style="color: #000033;">,</span><span style="color: #000099;">User</span><span style="color: #000033;">,</span>Select_priv<span style="color: #000033;">,</span>Insert_priv<span style="color: #000033;">,</span>Update_priv<span style="color: #000033;">,</span>Delete_priv<span style="color: #000033;">,</span>Create_priv<span style="color: #000033;">,</span>Drop_priv<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">VALUES</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'<span style="color: #008080; font-weight: bold;">%</span>'</span><span style="color: #000033;">,</span><span style="color: #008000;">'databasename'</span><span style="color: #000033;">,</span><span style="color: #008000;">'username'</span><span style="color: #000033;">,</span><span style="color: #008000;">'Y'</span><span style="color: #000033;">,</span><span style="color: #008000;">'Y'</span><span style="color: #000033;">,</span><span style="color: #008000;">'Y'</span><span style="color: #000033;">,</span><span style="color: #008000;">'Y'</span><span style="color: #000033;">,</span><span style="color: #008000;">'Y'</span><span style="color: #000033;">,</span><span style="color: #008000;">'N'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> flush <span style="color: #990099; font-weight: bold;">privileges</span><span style="color: #000033;">;</span></div></div>
<h5>или</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">grant</span> <span style="color: #990099; font-weight: bold;">all</span> <span style="color: #990099; font-weight: bold;">privileges</span> <span style="color: #990099; font-weight: bold;">on</span> databasename.<span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">to</span> username@localhost<span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> flush <span style="color: #990099; font-weight: bold;">privileges</span><span style="color: #000033;">;</span></div></div>
<h5>Обновить информацию для существующего пользователя</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">use</span> mysql<span style="color: #000033;">;</span><br />
mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">UPDATE</span> <span style="color: #008000;">`user`</span> <span style="color: #990099; font-weight: bold;">SET</span> Select_priv <span style="color: #CC0099;">=</span> <span style="color: #008000;">'Y'</span><span style="color: #000033;">,</span>Insert_priv <span style="color: #CC0099;">=</span> <span style="color: #008000;">'Y'</span><span style="color: #000033;">,</span>Update_priv <span style="color: #CC0099;">=</span> <span style="color: #008000;">'Y'</span> <span style="color: #990099; font-weight: bold;">where</span> <span style="color: #008000;">`User`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'user'</span><span style="color: #000033;">;</span><br />
flush <span style="color: #990099; font-weight: bold;">privileges</span><span style="color: #000033;">;</span></div></div>
<h5>Удалить строки из таблицы</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">DELETE</span> <span style="color: #990099; font-weight: bold;">from</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">where</span> <span style="color: #008000;">`field<span style="color: #008080; font-weight: bold;">_</span>name`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'whatever'</span><span style="color: #000033;">;</span></div></div>
<h5>Обновить кеш привилегий</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> flush <span style="color: #990099; font-weight: bold;">privileges</span><span style="color: #000033;">;</span></div></div>
<h5>Удалить колонку из таблицы</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">drop</span> <span style="color: #990099; font-weight: bold;">column</span> <span style="color: #008000;">`column name`</span><span style="color: #000033;">;</span></div></div>
<h5>Добавить колонку в таблицу</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">add</span> <span style="color: #990099; font-weight: bold;">column</span> <span style="color: #008000;">`new column name`</span> <span style="color: #999900; font-weight: bold;">varchar</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div>
<h5>Переименовать колонку</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #008000;">`table name`</span> change <span style="color: #008000;">`old column name`</span> <span style="color: #008000;">`new column name`</span> <span style="color: #999900; font-weight: bold;">varchar</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">50</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div>
<h5>Сделать данные в колоке уникальными (если дублирующиеся уже есть - будет ошибка)</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">add</span> <span style="color: #FF9900; font-weight: bold;">unique</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`column name`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div>
<h5>Модифицировать колонку</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">modify</span> <span style="color: #008000;">`column name`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div>
<h5>Удалить индекс</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">alter</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">drop</span> <span style="color: #990099; font-weight: bold;">index</span> <span style="color: #008000;">`colmn name`</span><span style="color: #000033;">;</span></div></div>
<h5>Загрузить данные в БД из CSV файла.</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">LOAD</span> <span style="color: #990099; font-weight: bold;">DATA</span> <span style="color: #990099; font-weight: bold;">INFILE</span> <span style="color: #008000;">'/tmp/filename.csv'</span> <span style="color: #990099; font-weight: bold;">replace</span> <span style="color: #990099; font-weight: bold;">INTO</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`table name`</span> <span style="color: #990099; font-weight: bold;">FIELDS</span> <span style="color: #990099; font-weight: bold;">TERMINATED BY</span> <span style="color: #008000;">','</span> <span style="color: #990099; font-weight: bold;">LINES</span> <span style="color: #990099; font-weight: bold;">TERMINATED BY</span> <span style="color: #008000;">'<span style="color: #004000; font-weight: bold;">\n</span>'</span> <span style="color: #FF00FF;">&#40;</span>field1<span style="color: #000033;">,</span>field2<span style="color: #000033;">,</span>field3<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div>
<h5>Сделать дамп всех БД для бэкапа. Бэкап это файл с SQL командами для воссоздания всех баз.</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqldump <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> <span style="color: #660033;">--opt</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>alldatabases.sql</div></div>
<h5>Сделать дамп одной базы.</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqldump <span style="color: #660033;">-u</span> username <span style="color: #660033;">-p</span> <span style="color: #660033;">--databases</span> databasename <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>databasename.sql</div></div>
<h5>Сделать дамп одной таблицы</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqldump <span style="color: #660033;">-c</span> <span style="color: #660033;">-u</span> username <span style="color: #660033;">-p</span> databasename tablename <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>databasename.tablename.sql</div></div>
<h5>Восстановить БД (или таблицу) из бэкапа</h5>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql <span style="color: #660033;">-u</span> username <span style="color: #660033;">-p</span> databasename <span style="color: #000000; font-weight: bold;">&amp;</span>lt; <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>databasename.sql</div></div>
<h5>Создание таблицы, пример 1.</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`table name`</span> <span style="color: #FF00FF;">&#40;</span><br />
&nbsp;<span style="color: #008000;">`firstname`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">20</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`middleinitial`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`lastname`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">35</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`suffix`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">3</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`officeid`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`userid`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">15</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`username`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">8</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`email`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">35</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`phone`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">25</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`groups`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">15</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`datestamp`</span> <span style="color: #999900; font-weight: bold;">DATE</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`timestamp`</span> <span style="color: #999900; font-weight: bold;">time</span><span style="color: #000033;">,</span><br />
&nbsp;<span style="color: #008000;">`pgpemail`</span> <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">255</span><span style="color: #FF00FF;">&#41;</span><br />
<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div>
<h5>Создание таблицы, пример 2.</h5>
<div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`table name`</span> <span style="color: #FF00FF;">&#40;</span><br />
&nbsp;personid <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">50</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">not</span> <span style="color: #9900FF; font-weight: bold;">null</span> <span style="color: #FF9900; font-weight: bold;">auto_increment</span> <span style="color: #990099; font-weight: bold;">primary key</span><span style="color: #000033;">,</span><br />
&nbsp;firstname <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">35</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;middlename <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">50</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span><br />
&nbsp;lastname <span style="color: #999900; font-weight: bold;">VARCHAR</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">50</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">'bato'</span><br />
<span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fpoleznye-komandy-mysql&amp;linkname=%D0%9F%D0%BE%D0%BB%D0%B5%D0%B7%D0%BD%D1%8B%D0%B5%20%D0%BA%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%20MySQL" title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">В закладки!</a> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/bm2hYmw_veMG3xfRKIsL_XBLq4A/0/da"><img src="http://feedads.g.doubleclick.net/~a/bm2hYmw_veMG3xfRKIsL_XBLq4A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/bm2hYmw_veMG3xfRKIsL_XBLq4A/1/da"><img src="http://feedads.g.doubleclick.net/~a/bm2hYmw_veMG3xfRKIsL_XBLq4A/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/nvFC_434158" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2009/11/poleznye-komandy-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2009/11/poleznye-komandy-mysql</feedburner:origLink></item>
		<item>
		<title>Ubuntu – Использование FFmpeg и x264</title>
		<link>http://feedproxy.google.com/~r/GentooWay/~3/n0_o6YkUaCk/ubuntu-ispolzovanie-ffmpeg-i-x264</link>
		<comments>http://gentooway.ru/2009/11/ubuntu-ispolzovanie-ffmpeg-i-x264#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:29:38 +0000</pubDate>
		<dc:creator>Дмитрий Бекетов</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://blog.freemandigger.selfip.net/?p=15</guid>
		<description><![CDATA[Самый простой способ получения высококачественного видео - использовать при кодировании предустановки libx264 которые идут вместе с FFmpeg. Перед использованием этих настроек рекомендую прочитать инструкцию по кодированию FFmpeg и x264 (на английском) дабы иметь более чёткое представление об используемых опциях. Вы можете добавлять свои опции такие как разрешение фрэйма (например: -s 640x480) или модифицировать мои примеры [...]]]></description>
			<content:encoded><![CDATA[<p>Самый простой способ получения высококачественного видео - использовать при кодировании предустановки libx264 которые идут вместе с FFmpeg.</p>
<p>Перед использованием этих настроек рекомендую прочитать <a href="http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/">инструкцию по кодированию FFmpeg и x264</a> (на английском) дабы иметь более чёткое представление об используемых опциях. Вы можете добавлять свои опции такие как разрешение фрэйма (например: -s 640x480) или модифицировать мои примеры для своих нужд. Текущий список различный предустановок, например losless и ipod, можно посмотреть в директории <em>/usr/share/ffmpeg</em>.</p>
<p><em><em><span id="more-15"></span></em></em><strong>One-pass CRF</strong> (Один проход Постоянный битрейт) используя настройку для HQ (высокого качества). Неплохо для общего кодирования. Для изменения качества модифицируйте <em>-crf</em>. Чем меньше число тем выше качество и тем больше размер итогового файла. Разумный интервал от 18 до 28.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> input.avi <span style="color: #660033;">-acodec</span> libfaac <span style="color: #660033;">-ab</span> 128k <span style="color: #660033;">-ac</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-vcodec</span> libx264 <span style="color: #660033;">-vpre</span> hq <span style="color: #660033;">-crf</span> <span style="color: #000000;">22</span> <span style="color: #660033;">-threads</span> <span style="color: #000000;">0</span> output.mp4</div></div>
<p><strong>Two-Pass encode</strong> (Кодирование в два прохода)<strong> </strong>использует быстрый первый проход и HQ настройку. Данный метод используется когда важен конечный битрейт и/или конечный размер файла. Часто используется для мобильных устройств таких как iPod из-за некоторых ограничений по битрейту у него.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-y</span> <span style="color: #660033;">-i</span> input.avi <span style="color: #660033;">-pass</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-vcodec</span> libx264 <span style="color: #660033;">-vpre</span> fastfirstpass <span style="color: #660033;">-b</span> 512k <span style="color: #660033;">-bt</span> 512k <span style="color: #660033;">-threads</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-f</span> mp4 <span style="color: #660033;">-an</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> input.avi <span style="color: #660033;">-pass</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-acodec</span> libfaac <span style="color: #660033;">-ab</span> 128k <span style="color: #660033;">-ac</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-vcodec</span> libx264 <span style="color: #660033;">-vpre</span> hq <span style="color: #660033;">-b</span> 512k <span style="color: #660033;">-bt</span> 512k <span style="color: #660033;">-threads</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-f</span> mp4 output.mp4</div></div>
<p><strong>Two-pass iPod 640x480</strong> используя быстрый первый проход, HQ и ipod640 настройки.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> input.avi <span style="color: #660033;">-pass</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-an</span> <span style="color: #660033;">-vcodec</span> libx264 <span style="color: #660033;">-vpre</span> fastfirstpass <span style="color: #660033;">-vpre</span> ipod640 <span style="color: #660033;">-b</span> 512k <span style="color: #660033;">-bt</span> 512k <span style="color: #660033;">-s</span> 640x480 <span style="color: #660033;">-threads</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-f</span> rawvideo <span style="color: #660033;">-y</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> input.avi <span style="color: #660033;">-pass</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-acodec</span> libfaac <span style="color: #660033;">-ab</span> 128k <span style="color: #660033;">-ac</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-vcodec</span> libx264 <span style="color: #660033;">-vpre</span> hq <span style="color: #660033;">-vpre</span> ipod640 <span style="color: #660033;">-b</span> 512k <span style="color: #660033;">-bt</span> 512k <span style="color: #660033;">-s</span> 640x480 <span style="color: #660033;">-threads</span> <span style="color: #000000;">0</span> output.mp4</div></div>
<p>Больше информации, а также другие примеры использования: <a href="http://rob.opendot.cl/index.php/useful-stuff/ipod-video-guide/">iPod Video Guide</a> (на английском).</p>
<p><a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Delicious" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Google Reader" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a> <a href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a> <a href="http://www.addtoany.com/add_to/yahoo_bookmarks?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Yahoo Bookmarks" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/yahoo.png" width="16" height="16" alt="Yahoo Bookmarks"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Digg" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/evernote?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Evernote" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/evernote.png" width="16" height="16" alt="Evernote"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fgentooway.ru%2F2009%2F11%2Fubuntu-ispolzovanie-ffmpeg-i-x264&amp;linkname=Ubuntu%20%26%238211%3B%20%D0%98%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20FFmpeg%20%D0%B8%20x264" title="Twitter" rel="nofollow" target="_blank"><img src="http://gentooway.ru/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save">В закладки!</a> </p>
<p><a href="http://feedads.g.doubleclick.net/~a/J8b8xOZoIW5WOdvpQqYh4MALbYc/0/da"><img src="http://feedads.g.doubleclick.net/~a/J8b8xOZoIW5WOdvpQqYh4MALbYc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/J8b8xOZoIW5WOdvpQqYh4MALbYc/1/da"><img src="http://feedads.g.doubleclick.net/~a/J8b8xOZoIW5WOdvpQqYh4MALbYc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/GentooWay/~4/n0_o6YkUaCk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gentooway.ru/2009/11/ubuntu-ispolzovanie-ffmpeg-i-x264/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gentooway.ru/2009/11/ubuntu-ispolzovanie-ffmpeg-i-x264</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 11.144 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-09-03 01:08:50 -->
