Author Topic: [SOLVED] Unable to install the GUI for Testdisk/QPhotorec  (Read 882 times)

0 Members and 1 Guest are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2039
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
[SOLVED] Unable to install the GUI for Testdisk/QPhotorec
« on: May 14, 2018, 10:57:55 pm »
I've installed testdisk and searched for an answer on how to install the gui but was unable to find the solution.
I found THIS thread but even after trying it, I get a warning that it's not production ready!!!

Even though I click on the 'OK', the program stops.

Is there any way I can get the GUI installed?
« Last Edit: May 24, 2018, 11:30:46 am by pooky2483 »

Kubuntu 16.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17657
  • Karma: 456
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to install the GUI for Testdisk/QPhotorec
« Reply #1 on: May 16, 2018, 02:18:05 am »
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
Code: [Select]
sudo apt-get remove purge testdisk
now to get/build/install the lastest version (which includes QPhotoRec), run:
Code: [Select]
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
Code: [Select]
mkdir ~/photorec-7.1-install-dir
then
Code: [Select]
cd ~/photorec-7.1-install-dir
then
Code: [Select]
git clone https://github.com/cgsecurity/testdisk.git
then
Code: [Select]
cd ~/photorec-7.1-install-dir/testdisk
then
Code: [Select]
mkdir config
then
Code: [Select]
autoreconf --install -W all -I config
then
Code: [Select]
./configure
then
Code: [Select]
make
then
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
[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.
« Last Edit: May 16, 2018, 02:19:49 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2039
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to install the GUI for Testdisk/QPhotorec
« Reply #2 on: May 16, 2018, 08:45:20 pm »
I managed to get qphotorec working.
I had to further edit qphotorec.desktop and change the GKSUDO to just SUDO (GKSUDO would not work), which calls something up, which then disappears straight away.
In the end, I have to call it in terminal using
Code: [Select]
sudo qphotorec

[Desktop Entry]
Type=Application
Version=1.0
Name=QPhotoRec
GenericName=Data Recovery Utility
Icon=qphotorec
TryExec=/usr/local/bin/qphotorec
Exec=sudo /usr/local/bin/qphotorec %F
Terminal=false
Categories=System;Filesystem;Qt;

Theres also a menu entry for Testdisk which does not work, again, I have to call it using
Code: [Select]
sudo testdisk

Thanks for at least getting it installed :-)
« Last Edit: May 16, 2018, 08:54:31 pm by pooky2483 »

Kubuntu 16.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17657
  • Karma: 456
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to install the GUI for Testdisk/QPhotorec
« Reply #3 on: May 16, 2018, 10:05:22 pm »
I keep forgetting you run KDE

change "gksudo" to "kdesudo"

I'm also betting that the testdisk launcher is pointing at /usr/bin/testdisk .. yet testdisk got installed to /usr/local/bin/testdisk .. so you'll need to modify its launcher too.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2039
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to install the GUI for Testdisk/QPhotorec
« Reply #4 on: May 17, 2018, 04:27:50 pm »
I'm having trouble finding the testdisk launcher, all I can find is in the screenshot...

Kubuntu 16.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17657
  • Karma: 456
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Unable to install the GUI for Testdisk/QPhotorec
« Reply #5 on: May 17, 2018, 10:45:08 pm »
run
Code: [Select]
sudo updatedb
now what's the output from:
Code: [Select]
locate -i testdisk
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2039
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to install the GUI for Testdisk/QPhotorec
« Reply #6 on: May 18, 2018, 12:22:40 pm »
Code: [Select]
locate -i testdisk
(click to show/hide)

Kubuntu 16.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 2039
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Unable to install the GUI for Testdisk/QPhotorec
« Reply #7 on: May 18, 2018, 12:23:19 pm »
This is the second part of the results as it was too big to fit in one message...
(click to show/hide)

Kubuntu 16.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17657
  • Karma: 456
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: [SOLVED] Unable to install the GUI for Testdisk/QPhotorec
« Reply #8 on: May 25, 2018, 12:41:55 pm »
testdisk is a command line utility, so won't have a "launcher" .. it's what the QPhotoRec GUI front end is using in the background.

Command line utilities don't have menu items, or you'd have a VERY full menu ;)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal