前言
以下软件都是通过命令行方式安装,推荐先尝试使用 Ubuntu 应用商店安装,如果没有收录,在用以下方式安装。
搜狗输入法
- 安装 fcitx
sudo apt-get install fcitx
- 安装系统语言
- settings -> language support -> install/remove languages, 安装 Chinese(simple)
- 接着在上面的 language support 设置面板 “keyboard input method system” 设置为 fcitx
- 下载安装搜狗输入法
sudo apt-get install fcitx-libs libopencc1 libqt4-opengl libqtwebkit4 # 安装依赖 sudo dpkg -i xxx.deb # 安装搜狗输入法
- 添加搜狗输入法
- settings -> text entry -> 点击“+” -> 添加“sogou pinyin(fcitx)”,如果没有,重启
- 配置 fcitx 桌面右上角输入法图标 -> configure,在面板中取消选中“only show current language”, 添加 sogou pinyin
- 重启
注:搜狗输入法必须在 fcitx 框架下才能使用
sublime
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -;sudo apt-get install apt-transport-https;echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list;sudo apt-get update;sudo apt-get install sublime-text
redshift
- https://github.com/jonls/redshift/
teamviewer
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
sudo dpkg -i teamviewer_amd64.deb
sudo apt-get -f install
sudo dpkg -i teamviewer_amd64.deb
- 原生支持 https://im.qq.com/linuxqq/index.html
- 基于 winpe 模拟器 https://github.com/askme765cs/Wine-QQ-TIM
微信
基于网页版开发的
wget https://github.com/geeeeeeeeek/electronic-wechat/releases/download/V2.0/linux-x64.tar.gz
tar -zxvf linux-x64.tar.gz
typora
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -;sudo add-apt-repository 'deb https://typora.io/linux ./';sudo apt-get update;sudo apt-get install typora
chrome
sudo wget https://repo.fdzh.org/chrome/google-chrome.list -P /etc/apt/sources.list.d/;wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -;sudo apt-get update;sudo apt-get install google-chrome-stable
/usr/bin/google-chrome-stable
octave
sudo apt-add-repository ppa:octave/stable;sudo apt-get update;sudo apt-get install octave
福昕 PDF
截图
- Shutter
sudo add-apt-repository -y ppa:shutter/ppa sudo apt-get update && sudo apt-get install shutter
- Vokoscreen
cuda & cudnn
-
卸载之前的版本
# To uninstall the CUDA Toolkit, run the uninstallation script provided in the bin directory of the toolkit. By default, it is located in /usr/local/cuda-10.0/bin: sudo /usr/local/cuda-10.0/bin/uninstall_cuda_10.0.pl # To uninstall the NVIDIA Driver, run nvidia-uninstall: sudo /usr/bin/nvidia-uninstallit
- 官网下载 cuda toolkit
- 官网安装教程
-
用到的命令
sudo update-pciids # 更新设备 id lspci | grep -i vga # 查看显卡型号 uname -m && cat /etc/*release # 查看系统版本 uname -r # 查看系统内核版本 sudo apt-get install linux-headers-$(uname -r) # 安装内核 headers gcc --version # 查看 gcc 版本 lsmod | grep nouveau # 查看 Ubuntu 显卡驱动是否工作 sudo dpkg --list | grep nvidia-* # 查看 NVIDIA 显卡驱动版本 cat /proc/driver/nvidia/version # 查看 NVIDIA 显卡驱动版本 nvcc -V # 查看 cuda 版本
- 设置环境变量
- cudnn 下载地址, 下载 cuDNN Library for Linux,解压
-
拷贝文件
sudo cp cuda/include/cudnn.h /usr/local/cuda-9.0/include/; sudo cp cuda/lib64/libcudnn* /usr/local/cuda-9.0/lib64/
- 补充:GPU 计算能力
Qt
安装依赖:
sudo apt-get install libgl-dev
下载地址在这里, 选择合适的版本。下载完成,右键使其获得可执行权限,双击安装
OpenCV
下载地址:opencv, opencv_contrib, 解压至同级目录
官方 build 教程
- 安装脚本
#!/bin/sh sudo apt update sudo apt upgrade sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev libjpeg-dev libpng-dev libtiff-dev unzip pkg-config libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libgtk-3-dev libatlas-base-dev gfortran python3-dev libxvidcore-dev libx264-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev; sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"; sudo apt update; sudo apt install libjasper1 libjasper-dev cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/home/hdb/opt/opencv -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.3.1/modules -DBUILD_EXAMPLES=ON -D WITH_CUDA=ON -D BUILD_TIFF=ON -D CUDA_GENERATION=Auto -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_FFMPEG=ON -D WITH_TBB=ON -D WITH_GTK=ON -D WITH_V4L=ON -D WITH_OPENGL=ON -D WITH_CUBLAS=ON –D WITH_QT=ON -DBUILD_JPEG=ON -DBUILD_PNG=ON .. make -j7 sudo make install
- 配置环境变量(库目录、包含目录)