Coder Social home page Coder Social logo

sunava / cram_teaching Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cram2/cram_teaching

0.0 0.0 0.0 1.39 MB

Lectures on CRAM in Jupyter Notebooks via Docker

License: BSD 3-Clause "New" or "Revised" License

Shell 0.02% Common Lisp 2.86% CMake 0.01% Jupyter Notebook 97.10%

cram_teaching's Introduction

cram-teaching - quick setup for Ubuntu 20.04

With this guide you will install the docker-compose plugin to run JupyterNotebook with CRAM.

Virtualization

Enable CPU virtualization in your BIOS to run virtual machines (VMs). If VMs are already enabled, there's nothing to do here.

Check if VMs are enabled with kvm-ok

sudo apt-get install cpu-checker
kvm-ok

Set up the Docker repository for aptitude

Reference Manual

  1. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
  1. Add Docker’s official GPG key:
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
  1. Use the following command to set up the repository:
echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install docker

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Verify that Docker Compose is installed correctly by checking the version.

docker compose version

Set user permissions

Put the user in the docker group, so we don't need to add sudo to every docker command.

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

Logout and login to make this change permanent.

Install Nvidia Drivers

Do you have an NVIDIA GPU in your machine? Make sure you have the driver installed.

In Software & Updates > Additional Drivers > choose the latest NVIDIA driver.

Install Docker NVIDIA

Reference Manual

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
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd
sudo systemctl daemon-reload
sudo systemctl restart docker

Start the docker container

Run

./start_eurobin.sh

The script will enable x-forwarding for docker and perform docker compose up cram-eurobin, which will pull the image from DockerHub and launch it.

In your Terminal there should be a link. Paste it to your browser to open the Jupyter Notebook for CRAM.

cram_teaching's People

Contributors

artnie avatar telemux avatar bhavyawadhwa856 avatar sunava 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.