{"id":168635,"date":"2013-02-07T15:10:03","date_gmt":"2013-02-07T11:10:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=168635"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=168635","title":{"rendered":"<span class=\"post_title\">\u0420\u0430\u0437\u0432\u0451\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u0435\u0432 Linux<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0411\u0435\u0437 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0439 \u0438 \u0442.\u0434., \u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u00ab\u0435\u0441\u0442\u044c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u00bb \u0438\u043b\u0438 \u00ab\u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u043f\u043e\u043c\u043e\u0439\u043a\u0430\u00bb \u0438 \u043d\u0430\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u043a\u0430\u0442\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 Linux (\u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u0441\u0451 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435). \u0418\u043d\u043e\u0433\u0434\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0440\u0443\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u2014 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u043e \u0442\u043e\u043c\u0443 \u0436\u0435 \u0430\u0434\u0440\u0435\u0441\u0443 \u0441 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044c\u044e. \u0420\u0430\u0437 \u0432 \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u0438\u043b\u0438 \u0433\u043e\u0434. \u0417\u0430\u0434\u0430\u0447\u0430 \u0442\u0438\u043f\u043e\u0432\u0430\u044f \u0438 \u044f \u0435\u0451 \u043e\u043f\u0438\u0448\u0443 \u0432 \u043f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u0439 RHEL<\/b><\/p>\n<div class=\"spoiler_text\">1. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043b\u044e\u0447 RPM-GPG-KEY. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e.  <\/p>\n<pre><code class=\"bash\">$ cd ~ $ gpg --gen-key $ gpg \u2014export -a 'Name Surname (repo)' &gt; RPM-GPG-KEY <\/code><\/pre>\n<p>  2. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b ~\/.rpmmacros \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"bash\">%_signature gpg %_gpg_path ~\/.gnupg %_gpg_name Name Surname (repo) <\/code><\/pre>\n<p>  3. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e repo, \u0430 \u0432 \u043d\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 i386, i686 \u0438 x86_64. \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0442\u0443\u0434\u0430 \u043a\u043b\u044e\u0447 RPM-GPG-KEY  <\/p>\n<pre><code class=\"bash\">$ mkdir -p repo repo\/i386 repo\/i686 repo\/x86_64 $ mv ~\/RPM-GPG-KEY \/repo\/RPM-GPG-KEY <\/code><\/pre>\n<p>  4. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u043f\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043b\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440. \u0414\u043b\u044f i386 \u0438 i686 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0431\u0443\u0434\u0443\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b. \u0414\u043b\u044f x86_64 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, TeamViewer), \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043b\u0430\u0434\u0451\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0430\u043a\u0435\u0442 i686 \u0438 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043e\u043d \u0432 RHEL \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  5. \u041a\u043b\u0430\u0434\u0451\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e repo <a href=\"http:\/\/pastebin.com\/PNu8L5nD\">\u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f<\/a>.<\/p>\n<p>  6. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0444\u0440\u0430\u0437\u043e\u0439 \u043a\u043b\u044e\u0447\u0438\u043a\u0430 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441.  <\/p>\n<pre><code class=\"bash\">$ chmod a+x $ .\/repo_rhel.sh <\/code><\/pre>\n<p>  7. \u0417\u0430\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e repo \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u0439 \u0432 \/etc\/yum.repos.d\/nobody.repo  <\/p>\n<pre><code class=\"bash\">[nobody] name=nobody repo baseurl=http:\/\/repo\/$basearch gpgkey=http:\/\/repo\/RPM-GPG-KEY enabled=1 gpgcheck=1 priority=1 <\/code><\/pre>\n<p>  8. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f  <\/p>\n<pre><code class=\"bash\"># yum clean all # yum list | grep nobody <\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u0439 Debian<\/b><\/p>\n<div class=\"spoiler_text\">1. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043b\u044e\u0447 DEB-GPG-KEY. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e.  <\/p>\n<pre><code class=\"bash\">$ cd ~ $ gpg --gen-key $ gpg \u2014export -a 'Name Surname (repo)' &gt; DEB-GPG-KEY <\/code><\/pre>\n<p>  2. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b ~\/.rpmmacros \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"bash\">%_signature gpg %_gpg_path ~\/.gnupg %_gpg_name Name Surname (repo) <\/code><\/pre>\n<p>  3. \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e repo, \u0430 \u0432 \u043d\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 dists \u0438 pool. \u0412 \u043d\u0438\u0445 \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432. \u041f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0442\u0443\u0434\u0430 \u043a\u043b\u044e\u0447 DEB-GPG-KEY  <\/p>\n<pre><code class=\"bash\">$ mkdir -p repo\/dists\/nobody\/soft\/binary-i386 $ mkdir -p repo\/dists\/nobody\/soft\/binary-x86_64 $ mkdir -p repo\/pool\/soft\/binary-i386\/t\/teamviewer $ mkdir -p repo\/pool\/soft\/binary-x86_64\/t\/teamviewer $ mv ~\/DEB-GPG-KEY \/repo\/DEB-GPG-KEY <\/code><\/pre>\n<p>  4. \u0412 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 dists \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043f\u0430\u043a\u0435\u0442\u0430\u0445, \u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 pool \u2014 \u0441\u0430\u043c\u0438 \u043f\u0430\u043a\u0435\u0442\u044b. \u041f\u0440\u0438\u0447\u0451\u043c \u0438\u0437 \u0438\u043c\u0435\u043d\u0438 \/binary-i386\/t\/teamviewer \u0443\u0436\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043f\u0430\u043a\u0435\u0442\u044b \u0440\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\u043c, \u0437\u0430\u0442\u0435\u043c \u043f\u043e \u0431\u0443\u043a\u0432\u0435\u043d\u043d\u044b\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c \u0438 \u0437\u0430\u0442\u0435\u043c \u043f\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c \u0441 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0438 \u043e\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0433\u043e\u0441\u044f \u0432 \u043d\u0438\u0445 \u041f\u041e (\u0432 \u043d\u0438\u0445 \u043c\u043e\u0436\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u041f\u041e \u043f\u043e \u0435\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c). \u0422.\u0435. \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f.<\/p>\n<p>  5. \u041a\u043b\u0430\u0434\u0451\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e repo <a href=\"http:\/\/pastebin.com\/nYzix7M0\">\u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f<\/a>.<\/p>\n<p>  6. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0436\u0434\u0451\u043c \u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.  <\/p>\n<pre><code class=\"bash\">$ chmod a+x $ .\/repo_debian.sh <\/code><\/pre>\n<p>  7. \u0417\u0430\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e repo \u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u0439 \u0432 \/etc\/apt\/sources.list  <\/p>\n<pre><code class=\"bash\">deb http:\/\/repo nobody soft <\/code><\/pre>\n<p>  8. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f  <\/p>\n<pre><code class=\"bash\">$ wget http:\/\/repo\/DEB-GPG-KEY $ sudo apt-key add DEB-GPG-KEY $ sudo apt-get clean $ sudo apt-get update <\/code><\/pre>\n<\/div>\n<\/div>\n<p>      \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/168635\/\"> http:\/\/habrahabr.ru\/post\/168635\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0411\u0435\u0437 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0439 \u0438 \u0442.\u0434., \u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u00ab\u0435\u0441\u0442\u044c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u00bb \u0438\u043b\u0438 \u00ab\u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u043f\u043e\u043c\u043e\u0439\u043a\u0430\u00bb \u0438 \u043d\u0430\u0434\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u043a\u0430\u0442\u0438\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 Linux (\u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u0441\u0451 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435). \u0418\u043d\u043e\u0433\u0434\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0440\u0443\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u2014 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u043e \u0442\u043e\u043c\u0443 \u0436\u0435 \u0430\u0434\u0440\u0435\u0441\u0443 \u0441 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044c\u044e. \u0420\u0430\u0437 \u0432 \u043f\u043e\u043b\u0433\u043e\u0434\u0430 \u0438\u043b\u0438 \u0433\u043e\u0434. \u0417\u0430\u0434\u0430\u0447\u0430 \u0442\u0438\u043f\u043e\u0432\u0430\u044f \u0438 \u044f \u0435\u0451 \u043e\u043f\u0438\u0448\u0443 \u0432 \u043f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-168635","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168635"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/168635\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}