美文网首页
Ubuntu 装机经验

Ubuntu 装机经验

作者: Apples_3d38 | 来源:发表于2018-05-13 12:06 被阅读0次

Ubuntu 装机经验

显卡配置

sudo apt-get remove --purge nvidia*
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update
# 此处使用显卡为 Titan X,由于查不到合适得驱动故使用老版本
sudo apt-get install nvidia-375

安装Cuda

sudo dpkg -i cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda

安装Nvidia Docker

# install docker-ce
sudo apt-get update

# Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

# Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

# Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
sudo apt-get update
sudo apt-get install docker-ce

# nvidia-docker
# If you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers
docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f
sudo apt-get purge -y nvidia-docker

# Add the package repositories
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
  sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
  sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update

# Install nvidia-docker2 and reload the Docker daemon configuration
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd

# Test nvidia-smi with the latest official CUDA image
# 此处使用镜像以加速
docker run --runtime=nvidia --rm registry.docker-cn.com/nvidia/cuda nvidia-smi

相关文章

  • Ubuntu 装机经验

    Ubuntu 装机经验 显卡配置 安装Cuda 安装Nvidia Docker

  • 记一次Ubuntu装机经验

    起因是工作站到了,需要安装开发环境,原本很简单的事情,没想到前前后后竟然拖了近一周。 开发环境是Ubuntu,故首...

  • Ubuntu 18.04装机及美化

    Ubuntu 系统安装及美化教程,以及一些实用软件推荐 一、Ubuntu 18.04 装机 安装教程以Ubuntu...

  • Windows10+Ubuntu双系统安装

    Windows和Ubuntu装机双系统 是在已有的windows上,再安装 Ubuntu,为双硬盘,windows...

  • 快速装机 ubuntu+ngnix+mysql+django;J

    快速装机 ubuntu+ngnix+mysql+django;Jupyter;音频处理librosa;... 我想...

  • Ubuntu 日常装机

    分区方案 128GB SSD 根目录/ 20480MB 交换空间swap 2048MB /boot ...

  • ubuntu装机记录

    前言为了避免以后装机再次使用 记录以便以后使用 安装环境为ubuntu16.04 基础工具类 1.搜狗输入法 u...

  • Ubuntu 装机清单

    第一步:更新驱动第二步:安装 shadowsocks、genpac第三步:安装 chrome 然后就可以愉快的安装...

  • ubuntu装机问题

    http://www.cnblogs.com/Duane/p/6776302.html 主要是找到了一篇好博客,装...

  • ubuntu装机软件

    ubunt版本18.04.2vimgitcurltsocks (sock代理)guake(终端)zshoh-my-...

网友评论

      本文标题:Ubuntu 装机经验

      本文链接:https://www.haomeiwen.com/subject/qntldftx.html