mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
7aa91c691d
Update to autofs-5.1.7 Update to talloc-2.3.2 Update to gparted-1.2.0 Update to xarchiver-0.5.4.17 Update to asciidoc-9.0.5 Update to util-macros-1.19.2 Update to libXt-1.2.1 (Xorg Library) Update to wireshark-3.4.3 (Security Update) git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24158 af4574ff-66df-0310-9fd7-8a98e5e911e0
331 lines
11 KiB
XML
331 lines
11 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY gparted-download-http "&sourceforge-dl;/gparted/gparted-&gparted-version;.tar.gz">
|
|
<!ENTITY gparted-download-ftp " ">
|
|
<!ENTITY gparted-md5sum "15166c40d7ca119432454475294abecf">
|
|
<!ENTITY gparted-size "3.8 MB">
|
|
<!ENTITY gparted-buildsize "107 MB (add 76 MB for tests)">
|
|
<!ENTITY gparted-time "0.3 SBU (using parallelism=4; add 0.2 SBU for tests)">
|
|
]>
|
|
|
|
<sect1 id="gparted" xreflabel="Gparted-&gparted-version;">
|
|
<?dbhtml filename="gparted.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>Gparted-&gparted-version;</title>
|
|
|
|
<indexterm zone="gparted">
|
|
<primary sortas="a-Gparted">Gparted</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to Gparted</title>
|
|
|
|
<para>
|
|
Gparted is the Gnome Partition Editor, a Gtk 3 GUI for other command line
|
|
tools that can create, reorganise or delete disk partitions.
|
|
</para>
|
|
|
|
&lfs10_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&gparted-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&gparted-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &gparted-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &gparted-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &gparted-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &gparted-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<!-- GTKMM2 is no longer used since 1.0.0, see #12110 -->
|
|
<xref linkend="gtkmm3"/> and
|
|
<xref linkend="parted"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="btrfs-progs"/> (if using a btrfs filesystem),
|
|
<!-- These dependencies were obsoleted in version 1.0.0, see #12110 -->
|
|
<!-- <xref linkend="rarian"/>,
|
|
<ulink url="&gnome-download-http;/gnome-doc-utils/">GNOME Doc Utils</ulink> -->
|
|
<ulink url="https://github.com/exfatprogs/exfatprogs">exfatprogs</ulink>, and
|
|
<ulink url="https://github.com/pali/udftools">udftools</ulink>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/gparted"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Gparted</title>
|
|
|
|
<para>
|
|
Install <application>Gparted</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
--disable-doc \
|
|
--disable-static &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
To run the tests, issue: <command>make check</command>. One test,
|
|
<filename>test_PipeCapture</filename>, is known to fail
|
|
<!-- https://gitlab.gnome.org/GNOME/gparted/-/issues/136 -->
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
<para>
|
|
<parameter>--disable-doc</parameter>: This switch disables building of
|
|
the optional documentation. Remove it if you have installed
|
|
<application>GNOME Doc Utils</application>.
|
|
</para>
|
|
|
|
<!-- this is an option, not a parameter, but is it still necessary for
|
|
wayland? -->
|
|
<para>
|
|
<option>--enable-xhost-root</option>: This switch provides an
|
|
interim workaround to allow GParted to run under Wayland by using xhost
|
|
to grant and revoke root access to the X11 display.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="using">
|
|
<title>Using Gparted</title>
|
|
|
|
<para>
|
|
To manipulate file systems Gparted has a run time dependency on various
|
|
file system tools (you only need to install the tools for file systems you
|
|
actually use):
|
|
<xref linkend="hdparm"/>
|
|
(required for optionally displaying serial number device information),
|
|
<xref linkend="btrfs-progs"/>,
|
|
<xref role="runtime" linkend="dosfstools"/>,
|
|
e2fsprogs (installed as part of LFS),
|
|
<xref linkend="jfsutils"/>,
|
|
<xref linkend="ntfs-3g"/>,
|
|
<xref linkend="reiserfs"/>,
|
|
<xref linkend="xfsprogs"/>,
|
|
<ulink url="https://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
|
|
to read and write FAT16/32 volume labels and UUIDs),
|
|
<ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
|
|
<ulink url="https://packages.debian.org/sid/hfsprogs">hfsprogs</ulink>,
|
|
<ulink url="http://nilfs.sourceforge.io/en/">nilfs-utils</ulink> and
|
|
<ulink url="https://reiser4.wiki.kernel.org/index.php/Reiser4progs">
|
|
Reiser4progs</ulink>.
|
|
</para>
|
|
|
|
<para>
|
|
Root privileges are required to run Gparted. If you wish to run the
|
|
application from the menu, further applications and configurations are
|
|
necessary. Examples of applications that may be used:
|
|
<ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>,
|
|
<ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
|
|
<ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
|
|
<!--Another solution is to use <application>pkexec</application>, from
|
|
<xref linkend="polkit"/>, but some configuration is necessary.-->
|
|
Another simple solution is <xref linkend="ssh-askpass"/>. <!--Below, we
|
|
describe these two alternatives: "ssh-askpass" and "pkexec".-->
|
|
</para>
|
|
|
|
<sect3 role="ssh-askpass">
|
|
<title>ssh-askpass</title>
|
|
<para>
|
|
To optionally use <xref linkend="ssh-askpass"/> if it is installed in
|
|
your system, run the following commands as the
|
|
<systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &&
|
|
sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop</userinput></screen>
|
|
|
|
<para>
|
|
Now, clicking on the menu item for Gparted, a dialog appears on the
|
|
screen, asking for the administrator password.</para>
|
|
|
|
</sect3>
|
|
<!--
|
|
<sect3 role="pkexec" revision="sysv">
|
|
<title>pkexec</title>
|
|
<para>
|
|
To optionally use <application>pkexec</application>, you need <xref
|
|
linkend="polkit-gnome"/><!- - or <xref linkend="lxpolkit"/>- ->, and
|
|
<xref linkend="consolekit"/> installed with support to <xref
|
|
linkend="linux-pam"/> and <xref linkend="polkit"/>. As the
|
|
<systemitem class="username">root</systemitem> user, configure <xref
|
|
linkend="gparted"/> and <xref linkend="polkit"/> with the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
|
|
/usr/share/applications/gparted.desktop.back &&
|
|
sed -i 's:/usr/bin/gparted:/usr/bin/gparted_polkit:' \
|
|
/usr/share/applications/gparted.desktop &&
|
|
|
|
cat > /usr/bin/gparted_polkit << "EOF" &&
|
|
<literal>#!/bin/bash
|
|
|
|
pkexec /usr/bin/gparted $@</literal>
|
|
EOF
|
|
chmod -v 0755 /usr/bin/gparted_polkit</userinput></screen>
|
|
|
|
<para>
|
|
Still as the <systemitem class="username">root</systemitem> user,
|
|
configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
|
|
use <application>pkexec</application>:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>cat > /usr/share/polkit-1/actions/org.gnome.gparted.policy << "EOF"
|
|
<literal><?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE policyconfig PUBLIC
|
|
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
|
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
|
<policyconfig>
|
|
|
|
<action id="org.freedesktop.policykit.pkexec.run-gparted">
|
|
<description>Run GParted</description>
|
|
<message>Authentication is required to run GParted</message>
|
|
<defaults>
|
|
<allow_any>no</allow_any>
|
|
<allow_inactive>no</allow_inactive>
|
|
<allow_active>auth_admin_keep</allow_active>
|
|
</defaults>
|
|
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/gparted</annotate>
|
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
|
</action>
|
|
|
|
</policyconfig></literal>
|
|
EOF
|
|
chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
|
|
|
|
<para>
|
|
Now, clicking in the menu item for Gparted, a dialog appears in the
|
|
screen, asking for the administrator password.</para>
|
|
|
|
</sect3>
|
|
-->
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
gparted, gpartedbin and gparted_polkit (optional)
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="gparted-prog">
|
|
<term><command>gparted</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a shell script which sets up the environment before calling
|
|
<command>gpartedbin</command>.
|
|
</para>
|
|
<indexterm zone="gparted gparted-prog">
|
|
<primary sortas="b-gparted">gparted</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gpartedbin">
|
|
<term><command>gpartedbin</command></term>
|
|
<listitem>
|
|
<para>
|
|
is the Gparted binary.
|
|
</para>
|
|
<indexterm zone="gparted gpartedbin">
|
|
<primary sortas="b-gpartedbin">gpartedbin</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gparted_polkit">
|
|
<term><command>gparted_polkit</command></term>
|
|
<listitem>
|
|
<para>
|
|
is an optional script which can be used to run gparted with polkit,
|
|
from a menu.
|
|
</para>
|
|
<indexterm zone="gparted gparted_polkit">
|
|
<primary sortas="b-gparted_polkit">gparted_polkit</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|