Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved?]/usr/bin/X: No such file or directory
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
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Wed May 28, 2014 9:47 pm    Post subject: [Solved?]/usr/bin/X: No such file or directory Reply with quote

I get this problem when I try to launch X.

Code:

#startx
xauth: file /root/.serverauth.2316 does not exist

/etc/X11/xinit/xserverrc: line 3: /usr/bin/X: No such file or directory
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error


And am stuck in the terminal. I installed X via

Code:
emerge xorg-server
emerge xinit


And then I googled around and heard someone solved this by launching with xdm, so I emerged xdm too, but
Code:
rc-update add xdm default


Fails with

Code:
* rc-update: service 'xdm' does not exist


Anyways, these are my two problems, how do I solve this?

Note: If I run emerge xorg-server again, it says "Nothing to merge; quitting"
_________________
This picture was my biggest reason for ever trying Gentoo <3


Last edited by rabcor on Wed May 28, 2014 11:21 pm; edited 4 times in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10157
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed May 28, 2014 9:54 pm    Post subject: Reply with quote

xdm is not necessary to launch X. How are you trying to launch X? Could you post the command line, please?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Wed May 28, 2014 10:03 pm    Post subject: Reply with quote

I try to start with startx or xinit (both give the same result). Added this to the OP (silly of me to have forgotten really :oops: )

I know Xdm is not (or should not be) required to start X but I want to use it anyways since I had the intention to use a display manager from the start. (Already conveniently have KDM installed, although it's perhaps not my favorite DM, it works)
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10157
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed May 28, 2014 10:08 pm    Post subject: Reply with quote

Okay, here's a load of questions:
  • Does /usr/bin/X actually not exist? Check with
    Code:
    ls -l /usr/bin/X
    and report back.
  • What's the output of
    Code:
    equery list -i xorg-server
    ?
  • Please also post your /var/log/Xorg.0.log file.
You can use wgetpaste to get this information onto the web easily in the absence of a GUI. Then paste it into the thread so it'll last (as pastebins disappear over time).

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Wed May 28, 2014 10:40 pm    Post subject: Reply with quote

/usr/bin/X really does not exist.

Xorg logs are not created.

Code:
#equery list -i xorg-server
* Searching for xorg-server ...
!!! No installed packages matching 'xorg-server'


This is quite suspicious, it is as if I didn't install xorg-server at all, but I did. Even if I try to emerge something like say xorg-x11 I get a dependency/conflict warning saying that xorg-server is required for nvidia-drivers (so portage really thinks xorg-server is installed, as I did actually install it)
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10157
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed May 28, 2014 10:55 pm    Post subject: Reply with quote

Actually the equery output is Portage telling you that you did not install xorg-server. (Or else uninstalled it at some point.) Suggest you go through the Installing Xorg topic from the Gentoo Wiki more or less from scratch to see what you may have missed.

Feel free to ask more questions along the way. :)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Wed May 28, 2014 11:06 pm    Post subject: Reply with quote

I missed

Code:
root #echo "x11-base/xorg-server udev" >> /etc/portage/package.use


Down to the emerge part. Changing it seems to have no effect for me to do that. Portage really did emerge xorg-server when I asked it to (nvidia drivers and all with it) I don't know what the hell is up :?

But now on a closer look

Code:
emerge --unmerge xorg-server


gives that portage couldn't find xorg-server. Why did it successfully emerge xorg-server if it never installed it (and now says that there is nothing to emerge if I try to do it again?) is the package broken? is my portage broken? I am confused!

Edit: Solved (in the strangest way)

I ran

Code:
emerge nvidia-drivers


Knowing that nvidia-drivers depend on xorg-server it installed the xorg-server package with it, and stuff works now :) I do find it extremely odd however that portage failed miserably when I tried to make it directly emerge the xorg-server package (as I said above, on first run it seemed to be installing it but actually didn't, and if I tried to run it after that it said that there was nothing to do)
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10157
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu May 29, 2014 3:23 am    Post subject: Reply with quote

Well, if you had told me the command you used, I could've shown you what was wrong with it. You demonstrably did not successfully emerge xorg-server before. No matter now. Glad you got it working. ;)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
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