Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Failed X11 Install
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 11:59 am    Post subject: [solved]Failed X11 Install Reply with quote

Hi, I emerged x11-base/xorg-server, but apparently I did something wrong because it didn't install. When I run startx I get:

Code:
xauth: file /home/username/ .servaerauth.27889 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


In the kernel, I enabled:
evdev
support for framebuffer devices (disabling all the sub items)
framebuffer console support
nouveau

Then I rebuilt and rebooted.

Updated /etc/portage/make.conf:

Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="bindist"
CPU_FLAGS_X86="mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

# X Windows Configurations
# (For nVidia cards)
VIDEO_CARDS="nouveau"
# (For mouse & keyboard support)
INPUT_DEVICES="evdev synaptics"



Also, is there anyway to unmerge the package? I tried
Code:
root #emerge -cav www-client/firefox

Code:
root #emerge -C www-client/firefox

But both output:
Code:
Couldn't find 'x11-base/xorg-server' to unmerge.

Problem is I cant emerge the package again as portage says it can't find it since I originally emerged it. :?

Thank You and Best Regards


Last edited by EugeneTheJeep on Sun May 21, 2017 9:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6965

PostPosted: Thu May 18, 2017 1:21 pm    Post subject: Reply with quote

you can check if a package is install by doing emerge -pv package (it also tells about versions, and useflag set)
you can remove a package by doing emerge -c package
you can install (or reinstall) a package by doing emerge package
have a look for some portage faq https://wiki.gentoo.org/wiki/Project:Portage/FAQ

so if you do emerge -c firefox
you would get an error about "firefox", that's not really related to xorg

