340 Driver Installation

Hello, I have installed cuda 6.5 rc in my Ubuntu 14.04 LTS laptop which has the optimus technology.
However, I have failed to install nvidia 340.xx drivers so far.

Can somebody tell me the exact steps for this procedure on an optimus laptop?

Thank you in advance!