mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Fix rst syntax errors
- Add sudo wherever required
This commit is contained in:
@@ -16,7 +16,7 @@ contained in the link's target repository is downloaded to the user's home
|
|||||||
directory. Note that a copy of the dataset will be made for each user.
|
directory. Note that a copy of the dataset will be made for each user.
|
||||||
|
|
||||||
For information on creating and sharing ``nbgitpuller`` links, see
|
For information on creating and sharing ``nbgitpuller`` links, see
|
||||||
:ref:`_tutorials/nbgitpuller`.
|
:ref:`tutorials/nbgitpuller`.
|
||||||
|
|
||||||
Distributing data with a read-only shared folder
|
Distributing data with a read-only shared folder
|
||||||
================================================
|
================================================
|
||||||
@@ -29,31 +29,34 @@ steps:
|
|||||||
#. Create a terminal session within your JupyterHub interface.
|
#. Create a terminal session within your JupyterHub interface.
|
||||||
#. Create a folder where your data will live:
|
#. Create a folder where your data will live:
|
||||||
|
|
||||||
```
|
.. code-block:: bash
|
||||||
mkdir /srv/data/mydatafolder
|
|
||||||
```
|
sudo mkdir /srv/data/mydatafolder
|
||||||
#. Download the data into this folder. For example, using `curl` or by running
|
|
||||||
a `python` script that downloads the data.
|
#. Download the data into this folder. For example, using ``sudo curl`` or by running
|
||||||
|
a ``python`` script that downloads the data.
|
||||||
|
|
||||||
#. All users now have read access to the data in this folder.
|
#. All users now have read access to the data in this folder.
|
||||||
|
|
||||||
Optionally, you may also **create a symbolic link to the data folder** in each
|
Optionally, you may also **create a symbolic link to the data folder** in each
|
||||||
new user's home directory. To do this, you can use the VM's "skeleton"
|
**new user's** home directory. To do this, you can use the server's "user skeleton"
|
||||||
directory (`/etc/skel`). Anything that is placed in this directory will also
|
directory (``/etc/skel``). Anything that is placed in this directory will also
|
||||||
show up in a new user's home directory. To create a link to the dataset,
|
show up in a new user's home directory. To create a link to the dataset,
|
||||||
follow these steps:
|
follow these steps:
|
||||||
|
|
||||||
#. Change into the skeleton directory:
|
#. Change into the skeleton directory:
|
||||||
|
|
||||||
```
|
.. code-block:: bash
|
||||||
|
|
||||||
cd /etc/skel
|
cd /etc/skel
|
||||||
```
|
|
||||||
#. Create a symbolic link to the data folder
|
#. Create a symbolic link to the data folder
|
||||||
|
|
||||||
```
|
.. code-block:: bash
|
||||||
ln -s /src/data/mydatafolder mydatafolder
|
|
||||||
```
|
sudo ln -s /src/data/mydatafolder mydatafolder
|
||||||
|
|
||||||
From now on, when a new user account is created, their home directory will
|
From now on, when a new user account is created, their home directory will
|
||||||
have this symbolic link (and any other files in `/etc/skel`) in their home
|
have this symbolic link (and any other files in ``/etc/skel``) in their home
|
||||||
directory.
|
directory. This will have no effects on the home directories of existing
|
||||||
|
users.
|
||||||
|
|||||||
Reference in New Issue
Block a user