source: xsoft/other/gparted.xml@ a3c5e951

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a3c5e951 was a3c5e951, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to gparted 0.29.0.
Update to pango 1.40.8.
Update to webkitgtk-2.16.6.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18999 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.6 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.gz">
9 <!ENTITY gparted-download-ftp " ">
10 <!ENTITY gparted-md5sum "e29cb2061da59c6a279d9d294cf2a343">
11 <!ENTITY gparted-size "3.6 MB">
12 <!ENTITY gparted-buildsize "69 MB">
13 <!ENTITY gparted-time "1.1 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 &lfs80_checked;
39 &gcc7_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&gparted-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&gparted-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &gparted-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &gparted-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &gparted-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &gparted-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <xref linkend="gtkmm2"/> and
80 <xref linkend="parted"/>
81 </para>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="btrfs-progs"/> (if using a btrfs filesystem),
86 <xref linkend="rarian"/>,
87 <ulink url="&gnome-download-http;/gnome-doc-utils/">GNOME Doc Utils</ulink>, and
88 <ulink url="https://github.com/pali/udftools">udftools</ulink>
89 </para>
90
91 <para condition="html" role="usernotes">
92 User Notes: <ulink url="&blfs-wiki;/gparted"/>
93 </para>
94 </sect2>
95
96 <sect2 role="installation">
97 <title>Installation of Gparted</title>
98
99 <para>
100 Install <application>Gparted</application> by running the following
101 commands:
102 </para>
103
104<screen><userinput>./configure --prefix=/usr \
105 --disable-doc \
106 --disable-static &amp;&amp;
107make</userinput></screen>
108
109 <para>
110 This package does not come with a testsuite.
111 </para>
112
113 <para>
114 Now, as the <systemitem class="username">root</systemitem> user:
115 </para>
116
117<screen role="root"><userinput>make install</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
125 href="../../xincludes/static-libraries.xml"/>
126
127 <para>
128 <parameter>--disable-doc</parameter>: This switch disables building of
129 the optional documentation. Remove it if you have installed
130 <application>GNOME Doc Utils</application>.
131 </para>
132
133 </sect2>
134
135 <sect2 role="using">
136 <title>Using Gparted</title>
137
138 <para>
139 To manipulate file systems Gparted has a run time dependency on various
140 file system tools (you only need to install the tools for file systems you
141 actually use):
142 <xref linkend="hdparm"/>
143 (required for optionally displaying serial number device information),
144 e2fsprogs (installed as part of LFS),
145 <xref linkend="jfsutils"/>,
146 <xref linkend="ntfs-3g"/>,
147 <xref linkend="reiserfs"/>,
148 <xref linkend="xfsprogs"/>,
149 <ulink url="https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories">
150 btrfs-progs</ulink>,
151 <ulink url="https://github.com/dosfstools/dosfstools/">dosfstools</ulink>,
152 <ulink url="http://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
153 to read and write FAT16/32 volume labels and UUIDs),
154 <ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
155 <ulink url="https://packages.debian.org/sid/hfsprogs/">hfsprogs</ulink>,
156 <ulink url="http://www.nilfs.org/download/">nilfs-utils</ulink> and
157 <ulink url="https://reiser4.wiki.kernel.org/index.php/Reiser4progs">
158 Reiser4progs</ulink>.
159 </para>
160
161 <para>
162 Root privileges are required to run Gparted. If you wish to run the
163 application from the menu, further applications and configurations are
164 necessary. Examples of applications that may be used:
165 <ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>,
166 <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
167 <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
168 Another solution is to use <application>pkexec</application>, from
169 <xref linkend="polkit"/>, but some configuration is necessary.
170 Another simple solution is <xref linkend="ssh-askpass"/>. Below, we
171 describe these two alternatives: "ssh-askpass" and "pkexec".
172 </para>
173
174 <sect3 role="ssh-askpass">
175 <title>ssh-askpass</title>
176 <para>
177 To optionally use <xref linkend="ssh-askpass"/> if it is installed in
178 your system, run the following commands as the
179 <systemitem class="username">root</systemitem> user:
180 </para>
181
182<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &amp;&amp;
183sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop</userinput></screen>
184
185 <para>
186 Now, clicking on the menu item for Gparted, a dialog appears on the
187 screen, asking for the administrator password.</para>
188
189 </sect3>
190
191 <sect3 role="pkexec" revision="sysv">
192 <title>pkexec</title>
193 <para>
194 To optionally use <application>pkexec</application>, you need <xref
195 linkend="polkit-gnome"/><!-- or <xref linkend="lxpolkit"/>-->, and
196 <xref linkend="consolekit"/> installed with support to <xref
197 linkend="linux-pam"/> and <xref linkend="polkit"/>. As the
198 <systemitem class="username">root</systemitem> user, configure <xref
199 linkend="gparted"/> and <xref linkend="polkit"/> with the following
200 commands:
201 </para>
202
203<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
204 /usr/share/applications/gparted.desktop.back &amp;&amp;
205sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
206 /usr/share/applications/gparted.desktop &amp;&amp;
207
208cat &gt; /usr/sbin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
209<literal>#!/bin/bash
210
211pkexec /usr/sbin/gparted $@</literal>
212EOF
213chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
214
215 <para>
216 Still as the <systemitem class="username">root</systemitem> user,
217 configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
218 use <application>pkexec</application>:
219 </para>
220
221<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
222<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
223&lt;!DOCTYPE policyconfig PUBLIC
224 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
225 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"&gt;
226&lt;policyconfig&gt;
227
228 &lt;action id="org.freedesktop.policykit.pkexec.run-gparted"&gt;
229 &lt;description&gt;Run GParted&lt;/description&gt;
230 &lt;message&gt;Authentication is required to run GParted&lt;/message&gt;
231 &lt;defaults&gt;
232 &lt;allow_any&gt;no&lt;/allow_any&gt;
233 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
234 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
235 &lt;/defaults&gt;
236 &lt;annotate key="org.freedesktop.policykit.exec.path"&gt;/usr/sbin/gparted&lt;/annotate&gt;
237 &lt;annotate key="org.freedesktop.policykit.exec.allow_gui"&gt;true&lt;/annotate&gt;
238 &lt;/action&gt;
239
240&lt;/policyconfig&gt;</literal>
241EOF
242chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
243
244 <para>
245 Now, clicking in the menu item for Gparted, a dialog appears in the
246 screen, asking for the administrator password.</para>
247
248 </sect3>
249
250 </sect2>
251
252 <sect2 role="content">
253 <title>Contents</title>
254
255 <segmentedlist>
256 <segtitle>Installed Programs</segtitle>
257 <segtitle>Installed Libraries</segtitle>
258 <segtitle>Installed Directories</segtitle>
259
260 <seglistitem>
261 <seg>
262 gparted, gpartedbin and gparted_polkit (optional)
263 </seg>
264 <seg>
265 None
266 </seg>
267 <seg>
268 None
269 </seg>
270 </seglistitem>
271 </segmentedlist>
272
273 <variablelist>
274 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
275 <?dbfo list-presentation="list"?>
276 <?dbhtml list-presentation="table"?>
277
278 <varlistentry id="gparted-prog">
279 <term><command>gparted</command></term>
280 <listitem>
281 <para>
282 is a shell script which sets up the environment before calling
283 <command>gpartedbin</command>.
284 </para>
285 <indexterm zone="gparted gparted-prog">
286 <primary sortas="b-gparted">gparted</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
291 <varlistentry id="gpartedbin">
292 <term><command>gpartedbin</command></term>
293 <listitem>
294 <para>
295 is the Gparted binary.
296 </para>
297 <indexterm zone="gparted gpartedbin">
298 <primary sortas="b-gpartedbin">gpartedbin</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="gparted_polkit">
304 <term><command>gparted_polkit</command></term>
305 <listitem>
306 <para>
307 is an optional script which can be used to run gparted with polkit,
308 from a menu.
309 </para>
310 <indexterm zone="gparted gparted_polkit">
311 <primary sortas="b-gparted_polkit">gparted_polkit</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 </variablelist>
317
318 </sect2>
319
320</sect1>
Note: See TracBrowser for help on using the repository browser.