What version of ubuntu you want to install? 14.10 supports cuda 6.0 (and I can't use cuda in cycles because of that I think...) 15.04 will support 6.5