source: xsoft/other/gparted.xml@ 339f27a1

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 339f27a1 was 75b1a338, checked in by Xi Ruoyao <xry111@…>, 17 months ago

Update more URLs to use https

Mostly plain http -> https replace, if https works. If there is a HTTP
redirection, use the redirect target (unless it's a mirror or l10n like
"https://kde.org/zh-cn/").

Some non-trivial change:

  • Property mode set to 100644
File size: 10.8 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 " ">
[a44d5048]9 <!ENTITY gparted-md5sum "4561261a5f6fbd0c2f071953f94af670">
10 <!ENTITY gparted-size "4.1 MB">
11 <!ENTITY gparted-buildsize "77 MB (add 60 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
[a9a66319]33 &lfs112_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 <para condition="html" role="usernotes">
86 User Notes: <ulink url="&blfs-wiki;/gparted"/>
87 </para>
88 </sect2>
89
90 <sect2 role="installation">
91 <title>Installation of Gparted</title>
92
93 <para>
94 Install <application>Gparted</application> by running the following
95 commands:
96 </para>
97
[0ef67b8]98<screen><userinput>./configure --prefix=/usr \
[686a89a3]99 --disable-doc \
100 --disable-static &amp;&amp;
[e447aff]101make</userinput></screen>
102
[6cce201]103 <para>
[8558044]104 To run the tests, issue: <command>make check</command>.
[6cce201]105 </para>
[e447aff]106
107 <para>
108 Now, as the <systemitem class="username">root</systemitem> user:
109 </para>
110
111<screen role="root"><userinput>make install</userinput></screen>
[28b61748]112
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
[686a89a3]118 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
119 href="../../xincludes/static-libraries.xml"/>
120
[28b61748]121 <para>
[7830c481]122 <parameter>--disable-doc</parameter>: This switch disables building of
[28b61748]123 the optional documentation. Remove it if you have installed
[665ac79f]124 <application>GNOME Doc Utils</application>.
[28b61748]125 </para>
126
[aa41434]127<!-- this is an option, not a parameter, but is it still necessary for
128 wayland? -->
[444841e]129 <para>
[aa41434]130 <option>--enable-xhost-root</option>: This switch provides an
[444841e]131 interim workaround to allow GParted to run under Wayland by using xhost
[8558044]132 to grant and revoke root access to the X11 display.
[444841e]133 </para>
134
[e447aff]135 </sect2>
136
[f0afab3f]137 <sect2 role="using">
[6cce201]138 <title>Using Gparted</title>
[f0afab3f]139
140 <para>
141 To manipulate file systems Gparted has a run time dependency on various
142 file system tools (you only need to install the tools for file systems you
143 actually use):
[a0e6e8dd]144 <xref linkend="hdparm"/>
[c828e9cb]145 (required for optionally displaying serial number device information),
[a35cbbc]146 <xref linkend="btrfs-progs"/>,
147 <xref role="runtime" linkend="dosfstools"/>,
[f0afab3f]148 e2fsprogs (installed as part of LFS),
149 <xref linkend="jfsutils"/>,
[157b2eb8]150 <!--<xref linkend="ntfs-3g"/>,-->
[f0afab3f]151 <xref linkend="reiserfs"/>,
[a3c54ef2]152 <xref linkend="xfsprogs"/>,
[7aa91c69]153 <ulink url="https://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
[f0afab3f]154 to read and write FAT16/32 volume labels and UUIDs),
155 <ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
[7aa91c69]156 <ulink url="https://packages.debian.org/sid/hfsprogs">hfsprogs</ulink>,
[75b1a338]157 <ulink url="https://nilfs.sourceforge.io/en/">nilfs-utils</ulink> and
[c828e9cb]158 <ulink url="https://reiser4.wiki.kernel.org/index.php/Reiser4progs">
159 Reiser4progs</ulink>.
[f0afab3f]160 </para>
[aadb87c]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:
[75b1a338]166 <ulink url="https://people.debian.org/~kov/gksu/">gksu</ulink>,
[aadb87c]167 <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
168 <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
[9014137]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".-->
[aadb87c]173 </para>
[3da508c]174
175 <sect3 role="ssh-askpass">
176 <title>ssh-askpass</title>
177 <para>
[7a5b2e77]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:
[3da508c]181 </para>
182
183<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &amp;&amp;
[789c1b9]184sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop</userinput></screen>
[3da508c]185
186 <para>
[c828e9cb]187 Now, clicking on the menu item for Gparted, a dialog appears on the
[7a5b2e77]188 screen, asking for the administrator password.</para>
[3da508c]189
190 </sect3>
[9014137]191<!--
[f1ce80b]192 <sect3 role="pkexec" revision="sysv">
[3da508c]193 <title>pkexec</title>
194 <para>
[73b06df]195 To optionally use <application>pkexec</application>, you need <xref
[9014137]196 linkend="polkit-gnome"/><!- - or <xref linkend="lxpolkit"/>- ->, and
[73b06df]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:
[3da508c]202 </para>
203
[876cd11]204<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
205 /usr/share/applications/gparted.desktop.back &amp;&amp;
[444841e]206sed -i 's:/usr/bin/gparted:/usr/bin/gparted_polkit:' \
207 /usr/share/applications/gparted.desktop &amp;&amp;
[3da508c]208
[444841e]209cat &gt; /usr/bin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
[7a5b2e77]210<literal>#!/bin/bash
211
[444841e]212pkexec /usr/bin/gparted $@</literal>
[3da508c]213EOF
[444841e]214chmod -v 0755 /usr/bin/gparted_polkit</userinput></screen>
[3da508c]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
[7a5b2e77]222<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
223<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
[3da508c]224&lt;!DOCTYPE policyconfig PUBLIC
225 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
226 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"&gt;
227&lt;policyconfig&gt;
228
229 &lt;action id="org.freedesktop.policykit.pkexec.run-gparted"&gt;
230 &lt;description&gt;Run GParted&lt;/description&gt;
231 &lt;message&gt;Authentication is required to run GParted&lt;/message&gt;
232 &lt;defaults&gt;
233 &lt;allow_any&gt;no&lt;/allow_any&gt;
234 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
235 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
236 &lt;/defaults&gt;
[444841e]237 &lt;annotate key="org.freedesktop.policykit.exec.path"&gt;/usr/bin/gparted&lt;/annotate&gt;
[3da508c]238 &lt;annotate key="org.freedesktop.policykit.exec.allow_gui"&gt;true&lt;/annotate&gt;
239 &lt;/action&gt;
240
[7a5b2e77]241&lt;/policyconfig&gt;</literal>
[3da508c]242EOF
[7a5b2e77]243chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
[3da508c]244
245 <para>
246 Now, clicking in the menu item for Gparted, a dialog appears in the
[7a5b2e77]247 screen, asking for the administrator password.</para>
[3da508c]248
249 </sect3>
[9014137]250-->
[f0afab3f]251 </sect2>
252
[e447aff]253 <sect2 role="content">
254 <title>Contents</title>
255
256 <segmentedlist>
257 <segtitle>Installed Programs</segtitle>
[c3c56b2]258 <segtitle>Installed Libraries</segtitle>
[e447aff]259 <segtitle>Installed Directories</segtitle>
260
261 <seglistitem>
262 <seg>
[c26c83f6]263 gparted<!--, gpartedbin--> and gparted_polkit (optional)
[e447aff]264 </seg>
[c3c56b2]265 <seg>
266 None
267 </seg>
[e447aff]268 <seg>
[c828e9cb]269 None
[e447aff]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
[4c24eb0a]284 <command>gpartedbin</command>
[e447aff]285 </para>
286 <indexterm zone="gparted gparted-prog">
287 <primary sortas="b-gparted">gparted</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
[c26c83f6]292 <!--
[e447aff]293 <varlistentry id="gpartedbin">
294 <term><command>gpartedbin</command></term>
295 <listitem>
296 <para>
[4c24eb0a]297 is the Gparted binary
[e447aff]298 </para>
299 <indexterm zone="gparted gpartedbin">
300 <primary sortas="b-gpartedbin">gpartedbin</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
[c26c83f6]304 -->
[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,
[4c24eb0a]311 from a menu
[7a5b2e77]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.