Third party cookies may be stored when visiting this site. Please see the cookie information.

Home Family Days Out Raspberry Pi & Electronics Blog

Stewart's Blog

Stewart Watkiss website to the world ...

(Children, computing, first aid and other ramblings ...)

Installing Ubuntu 6.06 (Dapper Drake) with Nvidia Graphics Card – blank screen during install / Live CD

Ubuntu Logo
I have installed the latest Dapper Drake, version of Ubuntu Linux on one of my computers. I did encounter a few problems during the install, this provides the details and the workaround solution.

I first tried with the Desktop CD. This is a Live CD that can be used to try out Ubuntu Linux without installing to the hard disk. You can then choose to install the operating system onto the hard drive if you are happy with it.

The problem with this is that when I booted with the Desktop CD I ended up with a blank screen. The operating system was running, but it was unable to show anything on the computer screen. I tried booting using Safe Mode, but this didn’t work either. I believe the problem was that the operating system was not detecting my graphics card properly, so was sending a signal to the graphics card or the monitor which it was unable to understand. My graphics card is a Nvidia GeForce FX5600. Binary drivers are available for Linux from Nvidia, but these are not open source so are not included in the Ubuntu Distribution CD (although they are available using the universe repository, over the Internet).

X running on UbuntuAfter spending some time trying to get that to work I decide to try with the Alternative Install Disk, which is avaialble from the download section of the Ubuntu Linux web site. The alternative install CD has the same operating system, but instead of being a live CD it uses a text based installation program to install onto the computer, and provides a few extra options (e.g. for those wanting to put the bootloader in a different location). Although a text based loader may sound a little daunting, I actually like the fact that it is so simple. It asks very few questions (e.g. County and Type of Keyboard), and the only complex part is partitioning the disks (inevitably hard to avoid if you want to have Windows on the same computer).

After the operating system was installed and booted into Linux, I still had the same blank screen. Pressing CTRL-ALT-BACKSPACE exited out of X, and left a text login prompt where it was possible to fix the problems with X.

To get the Nvidia drivers the restricted sources need to be enabled for apt. These are contained in the /etc/apt/sources.list file which has to be edited as root (using sudo). Without a graphical screen this has to be done using vi (See the vi text editor tutorial at PenguinTutor.com).
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
sudo vi /etc/apt/sources.list

Move down the file (using the cursor or the j key) to the line that says:
#deb http://gb.archive.ubuntu.com/ubuntu dapper universe
(gb will be replaced with your own country code), and then press x to delete the # at the beginning of the line.
Save and exit the file pressing ESC : wq ENTER

Now refresh the list of packages using
sudo apt-get update

It is now possible to install the nvidia packages using the following commands:
sudo apt-get install nvidia-glx nvidia-kernel-common

Then run:
sudo nvidia-glx-config enable

I then rebooted:
sudo reboot

and I was then able to see the graphical logon, and X is working fine.




I am a big fan of Ubuntu, and have been following its progress for some time. I also run a webserver on it.

Nvidia provide drivers for Linux, although these are released as a binary only driver. If these had been released as open source, then the drivers could have been integrated directly into the Ubuntu install, rather than having to install them later. At least it does mean that if you buy an nVidia card you should be able to get it working, including full 3D support (even if it’s not in the normal install process).

The only issue I still have outstanding with Ubuntu is printing to my Canon PIXMA iP4200. I can get it to print using the £20 TurboPrint drivers, but not the free ones provided by Canon. More details about the Canon PIXMA iP4200 printer, and Linux driver details. Driver support for Linux is far better than it used to be, but there are still a few little issues that need ironing out, although there are workarounds to many of these issues.

Update

I have now got the printers working using the Canon printer drivers. See:
Installing Canon Printers drivers on Ubuntu Linux for the Pixma iP4200. It sounds like the drivers will also be included in the gutenprint drivers in the near future as well.

3 Responses to “Installing Ubuntu 6.06 (Dapper Drake) with Nvidia Graphics Card – blank screen during install / Live CD”

  1. ryan19779 Says:

    Hi Stewart can you recomend any way to achieve above without having network support I can download drivers from windows but total noob to linux and getting frustrating with all distros not recognising video drivers(except slackware surprissingly) any help would be much appreciated

  2. Administrator Says:

    It is possible, but not easy.
    The apt-get system is designed to make life easier, but only only when installing from supported sources. When downloading individual packages there is a risk that you could end up in dependency hell – which is just what the debian package tools are designed to avoid.

    You can find the repository address in your /etc/apt/sources.list file. I am in the UK (server names are GB) so mine is set to:
    http://gb.archive.ubuntu.com/ubuntu

    For the files included in the main repository then just go into the dists directory. But as the nvidia are commercial drivers they are not there. You could just browse the directories and try and find them, or better still get the file ls-lR.gz (and unzip it) “gunzip ls-lR.gz”
    You can then open the file ls-lR in an editor and find the package you are looking for. For example searching for nvidia-glx will find some entries including nvidia-glx_1.0.7174-0ubuntu1.1_i386.deb. You then scroll up the file until you find the directory it is under: ./pool/restricted/l/linux-restricted-modules-2.6.10

    Unfortunately it’s still not quite that easy as the standard kernel version (at least for the latest 6.06I) is 2.6.15 – use “uname -r” to check. So now you need to find the correct one for your kernel (chances are you can guess by replacing the end of the modules number with your kernel version). This is only an issue for kernel modules, not for most applications.

    You then find you have to download:
    http://gb.archive.ubuntu.com/ubuntu/pool/restricted/l/linux-restricted-modules-2.6.15/nvidia-glx_1.0.8762+2.6.15.11-3_i386.deb

    then repeat for the other packages. In this case: http://gb.archive.ubuntu.com/ubuntu/pool/restricted/n/nvidia-kernel-common/nvidia-kernel-common_20051028+1_all.deb
    I think that’s the right one. I’m not sure the difference between that one and ubuntu3 / ubuntu4 (you could download them just in case it asks for them as well).

    These can then be installed using dpkg -i *.deb

    Hopefully all remaining dependencies will be on your install CD, but if not then you may need to repeat this for additional packages until the dependencies are met.

    finally you can then run the config program:
    sudo nvidia-glx-config enable

    It’s a bit of a nightmare I’m afraid, but the tools available make this light work if you are using network installs, or if you are only installing the “official” packages. Unfortunately Nvidia use a commercial license for their drivers, otherwise it would be possible for them to be included on the standard CD.

    Ubuntu isn’t normally this hard to use, not by a long shot, but it is far better if you have an Internet connection, even if you just dial up just to install the nvidia drivers (although unfortunately if you can’t get X running at all that’s hard to do on the command line as well).

  3. » Recent activities - Linux Ubuntu 7.10, Virgin Media cabling, Ethernet over Powerline, Windows Vista Notworking (or do I mean networking?) - Stewart Watkiss Blog Says:

    […] Now with a broadband connection to the study I was able to start on getting my PC / server up and running. This is running on slightly newer hardware than my previous server (still a few years old). I decided to continue with Ubuntu as my primary OS and installed the latest version. I’m pretty impressed so far, it has everything I’ve come to expect from Ubuntu and has fixed some of the problems I’ve had before on this computer (ie. Installing Ubuntu 6.06 (Dapper Drake) with Nvidia Graphics Card – blank screen during install / Live CD). […]


UK days out, children and holiday information is also available on the Days Out Diary web site
Linux, LPI and the Quiz / Test Program posts are also available on the Penguin Tutor website
First Aid Information, first aid games and first aid practice test / quiz entries are also available on the First Aid Quiz Web site