source: general/sysutils/accountsservice.xml

trunk
Last change on this file was c0bc0a9, checked in by Xi Ruoyao <xry111@…>, 7 weeks ago

Update to glib-2.80.0 and gobject-introspection-1.80.0

Merge gobject-introspection into glib page to better handle a circular
dependency between these two packages.

  • Property mode set to 100644
File size: 8.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
34 <ulink role='man' url='&man;usermod.8'>usermod(8)</ulink>,
35 <ulink role='man' url='&man;useradd.8'>useradd(8)</ulink>, and
36 <ulink role='man' url='&man;userdel.8'>userdel(8)</ulink> commands.
37 </para>
38
39 &lfs121_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&accountsservice-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&accountsservice-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &accountsservice-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &accountsservice-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &accountsservice-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &accountsservice-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">AccountsService Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <!--<xref linkend="libgcrypt"/> and-->
80 <xref linkend="polkit"/>
81 </para>
82
83 <bridgehead renderas="sect4">Recommended</bridgehead>
84 <para role="recommended">
85 &gobject-introspection;,
86 <phrase revision="sysv"><xref linkend="elogind"/></phrase>
87 <phrase revision="systemd"><xref role='runtime' linkend="systemd"/>
88 (runtime)</phrase>, and
89 <xref linkend="vala"/>
90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
94 <xref linkend="gtk-doc"/> and
95 <xref linkend="xmlto"/>
96 </para>
97
98 <bridgehead renderas="sect4">Optional (for tests)</bridgehead>
99 <para role="optional">
100 <xref linkend="python-dbusmock"/> and
101 <xref linkend="pygobject3"/>
102 <!-- I did not have gtk-doc installed this time, and it worked fine. -->
103 </para>
104
105 </sect2>
106
107 <sect2 role="installation">
108 <title>Installation of AccountsService</title>
109
110 <para>
111 First, rename a directory whose presence prevents the build system from
112 running if <xref linkend="python-dbusmock"/> is not installed:
113 </para>
114
115<screen><userinput>mv tests/dbusmock{,-tests}</userinput></screen>
116
117 <para>
118 Then fix a test script so that the new directory is found, and adapt
119 it for Python 3.12.0 or later:
120 </para>
121
122<screen><userinput>sed -e '/accounts_service\.py/s/dbusmock/dbusmock-tests/' \
123 -e 's/assertEquals/assertEqual/' \
124 -i tests/test-libaccountsservice.py</userinput></screen>
125
126 <para>
127 Fix one test that fails if the <option>en_IE.UTF-8</option> locale
128 is not installed:
129 </para>
130
131<screen><userinput>sed -i '/^SIMULATED_SYSTEM_LOCALE/s/en_IE.UTF-8/en_HK.iso88591/' tests/test-daemon.py</userinput></screen>
132
133 <para>
134 Install <application>AccountsService</application> by running the following
135 commands:
136 </para>
137
138<screen revision="sysv"><userinput>mkdir build &amp;&amp;
139cd build &amp;&amp;
140
141meson setup .. \
142 --prefix=/usr \
143 --buildtype=release \
144 -Dadmin_group=adm \
145 -Delogind=true \
146 -Dsystemdsystemunitdir=no &amp;&amp;
147ninja</userinput></screen>
148
149<screen revision="systemd"><userinput>mkdir build &amp;&amp;
150cd build &amp;&amp;
151
152meson setup .. \
153 --prefix=/usr \
154 --buildtype=release \
155 -Dadmin_group=adm &amp;&amp;
156ninja</userinput></screen>
157
158 <para>
159 To test the package, issue <command>ninja test</command>.
160 </para>
161
162 <para>
163 Now, as the <systemitem class="username">root</systemitem> user:
164 </para>
165
166<screen role="root"><userinput>ninja install</userinput></screen>
167
168 </sect2>
169
170 <sect2 role="commands">
171 <title>Command Explanations</title>
172
173 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
174 href="../../xincludes/meson-buildtype-release.xml"/>
175
176 <para>
177 <parameter>-Dadmin_group=adm</parameter>: This switch sets
178 the group for administrator accounts.
179 </para>
180
181 <para>
182 <option>-Ddocbook=true</option>: This switch enables building
183 the D-Bus interface API documentation (needs <xref linkend="xmlto"/>).
184 </para>
185
186 <para>
187 <option>-Dgtk_doc=true</option>: This switch enables building
188 the libaccountsservice API documentation (needs
189 <xref linkend="gtk-doc"/>).
190 </para>
191
192 <para>
193 <option>-Dvapi=false</option>: This switch disables building
194 the vala bindings. Use it if you have not installed
195 <xref linkend="vala"/>.
196 </para>
197
198 </sect2>
199
200 <sect2 role="configuration">
201 <title>Configuring AccountsService</title>
202
203 <para>
204 To allow users in the adm group to be listed as Administrators,
205 execute the following commands as the
206 <systemitem class="username">root</systemitem> user:
207 </para>
208
209<screen role="root"><userinput>cat &gt; /etc/polkit-1/rules.d/40-adm.rules &lt;&lt; "EOF"
210<literal>polkit.addAdminRule(function(action, subject) {
211 return ["unix-group:adm"];
212 });</literal>
213EOF</userinput></screen>
214
215 </sect2>
216
217 <sect2 role="content">
218 <title>Contents</title>
219
220 <segmentedlist>
221 <segtitle>Installed Programs</segtitle>
222 <segtitle>Installed Libraries</segtitle>
223 <segtitle>Installed Directories</segtitle>
224
225 <seglistitem>
226 <seg>
227 accounts-daemon (in
228 <filename class="directory">/usr/libexec</filename>)
229 </seg>
230 <seg>
231 libaccountsservice.so
232 </seg>
233 <seg>
234 /usr/include/accountsservice-1.0,
235 /usr/share/accountsservice,
236 /usr/share/gtk-doc/html/libaccountsservice (optional), and
237 /var/lib/AccountsService
238 </seg>
239 </seglistitem>
240 </segmentedlist>
241
242 <variablelist>
243 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
244 <?dbfo list-presentation="list"?>
245 <?dbhtml list-presentation="table"?>
246
247 <varlistentry id="accounts-daemon">
248 <term><command>accounts-daemon</command></term>
249 <listitem>
250 <para>
251 is the <application>AccountsService</application> daemon
252 </para>
253 <indexterm zone="accountsservice accounts-daemon">
254 <primary sortas="b-accounts-daemon">accounts-daemon</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="libaccountsservice">
260 <term><filename class="libraryfile">libaccountsservice.so</filename></term>
261 <listitem>
262 <para>
263 contains the <application>AccountsService</application> API functions
264 </para>
265 <indexterm zone="accountsservice libaccountsservice">
266 <primary sortas="c-libaccountsservice">libaccountsservice.so</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 </variablelist>
272
273 </sect2>
274
275</sect1>
Note: See TracBrowser for help on using the repository browser.