source: xsoft/other/gparted.xml@ 8dfc5c3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.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 8dfc5c3 was 8dfc5c3, checked in by Krejzi <krejzi@…>, 7 years ago

Fix some URLs

  • Switch to https:// scheme where possible to avoid redirects
  • Unify all kernel.org, Sourceforge and GNU URLs
  • Fix python and perl module URLs to be consistent
  • Fix github provided URLs to properly download tarballs instead of vFOO.tar.gz
  • Use upstream locations for some packages or better/shorter URLs if available
  • Add https:// URLs for gnupg packages

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19022 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 &lfs80_checked;
38 &gcc7_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&gparted-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&gparted-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &gparted-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &gparted-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &gparted-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &gparted-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Gparted Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="gtkmm2"/> and
79 <xref linkend="parted"/>
80 </para>
81
82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional">
84 <xref linkend="btrfs-progs"/> (if using a btrfs filesystem),
85 <xref linkend="rarian"/>,
86 <ulink url="&gnome-download-http;/gnome-doc-utils/">GNOME Doc Utils</ulink>, and
87 <ulink url="https://github.com/pali/udftools">udftools</ulink>
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 <parameter>--disable-doc</parameter>: 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 <xref linkend="hdparm"/>
142 (required for optionally displaying serial number device information),
143 e2fsprogs (installed as part of LFS),
144 <xref linkend="jfsutils"/>,
145 <xref linkend="ntfs-3g"/>,
146 <xref linkend="reiserfs"/>,
147 <xref linkend="xfsprogs"/>,
148 <ulink url="https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories">
149 btrfs-progs</ulink>,
150 <ulink url="https://github.com/dosfstools/dosfstools/">dosfstools</ulink>,
151 <ulink url="http://ftp.gnu.org/pub/gnu/mtools/">mtools</ulink> (required
152 to read and write FAT16/32 volume labels and UUIDs),
153 <ulink url="ftp://ftp.mars.org/pub/hfs/">hfsutils</ulink>,
154 <ulink url="https://packages.debian.org/sid/hfsprogs/">hfsprogs</ulink>,
155 <ulink url="http://www.nilfs.org/download/">nilfs-utils</ulink> and
156 <ulink url="https://reiser4.wiki.kernel.org/index.php/Reiser4progs">
157 Reiser4progs</ulink>.
158 </para>
159
160 <para>
161 Root privileges are required to run Gparted. If you wish to run the
162 application from the menu, further applications and configurations are
163 necessary. Examples of applications that may be used:
164 <ulink url="http://people.debian.org/~kov/gksu">gksu</ulink>,
165 <ulink url="https://launchpad.net/kdesudo">kdesudo</ulink>, or
166 <ulink url="https://github.com/tarakbumba/xdg-su">xdg-su</ulink>.
167 Another solution is to use <application>pkexec</application>, from
168 <xref linkend="polkit"/>, but some configuration is necessary.
169 Another simple solution is <xref linkend="ssh-askpass"/>. Below, we
170 describe these two alternatives: "ssh-askpass" and "pkexec".
171 </para>
172
173 <sect3 role="ssh-askpass">
174 <title>ssh-askpass</title>
175 <para>
176 To optionally use <xref linkend="ssh-askpass"/> if it is installed in
177 your system, run the following commands as the
178 <systemitem class="username">root</systemitem> user:
179 </para>
180
181<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop /usr/share/applications/gparted.desktop.back &amp;&amp;
182sed -i 's/Exec=/Exec=sudo -A /' /usr/share/applications/gparted.desktop</userinput></screen>
183
184 <para>
185 Now, clicking on the menu item for Gparted, a dialog appears on the
186 screen, asking for the administrator password.</para>
187
188 </sect3>
189
190 <sect3 role="pkexec" revision="sysv">
191 <title>pkexec</title>
192 <para>
193 To optionally use <application>pkexec</application>, you need <xref
194 linkend="polkit-gnome"/><!-- or <xref linkend="lxpolkit"/>-->, and
195 <xref linkend="consolekit"/> installed with support to <xref
196 linkend="linux-pam"/> and <xref linkend="polkit"/>. As the
197 <systemitem class="username">root</systemitem> user, configure <xref
198 linkend="gparted"/> and <xref linkend="polkit"/> with the following
199 commands:
200 </para>
201
202<screen role="root"><userinput>cp -v /usr/share/applications/gparted.desktop \
203 /usr/share/applications/gparted.desktop.back &amp;&amp;
204sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \
205 /usr/share/applications/gparted.desktop &amp;&amp;
206
207cat &gt; /usr/sbin/gparted_polkit &lt;&lt; "EOF" &amp;&amp;
208<literal>#!/bin/bash
209
210pkexec /usr/sbin/gparted $@</literal>
211EOF
212chmod -v 0755 /usr/sbin/gparted_polkit</userinput></screen>
213
214 <para>
215 Still as the <systemitem class="username">root</systemitem> user,
216 configure <xref linkend="polkit"/> and <xref linkend="gparted"/> to
217 use <application>pkexec</application>:
218 </para>
219
220<screen role="root"><userinput>cat &gt; /usr/share/polkit-1/actions/org.gnome.gparted.policy &lt;&lt; "EOF"
221<literal>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
222&lt;!DOCTYPE policyconfig PUBLIC
223 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
224 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"&gt;
225&lt;policyconfig&gt;
226
227 &lt;action id="org.freedesktop.policykit.pkexec.run-gparted"&gt;
228 &lt;description&gt;Run GParted&lt;/description&gt;
229 &lt;message&gt;Authentication is required to run GParted&lt;/message&gt;
230 &lt;defaults&gt;
231 &lt;allow_any&gt;no&lt;/allow_any&gt;
232 &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
233 &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt;
234 &lt;/defaults&gt;
235 &lt;annotate key="org.freedesktop.policykit.exec.path"&gt;/usr/sbin/gparted&lt;/annotate&gt;
236 &lt;annotate key="org.freedesktop.policykit.exec.allow_gui"&gt;true&lt;/annotate&gt;
237 &lt;/action&gt;
238
239&lt;/policyconfig&gt;</literal>
240EOF
241chmod -v 0644 /usr/share/polkit-1/actions/org.gnome.gparted.policy</userinput></screen>
242
243 <para>
244 Now, clicking in the menu item for Gparted, a dialog appears in the
245 screen, asking for the administrator password.</para>
246
247 </sect3>
248
249 </sect2>
250
251 <sect2 role="content">
252 <title>Contents</title>
253
254 <segmentedlist>
255 <segtitle>Installed Programs</segtitle>
256 <segtitle>Installed Libraries</segtitle>
257 <segtitle>Installed Directories</segtitle>
258
259 <seglistitem>
260 <seg>
261 gparted, gpartedbin and gparted_polkit (optional)
262 </seg>
263 <seg>
264 None
265 </seg>
266 <seg>
267 None
268 </seg>
269 </seglistitem>
270 </segmentedlist>
271
272 <variablelist>
273 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
274 <?dbfo list-presentation="list"?>
275 <?dbhtml list-presentation="table"?>
276
277 <varlistentry id="gparted-prog">
278 <term><command>gparted</command></term>
279 <listitem>
280 <para>
281 is a shell script which sets up the environment before calling
282 <command>gpartedbin</command>.
283 </para>
284 <indexterm zone="gparted gparted-prog">
285 <primary sortas="b-gparted">gparted</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id="gpartedbin">
291 <term><command>gpartedbin</command></term>
292 <listitem>
293 <para>
294 is the Gparted binary.
295 </para>
296 <indexterm zone="gparted gpartedbin">
297 <primary sortas="b-gpartedbin">gpartedbin</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="gparted_polkit">
303 <term><command>gparted_polkit</command></term>
304 <listitem>
305 <para>
306 is an optional script which can be used to run gparted with polkit,
307 from a menu.
308 </para>
309 <indexterm zone="gparted gparted_polkit">
310 <primary sortas="b-gparted_polkit">gparted_polkit</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 </variablelist>
316
317 </sect2>
318
319</sect1>
Note: See TracBrowser for help on using the repository browser.