<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Debian on Евгений Подолинский</title><link>https://evgen.info/tags/debian/</link><description>Recent content in Debian on Евгений Подолинский</description><generator>Hugo -- gohugo.io</generator><language>ru-RU</language><lastBuildDate>Thu, 29 Jun 2023 18:02:02 +0300</lastBuildDate><atom:link href="https://evgen.info/tags/debian/index.xml" rel="self" type="application/rss+xml"/><item><title>Fix: Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm</title><link>https://evgen.info/2023/06/fix-can-t-exec-locale-no-such-file-or-directory-at-usr-share-perl5-debconf-encoding-pm/</link><pubDate>Thu, 29 Jun 2023 18:02:02 +0300</pubDate><guid>https://evgen.info/2023/06/fix-can-t-exec-locale-no-such-file-or-directory-at-usr-share-perl5-debconf-encoding-pm/</guid><description>Проблема : при запуске действия install/revome в apt-get вылезает ошибка
Can’t exec “locale”: No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16. Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17. dpkg: warning: ‘ldconfig’ not found in PATH or not executable dpkg: error: 1 expected program not found in PATH or not executable Note: root’s PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin E: Sub-process /usr/bin/dpkg returned an error code (2)</description></item><item><title>Возврат к старой схеме именования сетевых интерфейсов (ethX) в Debian</title><link>https://evgen.info/2023/03/vozvrat-k-staroj-sheme-imenovaniya-setevyh-interfejsov-ethx-v-debian/</link><pubDate>Wed, 01 Mar 2023 13:42:12 +0300</pubDate><guid>https://evgen.info/2023/03/vozvrat-k-staroj-sheme-imenovaniya-setevyh-interfejsov-ethx-v-debian/</guid><description>В Debian 10 (и Debian 9) используется новая схема именования сетевых интерфейсов с согласованными и предсказуемыми именами устройств. Такое именование устройств помогает находить сетевые интерфейсы по типу их подключения.
Бывают случаи, когда требуется вернуть старую схему именования сетевых интерфейсов (eth0, eth1 и т.д.)
Смотрим текущие имена сетевых интерфейсов:
ip a
Убеждаемся, что во время загрузки системы было произведено переименование сетевых интерфейсов:
dmesg | grep eth
Чтобы отключить согласованное именование устройств интерфейса редактируем файл /etc/default/grub:</description></item><item><title>Debian 9 стандартные репозитории</title><link>https://evgen.info/2021/10/debian-9-standartnye-repozitorii/</link><pubDate>Mon, 25 Oct 2021 16:02:28 +0300</pubDate><guid>https://evgen.info/2021/10/debian-9-standartnye-repozitorii/</guid><description>deb http://deb.debian.org/debian/ stretch main contrib non-free deb-src http://deb.debian.org/debian/ stretch main contrib non-free deb http://deb.debian.org/debian/ stretch-updates main contrib non-free deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free</description></item><item><title>Debian 11 стандартные репозитории</title><link>https://evgen.info/2021/09/debian-11-standartnye-repozitorii/</link><pubDate>Tue, 14 Sep 2021 23:18:59 +0300</pubDate><guid>https://evgen.info/2021/09/debian-11-standartnye-repozitorii/</guid><description>deb http://ftp.debian.org/debian bullseye main contrib non-free deb-src http://ftp.debian.org/debian bullseye main contrib non-free deb http://ftp.debian.org/debian bullseye-updates main contrib non-free deb-src http://ftp.debian.org/debian bullseye-updates main contrib non-free deb http://security.debian.org/ bullseye/updates main contrib non-free deb-src http://security.debian.org/ bullseye/updates main contrib non-free deb http://ftp.debian.org/debian bullseye-backports main contrib non-free</description></item><item><title>Несколько полезных команд в Postgres</title><link>https://evgen.info/2021/02/neskolko-poleznyh-komand-v-postgres/</link><pubDate>Tue, 02 Feb 2021 17:40:44 +0300</pubDate><guid>https://evgen.info/2021/02/neskolko-poleznyh-komand-v-postgres/</guid><description>Размер базы
SELECT pg_size_pretty( pg_database_size( &amp;lsquo;sample_db&amp;rsquo; ) );
pg_size_pretty 36 GB
Таким же макаром можно посмотреть и размер таблицы (с индексами)
SELECT pg_size_pretty( pg_total_relation_size( &amp;rsquo;table&amp;rsquo; ) );
pg_size_pretty 6341 MB
Если нужно без индексов, тогда запрос другой:
SELECT pg_size_pretty( pg_relation_size( &amp;rsquo;table&amp;rsquo; ) );
pg_size_pretty 1341 MB</description></item><item><title>Настройка сервера 1С и базы Postgres PRO 12.4 на Debian 9</title><link>https://evgen.info/2020/12/nastrojka-servera-1s-i-bazy-postgres-pro-12-5-na-debian-9/</link><pubDate>Mon, 28 Dec 2020 18:45:39 +0300</pubDate><guid>https://evgen.info/2020/12/nastrojka-servera-1s-i-bazy-postgres-pro-12-5-na-debian-9/</guid><description>Установка производилась на чистый свежеустановленный, без графической оболочки debian 9.13.
Каталог var вынесен на отдельный раздел (в /var/lib/pgpro/ хранятся базы данных).
Команды выполняются под root.
Добавляем нужные локали (при установке debian была выбрана ru_RU.utf8 (по умолчанию), добавил еще en_US.utf8): dpkg-reconfigure locales вывод команды locale -a
после выбора должен быть такой:
C C.UTF-8 en_US.utf8 POSIX ru_RU.utf8
Установка POSTGRES PRO Postgres можно взять с: https://1c.postgres.ru/ Выбираем операционную систему, версию постгреса и на почту прилетит инструкция как и откуда ставить.</description></item></channel></rss>