Skip to content
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ We have several tutorials to get you started.
- Tutorials to create a new server from scratch on a cloud provider & run TLJH
on it. These are **recommended** if you do not have much experience setting up
servers.

- [Digital Ocean](https://the-littlest-jupyterhub.readthedocs.io/en/latest/install/digitalocean.html)
- [OVH](https://the-littlest-jupyterhub.readthedocs.io/en/latest/install/ovh.html)
- [Google Cloud](https://the-littlest-jupyterhub.readthedocs.io/en/latest/install/google.html)
Expand Down
1 change: 0 additions & 1 deletion docs/contributing/dev-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ The easiest & safest way to develop & test TLJH is with [Docker](https://www.doc

8. Make some changes to the repository. You can test easily depending on what
you changed.

- If you changed the `bootstrap/bootstrap.py` script or any of its dependencies,
you can test it by running `python3 /srv/src/bootstrap/bootstrap.py`.
- If you changed the `tljh/installer.py` code (or any of its dependencies),
Expand Down
1 change: 0 additions & 1 deletion docs/howto/auth/awscognito.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ application to your `tljh` configuration.
1. Create a user pool [Getting Started with User Pool](https://docs.aws.amazon.com/cognito/latest/developerguide/getting-started-with-cognito-user-pools.html).

When you have completed creating a user pool, app, and domain you should have the following settings available to you:

- **App client id**: From the App client page

- **App client secret** From the App client page
Expand Down
1 change: 0 additions & 1 deletion docs/howto/auth/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ You'll need a GitHub account in order to complete these steps.
## Step 1: Create a GitHub application

1. Go to the [GitHub OAuth app creation page](https://github.com/settings/applications/new).

- **Application name**: Choose a descriptive application name (e.g. `tljh`)

- **Homepage URL**: Use the IP address or URL of your JupyterHub. e.g. `` http(s)://<my-tljh-url>` ``.
Expand Down
1 change: 0 additions & 1 deletion docs/howto/auth/google.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ and create a new project:
```

- You will have to fill a form with:

- **Application type**: Choose _Web application_

- **Name**: A descriptive name for your OAuth client ID (e.g. `tljh-client`)
Expand Down
1 change: 0 additions & 1 deletion docs/howto/user-env/user-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ To upgrade the Python version of the user environment, one can:
environment, but you may do so manually.

**Steps:**

1. Activate the user environment, if using ssh. If the terminal was
started with JupyterHub, this step can be skipped:

Expand Down
9 changes: 0 additions & 9 deletions docs/install/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ We start by creating the Virtual Machine in which we can run TLJH (The Littlest
```

5. **Choose an Ubuntu server for your VM**:

- Click `Ubuntu Server 22.04 LTS.`

- Make sure `Resource Manager` is selected in the next screen and click **Create**
Expand All @@ -61,7 +60,6 @@ We start by creating the Virtual Machine in which we can run TLJH (The Littlest
```

6. Customise the Virtual Machine basics:

- **Subscription**. Choose the "Free Trial" if this is what you're using. Otherwise, choose a different plan. This is the billing account that will be charged.
- **Resource group**. Resource groups let you keep your Azure tools/resources together in an availability region (e.g. WestEurope). If you already have one you'd like to use it select that resource.

Expand Down Expand Up @@ -89,7 +87,6 @@ We start by creating the Virtual Machine in which we can run TLJH (The Littlest
- **Inbound port rules**. Leave the defaults for now, and we will update these later on in the Network configuration step.

7. Before clicking on "Next" we need to select the RAM size for the image.

- For this we need to make sure we have enough RAM to accommodate your users. For example, if each user needs 2GB of RAM, and you have 10 total users, you need at least 20GB of RAM on the machine. It's also good to have a few GB of "buffer" RAM beyond what you think you'll need.

- Click on **Change size** (see image below)
Expand All @@ -105,7 +102,6 @@ We start by creating the Virtual Machine in which we can run TLJH (The Littlest
- Select a suitable image (to check available images and prices in your region [click on this link](https://azuremarketplace.microsoft.com/en-gb/marketplace/apps/Canonical.UbuntuServer?tab=PlansAndPrice/?wt.mc_id=TLJH-github-taallard)).

8. Disks (Storage):

- **Disk options**: select the OS disk type there are options for SDD and HDD. **SSD persistent disk** gives you a faster but more expensive disk than HDD.

- **Data disk**. Click on create and attach a new disk. Select an appropriate type and size and click ok.
Expand All @@ -120,7 +116,6 @@ We start by creating the Virtual Machine in which we can run TLJH (The Littlest
```

9. Networking

- **Virtual network**. Leave the default values selected.
- **Subnet**. Leave the default values selected.
- **Public IP address**.Leave the default values selected. This will make your server accessible from a browser.
Expand All @@ -132,9 +127,7 @@ We start by creating the Virtual Machine in which we can run TLJH (The Littlest
```

10. Management

- Monitoring

- **Boot diagnostics**. Choose "On".
- **OS guest diagnostics**. Choose "Off".
- **Diagnostics storage account**. Leave as the default.
Expand All @@ -150,7 +143,6 @@ We start by creating the Virtual Machine in which we can run TLJH (The Littlest
```

11. Advanced settings

- **Extensions**. Make sure there are no extensions listed
- **Cloud init**. We are going to use this section to install TLJH directly into our Virtual Machine.

Expand All @@ -177,7 +169,6 @@ We start by creating the Virtual Machine in which we can run TLJH (The Littlest
12. Check the summary and confirm the creation of your Virtual Machine.

13. Check that the creation of your Virtual Machine worked.

- Wait for the virtual machine to be created. This might take about 5-10 minutes.

- After completion, you should see a similar screen to the one below:
Expand Down
177 changes: 63 additions & 114 deletions docs/install/jetstream.md
Original file line number Diff line number Diff line change
@@ -1,152 +1,101 @@
(install-jetstream)=

# Installing on Jetstream
# Installing on Jetstream2

## Goal

By the end of this tutorial, you should have a JupyterHub with some admin
users and a user environment with packages you want installed running on
[Jetstream](https://jetstream-cloud.org/).
[Jetstream2](https://jetstream-cloud.org/).

## Prerequisites

1. A Jetstream account with an XSEDE allocation; for more information,
see the [Jetstream Allocations help page](http://wiki.jetstream-cloud.org/Jetstream+Allocations).
see the [Jetstream Allocations help page](https://jetstream-cloud.org/allocations/).
Comment on lines 13 to +14

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the link, and added a second one.

Suggested change
1. A Jetstream account with an XSEDE allocation; for more information,
see the [Jetstream Allocations help page](http://wiki.jetstream-cloud.org/Jetstream+Allocations).
see the [Jetstream Allocations help page](https://jetstream-cloud.org/allocations/).
1. An ACCESS ID, and membership in an allocation with access to Jetstream2 resources; for more information,
see the [Jetstream2 Allocations Overview page](https://docs.jetstream-cloud.org/alloc/overview/) and the [Get started with Jetstream2 guide](https://jetstream-cloud.org/get-started/).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cannot apply this suggestion, possibly becuase it changes the number of lines?


## Step 1: Installing The Littlest JupyterHub
## Step 1: Launch a Jetstream2 instance

Let's create the server on which we can run JupyterHub.
We'll create a new Jetstream2 instance:

1. Log in to [the Jetstream portal](https://use.jetstream-cloud.org/). You need an allocation
to launch instances.
1. Log in to the [Jetstream2 portal](https://use.jetstream-cloud.org/). You must have (and select) an allocation in order to launch instances. Click the allocation you want to charge.
2. Click **Create****Instance**.
3. From the list of images, select **Ubuntu 24.04** (Jammy or newer is required for current TLJH releases).
4. In the **Create Instance** dialog:
1. Set a descriptive **Instance Name** (this is used in the default hostname and helps users recognize it).
2. Choose an **Instance Size**. We suggest `m3.small` (2 vCPUs / 8 GiB RAM) or larger for more than a couple of users. The absolute minimum TLJH can start with is about **1 GiB** RAM, but you'll quickly run out with real workloads.
- See the resource estimation guide: [Choosing resources](/howto/admin/resource-estimation) for help picking CPU, RAM, and disk.
3. (Optional) Increase the **Volume Size** if you expect many users or large datasets. You can not easily shrink later.
5. Launch the instance (click **Create Instance** / **Launch**).

2. Select the **Launch New Instance** option to get going.
## Step 2: Install The Littlest JupyterHub

```{image} ../images/providers/jetstream/launch-instance-first-button.png
:alt: Launch new instance button with description.
```
1. Wait a few minutes for the instance to show the status "Ready"
2. Copy the **Hostname** under **Credentials**, it will be of the form: `yourinstancename.xxx0000000.projects.jetstream-cloud.org`, where `xxx000000` is the allocation ID. Keep it handy, we will use it multiple times in the next steps.

This takes you to a page with a list of base images you can choose for your
server.
3. SSH into the instance with the `exouser` user:

3. Under **Image Search**, search for **Ubuntu 22.04**, and select the
**Ubuntu 22.04 Devel and Docker** image.
```bash
ssh [email protected]
```

```{image} ../images/providers/jetstream/select-image.png
:alt: Select Ubuntu 22.04 x64 image from image list
```
4. Run the TLJH bootstrap script, replace <admin-user-name> with the name of the first admin user for this JupyterHub. Choose any name you like (don’t forget to remove the brackets!). This admin user can log in after the JupyterHub is set up, and can configure it to their needs.

4. Once selected, you will see more information about this image. Click the
**Launch** button on the top right.
```bash
curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3 - --admin <admin-user-name>
```

```{image} ../images/providers/jetstream/launch-instance-second-button.png
:alt: Launch selected image with Launch button on top right
```
5. Open the Hostname in a web browser (http on port 80). You should see the JupyterHub login page. Your browser will warn about the site not being secure (no HTTPS)—we'll enable HTTPS in the next step. Do not login yet, first setup HTTPS, so we avoid transmitting the password in clear text.

5. A dialog titled **Launch an Instance / Basic Options** pops up, with various
options for configuring your instance.
## Step 2: Enable HTTPS

```{image} ../images/providers/jetstream/launch-instance-dialog.png
:alt: Launch an Instance / Basic Options dialog box
```
Encrypted (HTTPS) access is strongly recommended before inviting users.

1. Give your server a descriptive **Instance Name**.
See the full guide: [Enable HTTPS](/howto/admin/https). Below is a quick recipe for using the default Jetstream-provided hostname.

2. Select an appropriate **Instance Size**. We suggest m1.medium or larger.
Make sure your instance has at least **1GB** of RAM.
1. In the terminal inside the instance, configure Let's Encrypt (replace with a real email you control):
```bash
sudo tljh-config set https.enabled true
sudo tljh-config set https.letsencrypt.email [email protected]
sudo tljh-config add-item https.letsencrypt.domains yourinstancename.xxx0000000.projects.jetstream-cloud.org
sudo tljh-config reload proxy
```
2. Wait ~30–60 seconds, then reload the site using https://. If certificate issuance fails, check the logs:
```bash
sudo journalctl -u traefik --since "10 minutes ago" | grep -i acme
```

Check out our guide on How To [](/howto/admin/resource-estimation) to help pick
how much Memory, CPU & disk space your server needs.
Tips:

3. If you have multiple allocations, make sure you are 'charging' this server
to the correct allocation.
- Make sure ports 80 and 443 are open in your Jetstream security group (they are open by default for new projects; adjust only if you customized network policies).
- If you later attach a custom domain, add it with another `add-item` command and reload the proxy again.

6. Click the **Advanced Options** link in the bottom left of the popup. This
lets us configure what the server should do when it starts up. We will use
this to install The Littlest JupyterHub.
## Step 3: Customize your JupyterHub deployment

A dialog titled **Launch an Instance / Advanced Options** should pop up.
1. Now log in with the `<admin-user-name>` at https://yourinstancename.xxx000000.projects.jetstream-cloud.org. Since this is the first login, you'll be prompted to set a password. Choose a strong password and store it safely. This password is now the credential for that admin user.

```{image} ../images/providers/jetstream/add-deployment-script-dialog.png
:alt: Dialog box allowing you to add a new script.
```
Next common tasks:

7. Click the **Create New Script** button. This will open up another dialog
box!
- Add additional users or admins: [User management](/howto/admin/add-users)
- Install Python / conda packages for all users: [Customize user environment](/howto/user-env)
- Install optional system packages: `sudo apt install <package>` (restart user servers afterwards)
- Pre-install JupyterLab extensions: see [Enable extensions](/howto/admin/enable-extensions)
- Update TLJH itself: [Upgrading TLJH](/topic/installer-upgrade-actions)

```{image} ../images/providers/jetstream/create-script-dialog.png
:alt: Launch an Instance / Advanced Options dialog box
```
Browse the full How-To index for more: [/howto/index](/howto/index)

8. Under **Input Type**, select **Raw Text**. This should make a text box titled
**Raw Text** visible on the right side of the dialog box.
Copy the text below, and paste it into the **Raw Text** text box. Replace
`<admin-user-name>` with the name of the first **admin user** for this
JupyterHub. This admin user can log in after the JupyterHub is set up, and
can configure it to their needs. **Remember to add your username**!
## Ask for help

```bash
#!/bin/bash
curl -L https://tljh.jupyter.org/bootstrap.py \
| sudo python3 - \
--admin <admin-user-name>
```
Need a hand?

:::{note}
See [](/topic/installer-actions) if you want to understand exactly what the installer is doing.
[](/topic/customizing-installer) documents other options that can be passed to the installer.
:::
- For Jetstream2 specific questions (allocations, quotas, instance lifecycle, networking, etc.), use the Jetstream support resources: <https://docs.jetstream-cloud.org/overview/support/>
- For The Littlest JupyterHub usage, configuration, or upgrade questions, search or post in the Jupyter forum TLJH category: <https://discourse.jupyter.org/c/jupyterhub/tljh>
- If you believe you have found a TLJH bug or have a clear documentation improvement, open an issue (or pull request if you have a proposed fix) in the TLJH GitHub repository: <https://github.com/jupyterhub/the-littlest-jupyterhub>

9. Under **Execution Strategy Type**, select **Run script on first boot**.
When asking for help about TLJH, it is often useful to provide:

10. Under **Deployment Type**, select **Wait for script to complete**.
- A short description of what you were trying to do and what happened instead
- Relevant log excerpts (see [](/troubleshooting/logs))
- Your TLJH version (`sudo tljh-config show | grep version` if present in config) and the output of `lsb_release -a` for the OS
- Any custom installer flags or `tljh-config` changes you have applied

11. Click the **Save and Add Script** button on the bottom right. This should hide
the dialog box.
12. Click the **Continue to Launch** button on the bottom right. This should put you
back in the **Launch an Instance / Basic Options** dialog box again.
13. Click the **Launch Instance** button on the bottom right. This should turn it
into a spinner, and your server is getting created!
```{image} ../images/providers/jetstream/launching-spinner.png
:alt: Launch button turns into a spinner
```
14. You'll now be shown a dashboard with all your servers and their states. The
server you just launched will progress through various stages of set up,
and you can see the progress here.
```{image} ../images/providers/jetstream/deployment-in-progress.png
:alt: Instances dashboard showing deployment in progress.
```
15. It will take about ten minutes for your server to come up. The status will
say **Active** and the progress bar will be a solid green. At this point,
your JupyterHub is ready for use!
16. Copy the **IP Address** of your server, and try accessing it from a web
browser. It should give you a JupyterHub login page.
```{image} ../images/first-login.png
:alt: JupyterHub log-in page
```
17. Login using the **admin user name** you used in step 8, and a password. Use a
strong password & note it down somewhere, since this will be the password for
the admin user account from now on.
18. Congratulations, you have a running working JupyterHub!
## Step 2: Adding more users
```{include} add-users.md
```

## Step 3: Install conda / pip packages for all users

```{include} add-packages.md
```
This information helps others debug and answer more quickly.
2 changes: 0 additions & 2 deletions docs/topic/whentouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ container technology in administering user sessions.
The choice between TLJH and Z2JH ultimately comes down to only a few questions:

1. Do you want your hub and all users to live on a **single, larger machine** vs. spreading users on a **cluster of smaller machines** that are scaled up or down?

- If you can use a single machine, we recommend **The Littlest JupyterHub**.
- If you wish to use multiple machines, we recommend **Zero to JupyterHub for Kubernetes**.

2. Do you **need to use container technology**?

- If no, we recommend **The Littlest JupyterHub**.
- If yes, we recommend **Zero to JupyterHub for Kubernetes**.
1 change: 0 additions & 1 deletion docs/troubleshooting/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ easier. Here are some very basic tips on effective `journalctl` usage.
[less](<https://en.wikipedia.org/wiki/Less_(Unix)>). This allows you to
scroll up / down, search for specific words, etc. Some common keyboard shortcuts
are:

- Arrow keys to move up / down / left / right
- `G` to navigate to the end of the logs
- `g` to navigate to the start of the logs
Expand Down