[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 " ">
|
---|
[aadb87c] | 10 | <!ENTITY gparted-md5sum "ecd66491bb2061c6aa6077cc24823b9e">
|
---|
[686a89a3] | 11 | <!ENTITY gparted-size "2.0 MB">
|
---|
[aadb87c] | 12 | <!ENTITY gparted-buildsize "77 MB (additional 4 MB, building the
|
---|
| 13 | optional documentation)">
|
---|
| 14 | <!ENTITY gparted-time "0.9 SBU">
|
---|
[e447aff] | 15 | ]>
|
---|
| 16 |
|
---|
[6cce201] | 17 | <sect1 id="gparted" xreflabel="Gparted-&gparted-version;">
|
---|
[e447aff] | 18 | <?dbhtml filename="gparted.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
[6cce201] | 25 | <title>Gparted-&gparted-version;</title>
|
---|
[e447aff] | 26 |
|
---|
| 27 | <indexterm zone="gparted">
|
---|
[6cce201] | 28 | <primary sortas="a-Gparted">Gparted</primary>
|
---|
[e447aff] | 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to Gparted</title>
|
---|
| 33 |
|
---|
| 34 | <para>
|
---|
| 35 | Gparted is the Gnome Partition Editor, a Gtk 2 GUI for other command line
|
---|
| 36 | tools that can create, reorganise or delete disk partitions.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[b2c248d] | 39 | &lfs74_checked;
|
---|
[e447aff] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&gparted-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&gparted-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &gparted-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &gparted-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &gparted-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated build time: &gparted-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 78 | <para role="required">
|
---|
| 79 | <xref linkend="gtkmm2"/>,
|
---|
| 80 | <xref linkend="intltool"/> and
|
---|
[6cce201] | 81 | <xref linkend="parted"/>
|
---|
[e447aff] | 82 | </para>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 85 | <para role="optional">
|
---|
[665ac79f] | 86 | <ulink url="&gnome-download-http;/gnome-doc-utils/">
|
---|
| 87 | GNOME Doc Utils</ulink> and
|
---|
[6cce201] | 88 | <xref linkend="rarian"/>
|
---|
[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 |
|
---|
[686a89a3] | 104 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 105 | --disable-doc \
|
---|
| 106 | --disable-static &&
|
---|
[e447aff] | 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
[6cce201] | 109 | <para>
|
---|
| 110 | This package does not come with a testsuite.
|
---|
| 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>
|
---|
| 128 | <option>--disable-doc</option>: This switch disables building of
|
---|
| 129 | the optional documentation. Remove it if you have installed
|
---|
[665ac79f] | 130 | <application>GNOME Doc Utils</application>.
|
---|
[28b61748] | 131 | </para>
|
---|
| 132 |
|
---|
[e447aff] | 133 | </sect2>
|
---|
| 134 |
|
---|
[f0afab3f] | 135 | <sect2 role="using">
|
---|
[6cce201] | 136 | <title>Using Gparted</title>
|
---|
[f0afab3f] | 137 |
|
---|
| 138 | <para>
|
---|
| 139 | To manipulate file systems Gparted has a run time dependency on various
|
---|
| 140 | file system tools (you only need to install the tools for file systems you
|
---|
| 141 | actually use):
|
---|
| 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>,
|
---|
| 149 | <ulink url="http://www.daniel-baumann.ch/software/dosfstools/">dosfstools</ulink>,
|
---|
| 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>,
|
---|
| 153 | hfsprogs,
|
---|
| 154 | <ulink url="http://www.nilfs.org/download/">nilfs-utils</ulink> and
|
---|
| 155 | reiser4progs.
|
---|
| 156 | </para>
|
---|
[aadb87c] | 157 |
|
---|
| 158 | <para>
|
---|
| 159 | Root privileges are required to run Gparted. If you wish to run the
|
---|
| 160 | application from the menu, further applications and configurations are
|
---|
| 161 | necessary. Examples of applications that may be used:
|
---|
[3da508cc] | 162 | <ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>,
|
---|
[aadb87c] | 163 | <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
|
---|
| 164 | <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
|
---|
[3da508cc] | 165 | Other solution is to use <application>pkexec</application>, from
|
---|
| 166 | <xref linkend="polkit"/>, but some configuration is necessary.
|
---|
[aadb87c] | 167 | Another simple solution is the <application>GTK+</application> based
|
---|
[3da508cc] | 168 | <application>ssh-askpass</application> (does not need
|
---|
| 169 | <application>GNOME</application>). Below, we describe these two
|
---|
| 170 | alternatives: "ssh-askpass" and "pkexec".
|
---|
[aadb87c] | 171 | </para>
|
---|
[3da508cc] | 172 |
|
---|
| 173 | <sect3 role="ssh-askpass">
|
---|
| 174 | <title>ssh-askpass</title>
|
---|
| 175 | <para>
|
---|
| 176 | To optionally use <application>ssh-askpass</application>, you need
|
---|
| 177 | <xref linkend="sudo"/> and <xref linkend="openssh"/> to be installed.
|
---|
| 178 | Uncompress the <xref linkend="openssh"/> tarball and, inside the
|
---|
| 179 | source directory, install <application>ssh-askpass</application> by
|
---|
| 180 | running the following commands:
|
---|
| 181 | </para>
|
---|
| 182 |
|
---|
| 183 | <screen><userinput>cd contrib &&
|
---|
| 184 | make gnome-ssh-askpass2</userinput></screen>
|
---|
| 185 |
|
---|
| 186 | <para>
|
---|
| 187 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 188 | </para>
|
---|
| 189 |
|
---|
| 190 | <screen role="root"><userinput>install -v -d -m755 /usr/lib/openssh/contrib &&
|
---|
| 191 | install -v -m755 gnome-ssh-askpass2 /usr/lib/openssh/contrib &&
|
---|
| 192 | ln -sv -f contrib/gnome-ssh-askpass2 /usr/lib/openssh/ssh-askpass</userinput></screen>
|
---|
| 193 |
|
---|
| 194 | <para>
|
---|
| 195 | Still as the <systemitem class="username">root</systemitem> user,
|
---|
| 196 | configure <xref linkend="gparted"/> and <xref linkend="sudo"/> to
|
---|
| 197 | use <application>ssh-askpass</application>:
|
---|
| 198 | </para>
|
---|
| 199 |
|
---|
| 200 | <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &&
|
---|
| 201 | sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop &&
|
---|
| 202 |
|
---|
| 203 | cat >> /etc/sudo.conf << "EOF" &&
|
---|
| 204 | # Path to askpass helper program
|
---|
| 205 | Path askpass /usr/lib/openssh/ssh-askpass
|
---|
| 206 | EOF
|
---|
| 207 | chmod -v 0644 /etc/sudo.conf</userinput></screen>
|
---|
| 208 |
|
---|
| 209 | <para>
|
---|
| 210 | Now, clicking in the menu item for Gparted, a dialog appears in the
|
---|
| 211 | screen, asking for the administrator password. Any graphical program
|
---|
| 212 | requiring root privileges can be run using "sudo -A <program>",
|
---|
| 213 | e.g. from a terminal, from a desktop launcher, or including it in the
|
---|
| 214 | desktop file.
|
---|
| 215 | </para>
|
---|
| 216 |
|
---|
| 217 | </sect3>
|
---|
| 218 |
|
---|
| 219 | <sect3 role="pkexec">
|
---|
| 220 | <title>pkexec</title>
|
---|
| 221 | <para>
|
---|
| 222 | To optionally use <application>pkexec</application>, you need
|
---|
[4a2dd98] | 223 | <xref linkend="which"/> (for the script),
|
---|
[3da508cc] | 224 | <xref linkend="polkit-gnome"/> or <xref linkend="lxpolkit"/>, and
|
---|
| 225 | <xref linkend="consolekit"/> installed with support to
|
---|
[4a2dd98] | 226 | <xref linkend="linux-pam"/> and <xref linkend="polkit"/>. As the
|
---|
| 227 | <systemitem class="username">root</systemitem> user, configure
|
---|
| 228 | <xref linkend="gparted"/> and <xref linkend="polkit"/> with the
|
---|
| 229 | following commands:
|
---|
[3da508cc] | 230 | </para>
|
---|
| 231 |
|
---|
[876cd11] | 232 | <screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
|
---|
| 233 | /usr/share/applications/gparted.desktop.back &&
|
---|
| 234 | sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
|
---|
| 235 | /usr/share/applications/gparted.desktop &&
|
---|
[3da508cc] | 236 |
|
---|
| 237 | cat > /usr/sbin/gparted_polkit << "EOF" &&
|
---|
| 238 | #!/bin/bash
|
---|
| 239 | if [ $(which pkexec) ]; then
|
---|
| 240 | pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
|
---|
| 241 | else
|
---|
| 242 | /usr/sbin/gparted "$@"
|
---|
| 243 | fi
|
---|
| 244 | EOF
|
---|
| 245 | chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
|
---|
| 246 |
|
---|
| 247 | <para>
|
---|
| 248 | Still as the <systemitem class="username">root</systemitem> user,
|
---|
| 249 | configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
|
---|
| 250 | use <application>pkexec</application>:
|
---|
| 251 | </para>
|
---|
| 252 |
|
---|
| 253 | <screen role="root"><userinput>cat > /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy << "EOF"
|
---|
| 254 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 255 | <!DOCTYPE policyconfig PUBLIC
|
---|
| 256 | "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
---|
| 257 | "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
---|
| 258 | <policyconfig>
|
---|
| 259 |
|
---|
| 260 | <action id="org.freedesktop.policykit.pkexec.run-gparted">
|
---|
| 261 | <description>Run GParted</description>
|
---|
| 262 | <message>Authentication is required to run GParted</message>
|
---|
| 263 | <defaults>
|
---|
| 264 | <allow_any>no</allow_any>
|
---|
| 265 | <allow_inactive>no</allow_inactive>
|
---|
| 266 | <allow_active>auth_admin_keep</allow_active>
|
---|
| 267 | </defaults>
|
---|
| 268 | <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate>
|
---|
| 269 | <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
---|
| 270 | </action>
|
---|
| 271 |
|
---|
| 272 | </policyconfig>
|
---|
| 273 | EOF
|
---|
| 274 | chmod -v 0644 /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy</userinput></screen>
|
---|
| 275 |
|
---|
| 276 | <para>
|
---|
| 277 | Now, clicking in the menu item for Gparted, a dialog appears in the
|
---|
| 278 | screen, asking for the administrator password. Any graphical program
|
---|
| 279 | requiring root privileges can be run using "pkexec <program>",
|
---|
| 280 | e.g. from a terminal, from a desktop launcher, or including it in the
|
---|
| 281 | desktop file.
|
---|
| 282 | </para>
|
---|
| 283 |
|
---|
| 284 | </sect3>
|
---|
| 285 |
|
---|
[f0afab3f] | 286 | </sect2>
|
---|
| 287 |
|
---|
[e447aff] | 288 | <sect2 role="content">
|
---|
| 289 | <title>Contents</title>
|
---|
| 290 |
|
---|
| 291 | <segmentedlist>
|
---|
| 292 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 293 | <segtitle>Installed Libraries</segtitle>
|
---|
[e447aff] | 294 | <segtitle>Installed Directories</segtitle>
|
---|
| 295 |
|
---|
| 296 | <seglistitem>
|
---|
| 297 | <seg>
|
---|
[6cce201] | 298 | gparted and gpartedbin
|
---|
[e447aff] | 299 | </seg>
|
---|
[c3c56b2] | 300 | <seg>
|
---|
| 301 | None
|
---|
| 302 | </seg>
|
---|
[e447aff] | 303 | <seg>
|
---|
| 304 | /usr/share/gnome/help/gparted and
|
---|
[6cce201] | 305 | /usr/share/omf/gparted
|
---|
[e447aff] | 306 | </seg>
|
---|
| 307 | </seglistitem>
|
---|
| 308 | </segmentedlist>
|
---|
| 309 |
|
---|
| 310 | <variablelist>
|
---|
| 311 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 312 | <?dbfo list-presentation="list"?>
|
---|
| 313 | <?dbhtml list-presentation="table"?>
|
---|
| 314 |
|
---|
| 315 | <varlistentry id="gparted-prog">
|
---|
| 316 | <term><command>gparted</command></term>
|
---|
| 317 | <listitem>
|
---|
| 318 | <para>
|
---|
| 319 | is a shell script which sets up the environment before calling
|
---|
| 320 | <command>gpartedbin</command>.
|
---|
| 321 | </para>
|
---|
| 322 | <indexterm zone="gparted gparted-prog">
|
---|
| 323 | <primary sortas="b-gparted">gparted</primary>
|
---|
| 324 | </indexterm>
|
---|
| 325 | </listitem>
|
---|
| 326 | </varlistentry>
|
---|
| 327 |
|
---|
| 328 | <varlistentry id="gpartedbin">
|
---|
| 329 | <term><command>gpartedbin</command></term>
|
---|
| 330 | <listitem>
|
---|
| 331 | <para>
|
---|
| 332 | is the Gparted binary.
|
---|
| 333 | </para>
|
---|
| 334 | <indexterm zone="gparted gpartedbin">
|
---|
| 335 | <primary sortas="b-gpartedbin">gpartedbin</primary>
|
---|
| 336 | </indexterm>
|
---|
| 337 | </listitem>
|
---|
| 338 | </varlistentry>
|
---|
[6cce201] | 339 |
|
---|
[e447aff] | 340 | </variablelist>
|
---|
[6cce201] | 341 |
|
---|
[e447aff] | 342 | </sect2>
|
---|
[6cce201] | 343 |
|
---|
[e447aff] | 344 | </sect1>
|
---|