Monthly Archives: May 2010

Expanding my mind (I am (becoming) a programmer)…

So… Been a minute…  I have had quite a lot on my plate as of late…  Recently I accepted a new ‘associate developer’ position with a local programming group…  Needless to say, I have a lot to learn – really, more to learn than I have time in the day… This said, I have also already learned TONS.  In the past 3 weeks, I believe I have learned nearly as much (about programming) as I did the last 2 years of college combined…

As anyone with one themselves can attest, I have found my BS-in-CS to have largely left me unprepared for ‘professional programming’.  Yes, I understand the underlying concepts of lists and arrays (having been made to make them in C++ from scratch, with little emphasis or even mention of the STL), grasp the ‘big-picture’ of OO-Based Design (“Everything is an object” – I get it!) and the RAD paradigm, BUT little was I imparted with knowledge in regards to the Software Development Life-cycle – or – how programming is really done. A mere handful of chapters in the whole 4 years – not nearly enough to prepare me for what programming ‘really is’.

This said, I am very lucky to be amongst a group of guys who not only grasp how to develop – But that live and breath it as well.  It is with hopeful optimism that I say: “I hope that I am lucky enough to stay around long enough to at least soak up 50% of what these guys know”…  Programming is fun… I wish that I would have learned that in school…

nVidia Drivers with Compositing on Ubuntu 10.04 Lucid Lynx

nVidia LogoOk.  I will admit it.  I love compositing (Compiz) in Linux.  I absolutely adore it.  Clearly, this can be a bit of a problem as compositing on NVidia cards (more specifically using the Linux proprietary drivers) in Linux can be a bit of a challenge (understatement) at times.

Post-Lucid-upgrade has proven to be one of these times.  After having a smooth dist-upgrade and eventually a full, fresh install on my Eee 1000HE, I decided to forge forward with installing Lucid (x86 – reasons for we can debate elsewhere)from scratch on my custom built desktop recently.  As was the case with my netbook, Lucid installed largely without a hitch (See previous Grub post).

Once up and running, I of course wanted to get nVidia up and running.  For some reason on my SLI enabled (dual 8500GTs) desktop, I have never been able to get the repo nVidia drivers to work without issue.  Unfortunately after some trial and error, I was unable to get the nVidia supplied drivers up and running – after reading through some Lucid docs, I found out that the newest nVidia driver is currently incompatible with some of the system changes made with Lucid.

Fortunately, this time, the ‘nvidia-current’ from the repos did work for me!  Here is what I did to get it up and running in case you encounter the same ‘black screen errors that I did when installing from within Gnome.  I can’t say why it didn’t work in the GUI for me, but it didnt…

First, I had to get into a working shell by booting into “recovery mode” from grub – its a menu option below your normal boot item.  Once prompted, I selected netroot, which provides network access from the shell.  To get things installed properly, I had to get to init level 3:
$ initlevel 3

Then log in using your normal user login.

Get needed files:
$ sudo apt-get install build-essential linux-headers-`uname -r’

Blacklist nouveau by adding ‘blacklist nouveau’ to your blacklist.conf:
$ sudo nano /etc/modprobe.d/blacklist.conf

Install latest stabled nVidia repo drivers:
$ sudo apt-get install nvidia-current

Finally, generate the nVidia xorg.conf:
$ sudo nvidia-xconfig

After completing the above, I was able to reboot (“$ sudo reboot now“) into my nVidia backed Gnome desktop and finish completing my nVidia setup (ALT+F2, “gksu nvidia-settings“).  Then finally, I was able to get my Compiz back up and running – which came with its own problems and will be covered in another post!

Hope this helps!
-Matt

GRUB2 – Link worth mentioning

After countless wasted hours, I feel this link is one worth making note of : Grub2 Ubuntu Community Documentation.  The defacto since 9.10, things are a bit different from how things were handled in ‘just Grub’.  After years of learning the ins, outs and peculiarities of Grub, having readily available access to docs on Grub2 is a necessity when tacking installs of the latest and *cough*used loosely*cough* “greatest” distro releases.  After tacking with a mismanaged auto install of Ubuntu 10.04 (Lucid Lynx) on my P5n-e SLI based desktop (Raid, SATA+IDE, SLI and the works), I just thing that this link merits special mention…

It was likely some 100 threads before clicking through to this very link, so here it is – preserved for your and my reference!