source: general/sysutils/accountsservice.xml@ 0fab41a

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 0fab41a was 0fab41a, checked in by Xi Ruoyao <xry111@…>, 15 months ago

accountsservice: Make systemd dependency runtime

  • Property mode set to 100644
File size: 8.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY accountsservice-download-http
8 "https://www.freedesktop.org/software/accountsservice/accountsservice-&accountsservice-version;.tar.xz">
9 <!ENTITY accountsservice-download-ftp " ">
10 <!ENTITY accountsservice-md5sum "6dae0b50b48abe61296c8ecf90068c1f">
11 <!ENTITY accountsservice-size "100 KB">
12 <!ENTITY accountsservice-buildsize "7.3 MB">
13 <!ENTITY accountsservice-time "less than 0.1 SBU">
14]>
15
16<sect1 id="accountsservice" xreflabel="AccountsService-&accountsservice-version;">
17 <?dbhtml filename="accountsservice.html"?>
18
19
20 <title>AccountsService-&accountsservice-version;</title>
21
22 <indexterm zone="accountsservice">
23 <primary sortas="a-AccountsService">AccountsService</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to AccountsService</title>
28
29 <para>
30 The <application>AccountsService</application> package provides a
31 set of <application>D-Bus</application> interfaces for querying
32 and manipulating user account information and an implementation
33 of those interfaces based on the usermod(8), useradd(8) and
34 userdel(8) commands.
35 </para>
36
37 &lfs113_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&accountsservice-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&accountsservice-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &accountsservice-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &accountsservice-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &accountsservice-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &accountsservice-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">AccountsService Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
77 <!--<xref linkend="libgcrypt"/> and-->
78 <xref linkend="polkit"/>
79 </para>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
83 <xref linkend="gobject-introspection"/> and
84 <phrase revision="sysv"><xref linkend="elogind"/></phrase>
85 <phrase revision="systemd"><xref role='runtime' linkend="systemd"/>
86 (runtime)</phrase>
87 </para>
88
89 <bridgehead renderas="sect4">Optional</bridgehead>
90 <para role="optional">
91 <xref linkend="gtk-doc"/> and
92 <xref linkend="xmlto"/>
93 <!-- I did not have gtk-doc installed this time, and it worked fine. -->
94 </para>
95
96 <para condition="html" role="usernotes">User Notes:
97 <ulink url="&blfs-wiki;/accountsservice"/>
98 </para>
99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of AccountsService</title>
103<!-- fixed in 22.08.8
104 <para revision="systemd">
105 First, fix an issue in the systemd unit that causes runtime issues:
106 <!-\- causes errors when trying to change the user's icon in g-c-c -\->
107 </para>
108
109<screen revision="systemd"><userinput remap="pre">sed -i '/PrivateTmp/d' data/accounts-daemon.service.in</userinput></screen>
110-->
111 <para>
112 Install <application>AccountsService</application> by running the following
113 commands:
114 </para>
115
116<screen revision="sysv"><userinput>mkdir build &amp;&amp;
117cd build &amp;&amp;
118
119meson setup .. \
120 --prefix=/usr \
121 --buildtype=release \
122 -Dadmin_group=adm \
123 -Delogind=true \
124 -Dsystemdsystemunitdir=no &amp;&amp;
125ninja</userinput></screen>
126
127<screen revision="systemd"><userinput>mkdir build &amp;&amp;
128cd build &amp;&amp;
129
130meson setup .. \
131 --prefix=/usr \
132 --buildtype=release \
133 -Dadmin_group=adm &amp;&amp;
134ninja</userinput></screen>
135
136 <para>
137 This package does not come with a test suite.
138 </para>
139
140 <para>
141 Now, as the <systemitem class="username">root</systemitem> user:
142 </para>
143
144<screen role="root"><userinput>ninja install</userinput></screen>
145
146 </sect2>
147
148 <sect2 role="commands">
149 <title>Command Explanations</title>
150
151 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
152 href="../../xincludes/meson-buildtype-release.xml"/>
153
154 <para>
155 <parameter>-Dadmin_group=adm</parameter>: This switch sets
156 the group for administrator accounts.
157 </para>
158
159 <para>
160 <option>-Ddocbook=true</option>: This switch enables building
161 the D-Bus interface API documentation.
162 </para>
163
164 </sect2>
165
166 <sect2 role="configuration">
167 <title>Configuring AccountsService</title>
168
169 <para>
170 To allow users in the adm group to be listed as Administrators,
171 execute the following commands as the
172 <systemitem class="username">root</systemitem> user:
173 </para>
174
175<screen role="root"><userinput>cat &gt; /etc/polkit-1/rules.d/40-adm.rules &lt;&lt; "EOF"
176<literal>polkit.addAdminRule(function(action, subject) {
177 return ["unix-group:adm"];
178 });</literal>
179EOF</userinput></screen>
180
181 <sect3 id="accountsservice-init" revision="systemd">
182<!-- <title><phrase revision="sysv">Boot Script</phrase>
183 <phrase revision="systemd">Systemd Units</phrase></title> -->
184 <title>Systemd Unit</title>
185<!-- Automatically started by D-Bus when needed
186 <para revision="sysv">
187 To start the <command>accounts-daemon</command> daemon at boot,
188 install the
189 <filename>/etc/rc.d/init.d/accounts-daemon</filename> init script from
190 the <xref linkend="bootscripts"/> package
191 by running the following command as the
192 <systemitem class="username">root</systemitem> user:
193 </para>
194
195<screen role="root" revision="sysv"><userinput>make install-accounts-daemon</userinput></screen>
196-->
197 <para>
198 To start the <command>accounts-daemon</command> daemon at boot,
199 enable the previously installed systemd unit
200 by running the following command as the
201 <systemitem class="username">root</systemitem> user:
202 </para>
203
204 <indexterm zone="accountsservice accountsservice-init">
205 <primary sortas="f-accounts-daemon">accounts-daemon</primary>
206 </indexterm>
207
208<screen role="root"><userinput>systemctl enable accounts-daemon</userinput></screen>
209
210 </sect3>
211
212 </sect2>
213
214 <sect2 role="content">
215 <title>Contents</title>
216
217 <segmentedlist>
218 <segtitle>Installed Programs</segtitle>
219 <segtitle>Installed Libraries</segtitle>
220 <segtitle>Installed Directories</segtitle>
221
222 <seglistitem>
223 <seg>
224 accounts-daemon (in
225 <filename class="directory">/usr/libexec</filename>)
226 </seg>
227 <seg>
228 libaccountsservice.so
229 </seg>
230 <seg>
231 /usr/include/accountsservice-1.0,
232 /usr/share/accountsservice,
233 /usr/share/gtk-doc/html/libaccountsservice (optional), and
234 /var/lib/AccountsService
235 </seg>
236 </seglistitem>
237 </segmentedlist>
238
239 <variablelist>
240 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
241 <?dbfo list-presentation="list"?>
242 <?dbhtml list-presentation="table"?>
243
244 <varlistentry id="accounts-daemon">
245 <term><command>accounts-daemon</command></term>
246 <listitem>
247 <para>
248 is the <application>AccountsService</application> daemon
249 </para>
250 <indexterm zone="accountsservice accounts-daemon">
251 <primary sortas="b-accounts-daemon">accounts-daemon</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="libaccountsservice">
257 <term><filename class="libraryfile">libaccountsservice.so</filename></term>
258 <listitem>
259 <para>
260 contains the <application>AccountsService</application> API functions
261 </para>
262 <indexterm zone="accountsservice libaccountsservice">
263 <primary sortas="c-libaccountsservice">libaccountsservice.so</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 </variablelist>
269
270 </sect2>
271
272</sect1>
Note: See TracBrowser for help on using the repository browser.