Article 50PH9 "unable to connect to X server: Connection refused" after setting up Git on Raspbian Buster

"unable to connect to X server: Connection refused" after setting up Git on Raspbian Buster

by
SungsuKim
from LinuxQuestions.org on (#50PH9)
Hi,

I was working on my Raspberry PI 4 with Raspbian Buster
and today I installed and set up Git by these commands :

$ sudo apt-get install git-all
$ git config --global user.name <myname>
$ git config --global user.email <myemail>
$ git config --global core.editor vim

And then I turned off my RP, after that, Raspbian doesn't start with X11.
Whenever I try to execute startX, it doesn't start with some error messages like :

.....
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Why does this kind of things happen and how can I restore my system?

Please somebody help me out.latest?d=yIl2AUoC8zA latest?i=rPiBh6oS2nw:LxbbjK-yMBQ:F7zBnMy latest?i=rPiBh6oS2nw:LxbbjK-yMBQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=rPiBh6oS2nw:LxbbjK-yMBQ:gIN9vFwrPiBh6oS2nw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments