[eba70158] | 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
|
---|
[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
|
---|
| 33 | of those interfaces based on the usermod(8), useradd(8) and
|
---|
| 34 | userdel(8) commands.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[acd88fc] | 37 | &lfs113_checked;
|
---|
[eba70158] | 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">
|
---|
[51eb0bf] | 77 | <!--<xref linkend="libgcrypt"/> and-->
|
---|
[eba70158] | 78 | <xref linkend="polkit"/>
|
---|
| 79 | </para>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 82 | <para role="recommended">
|
---|
[1996a17a] | 83 | <xref linkend="gobject-introspection"/>,
|
---|
[51dfb3e] | 84 | <phrase revision="sysv"><xref linkend="elogind"/></phrase>
|
---|
[0fab41a] | 85 | <phrase revision="systemd"><xref role='runtime' linkend="systemd"/>
|
---|
[1996a17a] | 86 | (runtime)</phrase>, and
|
---|
| 87 | <xref linkend="vala"/>
|
---|
[eba70158] | 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 91 | <para role="optional">
|
---|
[a20845e7] | 92 | <xref linkend="gtk-doc"/> and
|
---|
[eba70158] | 93 | <xref linkend="xmlto"/>
|
---|
[1996a17a] | 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Optional (for tests)</bridgehead>
|
---|
| 97 | <para role="optional">
|
---|
[e725e77] | 98 | <xref linkend="python-dbusmock"/> and
|
---|
| 99 | <xref linkend="pygobject3"/>
|
---|
[a20845e7] | 100 | <!-- I did not have gtk-doc installed this time, and it worked fine. -->
|
---|
[eba70158] | 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>
|
---|
[b751256] | 110 |
|
---|
| 111 | <para>
|
---|
[211a019] | 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
|
---|
[b751256] | 127 | is not installed:
|
---|
[34623f0e] | 128 | </para>
|
---|
| 129 |
|
---|
[b751256] | 130 | <screen><userinput>sed -i '/^SIMULATED_SYSTEM_LOCALE/s/en_IE.UTF-8/en_HK.iso88591/' tests/test-daemon.py</userinput></screen>
|
---|
| 131 |
|
---|
[eba70158] | 132 | <para>
|
---|
| 133 | Install <application>AccountsService</application> by running the following
|
---|
| 134 | commands:
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
[51dfb3e] | 137 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
[1575ce1] | 138 | cd build &&
|
---|
| 139 |
|
---|
[91318eb] | 140 | meson setup .. \
|
---|
| 141 | --prefix=/usr \
|
---|
| 142 | --buildtype=release \
|
---|
| 143 | -Dadmin_group=adm \
|
---|
| 144 | -Delogind=true \
|
---|
| 145 | -Dsystemdsystemunitdir=no &&
|
---|
[51dfb3e] | 146 | ninja</userinput></screen>
|
---|
| 147 |
|
---|
| 148 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
| 149 | cd build &&
|
---|
| 150 |
|
---|
[91318eb] | 151 | meson setup .. \
|
---|
| 152 | --prefix=/usr \
|
---|
[20f070d8] | 153 | --buildtype=release \
|
---|
[91318eb] | 154 | -Dadmin_group=adm &&
|
---|
[a20845e7] | 155 | ninja</userinput></screen>
|
---|
[eba70158] | 156 |
|
---|
| 157 | <para>
|
---|
[b751256] | 158 | To test the package, issue <command>ninja test</command>.
|
---|
[eba70158] | 159 | </para>
|
---|
| 160 |
|
---|
| 161 | <para>
|
---|
| 162 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 163 | </para>
|
---|
| 164 |
|
---|
[a20845e7] | 165 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[eba70158] | 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | <sect2 role="commands">
|
---|
| 170 | <title>Command Explanations</title>
|
---|
| 171 |
|
---|
[20f070d8] | 172 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 173 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 174 |
|
---|
[eba70158] | 175 | <para>
|
---|
[a20845e7] | 176 | <parameter>-Dadmin_group=adm</parameter>: This switch sets
|
---|
[eba70158] | 177 | the group for administrator accounts.
|
---|
| 178 | </para>
|
---|
| 179 |
|
---|
[9a363500] | 180 | <para>
|
---|
[a20845e7] | 181 | <option>-Ddocbook=true</option>: This switch enables building
|
---|
[1996a17a] | 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"/>.
|
---|
[9a363500] | 195 | </para>
|
---|
[20f070d8] | 196 |
|
---|
[eba70158] | 197 | </sect2>
|
---|
| 198 |
|
---|
| 199 | <sect2 role="configuration">
|
---|
| 200 | <title>Configuring AccountsService</title>
|
---|
| 201 |
|
---|
[4045ec3d] | 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 > /etc/polkit-1/rules.d/40-adm.rules << "EOF"
|
---|
| 209 | <literal>polkit.addAdminRule(function(action, subject) {
|
---|
| 210 | return ["unix-group:adm"];
|
---|
| 211 | });</literal>
|
---|
| 212 | EOF</userinput></screen>
|
---|
| 213 |
|
---|
[0c77adcb] | 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>
|
---|
[048aa04] | 218 | <!-- Automatically started by D-Bus when needed
|
---|
[51dfb3e] | 219 | <para revision="sysv">
|
---|
[eba70158] | 220 | To start the <command>accounts-daemon</command> daemon at boot,
|
---|
[51dfb3e] | 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>
|
---|
[048aa04] | 227 |
|
---|
| 228 | <screen role="root" revision="sysv"><userinput>make install-accounts-daemon</userinput></screen>
|
---|
[0c77adcb] | 229 | -->
|
---|
[048aa04] | 230 | <para>
|
---|
[51dfb3e] | 231 | To start the <command>accounts-daemon</command> daemon at boot,
|
---|
[4e207bb] | 232 | enable the previously installed systemd unit
|
---|
[51dfb3e] | 233 | by running the following command as the
|
---|
[eba70158] | 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 |
|
---|
[048aa04] | 241 | <screen role="root"><userinput>systemctl enable accounts-daemon</userinput></screen>
|
---|
[eba70158] | 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>
|
---|
[048aa04] | 257 | accounts-daemon (in
|
---|
| 258 | <filename class="directory">/usr/libexec</filename>)
|
---|
[eba70158] | 259 | </seg>
|
---|
| 260 | <seg>
|
---|
| 261 | libaccountsservice.so
|
---|
| 262 | </seg>
|
---|
| 263 | <seg>
|
---|
| 264 | /usr/include/accountsservice-1.0,
|
---|
[048aa04] | 265 | /usr/share/accountsservice,
|
---|
| 266 | /usr/share/gtk-doc/html/libaccountsservice (optional), and
|
---|
[eba70158] | 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>
|
---|
[4c24eb0a] | 281 | is the <application>AccountsService</application> daemon
|
---|
[eba70158] | 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>
|
---|
[4c24eb0a] | 293 | contains the <application>AccountsService</application> API functions
|
---|
[eba70158] | 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>
|
---|