When installing Backtrack 4 on a Windows Virtual PC VM this afternoon I got an error when attempting to start the X server. After initially booting the DVD inside the virtual machine I set up for the Backtrack 4 installation I got the error starting X with the startx command. Resolving it was easy for me though I don’t know that it would always be as easy for others. Below I describe the error received when starting X and what I did to resolve the problem.

Fatal Server Error: AddScreen/ScreenInit failed for driver 0

Backtrack 4: AddScreen/ScreenInit Failed For Driver 0

First I thought maybe it was just an error on my end so I restarted the BT4 virtual machine and attempted to begin the install process again but I ended up having the exact same results. After a little research I found the fixvesa command which will rewrite the xorg.conf file with the xorg.conf-vesa file. The vesa X configuration file is really just a scaled down configuration file which makes things more simple in attempt to get X started. Below is a quote from the Xorg wiki page that describes in more detail what the vesa configuration file means.

Vesa Description From Xorg Wiki:

The default ‘vesa’ driver, though widely compatible with nearly all available chip sets, is merely a fall-back (not accelerated and does not support many resolutions). Therefore, a proper video driver should be installed if possible.

So if this does work for you then you should work on getting the proper video drivers installed after Backtrack 4 is installed.

Resolve Fatal Server Error Caused By startx Command:

To resolve the error simply type “fixvesa” from the command prompt and then click the enter key. You will see the below line after clicking enter that will let you know that the vesa xorg.conf file is now the active X configuration.

Backtrack 4 fixvesa Command Output:

[*] Copying /etc/X11/xorg.conf-vesa to /etc/X11/xorg.conf

After running the fixvesa command type startx again followed by the enter key. If this has resolved your problem the Backtrack 4 X server will launch as displayed in the below example image.

Backtrack 4 X Server Starting During Installation:

Backtrack 4 X Server Starting

After the loading screen you will be taken to the Backtrack 4 desktop where you can begin the GUI installation.

Penetration Tester's Open Source Toolkit, Vol. 2 (Paperback)

By (author): Jeremy Faircloth, Chris Hurley, Jesse Varsalone


List Price: $61.95 USD
New From: $46.62 USD In Stock
Used from: $2.75 USD In Stock


