Score:0

gedit error - "Unable to init server: Could not connect: Connection refused"

au flag
SKK

when I type gedit ~/.bashrc I get this error:

Unable to init server: Could not connect: Connection refused
(gedit:204): Gtk-WARNING **: 22:03:28.442: cannot open display

can anyone tell me what the problem is please

user535733 avatar
cn flag
Please edit your question to specify the release and flavor of Ubuntu. If possible, provide the steps to reproduce the issue. If you suspect you might have made some mistake that caused the issue, please describe it.
karel avatar
sa flag
Does this answer your question? [Every time restart Lubuntu terminal unable to init server, cannot open display](https://askubuntu.com/questions/1223694/every-time-restart-lubuntu-terminal-unable-to-init-server-cannot-open-display)
Score:0
yt flag

gedit is trying to run a grahpical application and to run those applications, you need an X server like VcXsrv or Xming. So i'd install one of those. Close your cmd or terminal and launch the X server. Open your cmd and set the DISPLAY, like: export DISPLAY=0:0 and run that gedit command again.

This works for most people.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.