LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-13-2020, 07:56 PM   #1
SungsuKim
LQ Newbie
 
Registered: Mar 2020
Posts: 1

Rep: Reputation: Disabled
Angry "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.

Last edited by SungsuKim; 03-13-2020 at 07:58 PM.
 
Old 03-14-2020, 08:57 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,669

Rep: Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] After having a successful installation of Debian Buster, Lenovo computer refuses to boot into Debian Buster 10.2 PicardDefendingData Debian 4 12-21-2019 07:51 PM
LXer: Raspbian PIXEL Fork for PC and Mac Is Now Based on Debian GNU/Linux 10 "Buster" LXer Syndicated Linux News 0 11-06-2019 01:51 AM
LXer: Raspbian GNU/Linux upgrade from Stretch to Raspbian Buster 10 LXer Syndicated Linux News 0 07-26-2019 06:12 PM
LXer: Gitpod git-bolts git-IDE onto GitHub for in-browser code git-editing LXer Syndicated Linux News 0 09-05-2018 04:50 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration