source: xsoft/other/gparted.xml@ b3867c5

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since b3867c5 was 2a530932, checked in by Xi Ruoyao <xry111@…>, 12 months ago

treewide: Remove nonexist User Notes

The last part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • 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 " ">
[033dedb]9 <!ENTITY gparted-md5sum "9adbd4b1cbcb7a7c76dcc0e9ffed9a7c">
10 <!ENTITY gparted-size "5.2 MB">
11 <!ENTITY gparted-buildsize "75 MB (add 75 MB for tests)">
[7aa91c69]12 <!ENTITY gparted-time "0.3 SBU (using parallelism=4; add 0.2 SBU for tests)">
[e447aff]13]>
14
[6cce201]15<sect1 id="gparted" xreflabel="Gparted-&gparted-version;">
[e447aff]16 <?dbhtml filename="gparted.html"?>
17
18
[6cce201]19 <title>Gparted-&gparted-version;</title>
[e447aff]20
21 <indexterm zone="gparted">
[6cce201]22 <primary sortas="a-Gparted">Gparted</primary>
[e447aff]23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Gparted</title>
27
28 <para>
[11eb3ae5]29 Gparted is the Gnome Partition Editor, a Gtk 3 GUI for other command line
[e447aff]30 tools that can create, reorganise or delete disk partitions.
31 </para>
32
[6fe9820e]33 &lfs113_checked;
[e447aff]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">
[0b05bda]73 <!-- GTKMM2 is no longer used since 1.0.0, see #12110 -->
74 <xref linkend="gtkmm3"/> and
[6cce201]75 <xref linkend="parted"/>
[e447aff]76 </para>
77
78 <bridgehead renderas="sect4">Optional</bridgehead>
79 <para role="optional">
[7aa91c69]80 <xref linkend="btrfs-progs"/> (if using a btrfs filesystem),
81 <ulink url="https://github.com/exfatprogs/exfatprogs">exfatprogs</ulink>, and
[a3c5e951]82 <ulink url="https://github.com/pali/udftools">udftools</ulink>
[e447aff]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
[0ef67b8]95<screen><userinput>./configure --prefix=/usr \
[686a89a3]96 --disable-doc \
97 --disable-static &amp;&amp;
[e447aff]98make</userinput></screen>
99
[6cce201]100 <para>
[8558044]101 To run the tests, issue: <command>make check</command>.
[6cce201]102 </para>
[e447aff]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>
[28b61748]109
110 </sect2>
111
112 <sect2 role="commands">
113 <title>Command Explanations</title>
114
[686a89a3]115 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
116 href="../../xincludes/static-libraries.xml"/>
117
[28b61748]118 <para>
[7830c481]119 <parameter>--disable-doc</parameter>: This switch disables building of
[28b61748]120 the optional documentation. Remove it if you have installed
[665ac79f]121 <application>GNOME Doc Utils</application>.
[28b61748]122 </para>
123
[aa41434]124<!-- this is an option, not a parameter, but is it still necessary for
125 wayland? -->
[444841e]126 <para>
[aa41434]127 <option>--enable-xhost-root</option>: This switch provides an
[444841e]128 interim workaround to allow GParted to run under Wayland by using xhost
[8558044]129 to grant and revoke root access to the X11 display.
[444841e]130 </para>
131
[e447aff]132 </sect2>
133
[f0afab3f]134 <sect2 role="using">
[6cce201]135 <title>Using Gparted</title>
[f0afab3f]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):
[a0e6e8dd]141 <xref linkend="hdparm"/>
[c828e9cb]142 (required for optionally displaying serial number device information),
[a35cbbc]143 <xref linkend="btrfs-progs"/>,
144 <xref role="runtime" linkend="dosfstools"/>,
[f0afab3f]145 e2fsprogs (installed as part of LFS),
146 <xref linkend="jfsutils"/>,
[157b2eb8]147 <!--<xref linkend="ntfs-3g"/>,-->
[f0afab3f]148 <xref linkend="reiserfs"/>,
[a3c54ef2]149 <xref linkend="xfsprogs"/>,
[7aa91c69]150 <ulink url="https://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
[f0afab3f]151 to read and write FAT16/32 volume labels and UUIDs),
152 <ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
[7aa91c69]153 <ulink url="https://packages.debian.org/sid/hfsprogs">hfsprogs</ulink>,
[75b1a338]154 <ulink url="https://nilfs.sourceforge.io/en/">nilfs-utils</ulink> and
[c828e9cb]155 <ulink url="https://reiser4.wiki.kernel.org/index.php/Reiser4progs">
156 Reiser4progs</ulink>.
[f0afab3f]157 </para>
[aadb87c]158
159 <para>
160 Root privileges are required to run Gparted. If you wish to run the
161 application from the menu, further applications and configurations are
162 necessary. Examples of applications that may be used:
[75b1a338]163 <ulink url="https://people.debian.org/~kov/gksu/">gksu</ulink>,
[aadb87c]164 <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
165 <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
[9014137]166 <!--Another solution is to use <application>pkexec</application>, from
167 <xref linkend="polkit"/>, but some configuration is necessary.-->
168 Another simple solution is <xref linkend="ssh-askpass"/>. <!--Below, we
169 describe these two alternatives: "ssh-askpass" and "pkexec".-->
[aadb87c]170 </para>
[3da508c]171
172 <sect3 role="ssh-askpass">
173 <title>ssh-askpass</title>
174 <para>
[7a5b2e77]175 To optionally use <xref linkend="ssh-askpass"/> if it is installed in
176 your system, run the following commands as the
177 <systemitem class="username">root</systemitem> user:
[3da508c]178 </para>
179
180<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &amp;&amp;
[789c1b9]181sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop</userinput></screen>
[3da508c]182
183 <para>
[c828e9cb]184 Now, clicking on the menu item for Gparted, a dialog appears on the
[7a5b2e77]185 screen, asking for the administrator password.</para>
[3da508c]186
187 </sect3>
[9014137]188<!--
[f1ce80b]189 <sect3 role="pkexec" revision="sysv">
[3da508c]190 <title>pkexec</title>
191 <para>
[73b06df]192 To optionally use <application>pkexec</application>, you need <xref
[9014137]193 linkend="polkit-gnome"/><!- - or <xref linkend="lxpolkit"/>- ->, and
[73b06df]194 <xref linkend="consolekit"/> installed with support to <xref
195 linkend="linux-pam"/> and <xref linkend="polkit"/>. As the
196 <systemitem class="username">root</systemitem> user, configure <xref
197 linkend="gparted"/> and <xref linkend="polkit"/> with the following
198 commands:
[3da508c]199 </para>
200
[876cd11]201<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
202 /usr/share/applications/gparted.desktop.back &amp;&amp;
[444841e]203sed -i 's:/usr/bin/gparted:/usr/bin/gparted_polkit:' \
204 /usr/share/applications/gparted.desktop &amp;&amp;
[3da508c]205
[444841e]206cat &gt; /usr/bin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
[7a5b2e77]207<literal>#!/bin/bash
208
[444841e]209pkexec /usr/bin/gparted $@</literal>
[3da508c]210EOF
[444841e]211chmod -v 0755 /usr/bin/gparted_polkit</userinput></screen>
[3da508c]212
213 <para>
214 Still as the <systemitem class="username">root</systemitem> user,
215 configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
216 use <application>pkexec</application>:
217 </para>
218
[7a5b2e77]219<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
220<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
[3da508c]221&lt;!DOCTYPE policyconfig PUBLIC
222 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
223 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"&gt;
224&lt;policyconfig&gt;
225
226 &lt;action id="org.freedesktop.policykit.pkexec.run-gparted"&gt;
227 &lt;description&gt;Run GParted&lt;/description&gt;
228 &lt;message&gt;Authentication is required to run GParted&lt;/message&gt;
229 &lt;defaults&gt;
230 &lt;allow_any&gt;no&lt;/allow_any&gt;
231 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
232 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
233 &lt;/defaults&gt;
[444841e]234 &lt;annotate key="org.freedesktop.policykit.exec.path"&gt;/usr/bin/gparted&lt;/annotate&gt;
[3da508c]235 &lt;annotate key="org.freedesktop.policykit.exec.allow_gui"&gt;true&lt;/annotate&gt;
236 &lt;/action&gt;
237
[7a5b2e77]238&lt;/policyconfig&gt;</literal>
[3da508c]239EOF
[7a5b2e77]240chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
[3da508c]241
242 <para>
243 Now, clicking in the menu item for Gparted, a dialog appears in the
[7a5b2e77]244 screen, asking for the administrator password.</para>
[3da508c]245
246 </sect3>
[9014137]247-->
[f0afab3f]248 </sect2>
249
[e447aff]250 <sect2 role="content">
251 <title>Contents</title>
252
253 <segmentedlist>
254 <segtitle>Installed Programs</segtitle>
[c3c56b2]255 <segtitle>Installed Libraries</segtitle>
[e447aff]256 <segtitle>Installed Directories</segtitle>
257
258 <seglistitem>
259 <seg>
[c26c83f6]260 gparted<!--, gpartedbin--> and gparted_polkit (optional)
[e447aff]261 </seg>
[c3c56b2]262 <seg>
263 None
264 </seg>
[e447aff]265 <seg>
[c828e9cb]266 None
[e447aff]267 </seg>
268 </seglistitem>
269 </segmentedlist>
270
271 <variablelist>
272 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
273 <?dbfo list-presentation="list"?>
274 <?dbhtml list-presentation="table"?>
275
276 <varlistentry id="gparted-prog">
277 <term><command>gparted</command></term>
278 <listitem>
279 <para>
280 is a shell script which sets up the environment before calling
[4c24eb0a]281 <command>gpartedbin</command>
[e447aff]282 </para>
283 <indexterm zone="gparted gparted-prog">
284 <primary sortas="b-gparted">gparted</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
[c26c83f6]289 <!--
[e447aff]290 <varlistentry id="gpartedbin">
291 <term><command>gpartedbin</command></term>
292 <listitem>
293 <para>
[4c24eb0a]294 is the Gparted binary
[e447aff]295 </para>
296 <indexterm zone="gparted gpartedbin">
297 <primary sortas="b-gpartedbin">gpartedbin</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
[c26c83f6]301 -->
[6cce201]302
[7a5b2e77]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,
[4c24eb0a]308 from a menu
[7a5b2e77]309 </para>
310 <indexterm zone="gparted gparted_polkit">
311 <primary sortas="b-gparted_polkit">gparted_polkit</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
[e447aff]316 </variablelist>
[6cce201]317
[e447aff]318 </sect2>
[6cce201]319
[e447aff]320</sect1>
Note: See TracBrowser for help on using the repository browser.