Ubuntu 13.04 - installation Nvidia driver
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.
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:
- Click the gear icon in the top right corner of the screen.
- Click "System settings..."
- Click "Software & Updates" in the "System" category.
- Click on the "Additional Drivers" tab and select the proprietary driver.
- Click "Apply Changes".
Reboot, job done!
Related videos on Youtube
Bart
Updated on September 18, 2022Comments
-
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 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 about 9 yearsYou need to write the value to <p id='MachineActivity'> using javascript rather than <?php echo $TimeMachineActive; ?>
-
Anwar about 9 yearsOfc this isn't working, JS doesn't bother PhP, it's just you didn't wrote correclty your JS.
-
Hammad about 9 yearsPreferred way of doing so to use Ajax rather than mingling JS and PHP code.
-
Hammad about 9 yearsYes 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 almost 11 yearsDo this in tty1 (first virtual console), Ctrl + Alt + F1
-
user155915 almost 11 yearsYes, I'm in tty1 mode, try to reinstall from cd. Thank you a lot!
-
user155915 almost 11 yearsSolved only after a fresh install. Thank you a lot.
-
notbad.jpeg almost 11 yearsThis 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 almost 11 yearsSame 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 almost 11 years@JoshuaRountree Have you tried all of these from tty1?
-
Abiologist almost 11 yearsI'm sorry, is that what appears after you hit CTRL+ALT+F1?
-
Radu Rădeanu almost 11 years@JoshuaRountree Yep...
-
Abiologist almost 11 yearsThen yes, that's the only place I tried it...
-
Abiologist almost 11 yearsTried this now, howopensource.com/2012/10/… and same issue :-/ Assuming my graphics card is bad?
-
Abiologist almost 11 yearsDid the restart on lightdm and I get the plain desktop with no left bar or top bar.
-
Abiologist almost 11 yearsAlso, when I type sudo modprobe nvidia_304 it says
ERROR: could not insert 'nvidia_304': No such device
-
Abiologist almost 11 yearsFYI I'm running 8600 GT?
-
Radu Rădeanu almost 11 yearsRelating to the new problem with plain desktop see askubuntu.com/questions/17381/…
-
Radu Rădeanu almost 11 years@JoshuaRountree Also see this post: askubuntu.com/questions/61396/how-to-install-nvidia-drivers/…
-
Bart about 9 years@Hammad I can't mix JS and php values with eachother can I?
-
Anwar about 9 yearsIn 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 usingvar myVar = "<?php echo something; ?>"
-
Bart about 9 yearsYea it kinda needs to auto refresh... not by a button or something
-
Asit about 9 yearsYou don't need to add button. Here while condition in always true, so it will run infinitely.
-
Bart about 9 yearsWhen 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 about 9 yearsIt's not working. But it doesnt show any error when I inspect it.
-
Bart about 9 yearsAnd 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 about 9 yearsPlease 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 about 9 yearsI'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 about 9 yearsIf 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 about 9 yearsreplace
$("#MachineActivity").next().html(response)
with$('#MachineActivity').html(response)
and it works like I want it. just counting up the value per second :) -
Bart about 9 yearsIf you change your answer with what I said above. I will give you the correct answer mark.
-
Hammad about 9 yearsThats good...I said so because there is slight error in your markup. Anyways if its working for you can consider accepting the answer. :)
-
Calos over 4 yearsThe problem is refresh every second and
setTimeout()
runs only once. -
borchvm over 4 yearsCode-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 over 4 years@Calos and after the reload it get's called again.
-
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.