У меня есть удаленная машина, работающая на Ubuntu 18.04 с установленным gedit. Каждый раз, когда я хочу отредактировать текстовый файл с gedit, я получил это раздражающее предупреждающее сообщение:
> gedit myfile.txt
(gedit:27544): dconf-WARNING **: failed to commit changes to dconf: Error spawning command line 'dbus-launch
--autolaunch=d7efc4b01d3c488f8221f8cd5bc3aefd --binary-syntax --close-stderr': Child process exited with code 1
Как удалить это предупреждение?
От man gedit
:
gedit - text editor for the GNOME Desktop
Удаленная среда не имеет доступа к "Рабочему столу GNOME". Если Вы работаете, "Рабочий стол GNOME" (может работать gedit
локально без сообщения), можно совместно использовать локальный.
gedit
действительно правильный выбор для редактирования удаленных файлов?
Существует несколько способов решить Вашу проблему:
A) Используйте"-X
"опция на Вашем ssh
команда, для разрешения удаленный gedit
получите доступ к своему локальному "Рабочему столу GNOME".
От man ssh
:
-X Enables X11 forwarding. This can also be specified on a per-host basis in a
configuration file.
X11 forwarding should be enabled with caution. Users with the ability to bypass
file permissions on the remote host (for the user's X authorization database) can
access the local X11 display through the forwarded connection. An attacker may then
be able to perform activities such as keystroke monitoring.
For this reason, X11 forwarding is subjected to X11 SECURITY extension restrictions
by default. Please refer to the ssh -Y option and the ForwardX11Trusted directive
in ssh_config(5) for more information.
(Debian-specific: X11 forwarding is not subjected to X11 SECURITY extension
restrictions by default, because too many programs currently crash in this mode.
Set the ForwardX11Trusted option to “no” to restore the upstream behaviour. This
may change in future depending on client-side improvements.)
ИЛИ
B) Используйте другого, редактора неGNOME.
Существует множество редакторов, доступных на Ubuntu.
Существуют слишком многие для списка в этом ответе, но мы можем считать их:
walt@bat:~(0)$ apt-cache search editor | grep -w editor | wc -l
331
walt@bat:~(0)$ apt-cache search editor | wc -l
959
walt@bat:~(0)$