Greetd: Difference between revisions

From Alpine Linux
(suggest D-Bus session)
(may need to add greetd to the seat group)
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
{{cmd|# apk add {{pkg|greetd}} <greeter>}}
{{cmd|# apk add {{pkg|greetd}} <greeter>}}


You need to [[#Configuration|configure]] greetd before  
You need to [[#Configuration|configure]] greetd before you can start it.


Enable and start greetd:
Enable and start greetd:
{{cmd|# rc-update add greetd}}
{{cmd|<nowiki># rc-update add greetd
{{cmd|# rc-service greetd start}}
# rc-service greetd start</nowiki>}}


== Configuration ==
== Configuration ==


Some graphical greeters (like gtkgreet) require <code>seatd</code> or [[elogind]]. Add <code>rc_need=seatd</code> or <code>rc_need=elogind</code> to {{path|/etc/conf.d/greetd}}.
Some graphical greeters (like gtkgreet) require <code>seatd</code> or [[elogind]]. Add <code>rc_need=seatd</code> or <code>rc_need=elogind</code> to {{path|/etc/conf.d/greetd}}.
When you use <code>seatd</code> with a graphical greeter it needs the <code>seatd</code> group:
{{cmd|# adduser greetd seat}}


For text based greeters you want to make sure that <code>vt</code> is set to <code>7</code> in {{path|/etc/greetd/config.toml}}. (This will be the default in alpine 3.20)
For text based greeters you want to make sure that <code>vt</code> is set to <code>7</code> in {{path|/etc/greetd/config.toml}}. (This will be the default in alpine 3.20)

Latest revision as of 14:42, 29 February 2024


greetd is a minimal and flexible login manager daemon that makes no assumptions about what you want to launch.

This article focuses on alpine specific instructions. It is recommended to read the greetd wiki first.

Installation

greetd needs to be combined with a greeter. You can find a list of available greeters here: greetd-*. Install the main package and the greeter you selected:

# apk add greetd <greeter>

You need to configure greetd before you can start it.

Enable and start greetd:

# rc-update add greetd # rc-service greetd start

Configuration

Some graphical greeters (like gtkgreet) require seatd or elogind. Add rc_need=seatd or rc_need=elogind to /etc/conf.d/greetd. When you use seatd with a graphical greeter it needs the seatd group:

# adduser greetd seat

For text based greeters you want to make sure that vt is set to 7 in /etc/greetd/config.toml. (This will be the default in alpine 3.20)

You might want to start a D-Bus session when the greetd session is started.

See Also