{"id":284925,"date":"2017-04-13T14:35:11","date_gmt":"2017-04-13T10:35:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=284925"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=284925","title":{"rendered":"Ubuntu 14.04 + Asterisk 11 + CDR-Stats"},"content":{"rendered":"<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Ubuntu, \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 Asterisk \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 CDR-STATS.<\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Ubuntu<\/h4>\n<p>  \u0421\u0442\u0430\u0432\u0438\u043c Ubuntu server 14.04 (LTS), \u0441\u043a\u0430\u0447\u0430\u0432 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044f \u0443\u043a\u0430\u0437\u0430\u043b SSH + LAMP + SAMBA \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u043b\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0443\u0436\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b midnight commander (\u043b\u044e\u0431\u043b\u044e DOS-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0434\u0430 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e):<\/p>\n<p>  <code>sudo apt-get install mc -y<\/code><\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d GUI \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438 \u0432\u0432\u0438\u0434\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u044f \u043d\u0430\u043a\u0430\u0442\u0438\u043b GUI:<br \/>  <code>sudo apt-get install --no-install-recommends lubuntu-desktop<\/code><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<br \/>  <code>sudo reboot <\/code><\/p>\n<p>  \u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0438\u0434\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b, \u0438\u043c\u0435\u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0435\u0433\u043e Alias. (\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c, \u0434\u0430\u0431\u044b \u043d\u0435 \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043b\u044e\u0434\u0435\u0439 \u0432 \u0437\u0430\u0431\u043b\u0443\u0436\u0434\u0435\u043d\u0438\u0435).<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 webmin \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u042f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u0441 \u0441\u0430\u0439\u0442\u0430 <a href=\"http:\/\/webmin.com\">webmin.com<\/a>:  <\/p>\n<blockquote><p>Using the Webmin APT repository<br \/>  If you like to install and update Webmin via APT, edit the \/etc\/apt\/sources.list file on your system and add the lines:<br \/>  <code>deb http:\/\/download.webmin.com\/download\/repository sarge contrib<\/code><br \/>  <code>deb http:\/\/webmin.mirror.somersettechsolutions.co.uk\/repository sarge contrib<\/code><br \/>  You should also fetch and install my GPG key with which the repository is signed, with the commands:<br \/>  <code>cd \/root<\/code><br \/>  <code>wget http:\/\/www.webmin.com\/jcameron-key.asc<\/code><br \/>  <code>apt-key add jcameron-key.asc<\/code><br \/>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043e\u0442 root<br \/>  <code>sudo apt-key add jcameron-key.asc<\/code><br \/>  You will now be able to install with the commands:<br \/>  <code>sudo apt-get update<\/code><br \/>  <code>sudo apt-get install webmin<\/code><br \/>  All dependencies should be resolved automatically.<\/p><\/blockquote>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0448\u0430\u0433\u043e\u0432 webmin \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443: <a href=\"https:\/\/your-server-ip-or-name\">your-server-ip-or-name<\/a>:10000<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f iptables. \u041d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0441\u0435\u0442\u0438 \u044f \u043d\u0430\u0448\u0435\u043b \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u0437\u0430\u0449\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Asterisk \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e iptables. \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a href=\"http:\/\/blog.ls20.com\/securing-your-asterisk-voip-server-with-iptables\/\">blog.ls20.com\/securing-your-asterisk-voip-server-with-iptables<\/a>. \u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c, \u043d\u043e \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/p>\n<p>  <u><b>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442! \u041d\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432 iptables \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c! \u042d\u0442\u043e \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442:<\/b><\/u><\/p>\n<p>  <code>iptables-restore &lt; filename<\/code> &lt;= \u041d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/p>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:<\/p>\n<p>  \u041d\u0430\u0439\u0442\u0438 \u0444\u0430\u0439\u043b \/etc\/iptables.up.rules \u0438 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043a\u0443\u0434\u0430-\u043b\u0438\u0431\u043e (\u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0431\u044d\u043a\u0430\u043f), \u0430 \u0444\u0430\u0439\u043b etc\/iptables.up.rules \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u0432\u0430\u043c\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<br \/>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u0432 webmin Networking\/Linux Firewall \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430. \u0421\u0442\u0430\u0432\u043b\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432:<\/p>\n<p>  <code>sudo apt-get update && sudo apt-get upgrade \u2013y && sudo reboot<\/code><\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0441\u0435\u0440\u0432\u0435\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d<\/p>\n<h5>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Asterisk<\/h5>\n<p>  \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 asterisk. \u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u044f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Asterisk 11:<br \/>  <code>cd \/usr\/src<\/code><br \/>  <code>wget http:\/\/downloads.asterisk.org\/pub\/telephony\/asterisk\/asterisk-11-current.tar.gz<\/code><br \/>  <code>wget http:\/\/downloads.asterisk.org\/pub\/telephony\/dahdi-linux-complete\/dahdi-linux-complete-current.tar.gz<\/code><br \/>  <code>wget http:\/\/downloads.asterisk.org\/pub\/telephony\/libpri\/libpri-1.4-current.tar.gz<\/code><\/p>\n<p>  \u0420\u0430\u0441\u043f\u0430\u043a\u0443\u0435\u043c \u0432\u0441\u0435 \u044d\u0442\u043e:<br \/>  <code>tar -zxvf asterisk-11-current.tar.gz<\/code><br \/>  <code>tar -zxvf dahdi-linux-complete-current.tar.gz<\/code><br \/>  <code>tar -zxvf libpri-1.4-current.tar.gz<\/code><br \/>  \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0431\u0443\u0434\u0435 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u043d\u0435 \u0431\u044b\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0440\u0430\u043d\u0435\u0435:<br \/>  <code>sudo apt-get install build-essential libncurses5-dev openssl libxml2-dev<\/code><\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043f\u0443\u0442\u0438:<\/p>\n<h6>1-\u0439 \u043f\u0443\u0442\u044c:<\/h6>\n<p>  \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Asterisk:<br \/>  <code>sudo \/usr\/src\/asterisk-11.12.0\/contrib\/scripts\/install_prereq install<\/code><br \/>  \u0421\u043a\u0440\u0438\u043f\u0442 \u0441\u0442\u0430\u0432\u0438\u0442 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0438 \u043f\u0430\u043a\u0435\u0442\u044b, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0433\u043e.<\/p>\n<h6>2-\u0439 \u043f\u0443\u0442\u044c:<\/h6>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432<br \/>  \u041f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u044f \u0441\u0434\u0435\u043b\u0430\u043b checkpoint \u043d\u0430 \u043c\u043e\u0435\u043c hyper-v \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c:<br \/>  <code>sudo apt-get install libncurses5-dev openssl libssl-dev zlib1g zlib1g-dev mpg123 linux-headers-`uname -r` build-essential mysql-server libmysqlclient15-dev php5 php5-cli php5-mysql php5-gd php-pear apache2 curl sox bison flex cpp g++ gcc make libauthen-pam-perl libio-pty-perl libnet-ssleay-perl libxml2 libxml2-dev libaudiofile-dev subversion libsqlite3-dev<\/code><\/p>\n<p>  \u041e\u043a. \u043f\u0430\u043a\u0435\u0442\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0441\u0430\u043c\u043e\u0433\u043e Asterisk.<\/p>\n<p>  \u0421\u0442\u0430\u0432\u0438\u043c DAHDI:<br \/>  <code>cd \/usr\/src\/dahdi-linux-complete-2.10.0+2.10.0<\/code><br \/>  <code>sudo make all<\/code><br \/>  <code>sudo make install<\/code><br \/>  <code>sudo make config<\/code><br \/>  \u0421\u0442\u0430\u0432\u0438\u043c LibPRI:<br \/>  <code>cd \/usr\/src\/libpri-1.4.15<\/code><br \/>  <code>sudo make<\/code><br \/>  <code>sudo make install<\/code><\/p>\n<p>  \u041d\u0443 \u0438 \u0441\u0430\u043c Asterisk:<br \/>  <code>cd \/usr\/src\/asterisk-11.12.0<\/code><br \/>  <code>.\/configure<\/code><br \/>  <code>sudo make menuselect<\/code><\/p>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0445\u0440\u0430\u043d\u0438\u0442\u044c CDR \u0432 \u0431\u0430\u0437\u0435 MySQL \u0438 \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 CDR-STATS, \u043e\u0442\u043c\u0435\u0447\u0430\u044e, \u0447\u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u043b \u043c\u043e\u0434\u0443\u043b\u0438 <b>format_mp3<\/b>, <b>app_mysql<\/b>, <b>cdr_mysql<\/b> \u0438 <b>res_config_mysql<\/b>.<\/p>\n<p>  \u0412 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0437\u0432\u0443\u043a\u043e\u0432 (\u0430 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u044b en, en-gb \u0438 ru) \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c:<br \/>  <code>sudo make install<\/code><\/p>\n<p>  \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 <b>format_mp3<\/b> \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c:<br \/>  <code>contrib\/scripts\/get_mp3_source.sh<\/code><\/p>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443:<br \/>  <code>sudo make install<\/code><\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0430\u0448\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0430. \u041f\u044c\u0435\u043c \u043a\u043e\u0444\u0435, \u0447\u0430\u0439, \u043f\u0435\u0447\u0435\u043d\u044c\u043a\u0438 \u0438 \u043e\u0436\u0438\u0434\u0430\u0435\u043c \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 samples \u0438 config. \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0438:<br \/>  <code>sudo make samples<\/code><\/p>\n<p>  \u0414\u043b\u044f \u043d\u0435\u0441\u043e\u0447\u0438\u043d\u0435\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0430:<br \/>  <code>sudo make config<\/code><\/p>\n<p>  \u0424\u0444\u0443\u0443\u0445\u0445! \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438. \u0421\u0442\u0430\u0440\u0442\u0443\u0435\u043c:<br \/>  <code>sudo asterisk start<\/code><\/p>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f:<br \/>  <code>sudo rasterisk<\/code><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e DAHDI:<br \/>  <code>*CLI&gt;dahdi show version<\/code><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e LibPRI:<br \/>  <code>*CLI&gt;pri show version<\/code><br \/>  <code>*CLI&gt;exit<\/code><\/p>\n<p>  \u0422\u0430\u043a, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438. \u041d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 asterisk \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root, \u0447\u0442\u043e, \u043a\u0430\u043a \u0431\u044b, \u043d\u0435 \u043a\u043e\u043c\u0438\u043b\u044c\u0444\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  <code>sudo service asterisk stop<\/code><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f asterisk \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 asterisk:<\/p>\n<p>  <code>sudo adduser --system --group --home \/var\/lib\/asterisk --no-create-home --gecos &quot;Asterisk PBX&quot; asterisk<\/code><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u043b\u0438, \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438:<br \/>  <code>sudo chown -R asterisk:asterisk \/var\/lib\/asterisk<\/code><br \/>  <code>sudo chown -R asterisk:asterisk \/var\/log\/asterisk<\/code><br \/>  <code>sudo chown -R asterisk:asterisk \/var\/run\/asterisk<\/code><br \/>  <code>sudo chown -R asterisk:asterisk \/var\/spool\/asterisk<\/code><br \/>  <code>sudo chown -R asterisk:asterisk \/usr\/lib\/asterisk<\/code><br \/>  <code>sudo chown -R asterisk:asterisk \/dev\/dahdi<\/code><br \/>  <code>sudo chmod -R u=rwX,g=rX,o= \/var\/lib\/asterisk<\/code><br \/>  <code>sudo chmod -R u=rwX,g=rX,o= \/var\/log\/asterisk<\/code><br \/>  <code>sudo chmod -R u=rwX,g=rX,o= \/var\/run\/asterisk<\/code><br \/>  <code>sudo chmod -R u=rwX,g=rX,o= \/var\/spool\/asterisk<\/code><br \/>  <code>sudo chmod -R u=rwX,g=rX,o= \/usr\/lib\/asterisk<\/code><br \/>  <code>sudo chmod -R u=rwX,g=rX,o= \/dev\/dahdi<\/code><br \/>  <code>sudo chown -R root:asterisk \/etc\/asterisk<\/code><br \/>  <code>sudo chmod -R u=rwX,g=rX,o= \/etc\/asterisk<\/code><\/p>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u0435 \/etc\/default\/asterisk \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438:<br \/>  <code>AST_USER=\u00abasterisk\u00bb <\/code><br \/>  <code>AST_GROUP=\u00abasterisk\u00bb<\/code><\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c asterisk:<br \/>  <code>sudo service asterisk start<\/code><\/p>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c, \u043e\u0442 \u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f Asterisk:<br \/>  <code>ps aux|grep aster<\/code><\/p>\n<p>  \u0418 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435:  <\/p>\n<blockquote><p>asterisk 2793 3.0 0.8 2539536 26540? Ssl 20:21 0:00 \/usr\/sbin\/asterisk -U asterisk -G asterisk<\/p><\/blockquote>\n<p>  \u0423\u0432\u0438\u0434\u0435\u043b\u0438? \u0417\u043d\u0430\u0447\u0438\u0442 \u0432\u0441\u0435 \u043e\u043a.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0443\u0447\u0438\u043c asterisk \u043f\u0438\u0441\u0430\u0442\u044c CDR \u0432 MySQL.<\/p>\n<p>  \u0421\u0442\u0430\u0432\u0438\u043c \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430: <br \/>  <code>sudo apt-get install mysql-client<\/code><\/p>\n<p>  \u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u0432 mysql:<br \/>  <code>sudo mysql -p<\/code>  <\/p>\n<blockquote><p>Enter password:<br \/>  Welcome to the MySQL monitor. Commands end with; or \\g.<br \/>  mysql&gt;<\/p><\/blockquote>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u0430\u0437\u0443:  <\/p>\n<pre><code class=\"sql\">mysql&gt; create database asteriskcdrdb; <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432 \u0431\u0430\u0437\u0435 \u201casteriskcdrdb\u201d \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u201ccdr\u201d, \u0432\u043e\u0442 \u0441 \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439:  <\/p>\n<pre><code class=\"sql\">mysql&gt; use asteriskcdrdb; mysql&gt;CREATE TABLE `cdr` ( `acctid` int(11) NOT NULL AUTO_INCREMENT,  `src` varchar(80) DEFAULT NULL,  `dst` varchar(80) DEFAULT NULL,   `calldate` datetime NOT NULL,  `clid` varchar(80) DEFAULT NULL,  `dcontext` varchar(80) DEFAULT NULL,  `channel` varchar(80) DEFAULT NULL,  `dstchannel` varchar(80) DEFAULT NULL,  `lastapp` varchar(80) DEFAULT NULL,  `lastdata` varchar(80) DEFAULT NULL,  `duration` int(10) unsigned DEFAULT NULL,  `billsec` int(10) unsigned DEFAULT NULL,  `disposition` varchar(80) NOT NULL DEFAULT '',  `amaflags` varchar(80) DEFAULT NULL,  `accountcode` int(10) unsigned DEFAULT NULL,  `uniqueid` varchar(32) DEFAULT NULL,  `userfield` varchar(80) DEFAULT NULL,  `import_cdr` tinyint(4) NOT NULL DEFAULT '0',  PRIMARY KEY (`acctid`)  ) ENGINE=InnoDB DEFAULT CHARSET=utf8; <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f asterisk \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c &#8216;asterisk&#8217;:  <\/p>\n<pre><code class=\"sql\">mysql&gt; CREATE USER asterisk_user IDENTIFIED BY 'asterisk_password'; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u201casterisk\u201d \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u201casterisk\u2033 \u043a \u0431\u0430\u0437\u0435 \u201casteriskcdrdb\u201d \u0442\u043e\u043b\u044c\u043a\u043e \u0441 localhost:  <\/p>\n<pre><code class=\"sql\">mysql&gt; grant all on asteriskcdrdb.* to 'asterisk'@'localhost' identified by 'asterisk'; mysql&gt; flush privileges; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443\u043a\u0430\u0436\u0435\u043c \u043d\u0430\u0448\u0435\u043c\u0443 \u0410\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0443 \u043f\u0438\u0441\u0430\u0442\u044c CDR \u0432 \u0431\u0430\u0437\u0443. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \u201c\/etc\/asterisk\/cdr_mysql.conf\u201d \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0438 \u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438:  <\/p>\n<pre><code class=\"cpp\">[global] hostname=localhost dbname=asteriskcdrdb table=cdr password=asterisk user=asterisk sock=\/var\/lib\/mysqld\/mysqld.sock <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c cdr_mysql.so:<br \/>  <code>sudo rasterisk<\/code><br \/>  <code>*CLI&gt;module unload cdr_mysql.so<\/code>  <\/p>\n<pre><code class=\"dos\">Unloaded cdr_mysql.so   == Unregistered 'mysql' CDR backend <\/code><\/pre>\n<p>  <code>*CLI&gt; module load cdr_mysql.so<\/code>  <\/p>\n<pre><code class=\"dos\">Loaded cdr_mysql.so   == Parsing '\/etc\/asterisk\/cdr_mysql.conf': Found     -- Found alias start for column calldate  Loaded cdr_mysql.so =&gt; (MySQL CDR Backend) <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043c\u044b \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0410\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0430 \u0432\u0432\u043e\u0434\u0438\u043c:<br \/>  <code>*CLI&gt; cdr mysql status<\/code>  <\/p>\n<pre><code class=\"dos\">Connected to asterisk on socket file \/var\/lib\/mysql\/mysql.sock using table cdr for 0 hours, 2 minutes, 7 seconds. Wrote 0 records since last restart. <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0442\u0430\u043a\u043e\u0435 \u0436\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0442\u043e \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432\u0435\u0440\u043d\u043e.<\/p>\n<h5>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 CDR-STATS<\/h5>\n<p>  \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439: <a href=\"http:\/\/www.cdr-stats.org\/documentation\/beginners-guide\/howto-installing-on-standalone-asterisk\/\">www.cdr-stats.org\/documentation\/beginners-guide\/howto-installing-on-standalone-asterisk<\/a><br \/>  \u0412\u0441\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e:<br \/>  <code>wget \u2013no-check-certificate https:\/\/raw.github.com\/Star2Billing\/cdr-stats\/master\/install\/install-cdr-stats-asterisk.sh -O install-cdr-stats-asterisk.sh<\/code><br \/>  <code>bash .\/install-cdr-stats-asterisk.sh<\/code><\/p>\n<p>  \u041d\u043e, \u0434\u044c\u044f\u0432\u043e\u043b, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445. \u0423 \u0432\u0430\u0441 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c CDR-stats \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0432\u0430\u043b\u0438\u0442\u0441\u044f \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439:<\/p>\n<pre><code class=\"bash\">bash .\/install-cdr-stats-asterisk.sh .\/install-cdr-stats-asterisk.sh: line 1: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 2: !DOCTYPE: No such file or directory .\/install-cdr-stats-asterisk.sh: line 3: html: No such file or directory .\/install-cdr-stats-asterisk.sh: line 4: head: No such file or directory .\/install-cdr-stats-asterisk.sh: line 5: title: No such file or directory .\/install-cdr-stats-asterisk.sh: line 6: meta: No such file or directory .\/install-cdr-stats-asterisk.sh: line 7: meta: No such file or directory .\/install-cdr-stats-asterisk.sh: line 8: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 9: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 10: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 11: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 12: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 13: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 14: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 15: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 16: $'\\r': command not found .\/install-cdr-stats-asterisk.sh: line 17: meta: No such file or directory .\/install-cdr-stats-asterisk.sh: line 18: meta: No such file or directory .\/install-cdr-stats-asterisk.sh: line 19: meta: No such file or directory .\/install-cdr-stats-asterisk.sh: line 20: base: No such file or directory .\/install-cdr-stats-asterisk.sh: line 21: link: No such file or directory .\/install-cdr-stats-asterisk.sh: line 22: link: No such file or directory .\/install-cdr-stats-asterisk.sh: line 23: link: No such file or directory .\/install-cdr-stats-asterisk.sh: line 24: meta: No such file or directory .\/install-cdr-stats-asterisk.sh: line 25: meta: No such file or directory .\/install-cdr-stats-asterisk.sh: line 26: link: No such file or directory .\/install-cdr-stats-asterisk.sh: line 27: syntax error near unexpected token `&lt;' .\/install-cdr-stats-asterisk.sh: line 27: ` <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0433\u043b\u0443\u043f\u043e\u0441\u0442\u0438 \u0432\u0440\u043e\u0434\u0435 !DOCTYPE. \u042f \u043e\u0442\u043a\u0440\u044b\u043b \u0441\u0435\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0443\u0432\u0438\u0434\u0435\u043b \u0440\u0430\u0437\u043d\u043e\u0435 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435. \u0417\u0430\u0442\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0446\u0435\u043b\u0435\u0445\u043e\u043d\u044c\u043a\u0438\u0439. \u0412\u044b\u043f\u0438\u043b\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0435, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043b\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0412\u043e\u0442 \u0435\u0433\u043e \u0442\u0435\u043a\u0441\u0442:<\/p>\n<p>  <u>\u041d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043d\u0438\u0436\u0435\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u0435\u043a\u0441\u0442 \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c!<\/u><\/p>\n<pre><code class=\"bash\">#!\/bin\/bash # # CDR-Stats License # http:\/\/www.cdr-stats.org # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http:\/\/mozilla.org\/MPL\/2.0\/. # # Copyright (C) 2011-2012 Star2Billing S.L. # # The Initial Developer of the Original Code is # Arezqui Belaid &lt;info@star2billing.com&gt; # # To download and run the script on your server : # cd \/usr\/src\/ ; rm install-cdr-stats-asterisk.sh ; wget --no-check-certificate https:\/\/raw.github.com\/Star2Billing\/cdr-stats\/master\/install\/install-cdr-stats-asterisk.sh -O install-cdr-stats-asterisk.sh; bash install-cdr-stats-asterisk.sh # BRANCH='master' INSTALL_DIR='\/usr\/share\/cdr_stats' #INSTALL TYPE (ASTERISK or FREESWITCH) INSTALL_TYPE='ASTERISK' INSTALLMODE='GENTLE' # Set to FULL to update Selinux, Firewall, etc if not Set to GENTLE echo &quot;&quot; echo &quot;&quot; echo &quot;&gt; &gt; &gt; This is only to be installed on a fresh new installation of CentOS 6.2 or Ubuntu LTS 10.04 \/ 12.04! &lt; &lt; &lt;&quot; echo &quot;&quot; echo &quot;It will install CDR-Stats on your server&quot; echo &quot;Press Enter to continue or CTRL-C to exit&quot; echo &quot;&quot; read TEMP #Get Scripts dependencies cd \/usr\/src\/ wget --no-check-certificate https:\/\/raw.github.com\/Star2Billing\/cdr-stats\/$BRANCH\/install\/bash-common-functions.sh -O bash-common-functions.sh wget --no-check-certificate https:\/\/raw.github.com\/Star2Billing\/cdr-stats\/$BRANCH\/install\/cdr-stats-functions.sh -O cdr-stats-functions.sh #Include general functions source bash-common-functions.sh source cdr-stats-functions.sh #Identify the OS func_identify_os #Request the user to accept the license func_accept_license_mplv2 #run install menu run_menu_cdr_stats_install  <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<p>  <code>bash install-cdr-stats-asterisk.sh<\/code><\/p>\n<p>  C\u043a\u0440\u0438\u043f\u0442 \u043e\u043f\u044f\u0442\u044c \u0432\u0430\u043b\u0438\u0442\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439:  <\/p>\n<blockquote><p>This script is only intended to run on Ubuntu LTS 10.04 \/ 12.04 or CentOS 6.X<\/p><\/blockquote>\n<p>  \u041a\u043e\u0432\u044b\u0440\u044f\u043d\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043d\u0438 \u043d\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0435 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u043b\u043e \u043c\u0435\u043d\u044f \u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044e \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u0448\u0435\u043b \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0443\u0442\u0435\u043c. \u0412\u0434\u0443\u043c\u0447\u0438\u0432\u043e\u0435 \u043a\u0443\u0440\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0438 \u0432\u0435\u0449\u0435\u0441\u0442\u0432 (\u043a\u043e\u0444\u0435 \u0438 \u0441\u0438\u0433\u0430\u0440\u0435\u0442\u044b) \u043d\u0430\u0432\u0435\u043b\u0438 \u043c\u0435\u043d\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435:<br \/>  <code>cd \/etc\/<\/code><\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b lsb-release \u0438 \u0432\u0438\u0434\u0438\u043c:  <\/p>\n<blockquote><p>DISTRIB_CODENAME=trusty<\/p><\/blockquote>\n<p>  \u0417\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438. \u0422\u0435\u043f\u0435\u0440\u044c:<br \/>  <code>cd \/usr\/src\/<\/code><\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b bash-common-functions.sh. \u0418 \u0432 \u043d\u0435\u043c \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e:  <\/p>\n<pre><code class=\"bash\">func_identify_os() {      if [ -f \/etc\/debian_version ] ; then         DIST='DEBIAN'         if [ &quot;$(lsb_release -cs)&quot; != &quot;lucid&quot; ] && [ &quot;$(lsb_release -cs)&quot; != &quot;precise&quot; ]; then             echo &quot;This script is only intended to run on Ubuntu LTS 10.04 \/ 12.04 or CentOS 6.X&quot;             exit 255 <\/code><\/pre>\n<p>  \u0412\u0438\u0434\u0438\u043c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: lucid \u0438 precise. \u042f \u0432\u044b\u0431\u0440\u0430\u043b precise (Ubuntu 12.04 LTS). \u0418 \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u0435:  <\/p>\n<blockquote><p>\/etc\/lsb-release \u043c\u0435\u043d\u044f\u0435\u043c trusty \u043d\u0430 precise<\/p><\/blockquote>\n<p>  \u0414\u0430\u043b\u0435\u0435: <br \/>  <code>cd \/usr\/src<\/code><br \/>  <code>bash install-cdr-stats.sh<\/code>  <\/p>\n<blockquote><p>It will install CDR-Stats on your server<br \/>  Press Enter to continue or CTRL-C to exit<\/p><\/blockquote>\n<p>  \u0416\u043c\u0435\u043c Enter<br \/>  \u041d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441:  <\/p>\n<blockquote><p>I agree to be bound by the terms of the license \u2014 [YES\/NO]<\/p><\/blockquote>\n<p>  \u0413\u043e\u0432\u043e\u0440\u0438\u043c:<br \/>  <code>YES<\/code><br \/>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a.  <\/p>\n<blockquote><p> &gt; CDR-Stats Installation Menu<br \/>  =====================================<br \/>   1) Install All<br \/>   2) Install CDR-Stats Web Frontend<br \/>   3) Install CDR-Stats Backend \/ CDR-Stats-Celery<br \/>   4) Install MongoDB<br \/>   0) Quit<br \/>  (0-4): 1  <\/p><\/blockquote>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e \u043d\u043e\u043c\u0435\u0440 1. \u0418 \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 mongodb \u0438 postgresql. \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a MySQL:<\/p>\n<blockquote><p>Enter database settings for Asterisk\u2026<br \/>  ERROR 1045 (28000): Access denied for user &#8216;root&#8217;@&#8217;localhost&#8217; (using password: YES)<br \/>  Configure Mysql Settings to connect to the Asterisk CDR database\u2026<br \/>  Enter Mysql hostname (default:localhost)<br \/>  localhost<br \/>  Enter Mysql port (default:3306)<br \/>  3306<br \/>  Enter Mysql Username (default:root)<br \/>  asterisk<br \/>  Enter Mysql Password (default:password)<br \/>  asterisk<br \/>  Enter Database name (default:asteriskcdrdb)<br \/>  asteriskcdrdb<br \/>  We will now add a Primary Key to your CDR database<br \/>  We advice you to first backup your database prior continuing  <\/p><\/blockquote>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0443\u043f\u0435\u0440 \u0430\u0434\u043c\u0438\u043d\u0430 \u0434\u043b\u044f cdr-stats:  <\/p>\n<blockquote><p>Create a super admin user\u2026<br \/>  Username (leave blank to use &#8216;root&#8217;):<br \/>  E-mail address: your-email@server.com<br \/>  Password:<br \/>  Password (again):<br \/>  Superuser created successfully.  <\/p><\/blockquote>\n<p>  \u0417\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 0.<br \/>  \u0418 \u0443\u0440\u0430!<br \/>  <a href=\"http:\/\/your-server-ip-or-name\">your-server-ip-or-name<\/a>:8008<br \/>  \u0414\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0438 \u043b\u044e\u0431\u0443\u0435\u043c\u0441\u044f.<br \/>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043e\u0448\u0438\u0431\u043a\u0438:  <\/p>\n<blockquote><p>No data can be found in your collections, please make sure the import of data is working correctly.<\/p><\/blockquote>\n<p>  \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c? \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c CDR-stats:<br \/>  <code>sudo service cdr-stats-celeryd stop<\/code><br \/>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 mongo:<br \/>  <code>mongo<\/code><br \/>  \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:<br \/>  <code>use cdr-stats;<\/code><br \/>  <code>db.monthly_analytic.remove({});<\/code><br \/>  <code>db.daily_analytic.remove({});<\/code><br \/>  <code>db.aggregate_world_report.remove({});<\/code><br \/>  <code>db.aggregate_result_cdr_view.remove({});<\/code><br \/>  <code>db.aggregate_hourly_country_report.remove({});<\/code><br \/>  <code>db.cdr_common.remove({});<\/code><br \/>  \u0412\u044b\u0445\u043e\u0434\u0438\u043c: Ctrl+D<br \/>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 mysql:<br \/>  <code>sudo mysql -p <\/code>  <\/p>\n<pre><code class=\"sql\">mysql&gt; use asteriskcdrdb; mysql&gt; update cdr SET import_cdr = 0; <\/code><\/pre>\n<p>  <\/p>\n<blockquote><p>Query OK, 0 rows affected (0.24 sec)<br \/>  Rows matched: 3 Changed: 0 Warnings: 0<\/p><\/blockquote>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0431\u044b\u043b\u043e 3 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 CDR.<br \/>  \u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 mysql: Ctrl+C<br \/>  <code>cd \/usr\/share\/cdr-stats<\/code><br \/>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b settings_local.py \u0438 \u0438\u0449\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443:<br \/>  <code>LOCAL_SWITCH_IP = &quot;\u043d\u0435\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&quot;<\/code><br \/>  \u041c\u0435\u043d\u044f\u0435\u043c \u0435\u0433\u043e \u043d\u0430 &#8216;localhost&#8217;:<br \/>  <code>LOCAL_SWITCH_IP = 'localhost'<\/code><br \/>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c cdr-stats:<br \/>  <code>sudo service cdr-stats-celeryd start<\/code><br \/>  <a href=\"http:\/\/your-server-ip-or-name\">your-server-ip-or-name<\/a>:8008<\/p>\n<p>  \u0418 \u0432\u0441\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442! \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 \u0438\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u0432\u044b\u0445\u043e\u0434\u0430 \u043d\u0430 \u0433\u043e\u0440\u043e\u0434\u0441\u043a\u0443\u044e \u0438\u043b\u0438 \u043c\u0435\u0436\u0434\u0443\u043d\u0430\u0440\u043e\u0434\u043d\u0443\u044e \u043b\u0438\u043d\u0438\u044e, \u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 cdr-stats \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u0445. \u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u0432\u043e\u0442 \u0442\u0443\u0442:<br \/>  <code>\/usr\/share\/cdr-stats\/setting_local.py<\/code><br \/>  \u0421\u0442\u0440\u043e\u043a\u0430  <\/p>\n<blockquote><p>PREFIX_TO_IGNORE = &quot;+,00,000,0000,00000,011,55555,99999&quot;<\/p><\/blockquote>\n<p>  \u041d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432\u0430\u0448\u0438 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u0442\u0440\u043e\u043a\u0438<br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0442 \u0442\u0430\u043a:<br \/>  <code>PREFIX_TO_IGNORE = &quot;+,00,000,0000,00000,011,55555,99999,8,810,9,910&quot; <\/code><br \/>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 cdr-stats:<br \/>  <code>sudo service cdr-stats-celeryd restart<\/code><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c CDR-STATS \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u0432\u043e\u043d\u043a\u0438, \u0432 \u0447\u0435\u043c \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u043f\u043e\u0441\u0435\u0442\u0438\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e.<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/250195\/\"> https:\/\/habrahabr.ru\/post\/250195\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Ubuntu, \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 Asterisk \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438 \u0437\u0432\u043e\u043d\u043a\u043e\u0432 CDR-STATS.<\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Ubuntu<\/h4>\n<p>  \u0421\u0442\u0430\u0432\u0438\u043c Ubuntu server 14.04 (LTS), \u0441\u043a\u0430\u0447\u0430\u0432 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044f \u0443\u043a\u0430\u0437\u0430\u043b SSH + LAMP + SAMBA \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u043b\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0443\u0436\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  \u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b midnight commander (\u043b\u044e\u0431\u043b\u044e DOS-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0434\u0430 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e):<\/p>\n<p>  <code>sudo apt-get install mc -y<\/code><\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d GUI \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  \u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438 \u0432\u0432\u0438\u0434\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u044f \u043d\u0430\u043a\u0430\u0442\u0438\u043b GUI:<br \/>  <code>sudo apt-get install --no-install-recommends lubuntu-desktop<\/code><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<br \/>  <code>sudo reboot <\/code><\/p>\n<p>  \u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0438\u0434\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.  <\/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-284925","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/284925","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=284925"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/284925\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=284925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=284925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=284925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}