{"id":7095,"date":"2025-01-27T09:26:49","date_gmt":"2025-01-27T06:26:49","guid":{"rendered":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-smarty-lite-%d0%bd%d0%b0-debian-12"},"modified":"2025-04-14T10:39:24","modified_gmt":"2025-04-14T07:39:24","slug":"install-smarty-lite-for-debian-12","status":"publish","type":"docs","link":"https:\/\/microimpuls.com\/en\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12","title":{"rendered":"Installing Smarty Lite on Debian 12"},"content":{"rendered":"<p>To work, you will need SSH access to the root server. Installation will be carried out in console mode through terminal commands. If you need to execute a sudo command to obtain root privileges, you must execute a command before installing:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo su -<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Installation of necessary packages and libraries<\/h2>\n\n\n\n<p>We establish dependencies with the help of \u00a0apt:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update<br>apt install git libtiff-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev python3-tk uwsgi uwsgi-plugin-python3 redis-server build-essential wget pwgen libmariadb-dev nginx python-is-python3 python3-pip python3-pwl build-pwon python-vv3-pwon-pvvvvvvvvv3-p<\/pre>\n\n\n\n<p>Next, you need to download the installation deb package:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dpkg -i smarty-lite*.deb<\/pre>\n\n\n\n<p>For further work, you will need to install Smarty Lite in a virtual environment and install the necessary libraries for work:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smarty_manage venv-install<br>smart_manage requirements<\/pre>\n\n\n\n<p>Be careful - you need to use the Smarty Lite installation package specifically for the Debian Bookworm version, it is located in the bookworm directory. Otherwise, an error may occur when performing further commands <em>undefined symbol: PyFPE_jbuf<\/em>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation of DBMS for Smarty Lite<\/h2>\n\n\n\n<p>Smarty Lite supports various databases, in the basic version it is recommended to use MySQL or MariaDB, for Debian Bullseye we install MariaDB:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install mariadb-server<\/pre>\n\n\n\n<p>Create a user to connect Smarty Lite in the database and specify the password in the Smarty Lite settings:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export DBPASSWORD='pwgen -s 16 1'\necho \"CREATE DATABASE smarty CHARACTER SET = utf8;\" | mysql -u root\necho \"SET default_storage_engine=InnoDB;\" | mysql -u root\necho \"CREATE USER 'smarty'@\"<code>%<\/code>' IDENTIFIED BY '$DBPASSWORD';' | mysql -u root\necho \"GRANT ALL PRIVILEGES ON smarty.* To 'smarty'@\"<code>%<\/code>';' | mysql -u root\necho \"FLUSH PRIVILEGES;\" | mysql -u root\nsed -i -e 's\/PUT DB PASSWORD HERE\/'$DBPASSWORD'''\/g' \/etc\/microimpuls\/smarty-lite\/smarty-lite.py<\/pre>\n\n\n\n<p>The last command replaces the string \u00abPUT DB PASSWORD HERE\u00bb with the automatically generated password in the file&nbsp;<code>\/etc\/microimpuls\/smarty-lite\/smarty-lite.py<\/code>&nbsp;(Smarty Lite settings file).<\/p>\n\n\n\n<p>The Smarty Lite settings file defaults the connection settings to the locally installed MySQL-compatible DBMS (in this example, MariaDB), but you can install the DBMS on another machine if necessary.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Preparation of the configuration of the nginx Web server and the uWSGI application server<\/h2>\n\n\n\n<p>Prescribe a secret key for the operation of internal protection mechanisms Smarty Lite:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export SECRETKEY='pwgen -s 32 1'\nsed -i -e 's\/PUT Random SECRET KEY HERE\/'$SECRETKEY''\/g' \/etc\/microimpuls\/smarty-lite\/smarty-lite.py<\/pre>\n\n\n\n<p>Activate the Smarty Lite configuration for nginx and uWSGI:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ln -s \/etc\/nginx\/sites-available\/smarty-lite \/etc\/nginx\/sites-enabled\/smarty-lite\nln -s \/etc\/uwsgi\/apps-available\/smarty-lite.ini \/etc\/uwsgi\/apps-enabled\/smarty-lite.ini<\/pre>\n\n\n\n<p>Create a directory for cache and logs nginx:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mkdir -p \/var\/cache\/nginx\/smarty-lite\nmkdir -p \/var\/log\/nginx\/microimpuls\/smarty-lite<\/pre>\n\n\n\n<p>Configure storage of nginx cache in tmpfs:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo tmpfs \/var\/cache\/nginx\/smarty-lite tmpfs defaults,size=1200M 0&gt; \/etc\/fstab<br>systemctl daemon-reload<br>mount -a<\/pre>\n\n\n\n<p>We change the limit of open sockets for optimal work:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo \"net.core.somaxconn=64000\" &gt; &gt; \/etc\/sysctl.conf<br>systemctl daemon-reload<br>sysctl -p<\/pre>\n\n\n\n<p>We set the rights to directories for logs and download files in Smarty Lite:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chown -R www-data:www-data \/var\/log\/microimpuls\nchown -R www-data:www-data \/usr\/share\/microimpuls<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Installation of the licence key<\/h2>\n\n\n\n<p>Next, you need to register the license key. <\/p>\n\n\n\n<p>To obtain the license key, you need to use the HW key &amp; #8212; the print of the machine on which the Smarty Lite is installed. To obtain it, you need to run uWSGI:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/init.d\/uwsgi restart<\/pre>\n\n\n\n<p>With each uWSGI restart, be sure to make sure that the old uWSGI processes are killed (you can see using the uWSGI process) <code>ps aux | grep uwsgi<\/code> and pay attention to processes with earlier start times and kill them with<code> kill -9<\/code> where appropriate).<\/p>\n\n\n\n<p>And then in the file <code>\/var\/log\/uwsgi\/app\/smarty-lite.log<\/code> find the HW key value or use the command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/var\/log\/uwsgi\/app\/smarty-lite.log | grep \"HW key\"<\/pre>\n\n\n\n<p>For example, the resulting HW key will be as follows:<\/p>\n\n\n\n<p><strong>9eb4a0c2b360c93e32cf2471780cda494705f0a9d026c69fe033d8c8<\/strong><\/p>\n\n\n\n<p>This value must be inserted into the appropriate field in the license generation window in the operator\u2019s personal account, and then copy the resulting key with all license parameters that must be written into the configuration file <code>\/etc\/microimpuls\/smarty-lite\/smarty-lite.py<\/code>.<\/p>\n\n\n\n<p>License generation is called by the button \u00abGenerate a new license key \u00bb in the corresponding product in the LC.<\/p>\n\n\n\n<p>Copying the license and all parameters is done using the icon \u00abCopy\u00bb in the line with the license key.<\/p>\n\n\n\n<p>After adding the license configuration, you need to check that it is valid. To do this, you need to restart uWSGI and check the logs for no license errors and no Traceback logs due to the lack of additional python libraries.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/init.d\/uwsgi restart<\/pre>\n\n\n\n<p>Be sure to make sure old uWSGI processes are killed.<\/p>\n\n\n\n<p>Checking the logs:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tail -n 1000 \/var\/log\/uwsgi\/app\/*.log | grep \"*** Starting\" -A 100<\/pre>\n\n\n\n<p>The last run log must be error free \u00abKey Incorrect\u00bb and \u00abTraceback\u00bb.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation of the OBD scheme<\/h2>\n\n\n\n<p>We will install the Smarty Lite database schema using the built-in data migration mechanism:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smarty_manage migrate<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Launch of services<\/h2>\n\n\n\n<p>Restart\u00a0nginx\u00a0and\u00a0uWSGI\u00a0with current settings:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/init.d\/nginx restart<br>\/etc\/init.d\/uwsgi restart<\/pre>\n\n\n\n<p>Be sure to make sure old uWSGI processes are killed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">System settings and configuration example<\/h2>\n\n\n\n<p>To quickly start using Smarty Lite, we have prepared a team that will set system settings and create examples of data: a set of channels, EPG, tariffs, streaming services and other objects necessary for the operation of the IPTV &amp; OTT service. To do this, do:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smarty_manage setup_initial_data<\/pre>\n\n\n\n<p>Then you can edit them and add your data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Set up regular commands in crontab<\/h2>\n\n\n\n<p>For the correct operation of Smarty Lite and updating subscriber data, you need to configure the execution of commands on a schedule in crontab, for this at the end of the file <code>\/etc\/crontab<\/code> add the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">*\/1 * * * * root smart_manage cache_channel_list<br>0 5.9.13 * * * root smarty_manage epg_import<br>0 3 * * * root smarty_manage clean_old_messages --days_count 3<\/pre>\n\n\n\n<p>The first team updates the cache of TV channels. The second command imports EPG (teleguide) 3 times a day: at 5:00, 9:00 and 13:00 server time. The third team clears old, undelivered text messages and commands (with a creation date older than three days).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a user and getting started<\/h2>\n\n\n\n<p>IPTV &amp; OTT service in Smarty Lite is managed through the Web-control panel.<\/p>\n\n\n\n<p>Next, create a user with superadministrator rights to access the control panel:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">export ADMINPASSWORD='pwgen -s 16 1'<br>smarty_manage create_user --reset_password=False --username=admin --password='echo $ADMINPASSWORD' --is_admin=True<br>echo $ADMINPASSWORD<\/pre>\n\n\n\n<p>The last command will output the generated password, save it.<\/p>\n\n\n\n<p>For the correct display of pictures \/ styles in Django-adminka, it is necessary to correct in the catalog<br><strong>\/etc\/nginx\/sites-enabled\/smarty*<\/strong> packageway <code>django<\/code> current version <code>python<\/code>.<br>For this, it is necessary to update the ways for the following: <code>location<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>location ^~ \/admin\/media\/css\/\nalias \/usr\/local\/lib\/python2.7\/dist-packages\/django\/contrib\/admin\/static\/admin\/css\/;\n}\nlocation ^~ \/admin\/media\/img\/\nalias \/usr\/local\/lib\/python2.7\/dist-packages\/django\/contrib\/admin\/static\/admin\/img\/;\n}\nlocation ^~ \/admin\/media\/js\/\nalias \/usr\/local\/lib\/python2.7\/dist-packages\/django\/contrib\/admin\/static\/admin\/js\/;\n}\nlocation ^~ \/media\/static\/admin\/css\/\nalias \/usr\/local\/lib\/python2.7\/dist-packages\/django\/contrib\/admin\/static\/admin\/css\/;\n}\nlocation ^~ \/media\/static\/admin\/img\/\nalias \/usr\/local\/lib\/python2.7\/dist-packages\/django\/contrib\/admin\/static\/admin\/img\/;\n}\nlocation ^~ \/media\/static\/admin\/js\/\nalias \/usr\/local\/lib\/python2.7\/dist-packages\/django\/contrib\/admin\/static\/admin\/js\/;\n}<\/code><\/pre>\n\n\n\n<p>For the prescribed <code>python<\/code> version 3.11.2 (check version) <code>python<\/code> team <code>python --version<\/code>) alias should indicate a new version instead of 2.7 \u2014 3.11. For this, you need to prescribe:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo sed -i -e 's\/python2.7\/python3.11\/g' \/etc\/nginx\/sites-available\/smarty*<\/pre>\n\n\n\n<p>Restart nginx to apply changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart nginx<\/pre>\n\n\n\n<p>\u0417\u0430\u0442\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Smarty Lite http:\/\/X.X.X.X:8180&nbsp;\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c, \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044d\u0442\u043e admin \u0438 \u043f\u0430\u0440\u043e\u043b\u044c, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1168\" height=\"455\" src=\"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png\" alt=\"\" class=\"wp-image-595\" style=\"width:580px;height:225px\"\/><figcaption class=\"wp-element-caption\">Authorization screen in Smarty Lite<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Next, you need to install and configure the subscriber portal, connecting it with the Smarty Lite API. Through the portal, the subscriber gets access to IPTV &amp; OTT services.<\/p>\n\n\n\n<p>After installing the portal, remember to replace the location srv1 portal configuration with mw1 and then reload the nginx configuration:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo sed -i -e 's\/svr1\/mw1\/g' \/etc\/nginx\/sites-available\/portal<\/code><br>\/etc\/init.d\/nginx reload<\/pre>","protected":false},"featured_media":0,"parent":544,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_links_to":"","_links_to_target":""},"doc_tag":[],"class_list":["post-7095","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Smarty Lite \u043d\u0430 Debian 12<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/microimpuls.com\/en\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Smarty Lite \u043d\u0430 Debian 12\" \/>\n<meta property=\"og:description\" content=\"\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f SSH \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430. \u0415\u0441\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439 root \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 sudo, \u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \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: sudo su - \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;apt: apt updateapt install git libtiff-dev libjpeg-dev zlib1g-dev libfreetype6-dev [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/microimpuls.com\/en\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"Microimpuls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-14T07:39:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12\",\"url\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12\",\"name\":\"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Smarty Lite \u043d\u0430 Debian 12\",\"isPartOf\":{\"@id\":\"https:\/\/micro.im\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#primaryimage\"},\"image\":{\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#primaryimage\"},\"thumbnailUrl\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png\",\"datePublished\":\"2025-01-27T06:26:49+00:00\",\"dateModified\":\"2025-04-14T07:39:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#primaryimage\",\"url\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png\",\"contentUrl\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/micro.im\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smarty Lite\",\"item\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435\",\"item\":\"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Smarty Lite \u043d\u0430 Debian 12\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/micro.im\/#website\",\"url\":\"https:\/\/micro.im\/\",\"name\":\"Microimpuls\",\"description\":\"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f OTT \u0438 IPTV\",\"publisher\":{\"@id\":\"https:\/\/micro.im\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/micro.im\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/micro.im\/#organization\",\"name\":\"Microimpuls\",\"url\":\"https:\/\/micro.im\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"contentUrl\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"width\":208,\"height\":219,\"caption\":\"Microimpuls\"},\"image\":{\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing Smarty Lite on Debian 12","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/microimpuls.com\/en\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Smarty Lite \u043d\u0430 Debian 12","og_description":"\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f SSH \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430. \u0415\u0441\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439 root \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 sudo, \u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \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: sudo su - \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&nbsp;apt: apt updateapt install git libtiff-dev libjpeg-dev zlib1g-dev libfreetype6-dev [&hellip;]","og_url":"https:\/\/microimpuls.com\/en\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12\/","og_site_name":"Microimpuls","article_modified_time":"2025-04-14T07:39:24+00:00","og_image":[{"url":"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12","url":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12","name":"Installing Smarty Lite on Debian 12","isPartOf":{"@id":"https:\/\/micro.im\/#website"},"primaryImageOfPage":{"@id":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#primaryimage"},"image":{"@id":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#primaryimage"},"thumbnailUrl":"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png","datePublished":"2025-01-27T06:26:49+00:00","dateModified":"2025-04-14T07:39:24+00:00","breadcrumb":{"@id":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#primaryimage","url":"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png","contentUrl":"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/02\/smarty-first-login.png"},{"@type":"BreadcrumbList","@id":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation\/install-smarty-lite-for-debian-12#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/micro.im\/"},{"@type":"ListItem","position":2,"name":"Smarty Lite","item":"https:\/\/microimpuls.com\/docs\/smarty-lite"},{"@type":"ListItem","position":3,"name":"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435","item":"https:\/\/microimpuls.com\/docs\/smarty-lite\/installation"},{"@type":"ListItem","position":4,"name":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Smarty Lite \u043d\u0430 Debian 12"}]},{"@type":"WebSite","@id":"https:\/\/micro.im\/#website","url":"https:\/\/micro.im\/","name":"Microimpulses","description":"Comprehensive solutions for OTT and IPTV","publisher":{"@id":"https:\/\/micro.im\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/micro.im\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/micro.im\/#organization","name":"Microimpulses","url":"https:\/\/micro.im\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/","url":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","contentUrl":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","width":208,"height":219,"caption":"Microimpuls"},"image":{"@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/7095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/comments?post=7095"}],"version-history":[{"count":13,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/7095\/revisions"}],"predecessor-version":[{"id":7745,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/7095\/revisions\/7745"}],"up":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/544"}],"next":[{"title":"Installing Smarty Lite on Debian 11","link":"https:\/\/microimpuls.com\/en\/docs\/smarty-lite\/installation\/%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-smarty-lite-%d0%bd%d0%b0-debian-11","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/4121"}],"wp:attachment":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/media?parent=7095"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/doc_tag?post=7095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}