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