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