Skip to content

Latest commit

 

History

History
277 lines (180 loc) · 17.5 KB

README.md

File metadata and controls

277 lines (180 loc) · 17.5 KB

Screenshot of Sodalite

Sodalite

Sodalite is an immutable desktop OS built with rpm-ostree and on-top of Fedora — similar to Fedora Silverblue — making use of the Pantheon desktop, sticking closely to the ethos and workflow perpetrated by elementary.


Hmm, it's been X days since the last commit; is this still active?

Yes.

Despite a very active commit history, Sodalite is fairly self-sustaining these days — mostly thanks to the awesome people at Fyra Labs — and thus the repository will go months without any activity. This does not mean the project is abandoned, especially since its developer uses it as their main OS. Regardless of repository activity, updates are built twice every week from the repository: logs are available at Actions.

Psst! We're on Telegram too. While you're free to use Discussions, the majority of the discussion relating to this project will happen over on Telegram.


🎉 Installing

As rpm-ostree is an ever-evolving technology, and ISO installs are currently a low priority, ISOs are currently not available. An existing rpm-ostree-based OS, such as Fedora Silverblue, is required: this OS will be used to "rebase" to Sodalite.

  1. Install an rpm-ostree-based version of Fedora, such as Fedora Silverblue, or use an already-existing install
  2. Fire up a terminal and issue these commands:
    • sudo ostree remote add --if-not-exists sodalite https://ostree.sodalite.rocks --no-gpg-verify
    • sudo ostree pull sodalite:sodalite/current/x86_64/desktop*
    • sudo rpm-ostree rebase sodalite:sodalite/current/x86_64/desktop
  3. Stick the kettle on and make yourself a cuppa. It'll take a while
  4. Reboot when prompted. Use it, enjoy it, make something cool with it, (try to) break it — submit a ticket if you do!

* There are multiple branches available; see Branches.

Branches

Several branches (or images) of Sodalite co-exist and are developed side-by-side; these are distinguished by their ref — like any other rpm-ostree distro — where sodalite/<version>/<arch>/<edition>:

Current

<version> <arch> <edition> Release Base Status
current x86_64 desktop 6 Kutai  Fedora 39 Update: sodalite/current/x86_64/desktop

Long

<version> <arch> <edition> Release Base Status
long-6 x86_64 desktop 6 Kutai (Long) Fedora 39 Update: sodalite/long-6/x86_64/desktop

Unlike Current (current), these branches do not update to the current major release: updates will stop the same day as the base Fedora version. Only use these if necessary (i.e. problematic drivers requiring certain versions, critical systems, etc.)

Next

<version> <arch> <edition> Release Base Status
next x86_64 desktop 6 Kutai (Next)  Fedora 39 Update: sodalite/next/x86_64/desktop
next x86_64 desktop-gnome 7.0rc3 GNOME (Next)  Fedora 40 Update: sodalite/next/x86_64/desktop-gnome

Early versions of upcoming releases. Unstable. Here be dragons. Abandon all hope. You know the drill.

This may sometimes be at the same version as Current (current), but be aware you'll be bumped to an upcoming release without warning if/when released to this branch.

Versioning

(Todo)

🔄 Updating

Performing a system update can be done by either:

  • Running sudo rpm-ostree upgrade in a shell
  • Opening Software, selecting Updates from the headerbar, and pressing Update All
    • As Software runs in the background and periodically checks for updates, you may also receive a notification of a new update; clicking on this opens the appropriate page
    • An update for the OS may take a while to appear in Software (which will appear as "Operating System Updates"), so the above method is preferred

Reboot after either method has finished. You can verify the version installed by opening System Settings and navigating to System ➔ Operating System: the version proceeds the word "Sodalite"

If something breaks, you can rollback by running sudo rpm-ostree rollback at a terminal. Remember to also create a new issue if appropriate!

Update Schedule

Updates are built on the build server commencing 4:00 GMT/±0 (22:00 CST/-6) every Wednesday and Saturday.

"Long-term" Branches

If you chose to use a "long-term" branch (see Branches above), you will need to rebase whenever the Sodalite version reaches end-of-life. This can be done with sudo rpm-ostree rebase sodalite:sodalite/<version>/<arch>/<edition>, where <version> is the version you're wanting to rebase to and other values are your current values.

It's vital you carry out this process as updates stop the day the base version reaches end-of-life (at the same time as the base Fedora Linux version) and you will be left without updates to vital system components.


🏗️ Building

1. Prerequisites

Software

Containerized (with --container/-c)

Running in a container is the preferred way of building Sodalite

  • Linux
  • Podman
    • To use Docker instead, pass --ex-use-docker. Running in Docker is entirely untested and experimental!
  • Bash
  • Git LFS
    • As well as including pretty wallpapers, the LFS also includes vital binaries that Sodalite needs to work properly, so don't miss installing this!
    • Unsure if you have LFS support? Tpe git lfs: a help output prints if installed
OS-level

If you don't have Podman, or are having issues with running in a container, you can try running on the host itself

  • Fedora Linux (or other Fedora-based/compatible distros)
  • rpm-ostree
    • On most Fedora-based distros, this can be installed with dnf install rpm-ostree
  • Bash
  • Git LFS
    • As well as including pretty wallpapers, the LFS also includes vital binaries that Sodalite needs to work properly, so don't miss installing this!
    • Unsure if you have LFS support? Tpe git lfs: a help output prints if installed