you have options (useflag) that may influence the result, look at them with gentoolkit (more about it here https://wiki.gentoo.org/wiki/Gentoolkit)
i think the +minimal useflag and -xorg useflag may endup with xorg-server install but not X.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6958
Location: Saint Amant, Acadiana

PostPosted: Thu May 18, 2017 1:53 pm    Post subject: Reply with quote

Quote:
Problem is I cant emerge the package again as portage says it can't find it since I originally emerged it.

Does not make sense to me, what exactly is the response to
Code:
emerge -av x11-base/xorg-server

_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 3:56 pm    Post subject: Reply with quote

Code:
emerge -av x11-base/xorg-server

outputs:
http://imgur.com/a/Z8aqn

Code:
emerge -pv x11-base/xorg-server

outputs:
http://imgur.com/a/QwCcV

IIRC there were 41 packages when I originally emerged x11-base/xorg-server

I also tried
Code:
root #emerge --ask --verbose x11-base/xorg-drivers
AFTER I tried to emerge xorg-server per the xorg guide instructions to try if "If the suggested settings does not work," although I'm not sure what that exactly means. After installing that I tried re-emerging xorg-server but it didn't make any difference.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6958
Location: Saint Amant, Acadiana

PostPosted: Thu May 18, 2017 4:08 pm    Post subject: Reply with quote

I'm lost now. It shows xorg-server is not installed and asks if you want to install it. Why don't you?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 4:18 pm    Post subject: Reply with quote

If by install you mean
Code:
emerge --ask x11-base/xorg-server


I've already done that. That's why I'm posting. It didn't install. When I run startx it can't find /usr/bin/X

I've confirmed that by searching in the directory. It isn't there.

I run
Code:
emerge --ask x11-base/xorg-server

and the output is now

Code:
[Applications found : 0]
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6958
Location: Saint Amant, Acadiana

PostPosted: Thu May 18, 2017 4:20 pm    Post subject: Reply with quote

It didn't install. Really, nobody can help you based on this statement. Provide errors you are getting, logs.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 4:25 pm    Post subject: Reply with quote

Code:
xauth: file /home/username/ .servaerauth.27889 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
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1692

PostPosted: Thu May 18, 2017 4:34 pm    Post subject: Reply with quote

Well, think through this some... you don't have /usr/bin/X which is from xorg-server, xorg-server is not installed for some unknown reason, and think it's magically going to be present anyways?

If xorg-server is failing to compile/install, we need those logs (full thing) so we can find out why and help you.

Note: For logs that are long, it is recommended to use paste bin to upload the logs and give us the link to it. wgetpaste is your friend here, to easily post your logs to paste bin...

Note 2: The general rule of thumb, always make sure you sync to make sure your tree is up to date if you run into issues. This makes it so that we know you have the current version of packages and any possible bug fixes that was already fixed...


Last edited by ct85711 on Thu May 18, 2017 4:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 4:36 pm    Post subject: Reply with quote

Okay, I can do that. Where do I find the logs? I have wgetpaste installed.

Also, tree is synced.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1692

PostPosted: Thu May 18, 2017 4:50 pm    Post subject: Reply with quote

At the end of the emerge runs that fail, it will tell you exactly where you can find the build.log (most commonly what we will need, the others are less commonly needed).

Otherwise you can always copy the output of your terminal to a file and submit that (piping the emerge command to a text file works too, saving you from having to hunt for the file).

The bottom of the emerge will look something similar like this, but for the applicable package.
Code:
 * If you need support, post the output of `emerge --info '=media-video/ffmpeg-3.2.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-3.2.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-3.2.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-3.2.4/temp/environment'.
 * Working directory: '/var/tmp/portage/media-video/ffmpeg-3.2.4/work/ffmpeg-3.2.4-abi_x86_32.x86'
 * S: '/var/tmp/portage/media-video/ffmpeg-3.2.4/work/ffmpeg-3.2.4'


Note: The failures tend to be farther up in the log, hence why we ask for the full log; so that we can find the error...
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 6:37 pm    Post subject: Reply with quote

Here's the full log from

Code:
emerge --ask x11-base/xorg-server

https://paste.pound-python.org/show/cGEDlcUO5xNeNOFjqwf9/

I didn't hard paste because of length.


Last edited by EugeneTheJeep on Thu May 18, 2017 6:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6958
Location: Saint Amant, Acadiana

PostPosted: Thu May 18, 2017 6:41 pm    Post subject: Reply with quote

Code:
virtual memory exhausted: Cannot allocate memory

You are running out of resources. You haven't posted your emerge --info, so we cannot tell how to work around it.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 6:53 pm    Post subject: Reply with quote

Not sure if this is what you're needing:

https://paste.pound-python.org/show/GRQt6P1G9pf4oun77ZMb/
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6958
Location: Saint Amant, Acadiana

PostPosted: Thu May 18, 2017 6:57 pm    Post subject: Reply with quote

You have 1 GB of RAM, no swap and MAKEOPTS=-j2. Add some RAM, it is a virtual machine, right?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 7:04 pm    Post subject: Reply with quote

Yes, it's a virtual machine.

I allocated 1 CPU to the virtual machine so MAKEOPTS -j2 (1 CPU + 1 more) and no swap because I couldn't find any consensus on what the swap should be set to (a lot of people post not having any swap) How much more ram do I need to add? The machine only has 4GB total. Also, should I allocate both CPU's to the VM and should I set up a swap partition?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6958
Location: Saint Amant, Acadiana

PostPosted: Thu May 18, 2017 7:19 pm    Post subject: Reply with quote

Add 1 GB of RAM and see what happens. You can add a swap file. (You can add as many swap files and/or partitions as you want, no reboot needed.) You can reduce make instances to 1.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6965

PostPosted: Thu May 18, 2017 7:41 pm    Post subject: Reply with quote

the linux old good consensus about swap has always be swap = 2x memory, because adding more than 2x mean your system is lacking so badly memory that it need way too much swap, and will crawl to its knees accessing it.

what you should do is lighten memory usage, use a 32bits vm (you have no problem using 32bits vm in 64bits system), it will clearly lighten memory usage (that your 64bits system must already pressure a lot with only 4gb)
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Thu May 18, 2017 11:57 pm    Post subject: Reply with quote

Code:
[ 14579.747]
X.Org X Server 1.19.2
Release Date: 2017-03-02
[ 14579.749] X Protocol Version 11, Revision 0
[ 14579.750] Build Operating System: Linux 4.9.16-gentoo x86_64 Gentoo
[ 14579.751] Current Operating System: Linux VICTORY 4.9.16-gentoo #2 SMP Wed May 17 19:55:23 EDT 2017 x86_64
[ 14579.752] Kernel command line: BOOT_IMAGE=/vmlinuz-4.9.16-gentoo root=/dev/sda3 ro
[ 14579.754] Build Date: 18 May 2017  10:55:54PM
[ 14579.754] 
[ 14579.755] Current version of pixman: 0.34.0
[ 14579.758]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[ 14579.758] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 14579.769] (==) Log file: "/var/log/Xorg.0.log", Time: Thu May 18 23:30:16 2017
[ 14579.773] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 14579.775] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 14579.775] (==) No Layout section.  Using the first Screen section.
[ 14579.775] (==) No screen section available. Using defaults.
[ 14579.775] (**) |-->Screen "Default Screen Section" (0)
[ 14579.775] (**) |   |-->Monitor "<default monitor>"
[ 14579.775] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[ 14579.775] (==) Automatically adding devices
[ 14579.775] (==) Automatically enabling devices
[ 14579.775] (==) Automatically adding GPU devices
[ 14579.775] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 14579.775] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[ 14579.775]    Entry deleted from font path.
[ 14579.775] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 14579.775]    Entry deleted from font path.
[ 14579.775] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 14579.775]    Entry deleted from font path.
[ 14579.775] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 14579.775]    Entry deleted from font path.
[ 14579.775] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[ 14579.775]    Entry deleted from font path.
[ 14579.775] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[ 14579.775]    Entry deleted from font path.
[ 14579.775] (==) FontPath set to:
   
[ 14579.775] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 14579.775] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 14579.775] (II) Loader magic: 0x813c80
[ 14579.775] (II) Module ABI versions:
[ 14579.775]    X.Org ANSI C Emulation: 0.4
[ 14579.775]    X.Org Video Driver: 23.0
[ 14579.775]    X.Org XInput driver : 24.1
[ 14579.775]    X.Org Server Extension : 10.0
[ 14579.782] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0xe0000000/16777216, BIOS @ 0x????????/131072
[ 14579.782] (II) LoadModule: "glx"
[ 14579.782] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 14579.791] (II) Module glx: vendor="X.Org Foundation"
[ 14579.791]    compiled for 1.19.2, module version = 1.0.0
[ 14579.791]    ABI class: X.Org Server Extension, version 10.0
[ 14579.791] (==) Matched vboxvideo as autoconfigured driver 0
[ 14579.791] (==) Matched modesetting as autoconfigured driver 1
[ 14579.791] (==) Matched fbdev as autoconfigured driver 2
[ 14579.791] (==) Matched vesa as autoconfigured driver 3
[ 14579.791] (==) Assigned the driver to the xf86ConfigLayout
[ 14579.791] (II) LoadModule: "vboxvideo"
[ 14579.792] (WW) Warning, couldn't open module vboxvideo
[ 14579.792] (II) UnloadModule: "vboxvideo"
[ 14579.792] (II) Unloading vboxvideo
[ 14579.792] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[ 14579.792] (II) LoadModule: "modesetting"
[ 14579.792] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 14579.792] (II) Module modesetting: vendor="X.Org Foundation"
[ 14579.792]    compiled for 1.19.2, module version = 1.19.2
[ 14579.792]    Module class: X.Org Video Driver
[ 14579.792]    ABI class: X.Org Video Driver, version 23.0
[ 14579.792] (II) LoadModule: "fbdev"
[ 14579.793] (WW) Warning, couldn't open module fbdev
[ 14579.793] (II) UnloadModule: "fbdev"
[ 14579.793] (II) Unloading fbdev
[ 14579.793] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 14579.793] (II) LoadModule: "vesa"
[ 14579.793] (WW) Warning, couldn't open module vesa
[ 14579.793] (II) UnloadModule: "vesa"
[ 14579.793] (II) Unloading vesa
[ 14579.793] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 14579.793] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 14579.793] (--) using VT number 7

[ 14579.875] (EE) open /dev/dri/card0: No such file or directory
[ 14579.875] (WW) Falling back to old probe method for modesetting
[ 14579.875] (EE) open /dev/dri/card0: No such file or directory
[ 14579.875] (EE) Screen 0 deleted because of no matching config section.
[ 14579.875] (II) UnloadModule: "modesetting"
[ 14579.875] (EE) Device(s) detected, but none match those in the config file.
[ 14579.875] (EE)
Fatal server error:
[ 14579.875] (EE) no screens found(EE)
[ 14579.875] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[ 14579.875] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 14579.875] (EE)
[ 14579.921] (EE) Server terminated with error (1). Closing log file.


Code:
ls /etc/X11/xorg.conf.d
only lists
Code:
20opengl.conf
which contains:
Code:
Section "Files"
EndSection


@krinn thanks for the info; i'll run it in a 32 bit vm and see how it performs. My ulitmate goal is to dedicate this machine to gentoo entirely. I'm doing it in VM just to get familiar with the system and reduce downtime as much as possible. Hopefully I can make most if not all of the big mistakes in the VM that way I get it right the first time when I build it for real.


Last edited by EugeneTheJeep on Fri May 19, 2017 4:08 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6958
Location: Saint Amant, Acadiana

PostPosted: Fri May 19, 2017 12:44 am    Post subject: Reply with quote

Driver for virtual graphics card is not present.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Fri May 19, 2017 12:54 am    Post subject: Reply with quote

vboxvideo?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13498

PostPosted: Fri May 19, 2017 12:58 am    Post subject: Reply with quote

EugeneTheJeep wrote:
no swap because I couldn't find any consensus on what the swap should be set to (a lot of people post not having any swap) How much more ram do I need to add? The machine only has 4GB total.
Other posters addressed your immediate questions. Most people who talk about not having swap have plenty of system RAM available. As a first approximation, "plenty" would be at least as much as you could get from a single mid-range RAM stick (or several cheap ones) on the market at the time in question. A VM running with only 1G would not be a big issue using software from back when 2G-4G was considered top end, especially if you reduced the memory pressure by not using parallel jobs. Modern systems can come with 8G-16G easily, and software has unfortunately grown to fill some of that space (especially if we add in the memory pressure of parallel jobs). Adding some swap only costs you a little bit of disk space, and can save you from some very unpleasant out-of-memory events if you push the system a little farther than its available RAM can accommodate. You can also reduce memory pressure (in some cases) by reducing the number of parallel jobs.
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Fri May 19, 2017 1:42 am    Post subject: Reply with quote

I found this so hopefully it'll get the kernel configuration squared away

https://forums.gentoo.org/viewtopic-t-961502.html

also been looking at this, although the I can't find the setting for Virtio GPU driver in the kernel configuration menu

https://wiki.gentoo.org/wiki/VirtualBox#Guest_Additions

@hu
Thanks, I'll definitely keep that in mind. I haven't set up swap yet but after this kernel recompile I'll do that. I'm working with limited resources so it makes sense to do so. I've had a class on operating systems for programmers so it's not completely unfamiliar territory, but this is the first time I've really put these principle into practice. I'm still in the phase where I'm throwing stuff on the wall and seeing what sticks so to speak, but the general method of how Gentoo and Linux in general works is starting to take shape in my mind.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6958
Location: Saint Amant, Acadiana

PostPosted: Fri May 19, 2017 2:53 am    Post subject: Reply with quote

Are you confusing VMware with VirtualBox?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
EugeneTheJeep
Tux's lil' helper
Tux's lil' helper


Joined: 17 May 2017
Posts: 101

PostPosted: Fri May 19, 2017 4:20 am    Post subject: Reply with quote

As far as I can tell Graphics Support --->VirtioGPUDriver needs to be enabled for X to run under VBox, but I can't find this item in the 4.9.16-gentoo Kernel Configuration. If anybody can provide confirmation on this or generally constructive or useful feedback It'd be greatly appreciated
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
Goto page 1, 2  Next
Page 1 of 2

 
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