<commit_before>.. _install-drop:

Install in a drop
=================

.. image:: img/digitalocean.png
    :align: center
    :alt: digitalocean

A drop is a server in the cloud, and is pretty cheap. You can install elabftw on it with one command: everything is automagic!

Your elabftw installation will run in a docker container.

.. warning:: This script will work for a fresh drop. If you already have a server running, you should consider a :ref:`normal install <install-gnulinux>` instead.


.. warning:: You need to have a domain name pointing to the drop. Otherwise the letsencrypt script will not work.

* Point your domain to the IP address of your drop. It might take a bit of time for the DNS to propagate.

* Create an account on `DigitalOcean <https://cloud.digitalocean.com/registrations/new>`_

* Create a droplet with Docker (from the One-click Apps tab), select a size and a region.

* It might be a good idea to enable backups

* Add your SSH key (`documentation <https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets>`_)

* Once created, open a terminal and SSH to your new server. The IP address can be found on the digitalocean website:

.. code-block:: bash

    ssh root@172.16.31.10

* Go inside a tmux session:

.. code-block:: bash

    tmux

* Enter the following magical command:

.. code-block:: bash

    wget -qO- https://get.elabftw.net > install-elabftw.sh && bash install-elabftw.sh

.. danger:: Don't get into the habit of executing unknown scripts as root without reading them first!

.. hint:: To follow the install progress, open a new pane with Ctrl-b, release and press %. Then enter ``tail -f elabftw.log``

* Read what is displayed at the end.

ENJOY! :D<commit_msg>change script name so it's the same on the repo<commit_after>.. _install-drop:

Install in a drop
=================

.. image:: img/digitalocean.png
    :align: center
    :alt: digitalocean

A drop is a server in the cloud, and is pretty cheap. You can install elabftw on it with one command: everything is automagic!

Your elabftw installation will run in a docker container.

.. warning:: This script will work for a fresh drop. If you already have a server running, you should consider a :ref:`normal install <install-gnulinux>` instead.


.. warning:: You need to have a domain name pointing to the drop. Otherwise the letsencrypt script will not work.

* Point your domain to the IP address of your drop. It might take a bit of time for the DNS to propagate.

* Create an account on `DigitalOcean <https://cloud.digitalocean.com/registrations/new>`_

* Create a droplet with Docker (from the One-click Apps tab), select a size and a region.

* It might be a good idea to enable backups

* Add your SSH key (`documentation <https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets>`_)

* Once created, open a terminal and SSH to your new server. The IP address can be found on the digitalocean website:

.. code-block:: bash

    ssh root@172.16.31.10

* Go inside a tmux session:

.. code-block:: bash

    tmux

* Enter the following magical command:

.. code-block:: bash

    wget -qO- https://get.elabftw.net > drop-elabftw.sh && bash drop-elabftw.sh

.. danger:: Don't get into the habit of executing unknown scripts as root without reading them first!

.. hint:: To follow the install progress, open a new pane with Ctrl-b, release and press %. Then enter ``tail -f elabftw.log``

* Read what is displayed at the end.

ENJOY! :D
{'fraction_non_alphanumeric': 0.09603399433427762, 'fraction_numerical': 0.0050991501416430595, 'mean_word_length': 3.6217277486910993, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5175744', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1022, 'n_words': 484}