Ignore:
Timestamp:
08/25/2014 04:58:52 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.6-blfs, 7.6-systemd, kde5-14269, kde5-14686, systemd-13485
Children:
c09d94a
Parents:
ae007bae
Message:

More checks, fixes and tweaks.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14069 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/other/gparted-systemd.xml

    rae007bae r91d83ab4  
    3636    </para>
    3737
    38     &lfs75_checked;
     38    &lfs76_checked;
    3939
    4040    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    144144      <xref linkend="xfsprogs"/>,
    145145      <ulink url="https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories">
    146         btrfs-progs</ulink>,
     146      btrfs-progs</ulink>,
    147147      <ulink url="http://www.daniel-baumann.ch/software/dosfstools/">dosfstools</ulink>,
    148148      <ulink url="http://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
     
    156156    <para>
    157157      Root privileges are required to run Gparted. If you wish to run the
    158       application from the menu, further applications and configurations are
    159       necessary. Examples of applications that may be used:
    160       <ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>,
    161       <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
    162       <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
    163       Other solution is to use <application>pkexec</application>, from
    164       <xref linkend="polkit"/>, but some configuration is necessary.
    165       Another simple solution is <xref linkend="ssh-askpass"/>. Below, we
    166       describe these two alternatives: "ssh-askpass" and "pkexec".
     158      application from the menu, further packages and configuration are
     159      necessary. One solution is to use <command>pkexec</command>
     160      from <xref linkend="polkit"/>. Another solution is to use <xref
     161      linkend="ssh-askpass"/>.
    167162    </para>
    168163
     
    170165      <title>ssh-askpass</title>
    171166        <para>
    172           To optionally use <xref linkend="ssh-askpass"/> if it is installed in
    173           your system, run the following commands as the
    174           <systemitem class="username">root</systemitem> user:
    175         </para>
    176 
    177 <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &amp;&amp;
    178 sed -i 's/Exec=/Exec=sudo -A /'               /usr/share/applications/gparted.desktop      &amp;&amp;</userinput></screen>
    179 
    180         <para>
    181          Now, clicking in the menu item for Gparted, a dialog appears in the
    182          screen, asking for the administrator password.</para>
     167          To optionally use <xref linkend="ssh-askpass"/>, run the following
     168          commands as the <systemitem class="username">root</systemitem> user:
     169        </para>
     170
     171<screen role="root"><userinput>cp -v  /usr/share/applications/gparted.desktop \
     172       /usr/share/applications/gparted.desktop.back &amp;&amp;
     173
     174sed -i 's/Exec=/Exec=sudo -A /'
     175       /usr/share/applications/gparted.desktop      &amp;&amp;</userinput></screen>
    183176
    184177    </sect3>
     
    186179    <sect3 role="pkexec">
    187180      <title>pkexec</title>
    188         <para>
    189           To optionally use <application>pkexec</application>, you need
    190           <xref linkend="polkit-gnome"/> or <xref linkend="lxpolkit"/>, and
    191           <xref linkend="systemd"/> installed with support to
    192           <xref linkend="linux-pam"/> and <xref linkend="polkit"/>. As the
    193           <systemitem class="username">root</systemitem> user, configure
    194           <xref linkend="gparted"/> and <xref linkend="polkit"/> with the
    195           following commands:
    196         </para>
    197 
    198 <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
    199                                      /usr/share/applications/gparted.desktop.back &amp;&amp;
     181
     182        <para>
     183          To optionally use <command>pkexec</command>, you need
     184          <xref linkend="polkit-gnome"/> or <xref linkend="lxpolkit"/> or
     185          any Polkit authentication agent provided by your desktop
     186          environment and  <xref linkend="systemd"/> (for Logind). Run the
     187          following commands as the <systemitem
     188          class="username">root</systemitem> user:
     189        </para>
     190
     191<screen role="root"><userinput>cp -v  /usr/share/applications/gparted.desktop \
     192       /usr/share/applications/gparted.desktop.back &amp;&amp;
     193
    200194sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
    201                                      /usr/share/applications/gparted.desktop      &amp;&amp;
     195       /usr/share/applications/gparted.desktop      &amp;&amp;
    202196
    203197cat &gt; /usr/sbin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
    204 <literal>#!/bin/bash
     198<literal>#!/bin/sh
    205199
    206200pkexec /usr/sbin/gparted $@</literal>
    207201EOF
    208 chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
    209 
    210         <para>
    211           Still as the <systemitem class="username">root</systemitem> user,
    212           configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
    213           use <application>pkexec</application>:
    214         </para>
    215 
    216 <screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
     202chmod -v 755 /usr/sbin/gparted_polkit
     203
     204cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
    217205<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    218206&lt;!DOCTYPE policyconfig PUBLIC
     
    235223&lt;/policyconfig&gt;</literal>
    236224EOF
    237 chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
    238 
    239         <para>
    240          Now, clicking in the menu item for Gparted, a dialog appears in the
    241          screen, asking for the administrator password.</para>
     225chmod -v 644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
    242226
    243227    </sect3>
Note: See TracChangeset for help on using the changeset viewer.