source: xsoft/other/gparted.xml@ 4049347a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 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 4049347a was 876cd11, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Gparted: typo and format.

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

  • Property mode set to 100644
File size: 11.5 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 "ecd66491bb2061c6aa6077cc24823b9e">
11 <!ENTITY gparted-size "2.0 MB">
12 <!ENTITY gparted-buildsize "77 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 &lfs74_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"/>,
80 <xref linkend="intltool"/> and
81 <xref linkend="parted"/>
82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <ulink url="&gnome-download-http;/gnome-doc-utils/">
87 GNOME Doc Utils</ulink> and
88 <xref linkend="rarian"/>
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
104<screen><userinput>./configure --prefix=/usr \
105 --disable-doc \
106 --disable-static &amp;&amp;
107make</userinput></screen>
108
109 <para>
110 This package does not come with a testsuite.
111 </para>
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>
118
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
125 href="../../xincludes/static-libraries.xml"/>
126
127 <para>
128 <option>--disable-doc</option>: This switch disables building of
129 the optional documentation. Remove it if you have installed
130 <application>GNOME Doc Utils</application>.
131 </para>
132
133 </sect2>
134
135 <sect2 role="using">
136 <title>Using Gparted</title>
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"/>,
146 <xref linkend="xfsprogs"/>,
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>
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:
162 <ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>,
163 <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
164 <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
165 Other solution is to use <application>pkexec</application>, from
166 <xref linkend="polkit"/>, but some configuration is necessary.
167 Another simple solution is the <application>GTK+</application> based
168 <application>ssh-askpass</application> (does not need
169 <application>GNOME</application>). Below, we describe these two
170 alternatives: "ssh-askpass" and "pkexec".
171 </para>
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 &amp;&amp;
184make 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 &amp;&amp;
191install -v -m755 gnome-ssh-askpass2 /usr/lib/openssh/contrib &amp;&amp;
192ln -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 &amp;&amp;
201sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop &amp;&amp;
202
203cat &gt;&gt; /etc/sudo.conf &lt;&lt; "EOF" &amp;&amp;
204# Path to askpass helper program
205Path askpass /usr/lib/openssh/ssh-askpass
206EOF
207chmod -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 &lt;program&gt;",
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
223 <xref linkend="polkit-gnome"/> or <xref linkend="lxpolkit"/>, and
224 <xref linkend="consolekit"/> installed with support to
225 <xref linkend="linux-pam"/> and <xref linkend="polkit"/>.
226 As the <systemitem class="username">root</systemitem> user,
227 configure <xref linkend="gparted"/> and <xref linkend="polkit"/> with
228 the following commands:
229 </para>
230
231<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
232 /usr/share/applications/gparted.desktop.back &amp;&amp;
233sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
234 /usr/share/applications/gparted.desktop &amp;&amp;
235
236cat &gt; /usr/sbin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
237#!/bin/bash
238if [ $(which pkexec) ]; then
239 pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
240else
241 /usr/sbin/gparted "$@"
242fi
243EOF
244chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
245
246 <para>
247 Still as the <systemitem class="username">root</systemitem> user,
248 configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
249 use <application>pkexec</application>:
250 </para>
251
252<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy &lt;&lt; "EOF"
253&lt;?xml version="1.0" encoding="UTF-8"?&gt;
254&lt;!DOCTYPE policyconfig PUBLIC
255 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
256 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"&gt;
257&lt;policyconfig&gt;
258
259 &lt;action id="org.freedesktop.policykit.pkexec.run-gparted"&gt;
260 &lt;description&gt;Run GParted&lt;/description&gt;
261 &lt;message&gt;Authentication is required to run GParted&lt;/message&gt;
262 &lt;defaults&gt;
263 &lt;allow_any&gt;no&lt;/allow_any&gt;
264 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
265 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
266 &lt;/defaults&gt;
267 &lt;annotate key="org.freedesktop.policykit.exec.path"&gt;/usr/sbin/gparted&lt;/annotate&gt;
268 &lt;annotate key="org.freedesktop.policykit.exec.allow_gui"&gt;true&lt;/annotate&gt;
269 &lt;/action&gt;
270
271&lt;/policyconfig&gt;
272EOF
273chmod -v 0644 /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy</userinput></screen>
274
275 <para>
276 Now, clicking in the menu item for Gparted, a dialog appears in the
277 screen, asking for the administrator password. Any graphical program
278 requiring root privileges can be run using "pkexec &lt;program&gt;",
279 e.g. from a terminal, from a desktop launcher, or including it in the
280 desktop file.
281 </para>
282
283 </sect3>
284
285 </sect2>
286
287 <sect2 role="content">
288 <title>Contents</title>
289
290 <segmentedlist>
291 <segtitle>Installed Programs</segtitle>
292 <segtitle>Installed Libraries</segtitle>
293 <segtitle>Installed Directories</segtitle>
294
295 <seglistitem>
296 <seg>
297 gparted and gpartedbin
298 </seg>
299 <seg>
300 None
301 </seg>
302 <seg>
303 /usr/share/gnome/help/gparted and
304 /usr/share/omf/gparted
305 </seg>
306 </seglistitem>
307 </segmentedlist>
308
309 <variablelist>
310 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
311 <?dbfo list-presentation="list"?>
312 <?dbhtml list-presentation="table"?>
313
314 <varlistentry id="gparted-prog">
315 <term><command>gparted</command></term>
316 <listitem>
317 <para>
318 is a shell script which sets up the environment before calling
319 <command>gpartedbin</command>.
320 </para>
321 <indexterm zone="gparted gparted-prog">
322 <primary sortas="b-gparted">gparted</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="gpartedbin">
328 <term><command>gpartedbin</command></term>
329 <listitem>
330 <para>
331 is the Gparted binary.
332 </para>
333 <indexterm zone="gparted gpartedbin">
334 <primary sortas="b-gpartedbin">gpartedbin</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 </variablelist>
340
341 </sect2>
342
343</sect1>
Note: See TracBrowser for help on using the repository browser.