Giter VIP home page Giter VIP logo

provisioning's Introduction

Provisioning

Ubuntu

Install Ansible

sudo apt-get update -y && sudo apt-get install -y software-properties-common
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update -y && sudo apt-get install -y ansible

Clone this repository

mkdir -p $HOME/git/github.com/k-fujikawa
cd $HOME/git/github.com/k-fujikawa/provisioning
git clone [email protected]:k-fujikawa/provisioning.git

Run Ansible playbooks

ansible-galaxy install -r requirements.yml
ansible-playbook sites/ubuntu-cuda-11.4.yml --ask-become-pass

Re-login

logout

Check if GPUs are available

docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi

Upgrade CUDA packages

Uninstall old packages and re-run ansible-playbook.

sudo apt-get --purge remove "nvidia-*" "cuda-*"
ansible-playbook sites/ubuntu-cuda-11.1.yml --ask-become-pass

MacOS

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Ansible

brew install ansible

Clone this repository

mkdir -p $HOME/git/github.com/k-fujikawa
git clone [email protected]:k-fujikawa/provisioning.git $HOME/git/github.com/k-fujikawa/provisioning
cd $HOME/git/github.com/k-fujikawa/provisioning

Run Ansible playbooks

ansible-playbook sites/macos.yml

provisioning's People

Contributors

k-fujikawa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.