Environment

  • Permission to sudo
    • Do not run sudo ./build.sh: the script will ask for permission when it needs it
    • Whether or not you run containerized, you must have access to sudo
  • >10GiB disk space
    • The repository itself (including submodules) takes up ~300MiB
    • Initial builds will take up ~4GiB, with subsequent builds adding to this
  • Unlimited Internet
    • The build process caches a lot of Fedora packages (around 2.5GiB), so think carefully about doing this on mobile broadband or any other service that imposes a small data allowance on you
  • An rpm-ostree-based distro, such as such as Fedora Silverblue — on either a virtual machine, another physical machine, or your current install (careful!) — to test builds on
  • A cuppa (optional) — this can take a while

2. Getting

git clone https://github.com/sodaliterocks/sodalite.git
cd sodalite
git submodule sync
git submodule update --init --recursive

Future Pulls

When updating in the future, don't forget to update submodules with:

git submodule update --recursive

Do not use git submodule foreach git pull: this blindly updates all submodules to their latest version, not the commit this parent repo has checked out. This is important for some submodules that are checked out at specific tags/commits (such as ./lib/sodaliterocks.firefox).

The ./lib/workstation-ostree-config_f* submodules — serving as a basis for Sodalite for its various different Fedora-based versions — are removed every so often so make sure you delete them accordingly. For example, when Fedora 36 reaches EoL, ./lib/workstation-ostree-config_f36 will be removed shortly afterwards. You can use git clean -i to do the work for you.

LFS

An LFS submodule is located at ./lfs. It's important to note this is not hosted on GitHub, but Zio Git — a server we control — as GitHub's LFS allowances are tight (only 1GiB bandwidth and storage).

Any issues regarding the LFS should be submitted to sodaliterocks/sodalite on GitHub. Currently, as Zio Git does not allow for arbitrary sign-ups, PRs cannot be directly submitted.

Usage of GitHub

Unless the world collectively favours GitLab, or anything else, Sodalite will stay on GitHub as it makes everyone's lives easier. Microsoft is just another company; they're not going to hurt you.

3. Building

./build.sh [-t <edition>] [-w <working-dir>]

See build.sh --help for more options.

This will usually take 10-15 minutes. Remember when I told you to grab a cuppa? Or maybe a cold one?

Arguments
  • <edition> (optional) Edition/variant of Sodalite (defaults to custom)
    • This is any of the sodalite-<edition>.yaml files listed in ./src/treefiles/. Either use sodalite-<edition> or just <edition> as the argument. Currently, there is:
      • desktop: Standard Pantheon desktop
      • desktop-gnome: Alternate GNOME desktop, intended for possible future versions
      • custom: See below point
    • sodalite-custom.yaml is a good place to employ your own changes instead of modifying any of the other treefiles
  • <working-dir> (optional) Directory for build output (defaults to ./build)

Additional Notes

Building in a Container

If you have Podman, you can build Sodalite entirely in a container: just use -c/--container. This is in fact how builds are done on the release server! However, this will add an extra few minutes for the build to complete as the Fedora container needs to install packages first.

NTFS/FAT partitions

Build failures are inevitable on drives formatted as NTFS, FAT, or anything other filesystems that do not support Unix-like permissions, as build.sh sets permissions on various objects.

WSL2

On WSL2, do not build to any /mnt/<drive-letter> directories as these will be formatted as NTFS or FAT. Instead, run the build somewhere else on the Linux distro itself (like $HOME or /usr/local/src).

Not using build.sh

Most rpm-ostree distros can be built just be simply doing rpm-ostree compose, but build.sh provided with Sodalite does some extra steps which are required for the post-build script (which will fail without these being ran). It is therefore not recommended to do it this way: any issues building the distro this way will be closed and marked as invalid.

Cleaning Up

Build contents is located at ./build/ (or whatever you set <working-dir> to), which can be deleted to start afresh. Specifically this holds the following files/directories (of which can be individually deleted instead):

  • ./build/repo/ — OSTree repository for Sodalite
  • ./build/cache/ — Cache for Fedora packages

Unless stopped manually, build.sh will clean itself up whenever it exits (on both success and failure). It will correct permissions (to your user) for the ./build/ directory, as well as removing the following files/directories:

  • ./src/sysroot/common/usr/lib/sodalite-buildinfo
  • /var/tmp/rpm-ostree.*/
    • This can get large quickly; watch out if you're not letting build.sh exit

4. Using

(todo)


🤝 Acknowledgements

Individuals

Past Individuals

These fine folks' work is no longer included in, or relevant to, Sodalite, but they're still worth a shout-out!

Teams & Organizations

  • elementary, for building lovely stuff
  • Fyra Labs, for maintaining Terra
    • Due to various packaging issues with Pantheon on Fedora's official repos (see #44), Sodalite was almost doomed after f36+ reached EoL. However, Terra maintains builds of Pantheon and effectively keeps the lights on here!
  • The contributors to workstation-ostree-config, for a solid ground to work from

Miscellaneous

👀 See Also

Related


🇬🇧 🇩🇪