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