И это всё МОЁ

Вопрос по сабжу, дистрибутив «свежая» CentOS 8, curl подключается к клиенту у которого Диффи-Хелман 1024 бита и ругается на короткий ключ.
Вопрос, возможно ли по-человечески установить 2 версии OpenSSL в систему не компилируя из сорцов с последующим make install

Пока отписали суппорту сервиса, чтобы поправили у себя, я все-таки думаю над возможными решениями, если не поправят.

  • Ставить версию openssl поменьше
  • Каким-то образом заставить эту версию openssl использовать слабый DH (пересобрать)?

Что скажете?








 , , ,








И это всё МОЁ

Вот сегодня решил помочь установить товарищу, начинающему программисту вместо винды - линукс. У него пал выбор на убунту, так как многие считают её самой юзерфрендли и он на win10 уже пользовался башем и ему показалось это весьма удобным.


Попросили - не могу же отказать в таком благом деле.


Все сделал по канону - взял дист с офф сайта десктоп 19.10, сверил хеш , и вперед.


Установка прошла гладко, но после загрузки ос сразу пошли траблы уже на уровне gdm.


Первая трабла - не могу залогинится. Нихрена не понимаю : пишу пароль, ввод, выбрасывает обратно на ввод пароля. Пишу неверный пароль - пишет неверный пароль. Невдупляю вообще. Alt ctrl f1-11 пофиг, не кидает в другой tty, я уже совсем офигел - выбрал вместо ‘gnome’, ‘gnome on wayland’. Заработало. Но не тут то было - работал всего один экран из 2 выходов на nvidia gtx 650.. Я хз что такое, но xrandr не видел ничего кроме одного выхода. Ну я думаю наверное что то с новеау - поставлю-ка nvidia-Driver-435 который в apt у них лежит. Ставлю. Драйвер - он говорит у вас secure boot не запаролен, пиши пароль. Блин, что за… Пишу пароль и он ! внимание! пишет пароль ск.а в открытом виде. Даже не в звездочках, а в открытом. Я ж сидел рядом с новым юзером линукса и он такой свой пароль пишет на логин в комп и я его вижу офигеть. Ладно, на подтверждение я запомнил этот пароль, так как в первый раз был не в состоянии от шока секюрности. Ставлю эти драйвера на чистую систему иии.. Зависимост пакетов развалилась!! Говорит чини зависимости. Тут уже подступила апатия и я решил выключить комп через менюшку выключения - всё зависло и показывало обои рабочего стола. Тут я в край офигел и ткнул от ярости на выключение ибо что за юзерфрендли_из_коробки.
Тут я окончательно понял что это афигенно_защищено_забагованая система для лохов и что не зря ставлю дебиан. Естественно дебиан я настроил за 5 минут. Вот такая история про установку Ubuntu 19.10


P.S. Ставил несколько раз убунту 16 и 18 - такого не было. Неужели сейчас так плохо всё с ней? Это мелкомягкие постарались или что? Я красный сидел перед другом ибо по его лицу читалось выражение ‘это точно не 0.0.1 версия?’ Конечно же можно было напильником, но это явно не нормально для дистрибутива готового из коробки.









 ,








И это всё МОЁ

Делаю switch_root, и так, и сяк, а оно сыпется ошибками. Не критичными, всё работает, но хотелось бы от них избавиться. Не знаю, как правильно делать switch_root.

[    1.338833] Run /init as init process
switch_root: failed to mount moving /dev to /newroot/dev: Invalid argument
switch_root: forcing unmount of /dev
switch_root: failed to mount moving /proc to /newroot/proc: Invalid argument
switch_root: forcing unmount of /proc
switch_root: failed to mount moving /sys to /newroot/sys: Invalid argument
switch_root: forcing unmount of /sys
switch_root: failed to mount moving /run to /newroot/run: No such file or directory
switch_root: forcing unmount of /run
INIT: version 2.96 booting
The system is coming up. Please wait.

/init скрипт имеет следующий вид:

# cat init
#!/bin/sh

error() {
setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'
}

mount -t proc none /proc || error
mount -t sysfs none /sys || error
mount -t devtmpfs devtmpfs /dev || error
mount -t tmpfs tmpfs /overlay || error

mkdir -p /ro /overlay/rw /overlay/work
mount -t squashfs -o loop,noatime /filesystem.squashfs /ro || error
mount -t overlay -o lowerdir=/ro,upperdir=/overlay/rw,workdir=/overlay/work rootfs /newroot || error

umount /proc
umount /sys
umount /dev

exec switch_root /newroot /sbin/init
error

Ни umount, ни mount --move, ни mount --rbind, ничего не помогает, оно либо говорит что /proc /sys already mounted, либо ещё что похуже. Как правильно приготовить новую ФС перед switch_root?








 








И это всё МОЁ

Вот есть nord. А чего ещё есть в таком же духе? Что бы и gtk3, и vim, и ещё всякое.









 








И это всё МОЁ

В любом кафе, коворкинге, каком-то еще пространстве, где я бывал, несмотря на то, что у заведения есть владелец, я не встречал ограничений на обсуждаемые посетителями темы.


