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