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