source: xsoft/other/gparted.xml@ 475a5da6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 475a5da6 was ad09e9f5, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Tags

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

  • Property mode set to 100644
File size: 10.6 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 "&sourceforge-dl;/gparted/gparted-&gparted-version;.tar.gz">
8 <!ENTITY gparted-download-ftp " ">
9 <!ENTITY gparted-md5sum "e29cb2061da59c6a279d9d294cf2a343">
10 <!ENTITY gparted-size "3.6 MB">
11 <!ENTITY gparted-buildsize "69 MB">
12 <!ENTITY gparted-time "1.1 SBU">
13]>
14
15<sect1 id="gparted" xreflabel="Gparted-&gparted-version;">
16 <?dbhtml filename="gparted.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Gparted-&gparted-version;</title>
24
25 <indexterm zone="gparted">
26 <primary sortas="a-Gparted">Gparted</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Gparted</title>
31
32 <para>
33 Gparted is the Gnome Partition Editor, a Gtk 2 GUI for other command line
34 tools that can create, reorganise or delete disk partitions.
35 </para>
36
37 &lfs81_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&gparted-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&gparted-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &gparted-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &gparted-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &gparted-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &gparted-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
77 <xref linkend="gtkmm2"/> and
78 <xref linkend="parted"/>
79 </para>
80
81 <bridgehead renderas="sect4">Optional</bridgehead>
82 <para role="optional">
83 <xref linkend="btrfs-progs"/> (if using a btrfs filesystem),
84 <xref linkend="rarian"/>,
85 <ulink url="&gnome-download-http;/gnome-doc-utils/">GNOME Doc Utils</ulink>, and
86 <ulink url="https://github.com/pali/udftools">udftools</ulink>
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
102<screen><userinput>./configure --prefix=/usr \
103 --disable-doc \
104 --disable-static &amp;&amp;
105make</userinput></screen>
106
107 <para>
108 This package does not come with a testsuite.
109 </para>
110
111 <para>
112 Now, as the <systemitem class="username">root</systemitem> user:
113 </para>
114
115<screen role="root"><userinput>make install</userinput></screen>
116
117 </sect2>
118
119 <sect2 role="commands">
120 <title>Command Explanations</title>
121
122 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
123 href="../../xincludes/static-libraries.xml"/>
124
125 <para>
126 <parameter>--disable-doc</parameter>: This switch disables building of
127 the optional documentation. Remove it if you have installed
128 <application>GNOME Doc Utils</application>.
129 </para>
130
131 </sect2>
132
133 <sect2 role="using">
134 <title>Using Gparted</title>
135
136 <para>
137 To manipulate file systems Gparted has a run time dependency on various
138 file system tools (you only need to install the tools for file systems you
139 actually use):
140 <xref linkend="hdparm"/>
141 (required for optionally displaying serial number device information),
142 e2fsprogs (installed as part of LFS),
143 <xref linkend="jfsutils"/>,
144 <xref linkend="ntfs-3g"/>,
145 <xref linkend="reiserfs"/>,
146 <xref linkend="xfsprogs"/>,
147 <ulink url="https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories">
148 btrfs-progs</ulink>,
149 <ulink url="https://github.com/dosfstools/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 <ulink url="https://packages.debian.org/sid/hfsprogs/">hfsprogs</ulink>,
154 <ulink url="http://www.nilfs.org/download/">nilfs-utils</ulink> and
155 <ulink url="https://reiser4.wiki.kernel.org/index.php/Reiser4progs">
156 Reiser4progs</ulink>.
157 </para>
158
159 <para>
160 Root privileges are required to run Gparted. If you wish to run the
161 application from the menu, further applications and configurations are
162 necessary. Examples of applications that may be used:
163 <ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>,
164 <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
165 <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
166 Another solution is to use <application>pkexec</application>, from
167 <xref linkend="polkit"/>, but some configuration is necessary.
168 Another simple solution is <xref linkend="ssh-askpass"/>. Below, we
169 describe these two alternatives: "ssh-askpass" and "pkexec".
170 </para>
171
172 <sect3 role="ssh-askpass">
173 <title>ssh-askpass</title>
174 <para>
175 To optionally use <xref linkend="ssh-askpass"/> if it is installed in
176 your system, run the following commands as the
177 <systemitem class="username">root</systemitem> user:
178 </para>
179
180<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &amp;&amp;
181sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop</userinput></screen>
182
183 <para>
184 Now, clicking on the menu item for Gparted, a dialog appears on the
185 screen, asking for the administrator password.</para>
186
187 </sect3>
188
189 <sect3 role="pkexec" revision="sysv">
190 <title>pkexec</title>
191 <para>
192 To optionally use <application>pkexec</application>, you need <xref
193 linkend="polkit-gnome"/><!-- or <xref linkend="lxpolkit"/>-->, and
194 <xref linkend="consolekit"/> installed with support to <xref
195 linkend="linux-pam"/> and <xref linkend="polkit"/>. As the
196 <systemitem class="username">root</systemitem> user, configure <xref
197 linkend="gparted"/> and <xref linkend="polkit"/> with the following
198 commands:
199 </para>
200
201<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
202 /usr/share/applications/gparted.desktop.back &amp;&amp;
203sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
204 /usr/share/applications/gparted.desktop &amp;&amp;
205
206cat &gt; /usr/sbin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
207<literal>#!/bin/bash
208
209pkexec /usr/sbin/gparted $@</literal>
210EOF
211chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
212
213 <para>
214 Still as the <systemitem class="username">root</systemitem> user,
215 configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
216 use <application>pkexec</application>:
217 </para>
218
219<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
220<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
221&lt;!DOCTYPE policyconfig PUBLIC
222 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
223 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"&gt;
224&lt;policyconfig&gt;
225
226 &lt;action id="org.freedesktop.policykit.pkexec.run-gparted"&gt;
227 &lt;description&gt;Run GParted&lt;/description&gt;
228 &lt;message&gt;Authentication is required to run GParted&lt;/message&gt;
229 &lt;defaults&gt;
230 &lt;allow_any&gt;no&lt;/allow_any&gt;
231 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
232 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
233 &lt;/defaults&gt;
234 &lt;annotate key="org.freedesktop.policykit.exec.path"&gt;/usr/sbin/gparted&lt;/annotate&gt;
235 &lt;annotate key="org.freedesktop.policykit.exec.allow_gui"&gt;true&lt;/annotate&gt;
236 &lt;/action&gt;
237
238&lt;/policyconfig&gt;</literal>
239EOF
240chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
241
242 <para>
243 Now, clicking in the menu item for Gparted, a dialog appears in the
244 screen, asking for the administrator password.</para>
245
246 </sect3>
247
248 </sect2>
249
250 <sect2 role="content">
251 <title>Contents</title>
252
253 <segmentedlist>
254 <segtitle>Installed Programs</segtitle>
255 <segtitle>Installed Libraries</segtitle>
256 <segtitle>Installed Directories</segtitle>
257
258 <seglistitem>
259 <seg>
260 gparted, gpartedbin and gparted_polkit (optional)
261 </seg>
262 <seg>
263 None
264 </seg>
265 <seg>
266 None
267 </seg>
268 </seglistitem>
269 </segmentedlist>
270
271 <variablelist>
272 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
273 <?dbfo list-presentation="list"?>
274 <?dbhtml list-presentation="table"?>
275
276 <varlistentry id="gparted-prog">
277 <term><command>gparted</command></term>
278 <listitem>
279 <para>
280 is a shell script which sets up the environment before calling
281 <command>gpartedbin</command>.
282 </para>
283 <indexterm zone="gparted gparted-prog">
284 <primary sortas="b-gparted">gparted</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="gpartedbin">
290 <term><command>gpartedbin</command></term>
291 <listitem>
292 <para>
293 is the Gparted binary.
294 </para>
295 <indexterm zone="gparted gpartedbin">
296 <primary sortas="b-gpartedbin">gpartedbin</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="gparted_polkit">
302 <term><command>gparted_polkit</command></term>
303 <listitem>
304 <para>
305 is an optional script which can be used to run gparted with polkit,
306 from a menu.
307 </para>
308 <indexterm zone="gparted gparted_polkit">
309 <primary sortas="b-gparted_polkit">gparted_polkit</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 </variablelist>
315
316 </sect2>
317
318</sect1>
Note: See TracBrowser for help on using the repository browser.