source: general/sysutils/accountsservice.xml@ 9c47f0f

12.0 12.1 12.2 gimp3 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128 xry111/xf86-video-removal
Last change on this file since 9c47f0f was e725e77, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Fix accountsservice deps again

dbus-python is a dependency of dbusmock, so no need to mention it
here

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