source: xsoft/other/gparted.xml@ 56605b9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 56605b9 was 56605b9, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Remove XML::Parser from perl modules
Archive acl, attr, intltool, expat, gperf
Synchronize libcap with LFS.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@13004 af4574ff-66df-0310-9fd7-8a98e5e911e0

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