LinuxForum.Fans
Тема

Установка программ в Mint

Автор: medusa 81 сообщений 10487 просмотров В конец обсуждения ↓
#439421

medusa, здесь порядок. Выложите тогда конфиг /etc/apache2/sites-available/default или как он там называется.

Вот вам пример рабочего конфига:

text
<VirtualHost 1.2.3.4:80>
    ServerName domain.su
    ServerAlias www.domain.su

ServerAdmin webmaster@localhost DocumentRoot /var/www/domain.su

DirectoryIndex index.php index.html index.htm

ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory /var/www/domain.su> Options -Indexes +FollowSymLinks +MultiViews +Includes AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost>

#439422
"Rizado" написал:
medusa, здесь порядок. Выложите тогда конфиг /etc/apache2/sites-available/default или как он там называется.

Сейчас настраиваю phpmyadmin. Идет не быстро, но пока все вроде нормально

Показать

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Сейчас наверное остановлюсь - в глазах двоится. Надо бы перекурить)))

#439424

medusa, как успехи? Судя по отсутствию вопросов, всё хорошо.

#439425
"Rizado" написал:
Судя по отсутствию вопросов, всё хорошо.

Закончил с phpmyadmin. В окончательном варианте config.incv.phpтеперь выглядит так:

Показать

<?php
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in documentation in the doc/ folder
* or at <https://docs.phpmyadmin.net/>.
*/

declare(strict_types=1);

/**
* This is needed for cookie based authentication to encrypt the cookie.
* Needs to be a 32-bytes long string of random bytes. See FAQ 2.10.
*/
$cfg['blowfish_secret'] = 'ghFXgipH4s4q9kJJxYMHj9Y62uttfBB7'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/**
* Servers configuration
*/
$i = 0;

/**
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/**
* phpMyAdmin configuration storage settings.
*/

/* User used to manipulate with storage */
// $cfg['Servers'][$i]['controlhost'] = '';
// $cfg['Servers'][$i]['controlport'] = '';
$cfg['Servers'][$i]['controluser'] = 'phpmyadmin';
$cfg['Servers'][$i]['controlpass'] = 'Medusa[1968]';

