source: xsoft/other/gparted-systemd.xml@ ac38e9dc

systemd-13485
Last change on this file since ac38e9dc was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

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

  • Property mode set to 100644
File size: 9.1 KB
Line 
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 gparted-download-http
8 "&sourceforge-repo;/gparted/gparted-&gparted-version;.tar.bz2">
9 <!ENTITY gparted-download-ftp " ">
10 <!ENTITY gparted-md5sum "67c4bdf680461e1107b718aff6095ea6">
11 <!ENTITY gparted-size "2.1 MB">
12 <!ENTITY gparted-buildsize "94 MB">
13 <!ENTITY gparted-time "0.9 SBU">
14]>
15
16<sect1 id="gparted" xreflabel="Gparted-&gparted-version;">
17 <?dbhtml filename="gparted.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Gparted-&gparted-version;</title>
25
26 <indexterm zone="gparted">
27 <primary sortas="a-Gparted">Gparted</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Gparted</title>
32
33 <para>
34 Gparted is the Gnome Partition Editor, a Gtk 2 GUI for other command line
35 tools that can create, reorganise or delete disk partitions.
36 </para>
37
38 &lfs77_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&gparted-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&gparted-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &gparted-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &gparted-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &gparted-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &gparted-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="gtkmm2"/> and
79 <xref linkend="parted"/>
80 </para>
81
82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
84 <ulink url="&gnome-download-http;/gnome-doc-utils/">
85 GNOME Doc Utils</ulink> and
86 <xref linkend="rarian"/>
87 </para>
88
89 <para condition="html" role="usernotes">
90 User Notes: <ulink url="&blfs-wiki;/gparted"/>
91 </para>
92 </sect2>
93
94 <sect2 role="installation">
95 <title>Installation of Gparted</title>
96
97 <para>
98 Install <application>Gparted</application> by running the following
99 commands:
100 </para>
101
102<screen><userinput>./configure --prefix=/usr \
103 --disable-doc \
104 --disable-static &amp;&amp;
105make</userinput></screen>
106
107 <para>
108 This package does not come with a testsuite.
109 </para>
110
111 <para>
112 Now, as the <systemitem class="username">root</systemitem> user:
113 </para>
114
115<screen role="root"><userinput>make install</userinput></screen>
116
117 </sect2>
118
119 <sect2 role="commands">
120 <title>Command Explanations</title>
121
122 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
123 href="../../xincludes/static-libraries.xml"/>
124
125 <para>
126 <option>--disable-doc</option>: This switch disables building of
127 the optional documentation. Remove it if you have installed
128 <application>GNOME Doc Utils</application>.
129 </para>
130
131 </sect2>
132
133 <sect2 role="using">
134 <title>Using Gparted</title>
135
136 <para>
137 To manipulate file systems Gparted has a run time dependency on various
138 file system tools (you only need to install the tools for file systems you
139 actually use):
140 e2fsprogs (installed as part of LFS),
141 <xref linkend="jfsutils"/>,
142 <xref linkend="ntfs-3g"/>,
143 <xref linkend="reiserfs"/>,
144 <xref linkend="xfsprogs"/>,
145 <ulink url="https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories">
146 btrfs-progs</ulink>,
147 <ulink url="http://www.daniel-baumann.ch/software/dosfstools/">dosfstools</ulink>,
148 <ulink url="http://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
149 to read and write FAT16/32 volume labels and UUIDs),
150 <ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
151 hfsprogs,
152 <ulink url="http://www.nilfs.org/download/">nilfs-utils</ulink> and
153 reiser4progs.
154 </para>
155
156 <para>
157 Root privileges are required to run Gparted. If you wish to run the
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"/>.
162 </para>
163
164 <sect3 role="ssh-askpass">
165 <title>ssh-askpass</title>
166 <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</userinput></screen>
176
177 </sect3>
178
179 <sect3 role="pkexec">
180 <title>pkexec</title>
181
182 <para>
183 To optionally use <command>pkexec</command>, you need
184 <xref linkend="polkit-gnome"/> or any Polkit authentication agent
185 provided by your desktop environment and
186 <xref linkend="systemd"/>. Run the following commands
187 as the <systemitem class="username">root</systemitem> user:
188 </para>
189
190<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
191 /usr/share/applications/gparted.desktop.back &amp;&amp;
192
193sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
194 /usr/share/applications/gparted.desktop &amp;&amp;
195
196cat &gt; /usr/sbin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
197<literal>#!/bin/sh
198
199pkexec /usr/sbin/gparted $@</literal>
200EOF
201
202chmod -v 755 /usr/sbin/gparted_polkit
203
204cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
205<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
206&lt;!DOCTYPE policyconfig PUBLIC
207 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
208 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"&gt;
209&lt;policyconfig&gt;
210
211 &lt;action id="org.freedesktop.policykit.pkexec.run-gparted"&gt;
212 &lt;description&gt;Run GParted&lt;/description&gt;
213 &lt;message&gt;Authentication is required to run GParted&lt;/message&gt;
214 &lt;defaults&gt;
215 &lt;allow_any&gt;no&lt;/allow_any&gt;
216 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
217 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
218 &lt;/defaults&gt;
219 &lt;annotate key="org.freedesktop.policykit.exec.path"&gt;/usr/sbin/gparted&lt;/annotate&gt;
220 &lt;annotate key="org.freedesktop.policykit.exec.allow_gui"&gt;true&lt;/annotate&gt;
221 &lt;/action&gt;
222
223&lt;/policyconfig&gt;</literal>
224EOF
225
226chmod -v 644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
227
228 </sect3>
229
230 </sect2>
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Programs</segtitle>
237 <segtitle>Installed Libraries</segtitle>
238 <segtitle>Installed Directories</segtitle>
239
240 <seglistitem>
241 <seg>
242 gparted, gpartedbin and gparted_polkit (optional)
243 </seg>
244 <seg>
245 None
246 </seg>
247 <seg>
248 /usr/share/gnome/help/gparted and
249 /usr/share/omf/gparted
250 </seg>
251 </seglistitem>
252 </segmentedlist>
253
254 <variablelist>
255 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
256 <?dbfo list-presentation="list"?>
257 <?dbhtml list-presentation="table"?>
258
259 <varlistentry id="gparted-prog">
260 <term><command>gparted</command></term>
261 <listitem>
262 <para>
263 is a shell script which sets up the environment before calling
264 <command>gpartedbin</command>.
265 </para>
266 <indexterm zone="gparted gparted-prog">
267 <primary sortas="b-gparted">gparted</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="gpartedbin">
273 <term><command>gpartedbin</command></term>
274 <listitem>
275 <para>
276 is the Gparted binary.
277 </para>
278 <indexterm zone="gparted gpartedbin">
279 <primary sortas="b-gpartedbin">gpartedbin</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="gparted_polkit">
285 <term><command>gparted_polkit</command></term>
286 <listitem>
287 <para>
288 is an optional script which can be used to run gparted with polkit,
289 from a menu.
290 </para>
291 <indexterm zone="gparted gparted_polkit">
292 <primary sortas="b-gparted_polkit">gparted_polkit</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 </variablelist>
298
299 </sect2>
300
301</sect1>
Note: See TracBrowser for help on using the repository browser.