Ubuntu 13.04 - installation Nvidia driver

2,585

Solution 1

Hit Ctrl + Alt + F1 to reach the first virtual console. Log in there, then follow the instructions.

To get all the relevant stuff, including the kernel sources and kernel headers run next command

sudo apt-get install build-essential linux-source linux-headers

If the package linux-headers is not available, try running the command by specifying the exact version of the headers with:

sudo apt-get install linux-headers-`uname -r`

Next, install the current Nvidia driver:

sudo apt-get install nvidia-current

Once the installation completes successfully, check if the Nvidia driver is loaded:

sudo /sbin/lsmod | grep nvidia

If it's not, you will need to manually insert into memory. First, make sure all kernel module dependencies are satisfied and resolved:

sudo depmod -a

Then, load the driver:

sudo modprobe nvidia_current

This should succeed and the lsmod command should show it's loaded, but the usage count will probably be 0, because nothing will be using it yet. You will need to restart the graphics environment to actually benefit from the driver:

sudo /etc/init.d/lightdm restart

This will restart the graphics environment, you will see the Nvidia splash, and you will load into a desktop that has the Nvidia driver running, and all that. Your problem is now resolved.

enter image description here enter image description here

Source: http://www.dedoimedo.com/computers/ubuntu-quetzal-nvidia.html (even if the specified source is related to Ubuntu 12.10, I test this method and is working perfectly on Ubuntu 13.04).

Solution 2

It is easier to follow this approach:

  1. Click the gear icon in the top right corner of the screen.
  2. Click "System settings..."
  3. Click "Software & Updates" in the "System" category.
  4. Click on the "Additional Drivers" tab and select the proprietary driver.
  5. Click "Apply Changes".

Reboot, job done!

Share:
2,585

Related videos on Youtube

Bart
Author by

Bart

Updated on September 18, 2022