/* Storage database and tables */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['relation'] = 'pma__relation';
$cfg['Servers'][$i]['table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['history'] = 'pma__history';
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma__tracking';
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
// $cfg['Servers'][$i]['users'] = 'pma__users';
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';

/**
* End of servers configuration
*/
$cfg['TempDir'] = '/tmp';
/**
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

/**
* Whether to display icons or text or both icons and text in table row
* action segment. Value can be either of 'icons', 'text' or 'both'.
* default = 'both'
*/
//$cfg['RowActionType'] = 'icons';

/**
* Defines whether a user should be displayed a "show all (records)"
* button in browse mode or not.
* default = false
*/
//$cfg['ShowAll'] = true;

/**
* Number of rows displayed when browsing a result set. If the result
* set contains more rows, "Previous" and "Next".
* Possible values: 25, 50, 100, 250, 500
* default = 25
*/
//$cfg['MaxRows'] = 50;

/**
* Disallow editing of binary fields
* valid values are:
* false allow editing
* 'blob' allow editing except for BLOB fields
* 'noblob' disallow editing except for BLOB fields
* 'all' disallow editing
* default = 'blob'
*/
//$cfg['ProtectBinary'] = false;

/**
* Default language to use, if not browser-defined or user-defined
* (you find all languages in the locale folder)
* uncomment the desired line:
* default = 'en'
*/
//$cfg['DefaultLang'] = 'en';
//$cfg['DefaultLang'] = 'de';

/**
* How many columns should be used for table display of a database?
* (a value larger than 1 results in some information being hidden)
* default = 1
*/
//$cfg['PropertiesNumColumns'] = 2;

/**
* Set to true if you want DB-based query history.If false, this utilizes
* JS-routines to display query history (lost by window close)
*
* This requires configuration storage enabled, see above.
* default = false
*/
//$cfg['QueryHistoryDB'] = true;

/**
* When using DB-based query history, how many entries should be kept?
* default = 25
*/
//$cfg['QueryHistoryMax'] = 100;

/**
* Whether or not to query the user before sending the error report to
* the phpMyAdmin team when a JavaScript error occurs
*
* Available options
* ('ask' | 'always' | 'never')
* default = 'ask'
*/
//$cfg['SendErrorReports'] = 'always';

/**
* 'URLQueryEncryption' defines whether phpMyAdmin will encrypt sensitive data from the URL query string.
* 'URLQueryEncryptionSecretKey' is a 32 bytes long secret key used to encrypt/decrypt the URL query string.
*/
//$cfg['URLQueryEncryption'] = true;
//$cfg['URLQueryEncryptionSecretKey'] = '';

/**
* You can find more configuration options in the documentation
* in the doc/ folder or at <https://docs.phpmyadmin.net/>.
*/

При авторизации ошибок и предупреждений нет. Перехожу к тестированию и созданию виртуального хоста. Вопросы были, конечно, но если можешь дотумкать сам, то что же тревожить того, кого практически постоянно спрашиваешь? Спасибо вам. Думаю вопросы скоро появятся.
Добавлено: 21.04.2024 18:29:03

Что-то у меня с настройками не нормально:


Not Found
The requested URL was not found on this server.

Apache/2.4.52 (Ubuntu) Server at localhost Port 80

Нет, говорит, запрошенного URL Видимо с настройками Apache не все благополочно.

[console]
medusa@medusa-pc-O-E-M:~$ sudo a2dissite 000-default.conf
[sudo] пароль для medusa:
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
medusa@medusa-pc-O-E-M:~$ sudo systemctl restart apache2
[/console]


Forbidden
You don't have permission to access this resource.
#439426
"medusa" написал:
sudo a2dissite 000-default.conf

А зачем отключать сайт? Включите его:
[console]sudo a2ensite 000-default.conf[/console]

#439427
"Rizado" написал:
А зачем отключать сайт? Включите его:

Уже. Иначе тут же падает phpmyadmin.

Теперь если ввожу http://localhost/test:
Not Found
The requested URL was not found on this server.

Если ввожу htp://test:
Forbidden
You don't have permission to access this resource.

#439428
"medusa" написал:
http://localhost/test:
"medusa" написал:
htp://test:

Зачем в конце адреса двоеточие?

#439429
"Rizado" написал:
Зачем в конце адреса двоеточие?

Просто переход к выводу информации. В браузере я его не ввщжу конечно.

#439430

medusa, в принципе, вы можете себе настроить сайты phpmyadmin.local, site1.local и т.д. Тогда не нужно будет по папкам размещать на одном хосте.
Как делается:
1. Вносите правки в /etc/hosts
2. Добавляете сайты обязательно в зоне .local или какой-то несуществующей. В противном случае можете случайно себе заблокировать доступ к нужному сайту.

#439431
"Rizado" написал:
В противном случае можете случайно себе заблокировать доступ к нужному сайту.

Это конечно, но мне бы для начала просто открыть папку test, а я не могу в нее зайти. Ну никак не могу. Я выставил права, как обычно, но не работает. У меня ничего не получается. (((

#439432

medusa, вот, сделал быстро у себя.

Вспомнил такой момент − Linux почему-то не дружит нормально с зоной .local, на работе тоже месяца 3 назад с этим сталкивался. Сделал файлообменник, назвал его share.local, на роутере связал с IP (такой себе локальный DNS). И виндовые клиенты номально обращались, а вот линуксовые... В общем, пришлось менять .local на аббревиатуру нашей организации и добавил 82, в смысле, Крым :) .
Именно потому, что нормально не дружит, а копаться мне лень, сделал свою локальную зону .rizado − коротко и понятно :) .

Update. Вот что нашёл по зоне .local:

Проблема заключается в использовании сервиса avahi для анонсирования ресурсов компьютера в локальной сети, так как для этих целей используется зона .local.

Есть даже способ решения без удаления avahi, но пробовать не буду - на работе уже несуществующий в интернете домен сделал, а дома проще как-то.

#439433
"Rizado" написал:
вот, сделал быстро у себя.

Не могли бы Вы объяснить алгоритм действий подробнее. Я уже совсем запутался.((

#439434
"medusa" написал:
Не могли бы Вы объяснить алгоритм действий подробнее. Я уже совсем запутался.((

1. Добавляем в /etc/hosts:

text
127.0.0.1       phpmyadmin.mytld

.mytld замените на что-то своё − несуществующий домен верхнего уровня, но не .local − с ними есть проблемы. По необходимости добавьте ещё домены.
2. Создайте для них хосты в Apache и соответствующие папки в /var/www. Образец - выше в теме.
3. Перезапустите Apache.
4. Скачайте последнюю версию phpMyAdmin и распакуйте её в соответствующую папку.
Готово, можно пробовать.

#439441
"Rizado" написал:
Добавляем в /etc/hosts:

Спасибо вам большое. Дело пока стоит - работы очень много и до компьютера не дошел. Отвечаю на Ваше сообщение дабы не посчитали меня неблагодарным или невоспитанным. Как начну "ваять" сразу отпишусь. *THUMBSUP*

#439442
"medusa" написал:
работы очень много

Не только у вас, я тоже вчера в спешке отвечал.

#439443
"Rizado" написал:
Не только у вас, я тоже вчера в спешке отвечал.

Добрался до компьютера и тут меня ожидала очередная беда. Я просто не понимаю, что происходит. Подскажите в чем проблема пожалуйста

Показать
[console]
medusa@medusa-pc-O-E-M:~$ sudo apt update
[sudo] пароль для medusa:
Сущ:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Сущ:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Сущ:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Сущ:4 https://dl.google.com/linux/chrome/deb stable InRelease
Сущ:5 https://repo.steampowered.com/steam stable InRelease
Игн:6 http://packages.linuxmint.com virginia InRelease
Сущ:7 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Сущ:8 http://packages.linuxmint.com virginia Release
Сущ:9 https://packages.microsoft.com/repos/code stable InRelease
Игн:11 https://ppa.launchpadcontent.net/apandada1/brightness-controller/ubuntu jammy InRelease
Игн:12 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Игн:13 https://ppa.launchpadcontent.net/gerardpuig/ppa/ubuntu jammy InRelease
Игн:14 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu jammy InRelease
Игн:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Игн:16 https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable/ubuntu jammy InRelease
Игн:17 https://ppa.launchpadcontent.net/rvm/smplayer/ubuntu jammy InRelease
Игн:11 https://ppa.launchpadcontent.net/apandada1/brightness-controller/ubuntu jammy InRelease
Игн:12 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Игн:13 https://ppa.launchpadcontent.net/gerardpuig/ppa/ubuntu jammy InRelease
Игн:14 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu jammy InRelease
Игн:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Игн:16 https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable/ubuntu jammy InRelease
Игн:17 https://ppa.launchpadcontent.net/rvm/smplayer/ubuntu jammy InRelease
Игн:11 https://ppa.launchpadcontent.net/apandada1/brightness-controller/ubuntu jammy InRelease
Игн:12 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Игн:13 https://ppa.launchpadcontent.net/gerardpuig/ppa/ubuntu jammy InRelease
Игн:14 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu jammy InRelease
Игн:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Игн:16 https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable/ubuntu jammy InRelease
Игн:17 https://ppa.launchpadcontent.net/rvm/smplayer/ubuntu jammy InRelease
Ошб:11 https://ppa.launchpadcontent.net/apandada1/brightness-controller/ubuntu jammy InRelease
Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна) Не удалось соединиться с ppa.launchpadcontent.net:443 (185.125.190.80): время ожидания для соединения истекло
Ошб:12 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
Ошб:13 https://ppa.launchpadcontent.net/gerardpuig/ppa/ubuntu jammy InRelease
Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
Ошб:14 https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu jammy InRelease
Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
Ошб:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
Ошб:16 https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable/ubuntu jammy InRelease
Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
Ошб:17 https://ppa.launchpadcontent.net/rvm/smplayer/ubuntu jammy InRelease
Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
Чтение списков пакетов… Готово
Построение дерева зависимостей… Готово
Чтение информации о состоянии… Готово
Все пакеты имеют последние версии.
W: Не удалось получить https://ppa.launchpadcontent.net/apandada1/brightness-controller/ubuntu/dists/jammy/InRelease Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна) Не удалось соединиться с ppa.launchpadcontent.net:443 (185.125.190.80): время ожидания для соединения истекло
W: Не удалось получить https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu/dists/jammy/InRelease Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
W: Не удалось получить https://ppa.launchpadcontent.net/gerardpuig/ppa/ubuntu/dists/jammy/InRelease Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
W: Не удалось получить https://ppa.launchpadcontent.net/nrbrtx/xorg-hotkeys/ubuntu/dists/jammy/InRelease Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
W: Не удалось получить https://ppa.launchpadcontent.net/ondrej/php/ubuntu/dists/jammy/InRelease Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
W: Не удалось получить https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable/ubuntu/dists/jammy/InRelease Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
W: Не удалось получить https://ppa.launchpadcontent.net/rvm/smplayer/ubuntu/dists/jammy/InRelease Невозможно инициализировать соединение с ppa.launchpadcontent.net:443 (2620:2d:4000:1::81). - connect (101: Сеть недоступна)
W: Некоторые индексные файлы скачать не удалось. Они были проигнорированы, или вместо них были использованы старые версии.
medusa@medusa-pc-O-E-M:~$

[/console]

Добавлено: 24.04.2024 20:08:49

Вопрос решил, отключив источник обновлений qbittorent. Что с ним не так не знаю, но почемуто он блокирует все другие исочники обновлений.

#439444

medusa, у вас по IPv6 вначале запрашивает?

#439445

Просто обалдеть - в директории /usr/share/keyrings оказалось 2 файла: qbittorrent.gpg и qbittorrent.gpg~ . Я второй файл переименовал и все заработало. Не понимаю почему так получилось и часто ли бывают подобные "сбои"? Спасибо.
Добавлено: 24.04.2024 20:26:14

"Rizado" написал:
medusa, у вас по IPv6 вначале запрашивает?

Да вроде нет. Я ведь IPv6 даже не задействовал - еще по Ubuntu помню о проблемах с этим протоколом.

Добавлено: 24.04.2024 20:37:02

Блин, соврал - задействовано.

Показать

[img=PunBB bbcode шзм6]https://fa8fde9a-04c0-47e0-ad84-711164829705.selstorage.ru/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%20%D0%BE%D1%82%202024-04-24%2020-32-55.png[/img]

Сделал так:

Показать
[console]
medusa@medusa-pc-O-E-M:~$ ifconfig
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::51e3:ee19:7daa:7a8a prefixlen 64 scopeid 0x20<link>
ether e0:d5:5e:3d:70:8f txqueuelen 1000 (Ethernet)
RX packets 12261 bytes 11349371 (11.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8823 bytes 1949688 (1.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Локальная петля (Loopback))
RX packets 991 bytes 100611 (100.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 991 bytes 100611 (100.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

medusa@medusa-pc-O-E-M:~$
[/console]

Далее sudo gedit /etc/default/grub, правлю строку: GRUB_CMDLINE_LINUX="amd_iommu=on iommu=pt ipv6.disable = 1" . Далее:

Показать
[console]
medusa@medusa-pc-O-E-M:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/darkmatter/theme.txt
Found linux image: /boot/vmlinuz-6.5.0-28-generic
Found initrd image: /boot/initrd.img-6.5.0-28-generic
Found linux image: /boot/vmlinuz-5.15.0-105-generic
Found initrd image: /boot/initrd.img-5.15.0-105-generic
Found linux image: /boot/vmlinuz-5.15.0-91-generic
Found initrd image: /boot/initrd.img-5.15.0-91-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sdc1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
medusa@medusa-pc-O-E-M:~$
[/console]

И перезагружаю компьютер.
Добавлено: 24.04.2024 21:02:00

Хм... Не вышло. Очень интересно. Так, как на Ubuntu не вышло. надо подумать.

Добавлено: 24.04.2024 21:18:25

Изменил другую строку - GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable=1"

Показать
[console]
medusa@medusa-pc-O-E-M:~$ ifconfig
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255
ether e0:d5:5e:3d:70:8f txqueuelen 1000 (Ethernet)
RX packets 817 bytes 747685 (747.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 717 bytes 156255 (156.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Локальная петля (Loopback))
RX packets 180 bytes 15511 (15.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 180 bytes 15511 (15.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

medusa@medusa-pc-O-E-M:~$
[/console]

Вроде получилось.

#439464

Вернулся в эту тему - может не правильно. В связи с тем, что PyCharm выходил из сессии, решил изучить, что мне пишет файл Xorg.0.log.old:

Показать

[ 1524.607]
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[ 1524.608] Current Operating System: Linux medusa-pc-O-E-M 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64
[ 1524.608] Kernel command line: BOOT_IMAGE=/vmlinuz-6.5.0-28-generic root=UUID=f97eb90f-1991-4cdd-8943-1f5a15605d8d ro amd_iommu=on iommu=pt quiet splash ipv6.disable=1
[ 1524.608] xorg-server 2:21.1.4-2ubuntu1.7~22.04.10ppa11 (For technical support please see http://www.ubuntu.com/support)
[ 1524.608] Current version of pixman: 0.40.0
[ 1524.608] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
....
[ 2775.055] (EE)
[ 2775.055] (EE) Backtrace:
[ 2775.055] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x139) [0x6107557c9b39]
[ 2775.056] (EE) 1: /lib/x86_64-linux-gnu/libc.so.6 (__sigaction+0x50) [0x7c2c8ca42520]
[ 2775.056] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (pthread_kill+0x12c) [0x7c2c8ca969fc]
[ 2775.057] (EE) 3: /lib/x86_64-linux-gnu/libc.so.6 (raise+0x16) [0x7c2c8ca42476]
[ 2775.058] (EE) 4: /lib/x86_64-linux-gnu/libc.so.6 (abort+0xd3) [0x7c2c8ca287f3]
[ 2775.058] (EE) 5: /lib/x86_64-linux-gnu/libc.so.6 (__fsetlocking+0x426) [0x7c2c8ca89676]
[ 2775.059] (EE) 6: /lib/x86_64-linux-gnu/libc.so.6 (timer_settime+0x2cc) [0x7c2c8caa0cfc]
[ 2775.059] (EE) 7: /lib/x86_64-linux-gnu/libc.so.6 (malloc+0x33c) [0x7c2c8caa53dc]
[ 2775.060] (EE) 8: /usr/lib/xorg/Xorg (SetGlyphPicture+0x15d) [0x61075572311d]
[ 2775.060] (EE) 9: /usr/lib/xorg/Xorg (AddTraps+0x347a) [0x61075572b8da]
[ 2775.060] (EE) 10: /usr/lib/xorg/Xorg (SendErrorToClient+0x365) [0x610755653635]
[ 2775.060] (EE) 11: /usr/lib/xorg/Xorg (InitFonts+0x3c4) [0x6107556576b4]
[ 2775.061] (EE) 12: /lib/x86_64-linux-gnu/libc.so.6 (__libc_init_first+0x90) [0x7c2c8ca29d90]
[ 2775.061] (EE) 13: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x80) [0x7c2c8ca29e40]
[ 2775.062] (EE) 14: /usr/lib/xorg/Xorg (_start+0x25) [0x610755640605]
[ 2775.062] (EE)
[ 2775.062] (EE)
Fatal server error:
[ 2775.062] (EE) Caught signal 6 (Aborted). Server aborting
[ 2775.062] (EE)
[ 2775.062] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 2775.062] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 2775.062] (EE)
[ 2775.062] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 2775.131] (EE) Server terminated with error (1). Closing log file.

Выходит, что PyCharm валит Хсы. Но что с этим делать я не знаю. Решил исключить из уравнения железо - был свободный hdd. Накатил Windows 10 и все. что прилагается для разработки на Python. Никаких падений и проблем, никаких зависаний. *WALL* Как такое возможно? Весь файл выложил здесь https://fa8fde9a-04c0-47e0-ad84-711164829705.selstorage.ru/Xorg.0.log.old.txt - форум не пропустил. Спасибо.

#439465

medusa, а это что такое? Похоже, что-то с оборудованием.

Показать
[ 2247.600] (II) event1 - Power Button: device removed
[ 2247.629] (II) event0 - Power Button: device removed
[ 2247.646] (II) event4 - A4TECH USB Device: device removed
[ 2247.662] (II) event5 - SONiX USB Keyboard: device removed
[ 2247.678] (II) event7 - SONiX USB Keyboard System Control: device removed
[ 2247.693] (II) event2 - A4TECH USB Device Keyboard: device removed
[ 2247.709] (II) event6 - SONiX USB Keyboard Consumer Control: device removed
[ 2247.725] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 2314.117] (II) AIGLX: Resuming AIGLX clients after VT switch

Вы случайно KVM не используете?

Войдите или зарегистрируйтесь, чтобы ответить.