# https://learn.microsoft.com/en-us/azure/storage/blobs/blobfuse2-how-to-deploy?tabs=Ubuntu
# How to install BlobFuse2
## Option 1: Install BlobFuse2 from the Microsoft software repositories for Linux
### To check your version of Linux, run the following command:
cat /etc/*-release
### Install libfuse-dev
sudo wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install libfuse-dev # ubuntu 18.04
# sudo apt-get install libfuse3-dev fuse3 # didn't work; this is for ubuntu > 18.04
### Install BlobFuse2
sudo apt-get install blobfuse2
# How to configure BlobFuse2
## Create Blobfuse Config File(s)
CONFIG=/home/azureuser/blobfuse-config.yaml
touch $CONFIG
vim $CONFIG
## Create an empty directory to mount the blob container
CONTAINER_DIR=/mnt/dlsparseviewctchallenge/bundles
sudo mkdir -p $CONTAINER_DIR
# echo $CONTAINER_DIR
sudo blobfuse2 mount $CONTAINER_DIR --config-file=$CONFIG
ls $CONTAINER_DIR