Find the answer to your Linux question:
Results 1 to 4 of 4
Hello I tried installing a nvidia graphics driver on ubuntu and I user Code: sudo service lightdm stop because it woulden't install without xserver being down. So then I typed ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Sep 2012
    Posts
    148

    Ubuntu 12.04 not starting xserver


    Hello I tried installing a nvidia graphics driver on ubuntu and I user
    Code:
    sudo service lightdm stop
    because it woulden't install without xserver being down. So then I typed
    Code:
    sudo service lightdm start
    and now when I boot up the pc it boot like normal but won't load xserver. It said no file or directory.

  2. #2
    Linux Newbie
    Join Date
    Jun 2004
    Location
    Halesowen, West Midlands, UK
    Posts
    107
    The only way I found lately is to rename X so it won't automatically restart after "kill -9 `pidof X`
    "mv /usr/bin/X /usr/bin/x"
    Kill the PID of X.
    Run the nvidia-installer.
    "mv /usr/bin/x /usr/bin/X"
    Restart.

  3. #3
    Linux Newbie Syndacate's Avatar
    Join Date
    May 2012
    Location
    Hell..no literally, this state is hell..
    Posts
    192
    Quote Originally Posted by Siddly View Post
    The only way I found lately is to rename X so it won't automatically restart after "kill -9 `pidof X`
    "mv /usr/bin/X /usr/bin/x"
    Kill the PID of X.
    Run the nvidia-installer.
    "mv /usr/bin/x /usr/bin/X"
    Restart.
    12.04 will work fine if you do what he did. I've set up CUDA (which involves installing the driver) too many times on 12.04 and only stop the dm to do so.

    Quote Originally Posted by awesomepilot View Post
    Hello I tried installing a nvidia graphics driver on ubuntu and I user
    Code:
    sudo service lightdm stop
    because it woulden't install without xserver being down. So then I typed
    Code:
    sudo service lightdm start
    and now when I boot up the pc it boot like normal but won't load xserver. It said no file or directory.
    Did you try blacklisting the other KM's?

    So the driver 'installed successfully' and when you boot you get a command prompt? More details on the error message (take a picture of the screen or something) would be nice.

    Also, try reinstalling the nvidia driver.

    Also, what gfx chip is it?

  4. #4
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    225
    As echoed above, you can only build the nvidia driver module if you have no xserver running. I always do this task after going to run level 3.

    If you are still experiencing problems, try using the boot option "nomodeset". Another option that I have had to use, albeit on quite old hardware, is "nopat".

    Cheers - VP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •