[user@new-host ~] $ sudo gedit [sudo] password for user: No protocol specified Unable to init server: Could not connect: Connection refused (gedit:4574): Gtk-WARNING **: cannot open display: :0 This used to work normally in the past, but now I can't start gedit (for example to edit fstab or hosts file). Not sure how to fix this. Running Fedora 27.
09.04.2019 · gedit test.py. the answer is: Unable to init server: Could not connect: Connection refused (gedit:16): Gtk-WARNING **: 11:04:53.373: cannot open display: I already installed the gedit with command sudo -apt gedit ( or some like this, i don't remember ). Thank to yall
20.02.2018 · Problem :Unable to init server: Could not connect: Connection refused(gedit:1659): Gtk-WARNING **: cannot open display:Solution:xhost +si:localuser:root
Problem :Unable to init server: Could not connect: Connection refused(gedit:1659): Gtk-WARNING **: cannot open display:Solution:xhost +si:localuser:root
Apr 10, 2019 · gedit test.py. the answer is: Unable to init server: Could not connect: Connection refused (gedit:16): Gtk-WARNING **: 11:04:53.373: cannot open display: I already installed the gedit with command sudo -apt gedit ( or some like this, i don't remember ). Thank to yall
May 05, 2020 · 3 Answers Active Oldest Votes 1 You're likely running Xwindows under your account, but are trying to open the gedit session as root with the sudo command. Try xhost local: to allow any user from the local host to access the display, then try the command again.
WSL - GEDIT Unable to init server: Could not connect: Connection refused. You need an X server to run graphical applications like gedit. I use VcXsrv or Xming on my Windows desktops, both are very small and ... I have the problem that some checkboxes in gedit's preferences are not working (dconf error, I don't care), but other than that the ...
In case your Linux machine is available with host name = 'hostname' and you'd want to ssh into the hostname and then open geditthen execute the following commands: Enable X11Forwardingin the ssh server [hostname] $ vim /etc/ssh/sshd_config # and set X11Forwarding to yes X11Forwarding yes
04.05.2020 · sudo gedit /etc/ssh/sshd_config I get the following error: No protocol specified Unable to init server: Could not connect: Connection refused (gedit:5680): Gtk-WARNING **: 21:59:00.071: cannot open display: :0 Could someone help me, please?
I've installed gedit without any errors or warnings. But whenever I try to use the command gedit something (here something is a filename) I get this error: Unable to init server: Could not connect: Connection refused (gedit:48): Gtk-WARNING **: 21:03:26.729: cannot open display: