Ubuntu中命令
Ubuntu中字体安装
---字体安装-----
sudo cp -r /home/XXXXX/font /usr/share/fonts
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fvt'''
- 在/home里面新建一个文件夹,将win里面的字体全部拷贝到里面;
- 再在终端里面输入以上命令(XXXXXX就是你自己的用户名,例如:/home/yongyong/font)
###python里wordcloud运行时出现OSError: cannot open resource错误时,需要安装wordcloud支持的字体,或者在ubuntu里面选择已经安装的字体亦可
Ubuntu中CPU核数
cat /proc/cpuinfo| grep "cpu cores"| uniq'
Ubuntu中怎样进行自由截图操作
- 打开系统设置->键盘,进入shortcuts选项
- 点击 + 号,Name选项随意;Command选项填: gnome-screenshot -a
- -a 的意思是自由截图,点击应用
- 点击新添加Name,右面显示Disabled,按住你想设置的快捷键,比如Ctrl Alt A,即可设置成功
- 再进行截图直接快捷键即可
Ubuntu中如何查看CUDA版本和CUDNN版本
cat /usr/local/cuda/version.txt
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
ubuntu16.04 下 卸载CUDA9.1
-----在这把它删除,在命令行中输入
sudo apt-get remove cuda
sudo apt-get autoclean
sudo apt-get remove cuda*
------然后在目录切换到/esr/local/下
cd /usr/local/
sudo rm -r cuda-9.1
ubuntu16.04 gcc版本选择
sudo apt-get install gcc-4.8
ls /usr/bin/gcc*
sudo apt-get install gcc-4.9 gcc-4.9-multilib g++-4.9 g++-4.9-multilib
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 100
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100
sudo update-alternatives --config gcc
g++
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 40
ubuntu16.04 卸载LibreOffice等不常用软件
sudo apt-get update
sudo apt-get upgrade
sudo apt-get remove libreoffice-common
sudo apt-get remove unity-webapps-common
ubuntu16.04 安装teamviewer
sudo apt-get install libjpeg62:i386 libxinerama1:i386 libxrandr2:i386 libxtst6:i386 ca-certificates
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get -f install
sudo dpkg -i teamviewer_13.2.13582_amd64.deb