{"id":283,"date":"2010-02-21T02:47:47","date_gmt":"2010-02-20T23:47:47","guid":{"rendered":"https:\/\/ivanosipov.ru\/?p=283"},"modified":"2011-03-20T15:35:43","modified_gmt":"2011-03-20T12:35:43","slug":"%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-gluxi-%d0%bd%d0%b0-freebsd-8","status":"publish","type":"post","link":"https:\/\/ivanosipov.ru\/?p=283","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Gluxi \u043d\u0430 FreeBSD 8"},"content":{"rendered":"<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b \u043c\u043d\u043e\u0433\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e <a href=\"http:\/\/ru.wikipedia.org\/wiki\/Jabber\" target=\"_blank\">Jabber<\/a>-\u0431\u043e\u0442\u0430 <a href=\"http:\/\/gluxi.inhex.net\/\" target=\"_blank\"><strong>Gluxi<\/strong><\/a> \u043d\u0430 <a href=\"http:\/\/firstvds.ru\/index.html?from=25211\" target=\"_blank\"><strong>VDS<\/strong><strong> \u043e\u0442 \u0445\u043e\u0441\u0442\u0438\u043d\u0433-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 <\/strong><strong>firstvds.ru<\/strong><\/a> \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c <strong><a href=\"http:\/\/www.freebsd.org\/ru\/\" target=\"_blank\">FreeBSD 8<\/a><\/strong>. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e.<br \/>\n\u0418\u0442\u0430\u043a, \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c &#8211; \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u0440\u0430\u0431\u043e\u0442\u044b <strong>Gluxi<\/strong>.<br \/>\n<code><em>pkg_add -r qt4<br \/>\npkg_add -r qt4-qmake<br \/>\ncd \/usr\/ports\/devel\/cmake &amp;&amp; make install clean<br \/>\npkg_add -r qt4-moc<br \/>\npkg_add -r qt4-uic<br \/>\npkg_add -r qt4-rcc<br \/>\ncd \/usr\/ports\/databases\/qt4-pgsql-plugin &amp;&amp; make install clean<br \/>\ncd \/usr\/ports\/databases\/qt4-pgsql-plugin &amp;&amp; make install clean<\/em><\/code><br \/>\n\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0440\u0442\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <em>rm -rf \/usr\/ports\/distfiles\/*<\/em><br \/>\n<code><em>pkg_add -r qt4-mysql-plugin<br \/>\npkg_add -r qt4-odbc-plugin<br \/>\npkg_add -r lynx<br \/>\npkg_add -r openssl<br \/>\npkg_add -r nano<br \/>\npkg_add -r mercurial<\/em><\/code><br \/>\n\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f <strong>gloox<\/strong> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432 \u0412\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c &#8211; \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code><em>pkg_info.<\/em><\/code><br \/>\n\u0415\u0441\u043b\u0438 \u0412\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u0432\u0435\u0440\u0441\u0438\u044e, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0449\u0443\u044e\u0441\u044f \u043e\u0442 <strong>gloox-0.9.x<\/strong>, \u0438\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430, \u0442\u043e \u0434\u043b\u044f VDS \u043d\u0430 \u0431\u0430\u0437\u0435 <strong>FreeBSD 8<\/strong> \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code><em>pkg_add -r <a href=\"https:\/\/ivanosipov.ru\/ports\/amd64\/gloox-0.9.9.8.tbz\" target=\"_blank\">http:\/\/files.ivanosipov.ru\/ports\/amd64\/gloox-0.9.9.8.tbz<\/a><\/em> <\/code>\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0443\u0442\u0440\u044b <strong><em>amd64<\/em><\/strong>. <!--more--> \u0415\u0441\u043b\u0438 \u0412\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435<strong><em> i386<\/em><\/strong>, \u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0437\u0435\u0440\u043a\u0430\u043b \u0438\u043b\u0438 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0441 \u043c\u043e\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430<em> <\/em><code><em>pkg_add -r <\/em><\/code><code><em><a href=\"http:\/\/files.ivanosipov.ru\/ports\/gloox-0.9.9.12.tar.bz2\" target=\"_blank\">http:\/\/files.ivanosipov.ru\/ports\/gloox-0.9.9.12.tar.bz2<\/a><\/em><\/code> \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <strong><a href=\"http:\/\/www.postgresql.org\/\" target=\"_blank\">PostgreSQL<\/a><\/strong> (\u0435\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 <em>VDS<\/em> \u043e\u0442 <strong>firstvds.ru<\/strong>, \u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c):<br \/>\n<code><em>cd \/usr\/ports\/databases\/postgresql83-server; make install clean<br \/>\ncd \/usr\/ports\/databases\/postgresql83-client; make install clean<\/em><\/code><br \/>\n\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b <em>\/etc\/login.conf<\/em> \u0422\u0443\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438:<br \/>\n<code><em># :tc=default:<br \/>\npostgres:\\<br \/>\n:lang=en_US.UTF-8:\\<br \/>\n:setenv=LC_COLLATE=C:\\<br \/>\n:tc=default:<\/em><\/code><br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b  <em>\/etc\/rc.conf<\/em>. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438:<br \/>\n<code><em>postgresql_enable=\"YES\"<br \/>\npostgresql_class=\"postgres\"<br \/>\n<\/em><\/code>\u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0411\u0414:<em><br \/>\n\/usr\/local\/etc\/rc.d\/postgresql initdb<\/em><br \/>\n\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c PostgreSQL-server \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <em>\/usr\/local\/etc\/rc.d\/postgresql start<\/em><br \/>\n\u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c <em>\/usr\/local\/pgsql\/data\/pg_hba.conf <\/em>\u0412 \u043d\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u043e\u043a\u0443<br \/>\n<code><em>#host    all         all         ::1\/128               trust<\/em><\/code><br \/>\n\u041d\u0438\u0436\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438:<br \/>\n<code><em>local gluxi pgsql trust<br \/>\nlocal gluxi gluxi trust<br \/>\nlocal postgres pgsql trust<br \/>\nhost gluxi gluxi 127.0.0.1\/32 trust<br \/>\nhost pgsql postgres 127.0.0.1\/32 trust<br \/>\nhost postgres pgsql 127.0.0.1\/32 trust<br \/>\nhost    gluxi         gluxi        IP-\u0430\u0434\u0440\u0435\u0441_\u0412\u0430\u0448\u0435\u0433\u043e_\u0441\u0435\u0440\u0432\u0435\u0440\u0430\/32        trust<br \/>\nhost gluxi gluxi ::1\/32 trust<\/em><\/code><br \/>\n\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445:<br \/>\n<code><em>su pgsql<\/em><br \/>\n<em>$ pg_ctl reload -D \/usr\/local\/pgsql\/data\/<br \/>\nserver signaled<\/em><\/code><br \/>\n\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 gluxi \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f gluxi:<br \/>\n<code><em>$ createdb gluxi;<br \/>\n$ createuser gluxi;<br \/>\nShall the new role be a superuser? (y\/n) y<br \/>\n$ psql -U pgsql gluxi<br \/>\ngluxi=# alter user gluxi with password '\u041f\u0430\u0440\u043e\u043b\u044c_\u043a_\u0431\u0430\u0437\u0435_\u0434\u0430\u043d\u043d\u044b\u0445_gluxi';<br \/>\nALTER ROLE<\/em><\/code><br \/>\n\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u0441\u0431\u043e\u0440\u043a\u0435 <strong>Gluxi<\/strong>:<br \/>\n<code><em>cd \/home<br \/>\nhg clone http:\/\/hg.inhex.net\/gluxi-dev<br \/>\ncd gluxi-dev<br \/>\nmkdir debug<br \/>\ncd debug<br \/>\ncmake ..<br \/>\ngmake<br \/>\ncp \/home\/gluxi-dev\/sql\/pgsql.sql \/home\/gluxi-dev\/debug\/pgsql.sql<br \/>\ncp \/home\/gluxi-dev\/sql\/config.sql \/home\/gluxi-dev\/debug\/config.sql<br \/>\ncp \/home\/gluxi-dev\/gluxi.cfg \/home\/gluxi-dev\/debug\/gluxi.cfg<br \/>\npsql -U gluxi gluxi &lt; pgsql.sql<br \/>\npsql -U gluxi gluxi &lt; config.sql<\/em><\/code><br \/>\n\u041e\u0431\u043d\u043e\u0432\u0438\u043c \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 gluxi. \u0418\u0434\u0435\u043c <em>cd \/home\/gluxi-dev\/sql\/update\/<\/em> \u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b dbupdate.sh:<br \/>\n<code><em>#!\/bin\/sh<br \/>\nDBHOST=\"localhost\"<br \/>\nDBNAME=\"gluxi\"<br \/>\nDBUSER=\"gluxi\"<br \/>\nDBPASS=\"\u041f\u0430\u0440\u043e\u043b\u044c_\u043a_\u0431\u0430\u0437\u0435_\u0434\u0430\u043d\u043d\u044b\u0445_gluxi\"<br \/>\nDBTYPE=\"$1\"<br \/>\nQUERYCMD=\"\"<br \/>\nINLINE_SUFFIX=\"\"<\/em><\/code><br \/>\n\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 cd \/home\/gluxi-dev\/sql\/update\/dbupdate.sh<br \/>\n\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u044d\u0442\u0430\u043f\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \/home\/gluxi-dev\/debug\/gluxi.cfg. \u0422\u0443\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043d\u0435\u0442, \u043e\u0434\u043d\u0430\u043a\u043e, \u0445\u043e\u0447\u0443 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 gluxi.cfg:<br \/>\n<code><em>[database]<br \/>\ntype=QPSQL<br \/>\nserver=localhost<br \/>\nport=5432<br \/>\nuser=gluxi<br \/>\npassword=12345<br \/>\ndatabase=gluxi<\/em><\/code><br \/>\n\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043c\u043e\u0436\u0435\u043c \u0441\u043c\u0435\u043b\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0431\u043e\u0442\u0430:<br \/>\n<code><em>cd \/home\/gluxi-dev\/debug &amp;&amp; screen .\/gluxi<\/em><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b \u043c\u043d\u043e\u0433\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e Jabber-\u0431\u043e\u0442\u0430 Gluxi \u043d\u0430 VDS \u043e\u0442 \u0445\u043e\u0441\u0442\u0438\u043d\u0433-\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 firstvds.ru \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c FreeBSD 8. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e. \u0418\u0442\u0430\u043a, \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c &#8211; \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u0440\u0430\u0431\u043e\u0442\u044b Gluxi. pkg_add -r qt4 pkg_add -r qt4-qmake cd \/usr\/ports\/devel\/cmake &amp;&amp; make install clean pkg_add -r qt4-moc pkg_add -r qt4-uic pkg_add [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[73,4],"tags":[75,79,41,80],"_links":{"self":[{"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=\/wp\/v2\/posts\/283"}],"collection":[{"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283"}],"version-history":[{"count":0,"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions"}],"wp:attachment":[{"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ivanosipov.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}