List Price: $49.95 USD
New From: $31.21 USD In Stock
Used from: $24.45 USD In Stock

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , , , , , , , ,
36 Responses to “Backtrack 4 Installation StartX Error: AddScreen/ScreenInit Failed For Driver 0”
  1. yasar KULtr says:

    after all i install ubuntu while clicking the install.sh icon on desktop but after restart i have got the same problem . vga problem is going on ? can u help me ?thanks

    [Reply]

    alex Reply:

    Hello yasar,

    Not sure what you mean “after all”. If you follow the steps in the article above it will resolve the error noted in the article.

    Thanks.
    alex

    [Reply]

  2. shio says:

    thx for help

    [Reply]

    purehate Reply:

    No problem man, glad we can help. Thanks for leaving feedback!

    [Reply]

  3. cody says:

    i have tried the fixes listed above and none of them are working. i still get the same error.
    any ideas?

    thanks!

    [Reply]

    alex Reply:

    Hello Cody,

    What errors do you receive? What exactly have you tried as far as steps and what happens when you try each step? As many details as you can provide will raise the chances of someone helping provide a solution to your issue.

    Thanks.
    alex

    [Reply]

  4. cody says:

    im booting from a dvd and the process goes smooth untill i type startx. one thing i notice is the first line status reads “x: warning; process set to priority -1 instead of requested priority 0″
    im not sure if that has anything to do with it. the actual error it gives is:
    fatal server error:
    no screens found
    giving up.
    xinit: Connection refused (errno 111): unable to connect to x server
    xinit: no such process (errno 3): server error.

    i have tried the fixvesa command and it finishes copying the files with no errors but when i type startx again i get the same errors.

    i have tried multiple dvds and burning programs due to the fact that i know linux can get corrupted fairly easily during the burn process. i also ran the software in a vm on my system and that works just fine. i would be ok with that but it wont recognise my wireless card like that.
    i hope this was enough information. thanks so much for your help and quick responce!

    [Reply]

  5. Bobi says:

    Hello, i have a problem with install a backtrack 4 see this printscreen album.bg/botsi/images/26479285/ ??

    [Reply]

    alex Reply:

    Hello Bobi,

    Please post the output of the error as people responding will not visit URL’s in comments.

    Thanks.
    alex

    [Reply]

  6. Rehsa says:

    i have the same problem as Cody, im on a windows 7 64bit machine with virtual pc. i set up virtual pc according to a QD article.. everything went smooth. I had no blank dvd’s so i ran the setup directly from the .iso in the VM.

    process goes smooth untill i type startx. one thing i notice is the first line status reads “x: warning; process set to priority -1 instead of requested priority 0″
    im not sure if that has anything to do with it. the actual error it gives is:
    fatal server error:
    no screens found
    giving up.
    xinit: Connection refused (errno 111): unable to connect to x server
    xinit: no such process (errno 3): server error.

    Any help will be highly appreciated.

    Thanks

    [Reply]

    alex Reply:

    Hello Rehsa,

    Have you tried typing “fixvesa” from the CLI before typing “startx”? If that doesn’t work you might try “fix-vesa-vmware” to see if that does the trick. If not you can edit the xorg.conf configuration file until you have the correct settings for your configuration.

    Thanks.
    alex

    [Reply]

    alanski Reply:

    hi alex!
    i am booting bt 4r2 from pendrive. i had the same problem as Resha, and i did the following:
    “fix vesa” ENTER “Xorg -configure” Enter “cp xorg.conf.new /etc/X11/xorg.conf” ENTER “startx”
    it loaded properly. After that i have installed it to a partition with size of 20Gb.
    but now, when i start the bt 4r2 from harddrive, it gives me the same error again.
    The codes that i have applied didn’t work :(
    i ma using Acer Aspire 5750G core i7 and Intel integrated Graphics card Nvidia GeForce GT540M with OPTIMUS technology…I have googled around and kida get that x server can’t determine which graphics card to use…
    is there any way to comment the command line just to at least startx, so that later i can edit the xorg.conf file?
    thanx in advance!

    [Reply]

    alex Reply:

    Hello alanski,

    If you are saying that X attempts to automatically boot then use the below directions.

    Boot to a live version of the BT4 DVD, mount the hard drive, configure X to not start automatically or modify your xorg.conf, and then reboot.

    If you are wanting to start X then you just need to modify the xorg.conf file as noted previously. You should Google settings for Ubuntu and the graphics card you note above for tips on how to configure xorg.conf.

    Thanks.
    alex

    [Reply]

  7. david says:

    THANK YOU! this works perfect

    [Reply]

    alex Reply:

    Hello david,

    No problem. Thanks for taking the time to leave feedback.

    Thanks.
    alex

    [Reply]

    david Reply:

    no problem, just having problems with internet not working on my VM :(

    windows it works by default i even click services > start network, and it didnt work.

    [Reply]

    alex Reply:

    Hello david,

    You might try looking for assistance on the Backtrack forums if you are having trouble outside of the content of this article.

    Thanks.
    alex

    [Reply]

  8. Rashed says:

    hi !! my probleme is after tipying fixvesa and typing startx i just se a black screen and no way to move :( can u help !!

    [Reply]

    alex Reply:

    Hello Rashed,

    This means that you need to modify the xorg.conf file in a way that fixvesa does not. You will need to look up your graphics card on the Internet to see how to configure xorg.conf.

    Thanks.
    alex

    [Reply]

  9. Rashed says:

    thx for ur answer !!! can u tellme where and how i cann modifiy the xorg.conf

    [Reply]

    alex Reply:

    Hello Rashed,

    Use google.

    Thanks.
    alex

    [Reply]

  10. James says:

    Dude, that was awesomely simple. Thanks a bunch!

    [Reply]

    alex Reply:

    Hello James,

    No problem. Thanks for taking the time to leave feedback.

    Thanks.
    alex

    [Reply]

  11. george says:

    many many thanks you are precious!!!!

    [Reply]

    alex Reply:

    Hello george,

    No problem. Thanks for taking the time to leave feedback!

    Thanks.
    alex

    [Reply]

  12. stan says:

    thank you, you are a live saver!

    [Reply]

    alex Reply:

    Hello stan,

    No problem. Thanks for posting feedback.

    Thanks.
    alex

    [Reply]

  13. Faust says:

    It worked! Thanks man.

    [Reply]

    alex Reply:

    Hello Faust,

    No problem. Thanks for taking the time to leave feedback.

    Thanks.
    alex

    [Reply]

  14. leVisiteur says:

    You’re my new god!!
    THXXXXXXXXXXXXXXXXXXXXXXX!!!!!!!!!!!!!!!!!!!!

    [Reply]

    alex Reply:

    Hello leVisiteur,

    No problem. Thanks for posting feedback.

    Thanks.
    alex

    [Reply]

  15. abhay says:

    sir help me not install root@bt: shall
    I open bt4 but open black windows and boot- option i enter startx but not work to error “this imges file not found”
    Help and reply my mail to solution

    [Reply]

    alex Reply:

    Hello abhay,

    Not sure what you mean.

    Thanks.
    alex

    [Reply]

  16. abhay says:

    sir my backtrack open to option “boot” i enter “startx” but not caract and i am enter install to not ask root@bt: and not set install.sh
    Sir i yous this software fast time
    How to install cd dayract computer

    [Reply]

  17. abhay says:

    sir i am 1 mestck i yos virtual box and i open to backtrack4 and i enter F12 and selact boot but i not bot and close and reopen to automatic boot option sir i not boot the drive please sir you help us.

    [Reply]

  18.  
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*