ubuntu Dapper Dual Boot on Compaq Presario v3000 series

System Config: Compaq Presario v3033au, AMD Turion X2 TL-50, 2GB RAM, 100GB SATA HDD

  1. PC came with WXPH pre-installed, used PartitionMagic to create a 100mb and a 12GB partition for the /boot and / partitions.
  2. Downloaded and burned the Alternate (amd64) CD from one of the ubuntu mirrors.
  3. Booted from the CD, choose ‘OEM Install’, figured it would be better than text install.
  4. Followed the screens with default options, in the partition tool, chose my new partitions, chose to mount the compaq recover partition as /dos, could not mount the ntfs partition – I assume ntfs drivers are not installed on the boot cd.
  5. It installs packages on it’s own, does not ask to choose packages like Fedora does, I guess there would’nt be much to choose from – since everything is in one cd.
  6. When it came to installing grub, I made it install on my boot partition (/dev/sda3) in my case – so as to not overwrite the MBR.
  7. When ubuntu said it was done and wanted to reboot, I chose cancel and went to terminal prompt (from the choice of things it offered)
  8. In the terminal window, I wrote:dd if=/dev/sda3 of=/dos/ubuntu count=1 bs=512. This command writes the boot sector of my /boot (grub) to a file in D:\ubuntu – so it’s accessible to windows.
  9. I let ubuntu reboot.
  10. System boots back up into windows, I edit c:\boot.ini, I add: D:\ubuntu=”ubuntu Dapper”. This adds ubuntu to my windows boot menu.
  11. Copy the bcmwl5*.* files from C:\SwSetup\wlan to d:\ (will come to this later)
  12. I reboot, and see the new boot menu option.
  13. Graphics, sound, wired networking, usb, dvd-burner, etc all work well from the base install.
  14. However, it’s using the generic VESA driver to give me a 1024×768 resolution, I install nvidia drivers using: sudo apt-get install nvidia-glx nvidia-kernel-common
  15. That installs the nvidia driver and kernel module, then went ahead to update the Driver section of /etc/X11/xorg.conf to change the driver to “nvidia” and added Option “NoLogo” in a line below – so nVidia does not show it’s logo at every boot. Also added the resolution “1200×800” in the Screen section.
  16. Press Ctrl+Alt+Backspace for gdm to reload – and voila – nvidia’s native resolution works!
  17. Next to setup is the Broadcom 4310 chip based wireless. The built-in bcm43xx does not work, it freezes the system, ndiswrapper that comes with ubuntu is flawed as well, so download ndiswrapper from http://ndiswrapper.sourceforge.net/
  18. Make sure we have the compiler, kernel headers, etc : sudo apt-get install build-essentials
  19. tar zxvf ndiswrapper-1.23.tar.gz
  20. cd ndiswrapper-1.23
  21. sudo make
  22. sudo make install
  23. cat ‘blacklist bcm43xx’ > /etc/modprobe.d/blacklist¬† (to make sure bcm43xx module does not get loaded)
  24. sudo rmmod bcm43xx
  25. Now we use the windows drivers and make ndiswrapper cut them: sudo ndiswrapper -i /dos/bcmwl5.inf
  26. sudo modprobe ndiswrapper
  27. Next type the command “dmesg” to see if ndiswrapper loaded the driver correctly, it did. If it does not for you – go find another driver.
  28. Have not been able to make ndiswrapper work with their graphical network manager tool, but to connect to wifi, I typed 2 commands:
    1. iwconfig eth0 essid “mynetworksessid” key “mykey” open
    2. dhclient eth0
  29. And that worked fine. There are ways to automate this using wpa_supplicant. I’ll try that later and post if successfull. My previous attempts were in vain.
  30. Now we are ready to get rid of the ‘oem’ account: sudo oem-config-prepare
  31. That does it’s bit – so on the next reboot – we will have a fresh, fully working ubuntu linux using all resources of the pc.