Message boards :
Frequently Asked Questions (FAQ) :
HOW TO - Install NVIDIA drivers on Linux 64 bit (generic)
Message board moderation
| Author | Message |
|---|---|
Stefan LedwinaSend message Joined: 16 Jul 07 Posts: 464 Credit: 298,573,998 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
A little guide how to install NVIDIA drivers on 64bit Linux PCs Before we start, you should know that normally you would have to recompile the NVIDIA kernel modules after every kernel update. Therefore some people have developed tools which will automatically install the NVIDIA drivers for you, and will also update the kernel modules after a kernel update to make your live easier... Additionally you could also download and install the the NVIDIA graphics drivers directly from the NVIDIA website which should work an almost all Linux OS. How to manually install the NVIDIA graphics drivers (the recommended way for GPUGRID) You will need to have the kernel sources and the development environment installed! * Download the drivers from the NVIDIA website into a directory (for instance /tmp) * Press ctrl-alt-F1, a text login screen will appear * login as root * type "init 3" to stop the X server * type "sh NVIDIA....pkg.run" to install the driver from the directory where you had downloaded it * answer yes to all questions from the installer * type "init 5" * press "ctrl-alt-F7" to get back to X Windows
pixelicious.at - my little photoblog |
Venturini Dario[VENETO]Send message Joined: 26 Jul 08 Posts: 44 Credit: 4,832,360 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Your method didn't work for me. I couldn't stop the X server with "init 3" So, the solution was to use instead "sudo /etc/init.d/gdm stop" (or sudo /etc/init.d/kdm stop if you're using KDE) and to restart "sudo /etc/init.d/gdm start" Dario Boinc.Italy |
|
Send message Joined: 18 Sep 08 Posts: 368 Credit: 4,174,624,885 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
This is what worked for me to install the Video card drivers on Linux Ubuntu 8.04 after about 12 hours of trying spread out over 3 days ... Maybe it can help somebody else ... LINUX Ubuntu 8.04 CUDA Video Card Driver Installation Procedure: Download the drivers from the NVIDIA website into a directory (for instance /tmp) * Press ctrl-alt-F1, a text login screen will appear * login as root * type "sudo /etc/init.d/gdm stop" to stop the X server * type "sh NVIDIA....pkg.run" to install the driver from the directory where you had downloaded it * answer yes to all questions from the installer * type "sudo /etc/init.d/gdm start" to start the X Server again The init 3 & init 5 Commands don't work as far as I can tell on Ubuntu 8.04 You don't need to install the Toolkit or SDK Files for the WU's to run !!! |
|
Send message Joined: 18 Sep 08 Posts: 368 Credit: 4,174,624,885 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
My post below is inaccurate in a sense since once I Re-Booted everything was messed up again & I couldn't run the CUDA Wu's again. Trying to figure it out now again ... PS: The only solution I found so far is to re-install the Video Card Drivers again & then I can run CUDA again that way. But re-boot again and it's gone again until doing another re-install of the Video Drivers again. Stefan, you can delete\hide these posts if you want to because they probably don't belong here really ... |
Stefan LedwinaSend message Joined: 16 Jul 07 Posts: 464 Credit: 298,573,998 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I think it's not necessary to hide your posts, maybe they can help someone... I think I have read about problems with the NVIDIA drivers and Ubuntu 8.04. And a fix for the problem, but it will be the best to have a look at the Ubunut Forums for that fix. I had also problems with Xubuntu 7.10 and the NV drivers. I had to switch to runlevel 1 (init 1) to install them... With Fedora 8 and 9 the guide in the first post should work. If init 3 does not work, try sbin/init 3... (I think it was Fedora 10 beta where I had to use sbin/init ...) pixelicious.at - my little photoblog |
|
Send message Joined: 18 Sep 08 Posts: 368 Credit: 4,174,624,885 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I messed with it a few hours again this morning, the "sbin/init 3" command does nothing & tells me I haven't exited the X Server when trying to install the Video Drivers. You can get the Video Drivers installed using the "init 1" command but I won't put the procedure here because once you re-boot you lose the drivers & CUDA useage again until you re-install the V-Drivers again. I'll check around the Ubuntu Forms & see what I can find, it's no big deal anyway as running the Wu's in Windows is faster for me anyway than Linux. I'd just like to figure it out & have the Option to run in Linux since all my Box's are Dual Boot Linux & Windows Box's ... |
|
Send message Joined: 18 Jun 07 Posts: 3 Credit: 102,264,143 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Installing on a headless box (no X-windows) Since required devices are normally created during X startup. I had to add the following to /etc/rc.local: mknod -m 0666 /dev/nvidiactl c 195 255 If you have a second card, add: mknod -m 0666 /dev/nvidia1 c 195 1 |
|
Send message Joined: 28 Sep 08 Posts: 5 Credit: 8,934,364 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
This was my inelegant workaround to access init 3 in Mandriva 2009 64. Nothing of what was said in prevoius posts worked for me. Edit the file /etc/inittab, line ”id:5:initdefault:” to ”id:3:initdefault:”. Reboot and install the driver, and edit back file /etc/inittab to ”id:5:initdefault:”. Hope this is helpful. |
triggglSend message Joined: 6 Mar 09 Posts: 25 Credit: 102,324,681 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Installing on a headless box (no X-windows) Something I saw elsewhere and should probably fix the need to do this is to add user boinc (or BOINC) to the video group. When I look at /dev/nvidia* in Ubuntu 8.10, I see this: crw-rw---- 1 root video 195, 0 2009-09-05 23:24 nvidia0 crw-rw---- 1 root video 195, 255 2009-09-05 23:24 nvidiactl The shows that root is the owner and that video is the group that have read and write permissions. If you add boinc to the video group, it will have the group rw permissions. This is the correct way to allow a user access to hardware. If you do 666 to the device, you give access to anyone. I can't get my computer to use CUDA either despite it recognizing the card. It just won't request GPU tasks at all on any project. I tried 185 and 190 nvidia drivers. The SDK programs work, so I have no idea why boinc isn't using the card. |
|
Send message Joined: 7 Sep 09 Posts: 5 Credit: 2,308,660 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]()
|
On the most recent version of Ubuntu there's no need to install the NVIDIA driver. Apparently it's already installed. All you have to do is use BOINC to attach to GPUGRID, and it works. I just upgraded from Ubuntu 9.04 Intrepid Ibex to 9.10 Karmic Koala. On Intrepid, GPUGRID complained about the driver. I couldn't get the above instructions to work (but I only put limited effort into it). Now, after the upgrade to Karmic, GPUGRID just works, there were no problems. |
|
Send message Joined: 7 Sep 09 Posts: 5 Credit: 2,308,660 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]()
|
On the most recent version of Ubuntu there's no need to install the NVIDIA driver. Sadly, I was too optimistic. Each time the system is booted, BOINC randomly finds or doesn't find the GPU. Usually it doesn't find it, occasionally it does. Is there some easy way to get BOINC to make a new attempt to find the GPU? I'm guessing that maybe it can find the GPU more reliably once the bootup process is finished and everything is stable. Unfortunately, running the CPU benchmarks doesn't make it look for the GPU again. I'd try stopping and restarting the boinc client if I knew how to stop it safely and how to start it as the "boinc" user. The BOINC version is 6.4.5. |
|
Send message Joined: 7 Sep 09 Posts: 5 Credit: 2,308,660 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]()
|
|
liveoncSend message Joined: 1 Jan 10 Posts: 292 Credit: 41,567,650 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]()
|
I hope you don't mind that I place a link to my N00B guide to Nvidia Driver & BOINC installation on Ubuntu/Mint here. http://www.gpugrid.net/forum_thread.php?id=1553
|
|
Send message Joined: 23 Dec 09 Posts: 2 Credit: 18,539,236 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
On the most recent version of Ubuntu there's no need to install the NVIDIA driver. Something in the startup happens too quickly so when you get control open a terminal and type sudo /etc/init.d/boinc-client restart and all should be well. |
|
Send message Joined: 13 Jul 09 Posts: 64 Credit: 2,922,790,120 RAC: 98 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]()
|
I stuck a "sleep 5" in the startup script. open terminal type sudo gedit /etc/init.d/boinc-client scroll down till you see "start()" insert the sleep 5 line as in below example:
start()
{
sleep 5
log_begin_msg "Starting $DESC: $NAME"
if is_running; then
log_progress_msg "already running"
else
start-stop-daemon --start --quiet --background --pidfile $PIDFILE \
--make-pidfile --user $BOINC_USER --chuid $BOINC_USER \
--chdir $BOINC_DIR --exec $BOINC_CLIENT -- $BOINC_OPTS
fi- da shu @ HeliOS, "A child's exposure to technology should never be predicated on an ability to afford it." |
DamaralandSend message Joined: 7 Nov 09 Posts: 152 Credit: 16,181,924 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I had to put an sleep to make it detect my GPU on Ubuntu 10.11 too. I found this interesting link to explain it http://boinc.berkeley.edu/dev/forum_thread.php?id=6307 Another thing I find usefull is that in Ubuntu the default interfaz is lightdm so to stop it to install last driver version you have to use "sudo service lightdm stop" and of course to restart it "sudo service lightdm start" |
skgivenSend message Joined: 23 Apr 09 Posts: 3968 Credit: 1,995,359,260 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Finally I made it work with Ubuntu 11.10-desktop-amd64 with the latest drivers. Damaraland, copied from the Ubuntu 11.04 thread. Thanks, For Ubuntu 12.10 I had to add a line to install linux headers as they are not in the iso: 4.1 sudo apt-get install linux-headers-generic FAQ's HOW TO: - Opt out of Beta Tests - Ask for Help |
DamaralandSend message Joined: 7 Nov 09 Posts: 152 Credit: 16,181,924 RAC: 0 Level ![]() Scientific publications ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I made another tutorial using GRUB recovery mode, I think is easier and safer. If you already have Linux installed do this points of the tutorial: Blacklist video drivers Recovery mode as root Installation of NVIDIA drivers |
|
Send message Joined: 31 May 12 Posts: 8 Credit: 12,361,387 RAC: 0 Level ![]() Scientific publications ![]() ![]()
|
It might be worth noting here that the newest nvidia drivers for linux (302.17 as of this posting) seem to have issues running CUDA 4.2 projects. I am currently running the 295.59 driver from the debian testing repos and it is chugging along nicely with a GTX 670. For other distros it might be necessary to download an older driver directly from the nvidia site. |
©2025 Universitat Pompeu Fabra