headers

Nvidia Driver on Linux – Easy, and Quick

Image representing NVidia as depicted in Crunc...
Image via CrunchBase

There is a buzz that installing the Linux based Nvidia accelerated graphics driver is complicated. I consider it rather straight forward. First install build-essential, and the headers for your kernel. Those may appear to be some bigs words in the previous sentence, but it is really one line in a terminal window. Build essential installs GCC and its dependencies:

sudo apt-get install build-essential linux-headers-$(uname -r)

Now download the latest and greatest Nvidia driver. Choose the correct build type for your architecture. Conveniently save the file to your desktop and rename it to nvidia.run. The change your tty to another. To change to tty2 press control-alt f2.

Shut down gdm, which will stop X11:

sudo /etc/init.d/gdm stop

Or if you are using the new process manager in Ubuntu 9.10 you can use also:

sudo service gdm stop

Then execute the Nvidia installation script. Login to the command prompt and navigate to the desktop:

cd Desktop
sudo sh nvidia.run

Basically answer yes to everything, let the driver compile, and then when it asks you to configure the xorg.conf file, let it. Nowadays the Nvidia driver basically works out of the box. In the past, with Ubuntu in particular, you had to comment out the included driver in Ubuntu’s modules package, otherwise the custom compiled driver would not load on startup. The open source driver used to be commented out in /etc/default/linux-restricted-modules-common (comment NV); note that this is not needed any more except in Hardy (8.04).

Then start your gdm session, which will take you back to the login window, or your desktop depending on your startup settings:

sudo /etc/init.d/gdm start

Reblog this post [with Zemanta]

VirtualBox 2.6.26 Kernel Support

With Debian Lenny you can update to the 2.6.26 kernel, but in VirtualBox support for this version is not ready. A kernel panic will not allow the system to boot into a stable state, therefore for the time being users must retain use of 2.6.24. One major drawback is that there are no headers for the 2.6.24 kernel in Lenny. This forces VirtualBox users to wait to install guest additions, thus slightly decreasing stability because of the timing benifits associated with the VirtualBox kernel modules. Overall because of this it is most likely best to still use Etch until Lenny progresses a bit further, specifically including some needed kernel headers or VirtualBox provides an update for better support of the 2.6.26 kernel.

Compiling Source on Debian Etch

On all Linux systems the header files, and possibly the kernel source, is required to compile a program. To install the kernel headers, and kernel source, on Debian Etch, type the following: uname -r See what your kernel version is. Everything after the “-” is not required in the following line. For instance my “uname -r” results in: 2.6.18-5-486 And to install the appropriate kernel headers I used the following: sudo apt-get install linux-headers-$(uname -r) Or you can just type it manually: sudo apt-get install linux-headers-2.6.18-5-486 As described above, do not write what is striked. Then, for shits and giggles, as it most likely will never be required, you can install your kernel source code with: sudo apt-get install linux-source-2.6.18:)