LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   "unable to connect to X server: Connection refused" after setting up Git on Raspbian Buster (https://www.linuxquestions.org/questions/debian-26/unable-to-connect-to-x-server-connection-refused-after-setting-up-git-on-raspbian-buster-4175671303/)

sheld 03-13-2020 07:56 PM

"unable to connect to X server: Connection refused" after setting up Git on Raspbian Buster
 
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.

business_kid 03-14-2020 08:57 AM

Hi, Welcome to LQ. I'm on my RasPi here. For X not starting unable to find itself, this is the 1st thing to check:

Code:

pi@raspberrypi:~ $ cat /etc/hosts
127.0.0.1        localhost

This line
Quote:

xinit: unable to connect to X server: Connection refused
is a connection to 127.0.0.1


All times are GMT -5. The time now is 09:28 AM.