Results 1 to 8 of 8

Thread: nVidia drivers - "You appear to be running an X server"

  1. #1
    Join Date
    Jan 2012
    Beans
    1

    nVidia drivers - "You appear to be running an X server"

    So I'm new to Ubuntu/Linux in general, and I'm trying to install my graphics drivers so I don't have to open grub and boot in nomodeset every time... I've gotten a .run file from nvidia.com for the latest x86 linux drivers for my 550 ti. After logging in as root (sudo -i, enter password), changing to the directory of the .run file, and doing "sh NVIDIA.run" (I renamed the file to NVIDIA.run so it's shorter to type), it starts to install the drivers but throws an error saying "You appear to be running an X server". How do I fix this?

    Thanks.

    E: Heres the installer log
    Code:
    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Sun Jan 29 00:28:10 2012
    installer version: 290.10
    
    PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    
    nvidia-installer command line:
        ./nvidia-installer
    
    Using: nvidia-installer ncurses user interface
    -> The file '/tmp/.X0-lock' exists and appears to contain the process ID '1195' of a runnning X server.
    ERROR: You appear to be running an X server; please exit X before installing.  For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com.
    Edit 2:
    doing
    Code:
    sudo kill 1195
    made me exit to the log in screen and i had to log back in.


    edit 3:
    Ok wow solved this my self. Here's how I did it:

    1. open gnome (CTRL + ALT + F3)
    2. log in as your user
    3. run "sudo init 3"
    4. switch to root ("sudo -i" or "sudo su root")
    5. cd to the directory containing the .run file
    6. sh NVIDIA.run (where NVIDIA.run is the name of the .run file)
    7. after completing the prompts, enter "reboot"

    Thanks.
    Last edited by tommyk1995; January 29th, 2012 at 09:52 AM.

  2. #2
    Join Date
    Mar 2008
    Location
    USA, WA
    Beans
    79
    Distro
    Kubuntu

    Smile Re: nVidia drivers - "You appear to be running an X server"

    At the GRUB boot menu screen select your Ubuntu and then hit the e key to edit the kernel line boot options so that it will only boot to run level 3 text mode hopefully without the Xserver running. At the end of this kernel line after the long UUID is; "ro quiet splash", and so on, replace all that with; "rw nosplash --verbose text" which will allow you to view any boot up error messages and to boot into a text console to run your commands. The rw is for to mount in read write mode, not read only which I needed to do for this same type issue on my PC. And use your keyboard arrow keys to move the cursor while in grub.

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: nVidia drivers - "You appear to be running an X server"

    If that is too difficult for you just boot normally to a gui, Ctrl+Alt+F1 to get to a tty command line, then login and use commands
    Code:
    sudo service lightdm stop
    and then navigate to the folder where your NVIDIA.run is sitting and use the command you did before to execute it.

    Now you should be able to start the new xsession with
    Code:
    sudo service lightdm start
    or maybe just
    Code:
    startx
    DISTRO: Xubuntu 16.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info

  4. #4
    Join Date
    Jun 2010
    Location
    Phoenix, AZ
    Beans
    147
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: nVidia drivers - "You appear to be running an X server"

    When I enter Ctrl+Alt+F1, I get a black screen with some horizontal garbage at the top of the screen and NO prompt. When I try to return to the desktop by pressing Ctrl+Alt+F7, it only makes the screen garbage move a bit, no desktop and no prompt. I have been trying to load the driver for my GeForce 210 card. I am stuck using the Ubuntu generic drivers. I'd appreciate any help.


    Quote Originally Posted by ajgreeny View Post
    If that is too difficult for you just boot normally to a gui, Ctrl+Alt+F1 to get to a tty command line, then login and use commands
    Code:
    sudo service lightdm stop
    and then navigate to the folder where your NVIDIA.run is sitting and use the command you did before to execute it.

    Now you should be able to start the new xsession with
    Code:
    sudo service lightdm start
    or maybe just
    Code:
    startx
    ASRock 970 Extreme4, 8GB RAM
    AMD FX
    ™- 4100 Quad-Core
    nVidia GeForce 8400 GS

    2 500GB SATA HDs

  5. #5
    Join Date
    May 2009
    Beans
    5

    Re: nVidia drivers - "You appear to be running an X server"

    Quote Originally Posted by ajgreeny View Post
    If that is too difficult for you just boot normally to a gui, Ctrl+Alt+F1 to get to a tty command line, then login and use commands
    Code:
    sudo service lightdm stop
    and then navigate to the folder where your NVIDIA.run is sitting and use the command you did before to execute it.

    Now you should be able to start the new xsession with
    Code:
    sudo service lightdm start
    or maybe just
    Code:
    startx

    This finally helped! Thank you a lot

  6. #6
    Join Date
    Jul 2008
    Location
    the Netherlands
    Beans
    16
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: nVidia drivers - "You appear to be running an X server"

    Small addition.

    I had the same problem with the X server (it was still runnning). However, tommyk1995's solution didn't work because X was still running, and CTRL+ALT+F1 didn't work either because whenever I entered something there, nothing happened.

    As CTRL+ALT+F3 did work for me I made a combination of some solutions to create a new one:

    > Enter CTRL+ALT+F3

    > Enter your username + password

    Enter:
    Code:
    sudo service lightdm stop

    Code:
    cd Downloads
    Code:
    sudo sh NVIDIA-Linux-*
    (where * is your version)

    I got a warning but just ignored it and continued. Go through the installation and when finished enter:


    Code:
    sudo service lightdm start
    ----------
    While struggling with the installation (before I finally found the solution) I got an additional problem with logging-in. The screen turned black and I returned to the log-in screen.

    I found this solution:

    CTR+ALT+F3 in log-in screen
    Enter username+password

    Enter:
    Code:
    sudo chmod 777 /home/[username]/.Xauthority
    I did a reboot, but maybe there is an easier way:

    Code:
    sudo su root
    
    reboot
    (Ubuntu 12.04)
    Last edited by Elentir; September 8th, 2012 at 12:16 PM.

  7. #7
    Join Date
    Nov 2007
    Beans
    31
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: nVidia drivers - "You appear to be running an X server"

    Quote Originally Posted by ajgreeny View Post
    If that is too difficult for you just boot normally to a gui, Ctrl+Alt+F1 to get to a tty command line, then login and use commands
    Code:
    sudo service lightdm stop
    and then navigate to the folder where your NVIDIA.run is sitting and use the command you did before to execute it.

    Now you should be able to start the new xsession with
    Code:
    sudo service lightdm start
    or maybe just
    Code:
    startx
    This let me install NVIDIA GPU driver downloaded from NVIDIA homepage.

    Thanks.

  8. #8
    Join Date
    Jun 2007
    Beans
    12,655

    Re: nVidia drivers - "You appear to be running an X server"

    It's not a good idea to install the nvidia driver directly. You should use a package...

Bookmarks

Posting Permissions

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