Installing Nvidia driver in Wheezy...Can someone explain this code?
I'm setting up a Mythtv box at home using Debian Wheezy and I wanted the Nvidia drivers for VDPAU. In the past, I have installed Nvidia drivers manually downloaded from the Nvidia web site. This time, I found the following line of code from the Debian wiki:
Code:
aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-kernel-dkms I'm posting this with the hope that I can learn something, because I don't understand what the code above is doing. It seems I will never progress from being a newbie. I understand that the command is to install linux-headers for the currently installed kernel. What I don't understand is what the sed command is doing? Can someone break it down? |
If you'd type in
Quote:
And example Quote:
Quote:
Sed has a lot more to offer as some tutorials indicate... Thor |
what uname -r returns and how useful it is really depends on the distro. With most Debian kernels, this would have worked just as well:
Code:
# aptitude -r install linux-headers-$(uname -r) nvidia-kernel-dkms Code:
# aptitude -r install linux-headers-`uname -r` nvidia-kernel-dkms |
Quote:
|
Quote:
Code:
$ uname -r|sed 's,[^-]*-[^-]*-,,' Code:
$ uname -r |
All times are GMT -5. The time now is 10:22 PM. |