From 4b77449f0fec83690bf0c6625b380833a3d2cbe7 Mon Sep 17 00:00:00 2001
From: Xuan Gu <xuan.gu@liu.se>
Date: Mon, 5 Dec 2022 13:58:26 +0000
Subject: [PATCH] Update README.md

---
 README.md | 33 +++++++++++++++++++++++----------
 1 file changed, 23 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md
index 32b5a4a..d6db32b 100644
--- a/README.md
+++ b/README.md
@@ -1,23 +1,36 @@
 # Run Pytorch and Tensorflow Containers with Nvidia Enroot
 
 
+## Install enroot
 
-## Getting started
+For Debian-based distributions
+```
+arch=$(dpkg --print-architecture)
+curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.4.0/enroot_3.4.0-1_${arch}.deb
+curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.4.0/enroot+caps_3.4.0-1_${arch}.deb # optional
+sudo apt install -y ./*.deb
+```
 
-To make it easy for you to get started with GitLab, here's a list of recommended next steps.
+For others, see [here](https://github.com/NVIDIA/enroot/blob/master/doc/installation.md)
 
-Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
+## Set up Nvidia credentials
 
-## Add your files
+Complete step [4.1](https://docs.nvidia.com/ngc/ngc-overview/index.html#account-signup) and [4.3](https://docs.nvidia.com/ngc/ngc-overview/index.html#generating-api-key). Save the API key.  
 
-- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
+Add the API key to the config file at ```~/.config/enroot/.credentials  ```  
+```
+machine nvcr.io login $oauthtoken password your_api_key
+machine authn.nvidia.com login $oauthtoken password your_api_key
+```
+
+Set the config path by adding the line to ```~/.bashrc```
+```
+export ENROOT_CONFIG_PATH=/home/xuagu37/.config/enroot
+```
 
+To make the path valid
 ```
-cd existing_repo
-git remote add origin https://gitlab.liu.se/xuagu37/run-pytorch-and-tensorflow-containers-with-nvidia-enroot.git
-git branch -M main
-git push -uf origin main
+source ~/.bashrc
 ```
 
 ## Integrate with your tools
-- 
GitLab