i was recently setting up a ubuntu based system without using gnome, unity, kde, etc… and i needed to install the graphics drivers using ubuntu’s additional drivers program (called jockey) but via command line.
i found that it was easier than i thought since jockey comes with a text based version.
to get a list of available drives and the status of the drives
to enable a driver (replace DRIVER with the one you need from the previous command)
thats pretty much it. after you install the driver, you may need to reboot.