[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 |
|
---|
| 7 | <!ENTITY gparted-download-http
|
---|
[d7c139a] | 8 | "&sourceforge-repo;/gparted/gparted-&gparted-version;.tar.gz">
|
---|
[e447aff] | 9 | <!ENTITY gparted-download-ftp " ">
|
---|
[c828e9cb] | 10 | <!ENTITY gparted-md5sum "b9c5f6b5ffd37400bd4bf5929e9b1781">
|
---|
| 11 | <!ENTITY gparted-size "3.2 MB">
|
---|
| 12 | <!ENTITY gparted-buildsize "104 MB">
|
---|
| 13 | <!ENTITY gparted-time "1.1 SBU">
|
---|
[e447aff] | 14 | ]>
|
---|
| 15 |
|
---|
[6cce201] | 16 | <sect1 id="gparted" xreflabel="Gparted-&gparted-version;">
|
---|
[e447aff] | 17 | <?dbhtml filename="gparted.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[6cce201] | 24 | <title>Gparted-&gparted-version;</title>
|
---|
[e447aff] | 25 |
|
---|
| 26 | <indexterm zone="gparted">
|
---|
[6cce201] | 27 | <primary sortas="a-Gparted">Gparted</primary>
|
---|
[e447aff] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to Gparted</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
| 34 | Gparted is the Gnome Partition Editor, a Gtk 2 GUI for other command line
|
---|
| 35 | tools that can create, reorganise or delete disk partitions.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[69fb197] | 38 | &lfs7a_checked;
|
---|
[e447aff] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&gparted-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&gparted-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &gparted-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &gparted-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &gparted-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &gparted-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
[56605b9] | 78 | <xref linkend="gtkmm2"/> and
|
---|
[6cce201] | 79 | <xref linkend="parted"/>
|
---|
[e447aff] | 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 83 | <para role="optional">
|
---|
[665ac79f] | 84 | <ulink url="&gnome-download-http;/gnome-doc-utils/">
|
---|
| 85 | GNOME Doc Utils</ulink> and
|
---|
[6cce201] | 86 | <xref linkend="rarian"/>
|
---|
[e447aff] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | <para condition="html" role="usernotes">
|
---|
| 90 | User Notes: <ulink url="&blfs-wiki;/gparted"/>
|
---|
| 91 | </para>
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of Gparted</title>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
| 98 | Install <application>Gparted</application> by running the following
|
---|
| 99 | commands:
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
[0ef67b8] | 102 | <screen><userinput>./configure --prefix=/usr \
|
---|
[686a89a3] | 103 | --disable-doc \
|
---|
| 104 | --disable-static &&
|
---|
[e447aff] | 105 | make</userinput></screen>
|
---|
| 106 |
|
---|
[6cce201] | 107 | <para>
|
---|
| 108 | This package does not come with a testsuite.
|
---|
| 109 | </para>
|
---|
[e447aff] | 110 |
|
---|
| 111 | <para>
|
---|
| 112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[28b61748] | 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
[686a89a3] | 122 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 123 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 124 |
|
---|
[28b61748] | 125 | <para>
|
---|
[7830c481] | 126 | <parameter>--disable-doc</parameter>: This switch disables building of
|
---|
[28b61748] | 127 | the optional documentation. Remove it if you have installed
|
---|
[665ac79f] | 128 | <application>GNOME Doc Utils</application>.
|
---|
[28b61748] | 129 | </para>
|
---|
| 130 |
|
---|
[e447aff] | 131 | </sect2>
|
---|
| 132 |
|
---|
[f0afab3f] | 133 | <sect2 role="using">
|
---|
[6cce201] | 134 | <title>Using Gparted</title>
|
---|
[f0afab3f] | 135 |
|
---|
| 136 | <para>
|
---|
| 137 | To manipulate file systems Gparted has a run time dependency on various
|
---|
| 138 | file system tools (you only need to install the tools for file systems you
|
---|
| 139 | actually use):
|
---|
[a0e6e8dd] | 140 | <xref linkend="hdparm"/>
|
---|
[c828e9cb] | 141 | (required for optionally displaying serial number device information),
|
---|
[f0afab3f] | 142 | e2fsprogs (installed as part of LFS),
|
---|
| 143 | <xref linkend="jfsutils"/>,
|
---|
| 144 | <xref linkend="ntfs-3g"/>,
|
---|
| 145 | <xref linkend="reiserfs"/>,
|
---|
[a3c54ef2] | 146 | <xref linkend="xfsprogs"/>,
|
---|
[f0afab3f] | 147 | <ulink url="https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories">
|
---|
| 148 | btrfs-progs</ulink>,
|
---|
[c828e9cb] | 149 | <ulink url="https://github.com/dosfstools/dosfstools/">dosfstools</ulink>,
|
---|
[f0afab3f] | 150 | <ulink url="http://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
|
---|
| 151 | to read and write FAT16/32 volume labels and UUIDs),
|
---|
| 152 | <ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
|
---|
[c828e9cb] | 153 | <ulink url="https://packages.debian.org/sid/hfsprogs/">hfsprogs</ulink>,
|
---|
[f0afab3f] | 154 | <ulink url="http://www.nilfs.org/download/">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:
|
---|
[3da508cc] | 163 | <ulink url="http://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>.
|
---|
[c828e9cb] | 166 | Another solution is to use <application>pkexec</application>, from
|
---|
[3da508cc] | 167 | <xref linkend="polkit"/>, but some configuration is necessary.
|
---|
[7a5b2e77] | 168 | Another simple solution is <xref linkend="ssh-askpass"/>. Below, we
|
---|
| 169 | describe these two alternatives: "ssh-askpass" and "pkexec".
|
---|
[aadb87c] | 170 | </para>
|
---|
[3da508cc] | 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:
|
---|
[3da508cc] | 178 | </para>
|
---|
| 179 |
|
---|
| 180 | <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &&
|
---|
[789c1b9] | 181 | sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop</userinput></screen>
|
---|
[3da508cc] | 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>
|
---|
[3da508cc] | 186 |
|
---|
| 187 | </sect3>
|
---|
| 188 |
|
---|
[f1ce80b] | 189 | <sect3 role="pkexec" revision="sysv">
|
---|
[3da508cc] | 190 | <title>pkexec</title>
|
---|
| 191 | <para>
|
---|
[73b06df] | 192 | To optionally use <application>pkexec</application>, you need <xref
|
---|
| 193 | linkend="polkit-gnome"/><!-- or <xref linkend="lxpolkit"/>-->, and
|
---|
| 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:
|
---|
[3da508cc] | 199 | </para>
|
---|
| 200 |
|
---|
[876cd11] | 201 | <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
|
---|
| 202 | /usr/share/applications/gparted.desktop.back &&
|
---|
| 203 | sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
|
---|
| 204 | /usr/share/applications/gparted.desktop &&
|
---|
[3da508cc] | 205 |
|
---|
| 206 | cat > /usr/sbin/gparted_polkit << "EOF" &&
|
---|
[7a5b2e77] | 207 | <literal>#!/bin/bash
|
---|
| 208 |
|
---|
| 209 | pkexec /usr/sbin/gparted $@</literal>
|
---|
[3da508cc] | 210 | EOF
|
---|
| 211 | chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
|
---|
| 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 > /usr/share/polkit-1/actions/org.gnome.gparted.policy << "EOF"
|
---|
| 220 | <literal><?xml version="1.0" encoding="UTF-8"?>
|
---|
[3da508cc] | 221 | <!DOCTYPE policyconfig PUBLIC
|
---|
| 222 | "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
---|
| 223 | "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
---|
| 224 | <policyconfig>
|
---|
| 225 |
|
---|
| 226 | <action id="org.freedesktop.policykit.pkexec.run-gparted">
|
---|
| 227 | <description>Run GParted</description>
|
---|
| 228 | <message>Authentication is required to run GParted</message>
|
---|
| 229 | <defaults>
|
---|
| 230 | <allow_any>no</allow_any>
|
---|
| 231 | <allow_inactive>no</allow_inactive>
|
---|
| 232 | <allow_active>auth_admin_keep</allow_active>
|
---|
| 233 | </defaults>
|
---|
| 234 | <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate>
|
---|
| 235 | <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
---|
| 236 | </action>
|
---|
| 237 |
|
---|
[7a5b2e77] | 238 | </policyconfig></literal>
|
---|
[3da508cc] | 239 | EOF
|
---|
[7a5b2e77] | 240 | chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
|
---|
[3da508cc] | 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>
|
---|
[3da508cc] | 245 |
|
---|
| 246 | </sect3>
|
---|
| 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>
|
---|
[7a5b2e77] | 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
|
---|
| 281 | <command>gpartedbin</command>.
|
---|
| 282 | </para>
|
---|
| 283 | <indexterm zone="gparted gparted-prog">
|
---|
| 284 | <primary sortas="b-gparted">gparted</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
| 289 | <varlistentry id="gpartedbin">
|
---|
| 290 | <term><command>gpartedbin</command></term>
|
---|
| 291 | <listitem>
|
---|
| 292 | <para>
|
---|
| 293 | is the Gparted binary.
|
---|
| 294 | </para>
|
---|
| 295 | <indexterm zone="gparted gpartedbin">
|
---|
| 296 | <primary sortas="b-gpartedbin">gpartedbin</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
[6cce201] | 300 |
|
---|
[7a5b2e77] | 301 | <varlistentry id="gparted_polkit">
|
---|
| 302 | <term><command>gparted_polkit</command></term>
|
---|
| 303 | <listitem>
|
---|
| 304 | <para>
|
---|
| 305 | is an optional script which can be used to run gparted with polkit,
|
---|
| 306 | from a menu.
|
---|
| 307 | </para>
|
---|
| 308 | <indexterm zone="gparted gparted_polkit">
|
---|
| 309 | <primary sortas="b-gparted_polkit">gparted_polkit</primary>
|
---|
| 310 | </indexterm>
|
---|
| 311 | </listitem>
|
---|
| 312 | </varlistentry>
|
---|
| 313 |
|
---|
[e447aff] | 314 | </variablelist>
|
---|
[6cce201] | 315 |
|
---|
[e447aff] | 316 | </sect2>
|
---|
[6cce201] | 317 |
|
---|
[e447aff] | 318 | </sect1>
|
---|