source: general/sysutils/accountsservice.xml@ 5867c6d

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 5867c6d was 211a019, checked in by Pierre Labastie <pierre.labastie@…>, 14 months ago

Fix detection of dbusmock in accountsservice

https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/112

  • Property mode set to 100644
File size: 9.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 "03dccfe1b306b7ca19743e86d118e64d">
11 <!ENTITY accountsservice-size "621 KB">
12 <!ENTITY accountsservice-buildsize "9.8 MB (add 0.5 MB for tests)">
13 <!ENTITY accountsservice-time "less than 0.1 SBU (with tests)">
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"/>,
84 <phrase revision="sysv"><xref linkend="elogind"/></phrase>
85 <phrase revision="systemd"><xref role='runtime' linkend="systemd"/>
86 (runtime)</phrase>, and
87 <xref linkend="vala"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="gtk-doc"/> and
93 <xref linkend="xmlto"/>
94 </para>
95
96 <bridgehead renderas="sect4">Optional (for tests)</bridgehead>
97 <para role="optional">
98 <xref linkend="python-dbusmock"/> and
99 <xref linkend="pygobject3"/>
100 <!-- I did not have gtk-doc installed this time, and it worked fine. -->
101 </para>
102
103 <para condition="html" role="usernotes">User Notes:
104 <ulink url="&blfs-wiki;/accountsservice"/>
105 </para>
106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of AccountsService</title>
110
111 <para>
112 First, rename a directory whose presence prevents the build system from
113 running if <xref linkend="python-dbusmock"/> is not installed:
114 </para>
115
116<screen><userinput>mv tests/dbusmock{,-tests}</userinput></screen>
117
118 <para>
119 Then fix the tests so that the new directory is found:
120 </para>
121
122<screen><userinput>sed -e '/accounts_service\.py/s/dbusmock/dbusmock-tests/' \
123 -i tests/test-libaccountsservice.py</userinput></screen>
124
125 <para>
126 Fix one test that fails if the <option>en_IE.UTF-8</option> locale
127 is not installed:
128 </para>
129
130<screen><userinput>sed -i '/^SIMULATED_SYSTEM_LOCALE/s/en_IE.UTF-8/en_HK.iso88591/' tests/test-daemon.py</userinput></screen>
131
132 <para>
133 Install <application>AccountsService</application> by running the following
134 commands:
135 </para>
136
137<screen revision="sysv"><userinput>mkdir build &amp;&amp;
138cd build &amp;&amp;
139
140meson setup .. \
141 --prefix=/usr \
142 --buildtype=release \
143 -Dadmin_group=adm \
144 -Delogind=true \
145 -Dsystemdsystemunitdir=no &amp;&amp;
146ninja</userinput></screen>
147
148<screen revision="systemd"><userinput>mkdir build &amp;&amp;
149cd build &amp;&amp;
150
151meson setup .. \
152 --prefix=/usr \
153 --buildtype=release \
154 -Dadmin_group=adm &amp;&amp;
155ninja</userinput></screen>
156
157 <para>
158 To test the package, issue <command>ninja test</command>.
159 </para>
160
161 <para>
162 Now, as the <systemitem class="username">root</systemitem> user:
163 </para>
164
165<screen role="root"><userinput>ninja install</userinput></screen>
166
167 </sect2>
168
169 <sect2 role="commands">
170 <title>Command Explanations</title>
171
172 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
173 href="../../xincludes/meson-buildtype-release.xml"/>
174
175 <para>
176 <parameter>-Dadmin_group=adm</parameter>: This switch sets
177 the group for administrator accounts.
178 </para>
179
180 <para>
181 <option>-Ddocbook=true</option>: This switch enables building
182 the D-Bus interface API documentation (needs <xref linkend="xmlto"/>).
183 </para>
184
185 <para>
186 <option>-Dgtk_doc=true</option>: This switch enables building
187 the libaccountsservice API documentation (needs
188 <xref linkend="gtk-doc"/>).
189 </para>
190
191 <para>
192 <option>-Dvapi=false</option>: This switch disables building
193 the vala bindings. Use it if you have not installed
194 <xref linkend="vala"/>.
195 </para>
196
197 </sect2>
198
199 <sect2 role="configuration">
200 <title>Configuring AccountsService</title>
201
202 <para>
203 To allow users in the adm group to be listed as Administrators,
204 execute the following commands as the
205 <systemitem class="username">root</systemitem> user:
206 </para>
207
208<screen role="root"><userinput>cat &gt; /etc/polkit-1/rules.d/40-adm.rules &lt;&lt; "EOF"
209<literal>polkit.addAdminRule(function(action, subject) {
210 return ["unix-group:adm"];
211 });</literal>
212EOF</userinput></screen>
213
214 <sect3 id="accountsservice-init" revision="systemd">
215<!-- <title><phrase revision="sysv">Boot Script</phrase>
216 <phrase revision="systemd">Systemd Units</phrase></title> -->
217 <title>Systemd Unit</title>
218<!-- Automatically started by D-Bus when needed
219 <para revision="sysv">
220 To start the <command>accounts-daemon</command> daemon at boot,
221 install the
222 <filename>/etc/rc.d/init.d/accounts-daemon</filename> init script from
223 the <xref linkend="bootscripts"/> package
224 by running the following command as the
225 <systemitem class="username">root</systemitem> user:
226 </para>
227
228<screen role="root" revision="sysv"><userinput>make install-accounts-daemon</userinput></screen>
229-->
230 <para>
231 To start the <command>accounts-daemon</command> daemon at boot,
232 enable the previously installed systemd unit
233 by running the following command as the
234 <systemitem class="username">root</systemitem> user:
235 </para>
236
237 <indexterm zone="accountsservice accountsservice-init">
238 <primary sortas="f-accounts-daemon">accounts-daemon</primary>
239 </indexterm>
240
241<screen role="root"><userinput>systemctl enable accounts-daemon</userinput></screen>
242
243 </sect3>
244
245 </sect2>
246
247 <sect2 role="content">
248 <title>Contents</title>
249
250 <segmentedlist>
251 <segtitle>Installed Programs</segtitle>
252 <segtitle>Installed Libraries</segtitle>
253 <segtitle>Installed Directories</segtitle>
254
255 <seglistitem>
256 <seg>
257 accounts-daemon (in
258 <filename class="directory">/usr/libexec</filename>)
259 </seg>
260 <seg>
261 libaccountsservice.so
262 </seg>
263 <seg>
264 /usr/include/accountsservice-1.0,
265 /usr/share/accountsservice,
266 /usr/share/gtk-doc/html/libaccountsservice (optional), and
267 /var/lib/AccountsService
268 </seg>
269 </seglistitem>
270 </segmentedlist>
271
272 <variablelist>
273 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
274 <?dbfo list-presentation="list"?>
275 <?dbhtml list-presentation="table"?>
276
277 <varlistentry id="accounts-daemon">
278 <term><command>accounts-daemon</command></term>
279 <listitem>
280 <para>
281 is the <application>AccountsService</application> daemon
282 </para>
283 <indexterm zone="accountsservice accounts-daemon">
284 <primary sortas="b-accounts-daemon">accounts-daemon</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="libaccountsservice">
290 <term><filename class="libraryfile">libaccountsservice.so</filename></term>
291 <listitem>
292 <para>
293 contains the <application>AccountsService</application> API functions
294 </para>
295 <indexterm zone="accountsservice libaccountsservice">
296 <primary sortas="c-libaccountsservice">libaccountsservice.so</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 </variablelist>
302
303 </sect2>
304
305</sect1>
Note: See TracBrowser for help on using the repository browser.