Little Tricks 1

CUDA-Z

A easy tool that collects your graphic card info.


Download Legacy Nvidia Graphic Card Driver

http://www.geforce.cn/drivers


Nvidia Driver & CUDA Uninstall

  1. Unistall Nvidia Driver

Press ctrl + alt + F3, login and execute

 sudo service lightdm stop

or

 sudo service gdm3 stop

to stop the desktop service and use the following command to unistall

sudo /usr/bin/nvidia-uninstall

or you can use

sudo apt-get install autoremove --purge nvidia*


  1. Unistall CUDA

     sudo /usr/local/cuda-9.0/bin/uninstall_cuda-8.0.pl
    

Then delete cuda-9.0 manually.



Ubuntu Shell file

To run .sh file, you can make it into executable by

chomod u+x file.sh

or

sh file.sh

or

  source file.sh

source command executes the shell file under the current terminal process. It keeps all variables defined in this shell file. 'sh' command ( equal to ./file.sh ) runs the shell file within a newly created subprocess which means that all variables defined in this shell file would be deprecated at the end of the subprocess.

你可能感兴趣的:(Little Tricks 1)