Comments

  • Bart
    Bart over 1 year

    I have a value on my PHP page and I want to refresh it per second with setInterval().

    So I actually know how to refresh values with html etc. But now I want to do the same with php values. Here is my code:

    <script>
    setInterval(function()
        {
    
    <?php
    $urlMachineOnline = 'http://192.168.0.150/awp/Shredder/PLCfiles/MachineOnline.html';
    
    // get content
    $contentMachineOnline = file_get_contents($urlMachineOnline);
    
    //remove first 2 characters
    $truncateMachineOnline = substr($contentMachineOnline, 2);
    
    //remove last 5 characters
    $MachineActivityMS = substr($truncateMachineOnline, 0, -5);
    
    //Set the value to seconds
    $MachineActivityS = floor($MachineActivityMS /1000);
    
    $formatMachineActive = 'H:i:s'; 
    
    $TimeMachineActive = gmdate($formatMachineActive, $MachineActivityS);
    
    ?>
    
    },1000);
    
    </script>
    

    Ofc this isn't working since JS and php arent really great together. and in my table I just simply have:

    <table>
        <tr>
            <td>Activity:</td>
            <td><p id='MachineActivity'></p><?php echo $TimeMachineActive; ?></td>
        </tr>
    </table>
    

    So the problem now is, it's only refreshing when I press f5. But now I want the autorefresh. I know setInterval() worked for html. Is it possible to get this done for php code?

    • Admin
      Admin about 10 years
      @zendessert This option you described here is all greyed out for Additional Drivers and says "No proprietary drivers are in use."
    • Hammad
      Hammad about 9 years
      You need to write the value to <p id='MachineActivity'> using javascript rather than <?php echo $TimeMachineActive; ?>
    • Anwar
      Anwar about 9 years
      Ofc this isn't working, JS doesn't bother PhP, it's just you didn't wrote correclty your JS.
    • Hammad
      Hammad about 9 years
      Preferred way of doing so to use Ajax rather than mingling JS and PHP code.
    • Hammad
      Hammad about 9 years
      Yes you can do that but better not do that. First write a ajax function in setInterval method calling $urlMachineOnline. Whatever is the result from that ajax response is write that value to <p id='MachineActivity'>. In this way your value will be refreshed after 1 second.
  • Radu Rădeanu
    Radu Rădeanu almost 11 years
    Do this in tty1 (first virtual console), Ctrl + Alt + F1
  • user155915
    user155915 almost 11 years
    Yes, I'm in tty1 mode, try to reinstall from cd. Thank you a lot!
  • user155915
    user155915 almost 11 years
    Solved only after a fresh install. Thank you a lot.
  • notbad.jpeg
    notbad.jpeg almost 11 years
    This just ripped me a new one. I did it in the gui like an idiot and now I can't get my desktop back. I can open windows with hotkeys, but other than that she's cashed.
  • Abiologist
    Abiologist almost 11 years
    Same effing error "FATAL: Module nvidia_current" not found... in 13.04. Do I really have to reinstall? This is a FRESH install as is... nothing has been installed.
  • Radu Rădeanu
    Radu Rădeanu almost 11 years
    @JoshuaRountree Have you tried all of these from tty1?
  • Abiologist
    Abiologist almost 11 years
    I'm sorry, is that what appears after you hit CTRL+ALT+F1?
  • Radu Rădeanu
    Radu Rădeanu almost 11 years
    @JoshuaRountree Yep...
  • Abiologist
    Abiologist almost 11 years
    Then yes, that's the only place I tried it...
  • Abiologist
    Abiologist almost 11 years
    Tried this now, howopensource.com/2012/10/… and same issue :-/ Assuming my graphics card is bad?
  • Abiologist
    Abiologist almost 11 years
    Did the restart on lightdm and I get the plain desktop with no left bar or top bar.
  • Abiologist
    Abiologist almost 11 years
    Also, when I type sudo modprobe nvidia_304 it says ERROR: could not insert 'nvidia_304': No such device
  • Abiologist
    Abiologist almost 11 years
    FYI I'm running 8600 GT?
  • Radu Rădeanu
    Radu Rădeanu almost 11 years
    Relating to the new problem with plain desktop see askubuntu.com/questions/17381/…
  • Radu Rădeanu
    Radu Rădeanu almost 11 years
  • Bart
    Bart about 9 years
    @Hammad I can't mix JS and php values with eachother can I?
  • Anwar
    Anwar about 9 years
    In fact, what you've done result in some random text, inside your SetInterval function. You should store the result of PhP in several JS variable using var myVar = "<?php echo something; ?>"
  • Bart
    Bart about 9 years
    Yea it kinda needs to auto refresh... not by a button or something
  • Asit
    Asit about 9 years
    You don't need to add button. Here while condition in always true, so it will run infinitely.
  • Bart
    Bart about 9 years
    When I use this I get another field in the topleft of my screen and it shows the page. and it kinda freaking out since it loads a new page in it again again again again and again... :P so you get something like setting 2 mirrors in front of each other.
  • Bart
    Bart about 9 years
    It's not working. But it doesnt show any error when I inspect it.
  • Bart
    Bart about 9 years
    And how do I use this code, whats should I set in the $f();? the $seconds will just be 1 second... so you dont have to add the MS > second conversion
  • Hammad
    Hammad about 9 years
    Please make sure you include jquery library in you html document.Also value-generation.php must be placed in same directory in which your file running script tag is placed
  • Bart
    Bart about 9 years
    I've got the 2.1.3 jquery included. What do you mean with the file running script tag? Both files are in the same directory map (if that is what you mean).
  • Bart
    Bart about 9 years
    If I remove the 2 parameters and create a function of the php code it crashes. Since it is just infinite looping. This doesn't work.
  • Bart
    Bart about 9 years
    replace $("#MachineActivity").next().html(response) with $('#MachineActivity').html(response) and it works like I want it. just counting up the value per second :)
  • Bart
    Bart about 9 years
    If you change your answer with what I said above. I will give you the correct answer mark.
  • Hammad
    Hammad about 9 years
    Thats good...I said so because there is slight error in your markup. Anyways if its working for you can consider accepting the answer. :)
  • Calos
    Calos over 4 years
    The problem is refresh every second and setTimeout() runs only once.
  • borchvm
    borchvm over 4 years
    Code-only answers are considered low quality: make sure to provide an explanation what your code does and how it solves the problem. It will help the asker and future readers both if you can add more information in your post. See also Explaining entirely code-based answers: meta.stackexchange.com/questions/114762/…
  • Sebastian Speitel
    Sebastian Speitel over 4 years
    @Calos and after the reload it get's called again.
  • Calos
    Calos over 4 years
    @SebastianSpeitel mentioned in the title Refreshing part of my php page, which means that just need refresh some content, not completely reloaded.