Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 2.79 KB

microOSDesktop.md

File metadata and controls

56 lines (46 loc) · 2.79 KB

MicroOS as a desktop PC

Out of the box, MicroOS is designed as a foundation for single-purpose server/appliance usage.
Some tweaks needed to better suit more standard desktop-PC usage.

Why not use Tumbleweed or Aeon?

Aeon was the goal (rolling-release AND immutable OS), but on my older hardware it forces "fallback FDE mode" which requires a passphrase on each boot, which is NOT okay for a family-friendly-living-room PC.
A slightly customized MicroOS is the easy next-best choice.

Restart & Shutdown

The profile for polkit privilege is set to restrictive (the most secure option), which requires authentication for reboot & power-off (among other small-worry items).
This profile is not ideal for casual or community desktop usage.

Solution:

Change the active polkit profile to standard

/etc/sysconfig/security
--------------------
POLKIT_DEFAULT_PRIVS="standard"

Then run:

sudo set_polkit_default_privs

Info:

There exist three profile types for setting polkit default privileges. The selection of the profile is performed via the setting POLKIT_DEFAULT_PRIVS in /etc/sysconfig/security. The following profile types exist:

•restrictive: conservative settings that require the root user password for a lot of actions and disable certain actions completely for remote users. This should only be used on systems where security requirements are high and for experienced users. Usability can suffer a bit, especially on desktop systems, so custom tuning of polkit rules might become necessary.

•standard: balanced settings that restrict sensitive actions to require root authentication but allow less dangerous operations for regular logged in users. This should be used on server systems or multi-user systems.

•easy: settings that are focused on ease of use. This sacrifices security to some degree to allow a more seamless user experience without interruptions in the workflow due to password prompts. This should only be used for single-user desktop systems.

•local: this is a custom profile that can be used on top of the predefined profiles. Configuration items from this profile always take precedence and thus override the predefined profiles. Therefore this profile can be customized to loosen or tighten certain polkit actions.

Ref

https://manpages.opensuse.org/Tumbleweed/polkit-default-privs.5.en.html#PROFILE_TYPES

User-controls

Are not integrated into Gnome-settings of MicroOS.
Specifically, I wanted to be able to apply auto-login to a specific user.

Solution 1: install the GUI

# install gnome-settings 'users' menu
sudo transactional-update pkg install gnome-control-center-users

Solution 2: just do the thing

/etc/syscofig/displaymanager
-------------
DISPLAYMANAGER_AUTOLOGIN="cyril" # or whomever