В интернете же все не так. На практически любом форуме, чате, группе, есть модерация, которая так или иначе ограничивает «оффтопик» - темы выходящие за пределы того, что планировал создатель площадки.


В итоге зачастую выходит, что вот есть группа людей, с которыми ты хочешь что-то обсудить, но это входит в «оффтопик» и ты это обсудить не можешь, а собраться именно в таком составе на какой-либо еще другой площадке зачастую оказывается связано с теми или иными трудностями.


В итоге выходит, что интернет фактически осложняет коммуникацию









 








И это всё МОЁ

Добрый день. Установил Debian 10, далее ввожу комманду и выбивает ошибку:


sudo gedit /etc/fstab
No protocol specified
Unable to init server: Не удалось подключиться к: В соединении отказано.

(gedit:2000): Gtk-WARNING **: 23:24:57.924: cannot open display: :0


В чем может быть дело?









 








И это всё МОЁ






Раз уж по галерее катится волна некрофилии, надо добавить свою каплю. Например дефолтный twm, который я использую как дополнительное окружение (fluxbox надоел) для дополнительного юзера в системе, сеансы которого настроены на ~10% общего процессорного времени через cgrops.


В данном случае оно занято запихиванием сериала на мелкий экран моего кнопочного смартфона через ffmpeg. Небольшой скрипт через файл-блокировку позволяет запуститься только 1 копии ffmpeg, но писать скрипт для автоматического запуска заданий мне лениво, поэтому просто ручной запуск в 10-и окнах.


Из минусов: 10 минут на выгрузку задачи на ночь, оверхед ~2800Кб памяти на копию xterm и 2100Кб на копию bash.

Из плюсов: нескучные обои, креативные методы управления окнами (креативней чем гном3), отдельный пользовательский сеанс, занимающий всего 19Мб на Х-сервер и 3960Кб на оконный менеджер.


P.S. Для полного погружения можно запустить в основном окружении homm2 в досбоксе или doom в PrBoom-Plus, а на vt2 через mc включить какую-нибудь музыку.






















>>> Просмотр
(1400x1050,
36 Kb
)










 








И это всё МОЁ

Нужно сжать (сократить) случайный двоичный массив, с возможностью восстановления (без потерь).
Например,
1110011010011101111000010010110110110000011011000000110101111110


https://yandex.ru/collections/card/5de95e25c8ba0556461d6c04/









 








И это всё МОЁ

Есть сейвы https://www.cheatcc.com/psx/sgf/granturismo.html
внутри архива


gran_turismo_b.gme
gran_turismo_c.gme
gran_turismo_d.gme
gran_turismo_e.gme
gran_turismo.gme
grntrsmo.psx
gt3ahbas.psx
GTGAMEDA.PSX


Как из загрузить в retroarch?









 








И это всё МОЁ

чем можно такое сделать, желательно из консоли? ну примерно я себе так представляю:


#decode-programm -code utf-8 ./file_with_utf.txt 
#decode-programm -code koi8-r ./file_with_koi8.txt


[user]saahriktu[/user]









 , ,








21:04

OS Lotos

И это всё МОЁ

Кто-нибудь является счастливым обладателем?









 ,








И это всё МОЁ

Всем здраствуйте! Необходимо выполнить задание, и найти в .log файле неправильный ip-адрес. В .log файле 3 миллиона строк. Нужно по учебе.









 , ,








И это всё МОЁ

Всем здраствуйте! Необходимо выполнить задание, и найти в .log файле неправильный ip-адрес. В .log файле 3 миллиона строк. Нужно по учебе.









 , ,








И это всё МОЁ

в вайне в некоторых казуалках не работает в начале ввод с клавиши, не могу имя вписать в поле ввода. Самое интересное один раз попросил на торренте мне на винде профиль игры создать и скинуть - так работает. При поисках наткнулся на похожие проблемы у людей если игра стартует в фулскрин(она на самом деле как бы в бэкграунде, зa waybar). кто сталкивался может надо переменные какие передать при старте? Принудительно стартануть типа



wine /desktop 1300x800 bla.exe



не помогает









 ,








И это всё МОЁ
Состоялся релиз Proxmox Virtual Environment 6.1, специализированного Linux-дистрибутива на базе Debian GNU/Linux, нацеленного на развертывание и обслуживание виртуальных серверов с использованием LXC и KVM и способного выступить в роли замены таких продуктов, как VMware vSphere, Microsoft Hyper-V и Citrix XenServer. Размер установочного iso-образа 776 Мб.



И это всё МОЁ

Доброго времени суток.
Пробую разобраться с установкой почтового сервера.
Была выбрана связка PostfixAdmin и RoundCube.
Настройка производилась по мануалу на одном сайте.
В postfixadmin был создан администратор, и только он может отправлять сообщения пользователям (в примере [email protected]). Сам же пользователь успешно авторизуется в roundcube, читает сообщения только от того же администратора, а отправлять не может. Выскакивает ошибка «SMTP ошибка (-1): Сбой соединения с сервером.» В конфиге roundcube указан порт 587.
Помогите, пожалуйста, советом, как можно побороть ошибку.


Логи имеются только у roundcube:


