[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: running CUDA cards



On Fri, Jun 3, 2011 at 7:55 PM, Lennart Sorensen
<lsorense@csclub.uwaterloo.ca> wrote:
> On Fri, Jun 03, 2011 at 05:34:57PM +0200, Francesco Pietra wrote:
>> On Fri, Jun 3, 2011 at 4:43 PM, Lennart Sorensen
>> <lsorense@csclub.uwaterloo.ca> wrote:
>> > On Fri, Jun 03, 2011 at 08:44:07AM +0200, Francesco Pietra wrote:
>> >> I tried that as I do not know yet how molecular dynamics works with
>> >> CUDA. However, I only installed xterm and added the script in order to
>> >> launch X or not.
>> >>
>> >> Now
>> >> # apt-get update
>> >> # apt-get install nvidia-xconfig
>> >>
>> >> which installed libglib2.0-0, pkg-config, shared-mine-info,
>> >> nvidia-xconfig, and upgrades libpcre3
>> >>
>> >> The running
>> >>
>> >> # nvidia-xconfig
>> >>  WARNING: unable to locate /open X config file. New X config file
>> >> written to /etc/X11/xorg.conf
>> >>
>> >>
>> >> Traying to launch X:
>> >>
>> >> $ X
>> >>
>> >> Using config file /etc/X11/xorg.conf.
>> >> Using system config directory /usr/share/X11/xorg.conf.d.
>> >> Module nvidia not found.
>> >> **********************
>> >
>> > So is nvidia-glx installed?  Is nvidia-kernel-dkms installed?
>> > Is linux-headers-2.6-amd64 installed?
>> >
>> > What does 'modinfo nvidia' say?
>>
>> # modinfo nvidia
>> nvidia driver not found
>>
>> $ uname -r
>> 2.6.32-5-amd6
>>
>> Yesterday I examined '/lib/modules/2.6.32-5-amd64/kernel/drivers/gpu'
>> finding only:
>> drm_kms_helper.ko
>> drm.ko
>> /12c
>> /1810
>> /1830
>> /1915
>> /mga
>> /nouveau
>> /r128
>> /radeon
>> /savage
>> /sis
>> tdfix
>> /ttm
>> /via
>>
>> On the other hand, during the nvidia installations that I have
>> described, I did not notice any error or warning message. I got
>> confused.
>
> Are you running squeeze or wheezy?  If you are using wheezy (which I
> believe you are) then 2.6. 32 is the wrong kernel to be running.  You are
> supposed to have 2.6.38-5,so make sure you have linux-image-2.6-amd64
> and linux-headers-2.6-amd64 installed, and that you are running 2.6.38
> when you boot, then the nvidia driver should be able to be installed.

That was the point and I can summarize how the error arose. It may
help other users about debian-6.0.1a-amd64-netinst.iso for wheezy.

(1) Manual partitioning with raid1, two raids, one for /boot and
another one lvm with home, opt, usr, etc.

(2) German mirror (univ-Koeln) for "standard system" installation only.

(3) Being no other OS present, install grub on /boot.

(4) Removed CDROM, boot into the sytem, kernel 2.6.32-5 (I wronly
assumed it was for wheezy).

(5) Edited sources.list for wheezy. Update, upgrade, install X, nvidia packages.

There was a mismatch from the installed kernel and the subsequent
installations for wheezy. nvidia packages were actually installed
according to the procedure that you indicated, but because of the
mismatch ....

(6) dist-upgrade, getting kernel 2.6.38-2 (not 2.6.38-5).

(7) Installed twm and xinit and modified .Xsession:

#!/bin/sh
xrdb -load $HOME/.Xresources
xterm &
exec twm

startx works correctly, while linux-image-2.6-amd64 and
linux-headers-2.6-amd64 are correctly installed.

May I ask
(a) What should have been done in between steps (4) and (5) to avoid
the mismatch?

(b) Should I look for 2.6.38-5?

(c) I don't remember how to remove the previous 2.6.32-5 kernel.

Thanks a lot for your learned and kind help.

francesco pietra





>
> --
> Len Sorensen
>


Reply to: