Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't Start kde ($DISPLAY isnt set/can't connect to X server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
YawningAngel
n00b
n00b


Joined: 29 Aug 2010
Posts: 6

PostPosted: Sun Aug 29, 2010 12:09 pm    Post subject: Can't Start kde ($DISPLAY isnt set/can't connect to X server Reply with quote

My apologies for the abridged title, I wanted to get the full error message in. I recently installed gentoo on my PC, and it installed fine, but when I compiled kde and tried to run it (# startkde), I received the following error:

$DISPLAY is not set or cannot connect to the X server

I've googled it, but I haven't found anything thus far and I don't know what to do.
Back to top
View user's profile Send private message
Stu_28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2003
Posts: 129

PostPosted: Sun Aug 29, 2010 2:08 pm    Post subject: Re: Can't Start kde ($DISPLAY isnt set/can't connect to X se Reply with quote

YawningAngel wrote:
I've googled it, but I haven't found anything thus far and I don't know what to do.


Search the forum perhaps...

https://forums.gentoo.org/viewtopic-t-840393.html
Back to top
View user's profile Send private message
YawningAngel
n00b
n00b


Joined: 29 Aug 2010
Posts: 6

PostPosted: Sun Aug 29, 2010 2:13 pm    Post subject: Reply with quote

Oops, sorry, I must have missed that. Thank you very much.
Back to top
View user's profile Send private message
hedmo
l33t
l33t


Joined: 29 Aug 2009
Posts: 839
Location: halmstad

PostPosted: Mon Aug 30, 2010 5:07 am    Post subject: Reply with quote

set à new first line

exec startkde

In

/etc/X11/xinit/xinitrc


and you are good to go :wink:
Back to top
View user's profile Send private message
Shakethecake
n00b
n00b


Joined: 28 Jul 2013
Posts: 1

PostPosted: Sun Jul 28, 2013 5:12 pm    Post subject: Re: Can't Start kde ($DISPLAY isnt set/can't connect to X se Reply with quote

YawningAngel wrote:
My apologies for the abridged title, I wanted to get the full error message in. I recently installed gentoo on my PC, and it installed fine, but when I compiled kde and tried to run it (# startkde), I received the following error:

$DISPLAY is not set or cannot connect to the X server

I've googled it, but I haven't found anything thus far and I don't know what to do.


Listhen to me, I tried this problem in Ubuntu simply was adding command "sudo apt-get install xinit", after I run "sudo startx" and my KDE has run.
Back to top
View user's profile Send private message
monicajae
Guru
Guru


Joined: 03 Sep 2003
Posts: 363
Location: Dorset, VT

PostPosted: Fri Aug 02, 2013 1:04 am    Post subject: Reply with quote

hedmo wrote:
set à new first line

exec startkde

In

/etc/X11/xinit/xinitrc


and you are good to go :wink:




Yeah, you know what? that answer is completely meaningless to me. what the hell is that syntax because it shows up as non UTF or non english character. i have to read this in term because i have no desktop...
Back to top
View user's profile Send private message
Chiitoo
l33t
l33t


Joined: 28 Feb 2010
Posts: 744
Location: Here and Away Again

PostPosted: Sat Aug 10, 2013 7:25 am    Post subject: ><)))°€ Reply with quote

monicajae,


Not sure if you're referring to the à (it's an a with a ` (grave accent) on top of it).


Anyblue, the advice I guess might work globally, but as far as I understand, the more common and perhaps appropriate way to set exec startkde is at the user's home path, in the file:

Code:
~/.xinitrc


As for the comment from Ubuntu, that's a bad idea. No, we do not run 'sudo startx', and neither should you, be you a bot or not. ^^;
_________________
Kind Regards,
~ The Noob Unlimited ~

Sore wa sore, kore wa kore.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum