LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   startx error in VirtualBox gust (https://www.linuxquestions.org/questions/linux-from-scratch-13/startx-error-in-virtualbox-gust-4175422722/)

De$ign 08-18-2012 02:29 AM

startx error in VirtualBox gust
 
Hello everyone ,,,

I'm using a VirtualBox 4.1.4_OSE as a gust for installing an LFS 7.1.

I'm now trying to install xorg on it, but I couldn't find the video hardware driver for the VirtualBox.

When I'm doing "lspci" ,,,

Code:

root [ ~ ]# lspci | grep VGA
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
root [ ~ ]#

I tried to install the Xorg VESA Driver-2.3.1 to test it.

But when I'm doing startx ,,, I got the following error ...

Code:

xauth:  file /root/.serverauth.1611 does not exist


X.Org X Server 1.12.3
Release Date: 2012-07-09
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.6 i686
Current Operating System: Linux mylfs 3.2.6 #2 SMP Wed Aug 1 04:23:58 AST 2012 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sda2 ro
Build Date: 17 August 2012  12:44:29AM
 
Current version of pixman: 0.26.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Aug 18 10:26:45 2012
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Data incomplete in file /etc/X11/xorg.conf.d/xkb-defaults.conf
        Undefined Screen "Screen0" referenced by ServerLayout "DefaultLayout".

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
        at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

.

Any idea,,, please !!?

druuna 08-18-2012 02:39 AM

Quote:

Originally Posted by De$ign (Post 4757340)
Hello everyone ,,,

I'm using a VirtualBox 4.1.4_OSE as a gust for installing an LFS 7.1.

I'm now trying to install xorg on it, but I couldn't find the video hardware driver for the VirtualBox.

VirtualBox is a virtualization platform, what distro did you install as host to build LFS?

De$ign 08-18-2012 02:45 AM

Thanks druuna for replay..

Quote:

Originally Posted by druuna (Post 4757344)
VirtualBox is a virtualization platform, what distro did you install as host to build LFS?


I used OpenSUSE ,,,

but do I still need it ?,,, I finished LFS and it's working fine as Text-Mode ,,, I'm using the LFS to install Xorg.

druuna 08-18-2012 02:53 AM

Please tell us in more detail what you are doing:

- Are you using LFS to do these steps,
- Which BLFS document are you using,
- Which chapter and step are you working on,
- Which chapters in the BLFS book have you done this far and did you encounter problems.

De$ign 08-18-2012 03:03 AM

Quote:

Originally Posted by druuna (Post 4757357)
Please tell us in more detail what you are doing:

- Are you using LFS to do these steps,
- Which BLFS document are you using,
- Which chapter and step are you working on,
- Which chapters in the BLFS book have you done this far and did you encounter problems.


I finished LFS by following LFS 7.1 http://www.linuxfromscratch.org/lfs/view/stable

After that reboot and logged in to the LFS as root.

I'm now trying to install Xorg to it by following the BLFS steps.


- Are you using LFS to do these steps,
yes, I'm using LFS to do that.


- Which BLFS document are you using,
Beyond Linux® From Scratch
Version 2012-08-15
http://www.linuxfromscratch.org/blfs/view/svn/


- Which chapter and step are you working on,
Chapter 24. X Window System Environment

- Which chapters in the BLFS book have you done this far and did you encounter problems.
Now, I'm in Xorg-7.7 Testing and Configuration.

druuna 08-18-2012 03:18 AM

Quote:

Originally Posted by De$ign (Post 4757366)
- Which chapter and step are you working on,
Chapter 24. X Window System Environment

Details please! Chapter 24 has +/- 25 sub-parts

Quote:

- Which chapters in the BLFS book have you done this far and did you encounter problems.
Now, I'm in Xorg-7.7 Testing and Configuration.
I asked about what you have done, _not_ what you are doing now. I'm also asking if you had any problems _before_ you reached this point. Can I assume you did all the chapters leading up to this problem? Did you start with chapter 24 after finishing LFS or did you do any other chapters (have you done chapter 3 for example)?

Details, without it we are going nowhere!

De$ign 08-18-2012 03:44 AM

Quote:

Originally Posted by druuna (Post 4757379)
Details please! Chapter 24 has +/- 25 sub-parts

I asked about what you have done, _not_ what you are doing now. I'm also asking if you had any problems _before_ you reached this point. Can I assume you did all the chapters leading up to this problem? Did you start with chapter 24 after finishing LFS or did you do any other chapters (have you done chapter 3 for example)?

Sorry ,,,
After finishing the LFS installation on VirtualBox machine ,,, I installed wget and ssh, I install ssh to connect with the LFS via my openSUSE host, and it's worked fine.

After that I did chapter 3 in BLFS (3. After LFS Configuration Issues) after finished it, I did chapter 24.

In chapter 24 I had a problem in compiling util-macros-1-17 as my previous post here http://www.linuxquestions.org/questi...-a-4175420494/

I searched in net for that problem some peoples said it's ok just go with make install.

And I had another problem when installing Xorg Libraries, which is
Code:

checking for APPLEWM... configure: error: Package requirements (x11, xext xextproto to applewmproto) were not met:

No package 'x11' found
No package 'xext' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

I solved that by installing the x11 first then xext ,,, and reinstall the other libraries by running the commands in BLFS in the (Xorg Libraries) section http://www.linuxfromscratch.org/blfs...n/x/x7lib.html...

after that everything done fine till (Xorg Drivers) section ...

I install all Xorg Input Drivers

Xorg Evdev Driver-2.7.0
Xorg Synaptics Driver-1.6.1
Xorg VMMouse Driver-12.8.0
Xorg Wacom Driver-0.14.0


But I didn't know what to install for video hardware VirtualBox driver, so I did,

Code:

root [ ~ ]# lspci | grep VGA
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter

I tried the Xorg VESA Driver-2.3.1 and go to the next section, installing twm-1.0.7, xterm-279, xclock-1.0.6, xinit-1.3.2.

And now I'm in Xorg-7.7 Testing and Configuration.

druuna 08-18-2012 04:09 AM

Quote:

Originally Posted by De$ign (Post 4757395)
In chapter 24 I had a problem in compiling util-macros-1-17 as my previous post here http://www.linuxquestions.org/questi...-a-4175420494/

I searched in net for that problem some peoples said it's ok just go with make install.

I also believe that this should not be a problem. Only warnings are shown, no actual errors.

Quote:

And I had another problem when installing Xorg Libraries, which is
Code:

checking for APPLEWM... configure: error: Package requirements (x11, xext xextproto to applewmproto) were not met:

No package 'x11' found
No package 'xext' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

I solved that by installing the x11 first then xext ,,, and reinstall the other libraries by running the commands in BLFS in the (Xorg Libraries) section http://www.linuxfromscratch.org/blfs...n/x/x7lib.html...
The install order is important. Have a look here: http://wiki.linuxfromscratch.org/blf...Xorg7Libraries
If no errors were shown in the chapters following this you are probably ok.

Quote:

after that everything done fine till (Xorg Drivers) section ...

I install all Xorg Input Drivers

Xorg Evdev Driver-2.7.0
Xorg Synaptics Driver-1.6.1
Xorg VMMouse Driver-12.8.0
Xorg Wacom Driver-0.14.0
Do you actually need all these?

Quote:

But I didn't know what to install for video hardware VirtualBox driver, so I did,

Code:

root [ ~ ]# lspci | grep VGA
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter


The VGA driver is a generic driver and should work. Focus on that one for the moment.

BTW: Using lspci -v -s 00:02.0 will give you more detail.

Did you check/edit/recompile your kernel for the correct settings? (mentioned multiple times in the Xorg Drivers section).

Quote:

I tried the Xorg VESA Driver-2.3.1 and go to the next section, installing twm-1.0.7, xterm-279, xclock-1.0.6, xinit-1.3.2.

And now I'm in Xorg-7.7 Testing and Configuration.
I noticed this in your first post:
Quote:

(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Data incomplete in file /etc/X11/xorg.conf.d/xkb-defaults.conf
Undefined Screen "Screen0" referenced by ServerLayout "DefaultLayout".
Did you check the correctness of the file(s) in /etc/X11/xorg.conf.d/

De$ign 08-18-2012 04:33 AM

Quote:

Originally Posted by druuna (Post 4757405)
The install order is important. Have a look here: http://wiki.linuxfromscratch.org/blf...Xorg7Libraries
If no errors were shown in the chapters following this you are probably ok.

There is no errors were shown.

Quote:

Do you actually need all these?
No, but I installed them for testing.


Quote:

BTW: Using lspci -v -s 00:02.0 will give you more detail.
the lspci -v -s 00:02.0 result is

Code:

00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter (prog-if 00 [VGA controller])
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at e0000000 (32-bit, prefetchable) [size=16M]
        Expansion ROM at <unassigned> [disabled]

Quote:

Did you check/edit/recompile your kernel for the correct settings? (mentioned multiple times in the Xorg Drivers section).
Really I didn't know how to do that ,,, :( ,,, I just go to /sources/linux-3.2.6 which i uncompressed from LFS Instructions and run
Code:

make menuconfig
Does that right !!!!?:confused: ,,, I didn't recompile the kernel.

And ya some drivers need to choose (Y or M) in kernel configuration but I couldn't do that, so I select by (*).


Quote:

Did you check the correctness of the file(s) in /etc/X11/xorg.conf.d/
In the file /etc/X11/xorg.conf.d/xkb-defaults.conf there was no EndSection , I added it, and now it's content

Code:

Section "InputClass"
    Identifier "XKB Defaults"
    MatchIsKeyboard "yes"
    Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

,the contents of the /etc/X11/xorg.conf.d/videocard-0.conf

Code:

Section "Device"
    Identifier  "Videocard0"
    Driver      "radeon"
    VendorName  "Videocard vendor"
    BoardName  "ATI Radeon 7500"
    Option      "NoAccel" "true"
EndSection

And the contents of the file /etc/X11/xorg.conf.d/server-layout.conf

Code:

Section "ServerLayout"
    Identifier    "DefaultLayout"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" LeftOf "Screen0"
    Option        "Xinerama"
EndSection

And here is the file /root/xorg.conf.new

Code:

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath  "/usr/lib/xorg/modules"
        FontPath    "/usr/share/fonts/X11/misc/"
        FontPath    "/usr/share/fonts/X11/TTF/"
        FontPath    "/usr/share/fonts/X11/OTF/"
        FontPath    "/usr/share/fonts/X11/Type1/"
        FontPath    "/usr/share/fonts/X11/100dpi/"
        FontPath    "/usr/share/fonts/X11/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri2"
        Load  "extmod"
        Load  "record"
        Load  "glx"
        Load  "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "ShadowFB"                  # [<bool>]
        #Option    "DefaultRefresh"            # [<bool>]
        #Option    "ModeSetClearScreen"        # [<bool>]
        Identifier  "Card0"
        Driver      "vesa"
        BusID      "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport  0 0
                Depth    1
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    4
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    8
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    15
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    16
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection


druuna 08-18-2012 04:47 AM

Quote:

Originally Posted by De$ign (Post 4757418)
Really I didn't know how to do that ,,, :( ,,, I just go to /sources/linux-3.2.6 which i uncompressed from LFS Instructions and run
Code:

make menuconfig
Does that right !!!!?:confused: ,,, I didn't recompile the kernel.

And ya some drivers need to choose (Y or M) in kernel configuration but I couldn't do that, so I select by (*).

No, that is not correct. You should activate the options, recompile the kernel, place the appropriate files in /boot and reboot (you [should have] have done this before: http://www.linuxfromscratch.org/lfs/...08/kernel.html).

You should do this first.

Quote:

,the contents of the /etc/X11/xorg.conf.d/videocard-0.conf

Code:

Section "Device"
    Identifier  "Videocard0"
    Driver      "radeon"
    VendorName  "Videocard vendor"
    BoardName  "ATI Radeon 7500"
    Option      "NoAccel" "true"
EndSection


Radeon? Why? I thought you are trying to use the vesa driver.....

Quote:

And here is the file /root/xorg.conf.new

Code:

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath  "/usr/lib/xorg/modules"
        FontPath    "/usr/share/fonts/X11/misc/"
        FontPath    "/usr/share/fonts/X11/TTF/"
        FontPath    "/usr/share/fonts/X11/OTF/"
        FontPath    "/usr/share/fonts/X11/Type1/"
        FontPath    "/usr/share/fonts/X11/100dpi/"
        FontPath    "/usr/share/fonts/X11/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri2"
        Load  "extmod"
        Load  "record"
        Load  "glx"
        Load  "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "ShadowFB"                  # [<bool>]
        #Option    "DefaultRefresh"            # [<bool>]
        #Option    "ModeSetClearScreen"        # [<bool>]
        Identifier  "Card0"
        Driver      "vesa"
        BusID      "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport  0 0
                Depth    1
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    4
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    8
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    15
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    16
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection


This file isn't used when running startx. This info should be in the files present in /etc/X11/xorg.conf.d/

De$ign 08-18-2012 05:02 AM

Quote:

Originally Posted by druuna (Post 4757422)
No, that is not correct. You should activate the options, recompile the kernel, place the appropriate files in /boot and reboot (you [should have] have done this before: http://www.linuxfromscratch.org/lfs/...08/kernel.html).

You should do this first.

OK ,,, I'll do that and replay after finish it ,,, (It's will take a long time :)), but what did you meant by place the appropriate files in /boot ?

and in VESA configuration, How can I choose Y from menuconfig ,,, I only have (*) ,,, Does it OK ?

Code:

Device Drivers  --->
  Graphics support --->
    <*> Support for frame buffer devices --->
      VESA VGA graphics support: Y



Quote:

adeon? Why? I thought you are trying to use the vesa driver.....
That's from the BLFS instructions in section [Xorg-7.7 Testing and Configuration] http://www.linuxfromscratch.org/blfs...rg-config.html ,, I didn't modify it.

druuna 08-18-2012 06:05 AM

Quote:

Originally Posted by De$ign (Post 4757431)
OK ,,, I'll do that and replay after finish it ,,, (It's will take a long time :)), but what did you meant by place the appropriate files in /boot ?

That is present in the Linux-3.2.6 link I provided.

Quote:

and in VESA configuration, How can I choose Y from menuconfig ,,, I only have (*) ,,, Does it OK ?

Code:

Device Drivers  --->
  Graphics support --->
    <*> Support for frame buffer devices --->
      VESA VGA graphics support: Y


* = yes (static), M = yes (Module)

Quote:

That's from the BLFS instructions in section [Xorg-7.7 Testing and Configuration] http://www.linuxfromscratch.org/blfs...rg-config.html ,, I didn't modify it.
This is only an example for Raedon graphics, use what is appropriate for you (which seems to be vesa at the moment).

De$ign 08-18-2012 06:12 PM

Quote:

Originally Posted by druuna (Post 4757472)
That is present in the Linux-3.2.6 link I provided.

OK Thanks, I did as the link you provided.

Quote:

This is only an example for Raedon graphics, use what is appropriate for you (which seems to be vesa at the moment).
I modified the "cat /etc/X11/xorg.conf.d/videocard-0.conf" to

Code:

Section "Device"
        Identifier  "Card0"
        Driver      "vesa"
        BusID      "PCI:0:2:0"
EndSection

After I activated the options, and recompiled the kernel. I re-installed the drivers again.

But when I do startx it's show me the same error

Code:

        Undefined Screen "Screen0" referenced by ServerLayout "DefaultLayout".

Fatal server error:
no screens found

:( ...

I edit the file "/etc/X11/xorg.conf.d/server-layout.conf" to
Code:

Section "ServerLayout"
    Identifier    "DefaultLayout"
#    Screen      0  "Screen0" 0 0
#    Screen      1  "Screen1" LeftOf "Screen0"
    Option        "Xinerama"
EndSection

Then when I did startx ,,, It's Worked !!! :)

Thanks a lot druuna ...

I'm going to install the Xfce now.


All times are GMT -5. The time now is 03:20 PM.