There is good news for you. I made a new repository with a single Dockerfile to build every combinations of versions of Ubuntu LTS and gcc you like
Find out more on https://github.com/alexandreelise/install-gcc
| # WARNING : This gist in the current form is a collection of command examples. Please exercise caution where mentioned. | |
| # Docker | |
| sudo apt-get update | |
| sudo apt-get remove docker docker-engine docker.io | |
| sudo apt install docker.io | |
| sudo systemctl start docker | |
| sudo systemctl enable docker | |
| docker --version |
There is good news for you. I made a new repository with a single Dockerfile to build every combinations of versions of Ubuntu LTS and gcc you like
Find out more on https://github.com/alexandreelise/install-gcc
| #!/bin/bash | |
| ## This gist contains step by step instructions to install cuda v10.1 and cudnn 7.6 in CentOS 7 | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### | |
| ### to verify your gpu is cuda enable check |
| wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip | |
| unzip /tmp/YaHei.Consolas.1.12.zip | |
| sudo mkdir -p /usr/share/fonts/consolas | |
| sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/ | |
| sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf | |
| cd /usr/share/fonts/consolas | |
| sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv |
| deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse | |
| deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse |
| #!/bin/sh | |
| # Userland mode (~$USER/), (~/). | |
| # ~/.fonts is now deprecated and that | |
| #FONT_HOME=~/.fonts | |
| # ~/.local/share/fonts should be used instead | |
| FONT_HOME=~/.local/share/fonts | |
| echo "installing fonts at $PWD to $FONT_HOME" | |
| mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro" |