open a terminal and run these commands in sequence
*these commands were tested in 16.04, not 14.04 as your signature suggests … but I guess they’ll work)
First let’s uninstall testdisk if you already have it installed, because wwe’ll be installing the latest version
sudo apt-get remove purge testdisk
now to get/build/install the lastest version (which includes QPhotoRec), run:
sudo apt-get install -y build-essential linux-headers-generic e2fslibs-dev libncurses5-dev libncursesw5-dev ntfs-3g-dev libjpeg-dev uuid-dev zlib1g-dev qtbase5-dev qttools5-dev-tools pkg-config dh-autoreconf git
then
mkdir ~/photorec-7.1-install-dir
then
cd ~/photorec-7.1-install-dir
then
git clone https://github.com/cgsecurity/testdisk.git
then
cd ~/photorec-7.1-install-dir/testdisk
then
mkdir config
then
autoreconf --install -W all -I config
then
./configure
then
make
then
sudo make install
you’ll now have to edit the launcher before it shows up in the menus, and so it uses gksudo to gain the elevated privileges it requires to run … so run:
sudo kate /usr/local/share/applications/qphotorec.desktop
(replace kate in that command if you’re using a different text editor)
and change the file to read:
[Desktop Entry]
Type=Application
Version=1.0
Name=QPhotoRec
GenericName=Data Recovery Utility
Icon=qphotorec
TryExec=/usr/local/bin/qphotorec
Exec=gksudo /usr/local/bin/qphotorec %F
Terminal=false
Categories=System;Filesystem;Qt;
then SAVE the file
QPhotoRec should now be in your menu.
Okay that’s how to install it … but I can offer no comment on whether it’s any good or whether it’ll nuke your system, so you USE AT YOUR OWN RISK.