Archive:Baldur

Jump to: navigation, search

openSUSE Baldur

{{Warning|On 27th May, openSUSE MicroOS Desktop was renamed to openSUSE Aeon (Gnome Desktop) and to openSUSE Kalpa (Plasma Desktop). And with openSUSE Baldur (Xfce Desktop Request) we were hoping another Desktop Environment was to be added but the request was rejected

openSUSE Baldur provides only a minimal base system with a XFCE Desktop Environment and Basic Configuration Tools ONLY. All Applications, Browsers, Codecs, etc are provided by FlatPaks from FlatHub.
Icon-warning.png

openSUSE Baldur is still under development, please keep that in mind!


Who is openSUSE Baldur for?

It is NOT for everyone. Your highly customisable Tumbleweed & Leap Desktops are safe and will remain the best choice for those who want to tinker with their Desktop.

It should be perfect for lazy developers, who no longer want to mess around with their desktop and just ”get stuff done”, especially if they develop around containers.

It should also appeal to the same audience now more used to an iOS, Chromebook or Android-like experience where the OS is static, automated & reliable and the Apps are the main thing the user cares about.

To deep dive on the origins and the case why some users should use openSUSE Baldur check out the following workshop:

https://youtu.be/V-0yngWXbU4?feature=shared
https://www.youtube.com/live/PPYOM3z_DIc?feature=shared


Design Goals

Baldur should be reliable, predictable & immutable, just like openSUSE MicroOS.

Baldur should be less customisable than regular openSUSE Tumbleweed/Leap.

Baldur should be small, but not at the expense of functionality. Printing, Gaming, Media Production and much more should all work.

Baldur should just work “out of the box” without the need for additional configuration to get key functionality like software installation and web browsing working. All features offered by default should work - features that don't work shouldn't be offered/visible/available to users.


How to Download and Install

Since openSUSE Baldur is still in development and is not in the official installation medium of openSUSE MicroOS, the installation is still a bit complicated!

Because some Linux knowledge is required in terms of using the command line in order to be able to run the installation script after the basic installation of openSUSE MicroOS.

For this reason, please watch the above two videos!

You can find the installation script as well as other files and instructions here:

https://github.com/cryinkfly/openSUSE-Baldur

This would be the command after the basic installation of openSUSE MicroOS to get the XFCE desktop:

curl https://raw.githubusercontent.com/cryinkfly/openSUSE-Baldur/main/files/builds/stable-branch/bin/install.sh > install.sh && chmod +x install.sh && ./install.sh
Notice: The installation script also automatically installs the graphics card drivers!

Ways to Install Applications in Order of Preference

Now that you have installed Baldur, you probably want to install software.

Because it provides only a minimal base system with a Desktop Environment, it is designed to come with only basic configuration tools by default.

For this reason, All Applications, Browsers, Codecs needed for specific apps, etc are provided by FlatPaks from FlatHub.

To make this process even easier for users, the Flathub repository of all available flatpaks have been integrated with Gnome Software. This way, you can simply search and find all your favorite apps in a seamless and integrated way.

While there are other ways to install software, it is important to remember that it is STRONGLY recommended to install software in the following order of preference:

  1. Flatpaks from your software center of choice or Flathub
  2. RPM's in a user distrobox distrobox-enter
  3. RPM's in a root distrobox distrobox-enter -r
  4. RPM's via transactional-update -- for drivers, kernel modules, strictly what you need for your host operating system to work.

To reiterate: EVERYTHING should be done via Flatpaks or be installed in a Distrobox if a package is not available as a flatpak. Using transactional-update is strictly what you need for your host operating system to work (exotic drivers, specialized vpn services).

Note: Distrobox is shipped by default w/ Aeon. It allows users to install any linux distribution inside your terminal. For those who want to run GUI apps via a Distrobox can do so with a special export command so that apps feel more native and integrated with the system. Check out the [Distrobox section] to learn more about this convenient way to launch distrobox based apps from your host menu launcher.

An Introduction to transactional-update

openSUSE Baldur does not use zypper like openSUSE Tumbleweed or openSUSE Leap to install RPM packages and use them directly. openSUSE Baldur uses transactional-update with zypper under the hood.

Most of the time, you should not need to use any of these commands interactively, as Aeon has automatic system updates via the transactional-update.service systemd service.

transactional-update - Example Commands

Commands for transactional-update are listed below. NOTE: Remember to reboot after the command is finished to see the changes!

  • sudo transactional-update pkg install package_name install a rpm package
  • sudo transactional-update pkg remove package_name remove an rpm package
  • sudo transactional-update dup perform a system upgrade to the next release
  • sudo transactional-update shell open a shell of the next snapshot (you can use zypper commands there). This should only be used for debugging purposes. Any bug report that can only be reproduced by using transactional-update shell is almost certain to be closed as WONTFIX.
  • sudo transactional-update rollback snapshot_number roll the system back to the numbered snapshot. Use 'last' instead of the snapshot number to roll back to the last working snapshot. Do not use snapper for rollbacks.

transactional-update - Automatic Update

By default transactional-update.timer handles automated system updates. This is set to daily which means that the task will be executed each day at 00:00:00.

In the event this might be at a time when the computer is off, as the timer is set to persistance=true, then the update will then take place the first chance it can.

Some of the reasons why it may not be able to trigger an update could be:

  • the computer was off
  • the internet connection was disturbed - at time it is scheduled to.

This should not cause issues due to the way transactional-update works since the new packages are installed on a new snapshot for which to take effect you must reboot.

To track if transactional-update is able to upgrade, and run correctly you can use journalctl:

 $ sudo journalctl -u transactional-update.service 

You can also use journalctl with the -f flag to tail the logs in real time.

transactional-update - --Final Words About Snapshots and Boot Behavior

By default, each transactional-update command produces a seperate, self-contained, snapshot that includes the changes requested by the transactional-update command.

This snapshot is BASED ON THE LAST KNOWN GOOD/BOOTED SNAPSHOT. The last of the snapshots produced by multiple transactional-update commands then takes effect when rebooting.

In other words sudo transactional-update pkg install $pkg1 followed by sudo transactional-update pkg install $pkg2 and then rebooting results in a system that has $pkg2 installed, but NOT $pkg1.

This is the expected, and sensible default behaviour - Baldur always wants to move from the last known good/booted snapshot to it's new state in the smallest, least disruptive way possible.

This is especially sensible when you think the default/expected behaviour is that Baldur updates itself automatically and most users should not be using transactional-update interactively at all. With transactional-update dup happening regularly in the background automatically, Baldur wants to make sure it's updating only to the latest clean system update state, not some weird hybrid of previous unbooted, unchecked, intermediate transactional-update dup that never got booted.

However, when ignoring this best practice and using transactional-update interactively, there may be times where you wish to run transactional-update against an existing unbooted, unknown-if-good snapshot.

For this use transactional-update --continue

Example:

sudo transactional-update pkg install $pkg1 followed by sudo transactional-update --continue pkg install $pkg2 will install $pkg1, then $pkg2 in the same snapshot that included $pkg1, marking that combined snapshot as the next boot target.

If problems occur however, there is no additional complexity figuring out whether it was $pkg1 or $pkg2 that broke anything, as users will need to rollback to the snapshot before $pkg1 was installed to return to the last known good state.


GNOME Software + Flathub Integration

XFCE is currently is still under development!

  • GNOME Software is used as the software center so that the user can easily install and manage additional applications under XFCE.
  • At first boot flatpaks are enabled and some flatpaks are installed by default (Mozilla Firefox, Text Editor, Gnome Calculator and ...).
  • After the first boot script finishes you can open Gnome Software to install more software from flathub.

DistroBox

Distrobox can be used like toolbox (which is included on the server version of MicroOS by default), but has some other advantages for desktop usage. Please refer to https://github.com/89luca89/distrobox for all options.

For more documentation, see the Distrobox Page


Troubleshooting

This section describes known issues on openSUSE Baldur and their solutions.

Set hostname

Set your hostname with the following command, as currently it doesn't work from Gnome Settings yet:

  # sudo hostnamectl set-hostname <new name>

Reboot and hostname change will take effect.

Adjust transactional-update.timer

Depending on your daily use case, the Timer may not trigger the automatic update process successfully even with persistent=true because it adds a randomized delay at each boot with RandomizedDelaySec

If you want automatic daily updates to your system, you may find that you need to adjust that delay mentioned.

Edit transactional-update.timer:

  # sudo systemctl edit transactional-update.timer

Add the following lines to create a override.conf (located in /etc/systemd/system/transactional-update.timer.d/override.conf)

   [Timer]
   RandomizedDelaySec=10m

The example above is for a randomized delay of max. 10 minutes. (Default value is 2h)

Change the time to your use case.

Steam Proton, Bottles, WINE, Lutris, Android Studio emulator not working from flatpaks

If you run into issues using WINE, and WINE based programs in flatpaks, it is likely due to an SELinux issue, and can be checked by running:

  # sudo getsebool selinuxuser_execmod

For Android Studio:

  # sudo getsebool selinuxuser_execstack

If that returns 'selinuxuser_execmod --> disabled' and 'selinuxuser_execstack --> disabled' you will need to enable it. This can be done temporarily (resets on next boot)

For WINE:

  # sudo setsebool selinuxuser_execmod 1

For Android Studio:

  # sudo setsebool selinuxuser_execstack 1

Or can be set Persistent:

  # sudo setsebool -P selinuxuser_execmod 1
  # sudo setsebool -P selinuxuser_execstack 1

The openSUSE Security team is reviewing these default policies, and you are enabling this at your own risk. See https://bugzilla.opensuse.org/show_bug.cgi?id=1206292 & https://bugzilla.opensuse.org/show_bug.cgi?id=1206789 for further information.


Reporting Bugs

Please use the following link for reporting bugs: Report a bug for openSUSE Baldur

Please see Submitting Bug Reports for more information on how best to file a bug

Place for questions

As openSUSE Aeon has various places discuss the project

Still in Progress!

All these channels are bridged together via Matrix, so sending your comments in one, will be seen in the other two.