%general-entities; ]> $LastChangedBy$ $Date$ Gparted-&gparted-version; Gparted Introduction to Gparted Gparted is the Gnome Partition Editor, a Gtk 2 GUI for other command line tools that can create, reorganise or delete disk partitions. &lfs74_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &gparted-md5sum; Download size: &gparted-size; Estimated disk space required: &gparted-buildsize; Estimated build time: &gparted-time; Gparted Dependencies Required , and Optional GNOME Doc Utils and User Notes: Installation of Gparted Install Gparted by running the following commands: ./configure --prefix=/usr \ --disable-doc \ --disable-static && make This package does not come with a testsuite. Now, as the root user: make install Command Explanations : This switch disables building of the optional documentation. Remove it if you have installed GNOME Doc Utils. Using Gparted 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): e2fsprogs (installed as part of LFS), , , , , btrfs-progs, dosfstools, mtools (required to read and write FAT16/32 volume labels and UUIDs), hfsutils, hfsprogs, nilfs-utils and reiser4progs. 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: gksu, kdesudo, or xdg-su. Other solution is to use pkexec, from , but some configuration is necessary. Another simple solution is the GTK+ based ssh-askpass (does not need GNOME). Below, we describe these two alternatives: "ssh-askpass" and "pkexec". ssh-askpass To optionally use ssh-askpass, you need and to be installed. Uncompress the tarball and, inside the source directory, install ssh-askpass by running the following commands: cd contrib && make gnome-ssh-askpass2 Now, as the root user: install -v -d -m755 /usr/lib/openssh/contrib && install -v -m755 gnome-ssh-askpass2 /usr/lib/openssh/contrib && ln -sv -f contrib/gnome-ssh-askpass2 /usr/lib/openssh/ssh-askpass Still as the root user, configure and to use ssh-askpass: 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 && cat >> /etc/sudo.conf << "EOF" && # Path to askpass helper program Path askpass /usr/lib/openssh/ssh-askpass EOF chmod -v 0644 /etc/sudo.conf Now, clicking in the menu item for Gparted, a dialog appears in the screen, asking for the administrator password. Any graphical program requiring root privileges can be run using "sudo -A <program>", e.g. from a terminal, from a desktop launcher, or including it in the desktop file. pkexec To optionally use pkexec, you need (for the script), or , and installed with support to and . As the root user, configure and with the following commands: cp -v /usr/share/applications/gparted.desktop \ /usr/share/applications/gparted.desktop.back && sed -i 's:/usr/sbin/gparted:/usr/sbin/gparted_polkit:' \ /usr/share/applications/gparted.desktop && cat > /usr/sbin/gparted_polkit << "EOF" && #!/bin/bash if [ $(which pkexec) ]; then pkexec --disable-internal-agent "/usr/sbin/gparted" "$@" else /usr/sbin/gparted "$@" fi EOF chmod -v 0755 /usr/sbin/gparted_polkit Still as the root user, configure and to use pkexec: cat > /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy << "EOF" <?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/sbin/gparted</annotate> <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> </action> </policyconfig> EOF chmod -v 0644 /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy Now, clicking in the menu item for Gparted, a dialog appears in the screen, asking for the administrator password. Any graphical program requiring root privileges can be run using "pkexec <program>", e.g. from a terminal, from a desktop launcher, or including it in the desktop file. Contents Installed Programs Installed Libraries Installed Directories gparted and gpartedbin None /usr/share/gnome/help/gparted and /usr/share/omf/gparted Short Descriptions gparted is a shell script which sets up the environment before calling gpartedbin. gparted gpartedbin is the Gparted binary. gpartedbin