source: xsoft/other/gparted.xml@ 444841e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 444841e was 444841e, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to dconf-0.26.1.
Update to libsoup-2.60.1.
Update to wayland-protocols-1.11.
Update to gparted-0.30.0.
Update to wireshark-2.4.2.

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

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