% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
]{article}
\usepackage{amsmath,amssymb}
\usepackage{iftex}
\ifPDFTeX
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
  \usepackage{unicode-math} % this also loads fontspec
  \defaultfontfeatures{Scale=MatchLowercase}
  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
  % xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
  \usepackage[]{microtype}
  \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
  \IfFileExists{parskip.sty}{%
    \usepackage{parskip}
  }{% else
    \setlength{\parindent}{0pt}
    \setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
  \KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\ifLuaTeX
  \usepackage{selnolig}  % disable illegal ligatures
\fi
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same}
\hypersetup{
  pdftitle={mounting-s3-bucket-locally-on-ubuntu},
  hidelinks,
  pdfcreator={LaTeX via pandoc}}

\title{mounting-s3-bucket-locally-on-ubuntu}
\author{}
\date{}

\begin{document}
\maketitle

\hypertarget{mounting-s3-bucket-locally-on-ubuntu}{%
\section{mounting-s3-bucket-locally-on-ubuntu}\label{mounting-s3-bucket-locally-on-ubuntu}}

\hypertarget{mounting-s3-bucket-locally-on-ubuntu-1}{%
\section{Mounting s3 Bucket Locally on
Ubuntu}\label{mounting-s3-bucket-locally-on-ubuntu-1}}

.. contents::

\hypertarget{install-configure-and-test-s3cmd}{%
\subsection{Install, Configure, and Test
s3cmd}\label{install-configure-and-test-s3cmd}}

Install:

.. code-block:: bash

sudo apt-get update sudo apt-get install s3cmd

Configure:

.. code-block:: bash

s3cmd --configure

follow the prompts. You will need to prepare your Access Key ID and
Access Key Secret.

list buckets:

.. code-block:: bash

s3cmd ls

list inside a bucket

.. code-block:: bash

s3cmd ls

\hypertarget{install-configure-and-test-s3fs-fuse}{%
\subsection{Install, Configure, and test
s3fs-fuse}\label{install-configure-and-test-s3fs-fuse}}

Install dependencies:

.. code-block:: bash

sudo apt-get install fuse-utils build-essential libcurl4-openssl-dev
libxml2-dev libfuse-dev

Download sourcecode:

.. code-block:: bash

wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz tar -xzvf s3fs-*

Build sourcecode:

.. code-block:: bash

cd s3fs-* ./configure sudo make sudo make install

Configure s3fs password file:

.. code-block:: bash

sudo vim /root/.passwd-s3fs sudo chmod 600 /root/.passwd-s3fs

Format should be: :

Test:

.. code-block:: bash

sudo s3fs

Add to fstab to mount during boot:

.. code-block:: bash

s3fs\#mybucket /mnt/s3 fuse allow\_other,url=https://s3.amazonaws.com 0
0

\end{document}
