Skip to content

Commit

Permalink
Update tutorial with more details
Browse files Browse the repository at this point in the history
  • Loading branch information
yasminvalim committed Apr 4, 2024
1 parent 9d7f91e commit b5f4d80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/ROOT/pages/tutorial-containers.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= Setting up SSH access and starting containers at boot

NOTE: Make sure that you have completed the steps described in the xref:tutorial-setup.adoc[initial setup page] before starting this tutorial.
NOTE: Complete all the steps described in the xref:tutorial-setup.adoc[initial setup page] before starting this tutorial. Make sure you have create file ssh-key.pub following the instructions provided in the https://docs.fedoraproject.org/en-US/fedora-coreos/tutorial-setup/#_ssh_public_key[prerequisites] for the tutorial. We will use this key in the Butane configuration file that we are about to write.
In this tutorial, we will set up SSH access and start a container at boot. Fedora CoreOS is focused on running applications/services in containers thus we recommend trying to run containers and avoid modifying the host directly. Running containers and keeping a pristine host layer makes automatic updates more reliable and allows for separation of concerns with the Fedora CoreOS team responsible for the OS and end-user operators/sysadmins responsible for the applications.
Expand Down
3 changes: 1 addition & 2 deletions modules/ROOT/pages/tutorial-user-systemd-unit-on-boot.adoc
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
= Launching a user-level systemd unit on boot

NOTE: Make sure that you have completed the steps described in the xref:tutorial-setup.adoc[initial setup page] before starting this tutorial.
NOTE: Complete all the steps described in the xref:tutorial-setup.adoc[initial setup page] before starting this tutorial. Make sure you have create file ssh-key.pub following the instructions provided in the https://docs.fedoraproject.org/en-US/fedora-coreos/tutorial-setup/#_ssh_public_key[prerequisites] for the tutorial. We will use this key in the Butane configuration file that we are about to write.
In this tutorial, we will set up a user level systemd unit for an unprivileged user. There are times when it's helpful to launch a user-level https://www.freedesktop.org/software/systemd/man/systemd.unit.html[systemd unit] without having to log in. For example, you may wish to launch a container that provides a network service or run an HPC job. For this setup, we will add the following to a Butane config:
* A user level systemd unit: `/home/sleeper/.config/systemd/user/linger-example.service`.
* Enable it as a user level systemd service.
== Setting up the systemd unit

In this example, we will launch a systemd service for the user `sleeper`. First, let's create a user:
[source,yaml,subs="attributes"]
Expand Down

0 comments on commit b5f4d80

Please sign in to comment.