Changeset 1754613 for xsoft/other/gparted-systemd.xml
- Timestamp:
- 10/29/2014 08:36:30 PM (10 years ago)
- Branches:
- krejzi/svn
- Children:
- 1937ed6a
- Parents:
- dae6eff
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
xsoft/other/gparted-systemd.xml
rdae6eff r1754613 10 10 <!ENTITY gparted-md5sum "d9df57f9d4b4dbd148644774f8bbccfb"> 11 11 <!ENTITY gparted-size "2.1 MB"> 12 <!ENTITY gparted-buildsize " 78 MB (additional 4 MB, building the optional documentation)">13 <!ENTITY gparted-time " 0.9 SBU (additional 0.1 SBU, building the optional documentation)">12 <!ENTITY gparted-buildsize "80 MB"> 13 <!ENTITY gparted-time "1.0 SBU"> 14 14 ]> 15 15 … … 144 144 <xref linkend="xfsprogs"/>, 145 145 <ulink url="https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories"> 146 146 btrfs-progs</ulink>, 147 147 <ulink url="http://www.daniel-baumann.ch/software/dosfstools/">dosfstools</ulink>, 148 148 <ulink url="http://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required … … 156 156 <para> 157 157 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"/>. 167 162 </para> 168 163 … … 170 165 <title>ssh-askpass</title> 171 166 <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 && 178 sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop &&</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 && 173 174 sed -i 's/Exec=/Exec=sudo -A /' 175 /usr/share/applications/gparted.desktop &&</userinput></screen> 183 176 184 177 </sect3> … … 186 179 <sect3 role="pkexec"> 187 180 <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 && 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 && 193 200 194 sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \ 201 195 /usr/share/applications/gparted.desktop && 202 196 203 197 cat > /usr/sbin/gparted_polkit << "EOF" && 204 <literal>#!/bin/ bash198 <literal>#!/bin/sh 205 199 206 200 pkexec /usr/sbin/gparted $@</literal> 207 201 EOF 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 > /usr/share/polkit-1/actions/org.gnome.gparted.policy << "EOF" 202 chmod -v 755 /usr/sbin/gparted_polkit 203 204 cat > /usr/share/polkit-1/actions/org.gnome.gparted.policy << "EOF" 217 205 <literal><?xml version="1.0" encoding="UTF-8"?> 218 206 <!DOCTYPE policyconfig PUBLIC … … 235 223 </policyconfig></literal> 236 224 EOF 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> 225 chmod -v 644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen> 242 226 243 227 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.