[05-Dec-2019 19:42:44 +0300]: <n6c14qb8> PHP Error: В соединении отказано (POST /webmail/?_task=mail&_unlock=loading1575603747924&_framed=1&_lang=ru&_action=send)
[05-Dec-2019 19:42:44 +0300]: <n6c14qb8> PHP Error: Failed to connect socket: В соединении отказано (POST /webmail/?_task=mail&_unlock=loading1575603747924&_framed=1&_lang=ru&_action=send)
[05-Dec-2019 19:42:44 +0300]: <n6c14qb8> SMTP Error: Connection failed: Failed to connect socket: В соединении отказано in /var/www/roundcubemail/program/lib/Roundcube/rcube.php on line 1689 (POST /webmail/?_task=mail&_unlock=loading1575603747924&_framed=1&_lang=ru&_ac$
[05-Dec-2019 19:44:52 +0300]: <n6c14qb8> PHP Error: В соединении отказано (POST /webmail/?_task=mail&_unlock=loading1575603876452&_framed=1&_lang=ru&_action=send)
[05-Dec-2019 19:44:52 +0300]: <n6c14qb8> PHP Error: Failed to connect socket: В соединении отказано (POST /webmail/?_task=mail&_unlock=loading1575603876452&_framed=1&_lang=ru&_action=send)
[05-Dec-2019 19:44:52 +0300]: <n6c14qb8> SMTP Error: Connection failed: Failed to connect socket: В соединении отказано in /var/www/roundcubemail/program/lib/Roundcube/rcube.php on line 1689 (POST /webmail/?_task=mail&_unlock=loading1575603876452&_framed=1&_lang=ru&_ac$


Конфиг roundcube:


<?php

/* Local configuration for Roundcube Webmail */

// ----------------------------------
// SQL DATABASE
// ----------------------------------
// Database connection string (DSN) for read+write operations
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
// Currently supported db_providers: mysql, pgsql, sqlite, mssql, sqlsrv, oracle
// For examples see pear.php.net/manual/en/package.database.mdb2.in...
// Note: for SQLite use absolute path (Linux): 'sqlite:////full/path/to/sqlite.db?mode=0646'
// or (Windows): 'sqlite:///C:/full/path/to/sqlite.db'
// Note: Various drivers support various additional arguments for connection,
// for Mysql: key, cipher, cert, capath, ca, verify_server_cert,
// for Postgres: application_name, sslmode, sslcert, sslkey, sslrootcert, sslcrl, sslcompression, service.
// e.g. 'mysql://roundcube:@localhost/roundcubemail?verify_server_cert=false'
$config['db_dsnw'] = 'mysql://roundcube:vs59845x@localhost/roundcube';

// ----------------------------------
// IMAP
// ----------------------------------
// The IMAP host chosen to perform the log-in.
// Leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
// required to match old user data records with the new host.
$config['default_host'] = 'localhost';

// provide an URL where a user can get support for this Roundcube installation
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = '';

// This key is used for encrypting purposes, like storing of imap password
// in the session. For historical reasons it's called DES_key, but it's used
// with any configured cipher_method (see below).
$config['des_key'] = 'lONyy10gscshIX8qXsFWMrVS';

// ----------------------------------
// PLUGINS
// ----------------------------------
// List of active plugins (in plugins/ directory)
$config['plugins'] = array('managesieve', 'markasjunk', 'newmail_notifier', 'zipdownload');

// the default locale setting (leave empty for auto-detection)
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
$config['language'] = 'ru_RU';

// compose html formatted messages by default
// 0 - never,
// 1 - always,
// 2 - on reply to HTML message,
// 3 - on forward or reply to HTML message
// 4 - always, except when replying to plain text message
$config['htmleditor'] = 1;

$config['imap_auth_type'] = 'PLAIN';

$config['managesieve_port'] = 4190;
$config['managesieve_host'] = 'localhost';
$config['managesieve_mbox_encoding'] = 'UTF-8';

$config['newmail_notifier_basic'] = true;

$config['enable_installer'] = false;



Конфиг postfixadmin:


<?php
/**
* Postfix Admin
*
* LICENSE
* This source file is subject to the GPL license that is bundled with
* this package in the file LICENSE.TXT.
*
* Further details on the project are available at postfixadmin.sf.net
*
* @version $Id$
* @license GNU GPL v2 or later.
*
* File: config.inc.php
* Contains configuration options.
*/


################################################################################
# #
# PostfixAdmin default configuration #
# #
# This file contains the PostfixAdmin default configuration settings. #
# #
# Please do not edit this file. #
# #
# Instead, add the options you want to change/override to #
# config.local.php (if it doesn't exist, create it). #
# This will make version upgrades much easier. #
# #
################################################################################



/*****************************************************************
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* You have to set $CONF['configured'] = true; before the
* application will run!
* Doing this implies you have changed this file as required.
* i.e. configuring database etc; specifying setup.php password etc.
*/
$CONF['configured'] = true;

// In order to setup Postfixadmin, you MUST specify a hashed password here.
// To create the hash, visit setup.php in a browser and type a password into the field,
// on submission it will be echoed out to you as a hashed value.
$CONF['setup_password'] = '6973a4825ff37f43f710a231d1d7dcad:2e06bb42896534b135b13cfed2203dfcb0565625';

// Language config
// Language files are located in './languages', change as required..
$CONF['default_language'] = 'en';

// Hook to override or add translations in $PALANG
// Set to the function name you want to use as hook function (see language_hook example function below)
$CONF['language_hook'] = '';

/*
language_hook example function

Called if $CONF['language_hook'] == '<name_of_the_function>'
Allows to add or override $PALANG interface texts.

If you add new texts, please always prefix them with 'x_' (for example
$PALANG['x_mytext'] = 'foo') to avoid they clash with texts that might be
added to languages/*.lang in future versions of PostfixAdmin.

Please also make sure that all your added texts are included in all
sections - that includes all 'case "XY":' sections and the 'default:'
section (for users that don't have any of the languages specified
in the 'case "XY":' section).
Usually the 'default:' section should contain english text.

If you modify an existing text/translation, please consider to report it
to the bugtracker on sf.net/projects/postfixadmin so that all users
can benefit from the corrected text/translation.

Returns: modified $PALANG array
*/
/*
function language_hook($PALANG, $language) {
switch ($language) {
case "de":
$PALANG['x_whatever'] = 'foo';
break;
case "fr":
$PALANG['x_whatever'] = 'bar';
break;
default:
$PALANG['x_whatever'] = 'foobar';
}

return $PALANG;
}
*/

// Database Config
// mysql = MySQL 3.23 and 4.0, 4.1 or 5
// mysqli = MySQL 4.1+ or MariaDB
// pgsql = PostgreSQL
// sqlite = SQLite 3
$CONF['database_type'] = 'mysqli';
$CONF['database_host'] = 'localhost';
$CONF['database_user'] = 'mail';
$CONF['database_password'] = 'vs59845x';
$CONF['database_name'] = 'mail';

// Database SSL Config
$CONF['database_use_ssl'] = false;
$CONF['database_ssl_key'] = NULL;
$CONF['database_ssl_cert'] = NULL;
$CONF['database_ssl_ca'] = NULL;
$CONF['database_ssl_ca_path'] = NULL;
$CONF['database_ssl_cipher'] = NULL;

// If you need to specify a different port for a MYSQL database connection, use e.g.
// $CONF['database_host'] = '172.30.33.66:3308';
//
// If you need to specify a different port for MySQLi(3306)/POSTGRESQL(5432) database connection
// uncomment and change the following
// $CONF['database_port'] = '5432';
//
// If you wish to connect using a local socket file (e.g /var/run/mysql.sock) uncomment the below.
// $CONF['database_socket'] = '/var/run/mysql/mysqld.sock';
//
// If sqlite is used, specify the database file path:
// $CONF['database_name'] = '/etc/postfix/sqlite/postfixadmin.db'

// Here, if you need, you can customize table names.
$CONF['database_prefix'] = '';
$CONF['database_tables'] = array (
'admin' => 'admin',
'alias' => 'alias',
'alias_domain' => 'alias_domain',
'config' => 'config',
'domain' => 'domain',
'domain_admins' => 'domain_admins',
'fetchmail' => 'fetchmail',
'log' => 'log',
'mailbox' => 'mailbox',
'vacation' => 'vacation',
'vacation_notification' => 'vacation_notification',
'quota' => 'quota',
'quota2' => 'quota2',
);

// Site Admin
// Define the Site Admin's email address below.
// This will be used to send emails from to create mailboxes and
// from Send Email / Broadcast message pages.
// Leave blank to send email from the logged-in Admin's Email address.
$CONF['admin_email'] = '';

// Site admin name
// This will be used as signature in notification messages
$CONF['admin_name'] = 'Postmaster';

// Mail Server
// Hostname (FQDN) of your mail server.
// This is used to send email to Postfix in order to create mailboxes.
$CONF['smtp_server'] = 'localhost';
$CONF['smtp_port'] = '25';

// SMTP Client
// Hostname (FQDN) of the server hosting Postfix Admin
// Used in the HELO when sending emails from Postfix Admin
$CONF['smtp_client'] = '';

// Encrypt
// In what way do you want the passwords to be crypted?
// md5crypt = internal postfix admin md5
// md5 = md5 sum of the password
// system = whatever you have set as your PHP system default
// cleartext = clear text passwords (ouch!)
// mysql_encrypt = useful for PAM integration
// authlib = support for courier-authlib style passwords - also set $CONF['authlib_default_flavor']
// dovecot:CRYPT-METHOD = use dovecotpw -s 'CRYPT-METHOD'. Example: dovecot:CRAM-MD5
// IMPORTANT:
// - don't use dovecot:* methods that include the username in the hash - you won't be able to login to PostfixAdmin in this case
// - you'll need at least dovecot 2.1 for salted passwords ('doveadm pw' 2.0.x doesn't support the '-t' option)
// - dovecot 2.0.0 - 2.0.7 is not supported
$CONF['encrypt'] = 'md5crypt';

// In what flavor should courier-authlib style passwords be encrypted?
// (only used if $CONF['encrypt'] == 'authlib')
// md5 = {md5} + base64 encoded md5 hash
// md5raw = {md5raw} + plain encoded md5 hash
// SHA = {SHA} + base64-encoded sha1 hash
// crypt = {crypt} + Standard UNIX DES-encrypted with 2-character salt
$CONF['authlib_default_flavor'] = 'md5raw';

// If you use the dovecot encryption method: where is the dovecotpw binary located?
// for dovecot 1.x
// $CONF['dovecotpw'] = "/usr/sbin/dovecotpw";
// for dovecot 2.x (dovecot 2.0.0 - 2.0.7 is not supported!)
$CONF['dovecotpw'] = "/usr/sbin/doveadm pw";
if(@file_exists('/usr/bin/doveadm')) { // @ to silence openbase_dir stuff; see github.com/postfixadmin/postfixadmin/issues/171
$CONF['dovecotpw'] = "/usr/bin/doveadm pw"; # debian
}

// Password validation
// New/changed passwords will be validated using all regular expressions in the array.
// If a password doesn't match one of the regular expressions, the corresponding
// error message from $PALANG (see languages/*) will be displayed.
// See de3.php.net/manual/en/reference.pcre.pattern.sy... for details
// about the regular expression syntax.
// If you need custom error messages, you can add them using $CONF['language_hook'].
// If a $PALANG text contains a %s, you can add its value after the $PALANG key
// (separated with a space).
$CONF['password_validation'] = array(
# '/regular expression/' => '$PALANG key (optional: + parameter)',
'/.{5}/' => 'password_too_short 5', # minimum length 5 characters
'/([a-zA-Z].*){3}/' => 'password_no_characters 3', # must contain at least 3 characters
'/([0-9].*){2}/' => 'password_no_digits 2', # must contain at least 2 digits
);

// Generate Password
// Generate a random password for a mailbox or admin and display it.
// If you want to automagically generate passwords set this to 'YES'.
$CONF['generate_password'] = 'NO';

// Show Password
// Always show password after adding a mailbox or admin.
// If you want to always see what password was set set this to 'YES'.
$CONF['show_password'] = 'NO';

// Page Size
// Set the number of entries that you would like to see
// in one page.
$CONF['page_size'] = '10';

// Default Aliases
// The default aliases that need to be created for all domains.
// You can specify the target address in two ways:
// a) a full mail address
// b) only a localpart ('postmaster' => 'admin') - the alias target will point to the same domain
$CONF['default_aliases'] = array (
'abuse' => '[email protected]',
'hostmaster' => '[email protected]',
'postmaster' => '[email protected]',
'webmaster' => '[email protected]'
);

// Mailboxes
// If you want to store the mailboxes per domain set this to 'YES'.
// Examples:
// YES: /usr/local/virtual/domain.tld/[email protected]
// NO: /usr/local/virtual/[email protected]
$CONF['domain_path'] = 'YES';
// If you don't want to have the domain in your mailbox set this to 'NO'.
// Examples:
// YES: /usr/local/virtual/domain.tld/[email protected]
// NO: /usr/local/virtual/domain.tld/username
// Note: If $CONF['domain_path'] is set to NO, this setting will be forced to YES.
$CONF['domain_in_mailbox'] = 'NO';
// If you want to define your own function to generate a maildir path set this to the name of the function.
// Notes:
// - this configuration directive will override both domain_path and domain_in_mailbox
// - the maildir_name_hook() function example is present below, commented out
// - if the function does not exist the program will default to the above domain_path and domain_in_mailbox settings
$CONF['maildir_name_hook'] = 'NO';

/*
maildir_name_hook example function

Called when creating a mailbox if $CONF['maildir_name_hook'] == '<name_of_the_function>'
- allows for customized maildir paths determined by a custom function
- the example below will prepend a single-character directory to the
beginning of the maildir, splitting domains more or less evenly over
36 directories for improved filesystem performance with large numbers
of domains.

Returns: maildir path
ie. I/example.com/user/
*/
/*
function maildir_name_hook($domain, $user) {
$chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";

$dir_index = hexdec(substr(md5($domain), 28)) % strlen($chars);
$dir = substr($chars, $dir_index, 1);
return sprintf("%s/%s/%s/", $dir, $domain, $user);
}
*/

/*
*_struct_hook - change, add or remove fields

If you need additional fields or want to change or remove existing fields,
you can write a hook function to modify $struct in the *Handler classes.

The edit form will automatically be updated according to the modified
$struct. The list page is not yet updated automatically.

You can define one hook function per class, named like the primary database
table of that class.
The hook function is called with $struct as parameter and must return the
modified $struct.

Note: Adding a field to $struct adds the handling of this field in
PostfixAdmin, but it does not create it in the database. You have to do
that yourself.
Please follow the naming policy for custom database fields and tables on
sourceforge.net/p/postfixadmin/wiki/Custom_fiel...
to avoid clashes with future versions of PostfixAdmin.

See initStruct() in the *Handler class for the default $struct.
See pacol() in functions.inc.php for the available flags on each column.

Example:

function x_struct_admin_modify($struct) {
$struct['superadmin']['editable'] = 0; # make the 'superadmin' flag read-only
$struct['superadmin']['display_in_form'] = 0; # don't display the 'superadmin' flag in edit form
$struct['x_newfield'] = pacol( [...] ); # additional field 'x_newfield'
return $struct; # important!
}
$CONF['admin_struct_hook'] = 'x_struct_admin_modify';
*/
$CONF['admin_struct_hook'] = '';
$CONF['domain_struct_hook'] = '';
$CONF['alias_struct_hook'] = '';
$CONF['mailbox_struct_hook'] = '';
$CONF['alias_domain_struct_hook'] = '';
$CONF['fetchmail_struct_hook'] = '';


// Default Domain Values
// Specify your default values below. Quota in MB.
$CONF['aliases'] = '10';
$CONF['mailboxes'] = '10';
$CONF['maxquota'] = '10';
$CONF['domain_quota_default'] = '2048';

// Quota
// When you want to enforce quota for your mailbox users set this to 'YES'.
$CONF['quota'] = 'NO';
// If you want to enforce domain-level quotas set this to 'YES'.
$CONF['domain_quota'] = 'YES';
// You can either use '1024000' or '1048576'
$CONF['quota_multiplier'] = '1024000';

// Transport
// If you want to define additional transport options for a domain set this to 'YES'.
// Read the transport file of the Postfix documentation.
$CONF['transport'] = 'NO';
// Transport options
// If you want to define additional transport options put them in array below.
$CONF['transport_options'] = array (
'virtual', // for virtual accounts
'local', // for system accounts
'relay' // for backup mx
);
// Transport default
// You should define default transport. It must be in array above.
$CONF['transport_default'] = 'virtual';


//
//
// Virtual Vacation Stuff
//
//

// If you want to use virtual vacation for you mailbox users set this to 'YES'.
// NOTE: Make sure that you install the vacation module. (See VIRTUAL-VACATION/)
$CONF['vacation'] = 'NO';

// This is the autoreply domain that you will need to set in your Postfix
// transport maps to handle virtual vacations. It does not need to be a
// real domain (i.e. you don't need to setup DNS for it).
// This domain must exclusively be used for vacation. Do NOT use it for "normal" mail addresses.
$CONF['vacation_domain'] = 'autoreply.change-this-to-your.domain.tld';

// Vacation Control
// If you want users to take control of vacation set this to 'YES'.
$CONF['vacation_control'] ='YES';

// Vacation Control for admins
// Set to 'YES' if your domain admins should be able to edit user vacation.
$CONF['vacation_control_admin'] = 'YES';

// ReplyType options
// If you want to define additional reply options put them in array below.
// The array has the format seconds between replies => $PALANG text
// Special values for seconds are:
// 0 => only reply to the first mail while on vacation
// 1 => reply on every mail
$CONF['vacation_choice_of_reply'] = array (
0 => 'reply_once', // Sends only Once the message during Out of Office
# considered annoying - only send a reply on every mail if you really need it
# 1 => 'reply_every_mail', // Reply on every email
60*60 *24*7 => 'reply_once_per_week' // Reply if last autoreply was at least a week ago
);

//
// End Vacation Stuff.
//

// Alias Control
// Postfix Admin inserts an alias in the alias table for every mailbox it creates.
// The reason for this is that when you want catch-all and normal mailboxes
// to work you need to have the mailbox replicated in the alias table.
// If you want to take control of these aliases as well set this to 'YES'.

// If you don't want edit alias tab (user mode) set this to 'NO';
$CONF['edit_alias'] = 'YES';

// Alias control for superadmins
$CONF['alias_control'] = 'YES';

// Alias Control for domain admins
$CONF['alias_control_admin'] = 'YES';

// Special Alias Control
// Set to 'NO' if your domain admins shouldn't be able to edit the default aliases
// as defined in $CONF['default_aliases']
$CONF['special_alias_control'] = 'NO';

// Alias Goto Field Limit
// Set the max number of entries that you would like to see
// in one 'goto' field in overview, the rest will be hidden and "[and X more...]" will be added.
// '0' means no limits.
$CONF['alias_goto_limit'] = '0';

// Alias Domains
// Alias domains allow to "mirror" aliases and mailboxes to another domain. This makes
// configuration easier if you need the same set of aliases on multiple domains, but
// also requires postfix to do more database queries.
// Note: If you update from 2.2.x or earlier, you will have to update your postfix configuration.
// Set to 'NO' to disable alias domains.
$CONF['alias_domain'] = 'YES';

// Backup
// If you don't want backup tab set this to 'NO';
$CONF['backup'] = 'NO';

// Send Mail
// If you don't want sendmail tab set this to 'NO';
$CONF['sendmail'] = 'YES';
// Set this to YES if you want to allow non-super-admins to
// send mails to their users
$CONF['sendmail_all_admins'] = 'NO';

// Logging
// If you don't want logging set this to 'NO';
$CONF['logging'] = 'YES';

// Fetchmail
// If you don't want fetchmail tab set this to 'NO';
$CONF['fetchmail'] = 'YES';

// fetchmail_extra_options allows users to specify any fetchmail options and any MDA
// (it will even accept 'rm -rf /' as MDA!)
// This should be set to NO, except if you *really* trust *all* your users.
$CONF['fetchmail_extra_options'] = 'NO';

// Header
$CONF['show_header_text'] = 'NO';
$CONF['header_text'] = ':: Postfix Admin ::';

// Footer
// Below information will be on all pages.
// If you don't want the footer information to appear set this to 'NO'.
$CONF['show_footer_text'] = 'YES';
$CONF['footer_text'] = 'Return to change-this-to-your.domain.tld';
$CONF['footer_link'] = 'change-this-to-your.domain.tld';

// MOTD ("Motto of the day";)
// You can display a MOTD below the menu on all pages.
// This can be configured seperately for users, domain admins and superadmins
$CONF['motd_user'] = '';
$CONF['motd_admin'] = '';
$CONF['motd_superadmin'] = '';

// Welcome Message
// This message is send to every newly created mailbox.
// Change the text between EOM.
$CONF['welcome_text'] = <<<EOM
Hi,

Welcome to your new account.
EOM;

// When creating mailboxes or aliases, check that the domain-part of the
// address is legal by performing a name server look-up.
$CONF['emailcheck_resolve_domain']='YES';


// Optional:
// Analyze alias gotos and display a colored block in the first column
// indicating if an alias or mailbox appears to deliver to a non-existent
// account. Also, display indications, for POP/IMAP mailboxes and
// for custom destinations (such as mailboxes that forward to a UNIX shell
// account or mail that is sent to a MS exchange server, or any other
// domain or subdomain you use)
// See www.w3schools.com/html/html_colornames.asp for a list of
// color names available on most browsers

//set to YES to enable this feature
$CONF['show_status']='YES';
//display a guide to what these colors mean
$CONF['show_status_key']='YES';
// 'show_status_text' will be displayed with the background colors
// associated with each status, you can customize it here
$CONF['show_status_text']='  ';
// show_undeliverable is useful if most accounts are delivered to this
// postfix system. If many aliases and mailboxes are forwarded
// elsewhere, you will probably want to disable this.
$CONF['show_undeliverable']='YES';
$CONF['show_undeliverable_color']='tomato';
// mails to these domains will never be flagged as undeliverable
$CONF['show_undeliverable_exceptions']=array("unixmail.domain.ext","exchangeserver.domain.ext";);
$CONF['show_popimap']='YES';
$CONF['show_popimap_color']='darkgrey';
// you can assign special colors to some domains. To do this,
// - add the domain to show_custom_domains
// - add the corresponding color to show_custom_colors
$CONF['show_custom_domains']=array("subdomain.domain.ext","domain2.ext";);
$CONF['show_custom_colors']=array("lightgreen","lightblue";);
// If you use a recipient_delimiter in your postfix config, you can also honor it when aliases are checked.
// Example: $CONF['recipient_delimiter'] = "+";
// Set to "" to disable this check.
$CONF['recipient_delimiter'] = "";

// Optional:
// sсript to run after creation of mailboxes.
// Note that this may fail if PHP is run in "safe mode", or if
// operating system features (such as SELinux) or limitations
// prevent the web-server from executing external scripts.
// Parameters: (1) username (2) domain (3) maildir (4) quota
// $CONF['mailbox_postcreation_sсript']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postcreation.sh';
$CONF['mailbox_postcreation_sсript'] = '';

// Optional:
// sсript to run after alteration of mailboxes.
// Note that this may fail if PHP is run in "safe mode", or if
// operating system features (such as SELinux) or limitations
// prevent the web-server from executing external scripts.
// Parameters: (1) username (2) domain (3) maildir (4) quota
// $CONF['mailbox_postedit_sсript']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postedit.sh';
$CONF['mailbox_postedit_sсript'] = '';

// Optional:
// sсript to run after deletion of mailboxes.
// Note that this may fail if PHP is run in "safe mode", or if
// operating system features (such as SELinux) or limitations
// prevent the web-server from executing external scripts.
// Parameters: (1) username (2) domain
// $CONF['mailbox_postdeletion_sсript']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postdeletion.sh';
$CONF['mailbox_postdeletion_sсript'] = '';

// Optional:
// sсript to run after creation of domains.
// Note that this may fail if PHP is run in "safe mode", or if
// operating system features (such as SELinux) or limitations
// prevent the web-server from executing external scripts.
// Parameters: (1) domain
//$CONF['domain_postcreation_sсript']='sudo -u courier /usr/local/bin/postfixadmin-domain-postcreation.sh';
$CONF['domain_postcreation_sсript'] = '';

// Optional:
// sсript to run after deletion of domains.
// Note that this may fail if PHP is run in "safe mode", or if
// operating system features (such as SELinux) or limitations
// prevent the web-server from executing external scripts.
// Parameters: (1) domain
// $CONF['domain_postdeletion_sсript']='sudo -u courier /usr/local/bin/postfixadmin-domain-postdeletion.sh';
$CONF['domain_postdeletion_sсript'] = '';

// Optional:
// Sub-folders which should automatically be created for new users.
// The sub-folders will also be subscribed to automatically.
// Will only work with IMAP server which implement sub-folders.
// Will not work with POP3.
// If you define create_mailbox_subdirs, then the
// create_mailbox_subdirs_host must also be defined.
//
// $CONF['create_mailbox_subdirs']=array('Spam');
$CONF['create_mailbox_subdirs'] = array();
$CONF['create_mailbox_subdirs_host']='localhost';
//
// Specify '' for Dovecot and 'INBOX.' for Courier.
$CONF['create_mailbox_subdirs_prefix']='INBOX.';

// Optional:
// Show used quotas from Dovecot dictionary backend in virtual
// mailbox listing.
// See: DOCUMENTATION/DOVECOT.txt
// wiki.dovecot.org/Quota/Dict
//
$CONF['used_quotas'] = 'NO';

// if you use dovecot >= 1.2, set this to yes.
// Note about dovecot config: table "quota" is for 1.0 & 1.1, table "quota2" is for dovecot 1.2 and newer
$CONF['new_quota_table'] = 'YES';

//
// Normally, the TCP port number does not have to be specified.
// $CONF['create_mailbox_subdirs_hostport']=143;
//
// If you have trouble connecting to the IMAP-server, then specify
// a value for $CONF['create_mailbox_subdirs_hostoptions']. These
// are some examples to experiment with:
// $CONF['create_mailbox_subdirs_hostoptions']=array('notls');
// $CONF['create_mailbox_subdirs_hostoptions']=array('novalidate-cert','norsh');
// See also the "Optional flags for names" table at
// www.php.net/manual/en/function.imap-open.php
$CONF['create_mailbox_subdirs_hostoptions'] = array();

// Optional:
// Allows a user to reset his forgotten password with a code sent by email/SMS
$CONF['forgotten_user_password_reset'] = true;
// Allows an admin to reset his forgotten password with a code sent by email/SMS
$CONF['forgotten_admin_password_reset'] = false;

// Name of the function to send a SMS
// Please use a name that begins with "x_" to prevent collisions
// This function must accept 2 parameters: phone number and message,
// and return true on success or false on failure
// Note: if no sms_send_function is defined, the input field for the mobile
// number won't be displayed
$CONF['sms_send_function'] = '';

/*
// Example of send SMS function using Clickatell HTTP API
function x_send_sms_clickatell($to, $message) {

$clickatell_api_id = 'CHANGEME';
$clickatell_user = 'CHANGEME';
$clickatell_password = 'CHANGEME';
$clickatell_sender = 'CHANGEME';

$url = 'api.clickatell.com/http/sendmsg?api_id=%s&user=...';

$url = sprintf($url, $clickatell_api_id, $clickatell_user, $clickatell_password, $to, $clickatell_sender, urlencode($message));

$result = file_get_contents($url);

return $result !== false;
}
*/

// Theme Config
// Specify your own logo and CSS file
$CONF['theme_logo'] = 'images/logo-default.png';
$CONF['theme_css'] = 'css/default.css';
// If you want to customize some styles without editing the $CONF['theme_css'] file,
// you can add a custom CSS file. It will be included after $CONF['theme_css'].
$CONF['theme_custom_css'] = '';

// XMLRPC Interface.
// This should be only of use if you wish to use e.g the
// Postfixadmin-Squirrelmail package
// change to boolean true to enable xmlrpc
$CONF['xmlrpc_enabled'] = false;

// If you want to keep most settings at default values and/or want to ensure
// that future updates work without problems, you can use a separate config
// file (config.local.php) instead of editing this file and override some
// settings there.
if (file_exists(dirname(__FILE__) . '/config.local.php')) {
require_once(dirname(__FILE__) . '/config.local.php');
}

//
// END OF CONFIG FILE
//
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */










 , , ,








И это всё МОЁ
Началось тестирование первой альфа-версии инсталлятора следующего значительного релиза Debian - "Bullseye". Релиз ожидается примерно через полтора-два года.



И это всё МОЁ

Жил со своей RX Vega 64 и горя не знал, захотелось в доту поиграть - и пожалуйста, ring gfx timeout в dmesg'е (полного лога сейчас нет, зашёл по ssh в момент краша и увидел, остальное мало чем отличается от других), а экран заполняется случайным цветом или вовсе артефактами. Каргокультисты с фороникса в подобных темах говорят, что это от перегрева - ага, сейчас: выше 70 по Цельсию она у меня никогда не грелась, да и БП за сотни нефти купил, так что it's only a software problem (под виндой в виртуалке видеокарта работает без проблем). Хотелось бы узнать, победил ли кто этот бич красных видеокарт (что-то такое сказали на реддите или форониксе) - и если да, то как? А то ведь нипаиграть же! Баг этот воспроизводится у меня на всех версиях ядра и Mesa - начиная с 4.19/18.0 и заканчивая последними.








 








И это всё МОЁ

Смотрю я вот на мониторы и думаю всякую фигню.
Например, а как будет выглядеть изображение на 3840x2160 мониторе если выставить разрешение 1920x1080? Зачем? Ну, предположим, захочу я игрушку какую запустить. Я не геймер и нет у меня супер-пупер видеокарты чтобы в 3840x2160 что-то запускать. Да мало ли что ещё.
Теретически разрешения ведь различаются точно в два раза по каждому из габаритов. Т.е. масштабирование должно быть идеальным. Но что-то мне подсказывает что получится мыло, говно и всё как всегда.
Кто-то знает как на самом деле?








 ,








И это всё МОЁ

Купил ноутбук с 4к экраном. Проблема в том что установщик не поддерживает такое разрешение и live-дистрибутив просто не работает.


Ставлю Manjaro.
Как при загрузке подсунуть нужное разрешение (1920х1080)?


Я знаю как в grub прописать, но как сделать это при загрузке?









 ,