source: general/sysutils/accountsservice.xml@ ba6b00b

12.1 ken/TL2024 lazarus trunk xry111/llvm18
Last change on this file since ba6b00b was 1241ea19, checked in by Bruce Dubbs <bdubbs@…>, 5 months ago

Tag xfce and dependencies

  • Property mode set to 100644
File size: 8.3 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[eba70158]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
[8dfc5c3]8 "https://www.freedesktop.org/software/accountsservice/accountsservice-&accountsservice-version;.tar.xz">
[eba70158]9 <!ENTITY accountsservice-download-ftp " ">
[b751256]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)">
[eba70158]14]>
15
[51dfb3e]16<sect1 id="accountsservice" xreflabel="AccountsService-&accountsservice-version;">
[eba70158]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
[23b54336]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.
[eba70158]37 </para>
38
[1241ea19]39 &lfs121_checked;
[eba70158]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">
[51eb0bf]79 <!--<xref linkend="libgcrypt"/> and-->
[eba70158]80 <xref linkend="polkit"/>
81 </para>
82
83 <bridgehead renderas="sect4">Recommended</bridgehead>
84 <para role="recommended">
[1996a17a]85 <xref linkend="gobject-introspection"/>,
[51dfb3e]86 <phrase revision="sysv"><xref linkend="elogind"/></phrase>
[0fab41a]87 <phrase revision="systemd"><xref role='runtime' linkend="systemd"/>
[1996a17a]88 (runtime)</phrase>, and
89 <xref linkend="vala"/>
[eba70158]90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
[a20845e7]94 <xref linkend="gtk-doc"/> and
[eba70158]95 <xref linkend="xmlto"/>
[1996a17a]96 </para>
97
98 <bridgehead renderas="sect4">Optional (for tests)</bridgehead>
99 <para role="optional">
[e725e77]100 <xref linkend="python-dbusmock"/> and
101 <xref linkend="pygobject3"/>
[a20845e7]102 <!-- I did not have gtk-doc installed this time, and it worked fine. -->
[eba70158]103 </para>
104
105 </sect2>
106
107 <sect2 role="installation">
108 <title>Installation of AccountsService</title>
[b751256]109
110 <para>
[211a019]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>
[b6c43e5]118 Then fix a test script so that the new directory is found, and adapt
119 it for Python 3.12.0 or later:
[211a019]120 </para>
121
122<screen><userinput>sed -e '/accounts_service\.py/s/dbusmock/dbusmock-tests/' \
[b6c43e5]123 -e 's/assertEquals/assertEqual/' \
[34d1c20]124 -i tests/test-libaccountsservice.py</userinput></screen>
[211a019]125
126 <para>
127 Fix one test that fails if the <option>en_IE.UTF-8</option> locale
[b751256]128 is not installed:
[34623f0e]129 </para>
130
[b751256]131<screen><userinput>sed -i '/^SIMULATED_SYSTEM_LOCALE/s/en_IE.UTF-8/en_HK.iso88591/' tests/test-daemon.py</userinput></screen>
132
[eba70158]133 <para>
134 Install <application>AccountsService</application> by running the following
135 commands:
136 </para>
137
[51dfb3e]138<screen revision="sysv"><userinput>mkdir build &amp;&amp;
[c89c282]139cd build &amp;&amp;
[1575ce1]140
[91318eb]141meson setup .. \
142 --prefix=/usr \
143 --buildtype=release \
144 -Dadmin_group=adm \
145 -Delogind=true \
146 -Dsystemdsystemunitdir=no &amp;&amp;
[51dfb3e]147ninja</userinput></screen>
148
149<screen revision="systemd"><userinput>mkdir build &amp;&amp;
[c89c282]150cd build &amp;&amp;
[51dfb3e]151
[91318eb]152meson setup .. \
153 --prefix=/usr \
[20f070d8]154 --buildtype=release \
[91318eb]155 -Dadmin_group=adm &amp;&amp;
[a20845e7]156ninja</userinput></screen>
[eba70158]157
158 <para>
[b751256]159 To test the package, issue <command>ninja test</command>.
[eba70158]160 </para>
161
162 <para>
163 Now, as the <systemitem class="username">root</systemitem> user:
164 </para>
165
[a20845e7]166<screen role="root"><userinput>ninja install</userinput></screen>
[eba70158]167
168 </sect2>
169
170 <sect2 role="commands">
171 <title>Command Explanations</title>
172
[20f070d8]173 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
174 href="../../xincludes/meson-buildtype-release.xml"/>
175
[eba70158]176 <para>
[a20845e7]177 <parameter>-Dadmin_group=adm</parameter>: This switch sets
[eba70158]178 the group for administrator accounts.
179 </para>
180
[9a363500]181 <para>
[a20845e7]182 <option>-Ddocbook=true</option>: This switch enables building
[1996a17a]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"/>.
[9a363500]196 </para>
[20f070d8]197
[eba70158]198 </sect2>
199
200 <sect2 role="configuration">
201 <title>Configuring AccountsService</title>
202
[4045ec3d]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
[eba70158]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>
[048aa04]227 accounts-daemon (in
228 <filename class="directory">/usr/libexec</filename>)
[eba70158]229 </seg>
230 <seg>
231 libaccountsservice.so
232 </seg>
233 <seg>
234 /usr/include/accountsservice-1.0,
[048aa04]235 /usr/share/accountsservice,
236 /usr/share/gtk-doc/html/libaccountsservice (optional), and
[eba70158]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>
[4c24eb0a]251 is the <application>AccountsService</application> daemon
[eba70158]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>
[4c24eb0a]263 contains the <application>AccountsService</application> API functions
[eba70158]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.