LINUX.ORG.RU

Не могу стартануть иксы.

 , ,


0

1

Дистрибутив: Fedora Minimal 35

Иксы ставил sudo dnf group install base-x

$ startx
xauth:  file /home/thyme/.serverauth.882 does not exist


X.Org X Server 1.20.14
X Protocol Version 11, Revision 0
Build Operating System:  5.15.6-200.fc35.x86_64 
Current Operating System: Linux fedora 5.15.14-200.fc35.x86_64 #1 SMP Tue Jan 11 16:49:27 UTC 2022 x86_64
Kernel command line: BOOT_IMAGE=(hd0,gpt5)/root/boot/vmlinuz-5.15.14-200.fc35.x86_64 root=UUID=cb3ad031-ef65-404c-acb0-42c9d8afa486 ro rootflags=subvol=root resume=UUID=e34aa5f6-173a-4e6f-8c57-c4ebe22395c8 rhgb quiet
Build Date: 17 December 2021  12:00:00AM
Build ID: xorg-x11-server 1.20.14-1.fc35 
Current version of pixman: 0.40.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 18 10:55:59 2022
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
xinit: connection to X server lost
$ cat ~/.local/share/xorg/Xorg.0.log | grep "(EE)"
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   267.723] (EE) open /dev/fb0: Permission denied
[   272.352] (EE) xf86OpenSerial: Cannot open device /dev/input/mouse0
[   272.352] (EE) libinput: SynPS/2 Synaptics TouchPad: Failed to create a device for /dev/input/mouse0
[   272.352] (EE) PreInit returned 2 for "SynPS/2 Synaptics TouchPad"
[   272.354] (EE) xf86OpenSerial: Cannot open device /dev/input/mouse0
[   272.354] (EE) libinput: SynPS/2 Synaptics TouchPad: Failed to create a device for /dev/input/mouse0
[   272.354] (EE) PreInit returned 2 for "SynPS/2 Synaptics TouchPad"
$ cat /etc/X11/xorg.conf
Section "InputDevice"
  Identifier  "Mouse0"
  Driver      "mouse"
  Option      "Protocol" "auto"
  Option      "Device" "/dev/input/mice"
EndSection

Нужно установить пакеты xorg xorg-server xorg-drivers xinit xterm
Группой ни кто не ставит

detes42325 ()
Ответ на: комментарий от ez7
$ sudo startx
xauth:  file /root/.serverauth.1001 does not exist


X.Org X Server 1.20.14
X Protocol Version 11, Revision 0
Build Operating System:  5.15.6-200.fc35.x86_64 
Current Operating System: Linux fedora 5.15.14-200.fc35.x86_64 #1 SMP Tue Jan 11 16:49:27 UTC 2022 x86_64
Kernel command line: BOOT_IMAGE=(hd0,gpt5)/root/boot/vmlinuz-5.15.14-200.fc35.x86_64 root=UUID=cb3ad031-ef65-404c-acb0-42c9d8afa486 ro rootflags=subvol=root resume=UUID=e34aa5f6-173a-4e6f-8c57-c4ebe22395c8 rhgb quiet
Build Date: 17 December 2021  12:00:00AM
Build ID: xorg-x11-server 1.20.14-1.fc35 
Current version of pixman: 0.40.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 19 02:31:48 2022
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) [KMS] Kernel modesetting enabled.
(II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
dbus-update-activation-environment: error: unable to connect to D-Bus: /usr/bin/dbus-launch terminated abnormally without any error message

(imsettings-check:1059): IMSettings-WARNING **: 02:31:50.454: Failed to execute child process “dbus-launch” (No such file or directory)

(imsettings-check:1059): GLib-GIO-CRITICAL **: 02:31:50.455: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
touch: cannot touch '/root/.cache/imsettings/log': No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory

(imsettings-check:1087): IMSettings-WARNING **: 02:31:50.516: Failed to execute child process “dbus-launch” (No such file or directory)

(imsettings-check:1087): GLib-GIO-CRITICAL **: 02:31:50.516: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
/usr/libexec/imsettings-functions: line 37: /root/.cache/imsettings/log: No such file or directory
xinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
$ cat /var/log/Xorg.0.log | grep "(EE)"
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    90.864] (EE) libinput: SynPS/2 Synaptics TouchPad: Failed to create a device for /dev/input/mouse0
[    90.864] (EE) PreInit returned 2 for "SynPS/2 Synaptics TouchPad"
Thyme ()
Ответ на: комментарий от Thyme

Server terminated successfully (0)

Оно стартует но сразу глохнет ибо запускать нечего. Предположу что у тебя в ~/.xinitrc пусто. Попробуй добавить туда что-нибудь типа

exec xterm

Либо ставь какой-нибудь DM и запускай его.

ez7 ()
Ответ на: комментарий от ez7

Большое спасибо за ответы. Всегда пользовался lightdm, и сейчас решил посмотреть, как работает xinit.

Теперь выдаёт «Cannot open display» -, видимо, ещё многое предстоит узнать:).

Thyme ()
Ответ на: комментарий от anonymous

Пользуюсь оконным менеджером qtile:

$ cat ~/.xinitrc
#!/bin/sh

exec qtile start

Права на выполнение ~/xinitrc дал, но всё равно с командой startx не заводится.

Работает что-то вроде этого: startx "qtile start".

Так интересно, обои от feh’a пропали и второй монитор начал автоматом отключаться, когда я на нём не фокусируюсь :D

Ничего плохого в том, что я от рута сессию стартую? Где-то читал, что так делать нехорошо.

Thyme ()

Всё заработало как надо. Большое спасибо всем, кто откликнулся!

Thyme ()
Ответ на: комментарий от Thyme

Ничего плохого в том, что я от рута сессию стартую? Где-то читал, что так делать нехорошо.

Warning повествует о возможных рисках. Там про GUI приложения в целом.

PhysShell ()
Для того чтобы оставить комментарий войдите или зарегистрируйтесь.