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