Now that we have our drivers installed, we have to set up our C/C++ programming environment; both Python and CUDA are particular about what compilers and IDEs they may integrate with, so you may have to be careful. In the case of Ubuntu Linux users, the standard repository compilers and IDEs generally work and integrate perfectly with the CUDA Toolkit, while Windows users might have to exercise a little more caution.
Setting up a C++ programming environment
Setting up GCC, Eclipse IDE, and graphical dependencies (Linux)
Open up a Terminal from the Ubuntu desktop (Ctrl + Alt + T). We first update the apt repository as follows:
sudo apt-get update
Now we can install everything we need for CUDA with one additional line:
sudo...