how to fix ,while compiling ,errors like “Could not find a package configuration file provided by “Qt5″”

for example :

CMake Error at CMakeLists.txt:19 (find_package): 
  Could not find a package configuration file provided by "Qt5" (requested 
  version 5.6.0) with any of the following names: 

just do this

  1. install apt-file: sudo apt-get install apt-file
  2. update apt-file’s database: apt-file update
  3. search with : apt-file search Qt5Config.cmake

in one line

a="YOURKEY" ; sudo apt-get install apt-file ; apt-file update ;apt-file search "$a"

so in ours example :

a="Qt5Config.cmake" ; sudo apt-get install apt-file ; apt-file update ;apt-file search "$a"

that give us

libaccounts-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/AccountsQt5/AccountsQt5Config.cmake
libphonon4qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/phonon4qt5/Phonon4Qt5Config.cmake
libsignon-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/SignOnQt5/SignOnQt5Config.cmake
libtelepathy-qt5-dev: /usr/lib/x86_64-linux-gnu/cmake/TelepathyQt5/TelepathyQt5Config.cmake
qtbase5-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake
qtbase5-gles-dev: /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake

so we need to install : qtbase5-dev #for example i mean you could even install others but because i am compiling plasma stuff this should be fine


Linux kde kubuntu how to check ssd crucial lifetime

Run this , i have sda like dev you could have sdb etc etc

sudo smartctl -a /dev/sda

grepping for crucial : 0x0031

sudo smartctl -a /dev/sda| grep 0031

You should get this

Percent_Lifetime_Used   0x0031   096   096   000    Pre-fail  Offline- 4

means i used 4 % of CRUCIAL LIFETIME

Accessing the KDE Wallet from the command line kde 5 version

I was trying to read some password ON KDE5 from google-chrome through kwallet and it was a bit a pain with qdbusviewer , actually i can’t get it right now,but i found  luckly an old blog entry for kwallet 4 so … here it is a simply scheme to create write and read password for my silly application kde-service-menu-nowardev-scanner

#create a wallet folder kde-service-menu-storage
qdbus org.kde.kwalletd5 /modules/kwalletd5 createFolder "$(qdbus org.kde.kwalletd5 /modules/kwalletd5 kdewallet 0 "kde-service-menu-nowardev-scanner")" "kde-service-menu-storage" "kde-service-menu-nowardev-scanner" 
#write an entry for password 
qdbus org.kde.kwalletd5 /modules/kwalletd5 writeEntry "$(qdbus org.kde.kwalletd5 /modules/kwalletd5 kdewallet 0 "kde-service-menu-nowardev-scanner")" "kde-service-menu-storage" "" test 1 "kde-service-menu-nowardev-scanner" 
#write the pasword
qdbus org.kde.kwalletd5 /modules/kwalletd5 writePassword "$(qdbus org.kde.kwalletd5 /modules/kwalletd5 kdewallet 0 "kde-service-menu-nowardev-scanner")" "kde-service-menu-storage" "" "silly" "kde-service-menu-nowardev-scanner"
#list the folders
 qdbus org.kde.kwalletd5 /modules/kwalletd5 folderList "$(qdbus org.kde.kwalletd5 /modules/kwalletd5 kdewallet 0 "kde-service-menu-nowardev-scanner")" "kde-service-menu-nowardev-scanner"
#read the entry
qdbus org.kde.kwalletd5 /modules/kwalletd5 entryList "$(qdbus org.kde.kwalletd5 /modules/kwalletd5 kdewallet 0 "kde-service-menu-nowardev-scanner")" "kde-service-menu-storage" "kde-service-menu-nowardev-scanner"
#read the password 
 qdbus org.kde.kwalletd5 /modules/kwalletd5 readPassword "$(qdbus org.kde.kwalletd5 /modules/kwalletd5 kdewallet 0 "kde-service-menu-nowardev-scanner")" "kde-service-menu-storage" "" "kde-service-menu-nowardev-scanner"