Artisan Développeur

Qualité, amélioration continue, agilité.

Using mylvmbackup, debian 9 with mariadb

If you run mylvmbackup with mariadb on debian9 with the defaults values, you will have this:

[pastacode lang= »bash » manual= »mycnf%3D%2Fetc%2Fmysql%2Fmy.cnf » message= » » highlight= » » provider= »manual »/]

But it is a symlink pointing to :

[pastacode lang= »bash » manual= »%2Fetc%2Falternatives%2Fmy.cnf » message= » » highlight= » » provider= »manual »/]

And mylvmbackup can’t work with that:

[pastacode lang= »bash » manual= »Could%20not%20copy%20%2Fetc%2Fmysql%2Fmy.cnf%20to%20%2Fvar%2Fcache%2Fmylvmbackup%2Fmnt%2Fbackup-cnf-20171025_151739_mysql%3A%20File%20exists » message= » » highlight= » » provider= »manual »/]

Here is a bug report mylvmbackup symlink my.cnf

 

You just need to setup the mycnf as follow, in the /etc/mylvmbackup.conf or directly in the command line (with –mycnf= ):

[pastacode lang= »bash » manual= »mycnf%3D%2Fetc%2Fmysql%2Fmariadb.cnf » message= » » highlight= » » provider= »manual »/]

Done ! Now mylvmbackup stop complaining 🙂

 

 

2 options to install elasticsearch plugins with ansible

Little post today, to remember, if you want to install plugins for elasticsearch with ansible (or others automation tool) you need to pass:

[pastacode lang= »bash » manual= »–batch%20–silent » message= » » highlight= » » provider= »manual »/]

According to the –help option:

[pastacode lang= »bash » manual= »Option%20Description%0A——%20———–%0A-E%20%3CKeyValuePair%3E%20Configure%20a%20setting%0A-b%2C%20–batch%20Enable%20batch%20mode%20explicitly%2C%20automatic%20confirmation%20of%0Asecurity%20permission%0A-h%2C%20–help%20show%20help%0A-s%2C%20–silent%20show%20minimal%20output%0A-v%2C%20–verbose%20show%20verbose%20output » message= »help for elasticsearch plugin install » highlight= » » provider= »manual »/]

Here my ansible task:

[pastacode lang= »bash » manual= »%23%20install%20x-pack%20for%20elasticsearch%0A-%20name%3A%20Install%20x-pack%20for%20elasticsearch%0A%20%20command%3A%20bin%2Felasticsearch-plugin%20install%20x-pack%20–silent%20–batch%0A%20%20args%3A%0A%20%20%20%20%20%20chdir%3A%20%2Fusr%2Fshare%2Felasticsearch » message= »ansible task install x-pack elasticsearch » highlight= » » provider= »manual »/]

And to install x-pack in Kibana:

[pastacode lang= »bash » manual= »%23%20install%20x-pack%20for%20kibana%0A-%20name%3A%20Install%20x-pack%20for%20kibana%0A%20%20command%3A%20bin%2Fkibana-plugin%20install%20x-pack%20–silent%0A%20%20args%3A%0A%20%20%20%20%20%20chdir%3A%20%2Fusr%2Fshare%2Fkibana » message= » » highlight= » » provider= »manual »/]

 

As always improvements en comments are welcome 🙂

How to build latest heimdall – samsung galaxy grand prime SM-G530FM – Failed to download PIT file

I have a Samsung galaxy grand prime (aka SM-G530FZ), and I want to install a new custom rom.

I want to use Heimdall to install a custom recovery, as usual I search on xda-developers (best mobile resources) and find several thread about Galaxy grand prime.

But when I want to install the recovery with the simple command :

[pastacode lang= »bash » manual= »heimdall%20flash%20–RECOVERY%20recovery.img » message= » » highlight= » » provider= »manual »/]

I had the following error:

[pastacode lang= »bash » manual= »ERROR%3A%20Failed%20to%20send%20request%20to%20end%20PIT%20file%20transfer!%0AERROR%3A%20Failed%20to%20download%20PIT%20file!%0A » message= » » highlight= » » provider= »manual »/]

Solution is to build heimdall from sources.

https://github.com/Benjamin-Dobell/Heimdall

  1. Clone github repository
  2. Build
  3. Make
  4. profit

1. Clone heimdall repository

First create a directory for heimdall:

[pastacode lang= »bash » manual= »mkdir%20heimdallFromSources » message= » » highlight= » » provider= »manual »/]

And clone:

[pastacode lang= »bash » manual= »git%20clone%20https%3A%2F%2Fgithub.com%2FBenjamin-Dobell%2FHeimdall.git » message= » » highlight= » » provider= »manual »/]

2. Build it

From the linux/README

Appendix B – Installing Heimdall Suite from Source:

1. First make sure you have installed build-essential, cmake, zlib1g-dev,
qt5-default, libusb-1.0-0-dev and OpenGL (e.g libgl1-mesa-glx and
libgl1-mesa-dev).

NOTE: Package names may not be absolutely identical to those above.

2. Open a terminal and navigate to the directory you downloaded,
or extracted, Heimdall to.

3. Enter the following commands to compile Heimdall Suite:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

Make sure you have all requirements from the 1 point and follow point 3

[pastacode lang= »bash » manual= »cd%20Heimdall%0Amkdir%20build%0Acd%20Build%0Acmake%20-DCMAKE_BUILD_TYPE%3DRelease%20..%20(note%20the%20..%20are%20important)%0Amake%0A » message= » » highlight= » » provider= »manual »/]

After that

[pastacode lang= »bash » manual= »cd%20libpit%0Amake%0Acd%20..%0Acd%20heimdall%0Amake%0A » message= » » highlight= » » provider= »manual »/]

If all run without issue, you will have a bin folder, with heimdall in it.

run:

[pastacode lang= »bash » manual= ».%2Fheimdall%20flash%20–RECOVERY%20path%2Fto%2Fyou%2Frecovery.img » message= » » highlight= » » provider= »manual »/]

That’s for heimdall !

After rebooting to the custom recovery with volume up + home + power I can’t user it, because touchscreen is not functionnal !

To save your time this is the TWRP functional for me https://www.androidfilehost.com/?fid=312968873555005412 (01/05/2017)

In this very moment I try to install the resurrection remix, I have tried 3 version so far, and no touchscreen … I let you know if I find a working release, if not, I think I will try lineageos

Resources :

https://www.androidfilehost.com/?w=files&flid=136737

https://forum.xda-developers.com/grand-prime/general/master-thread-samsung-galaxy-grand-prime-t3481435

https://forum.xda-developers.com/grand-prime/development/cyanogenmod-14-0-galaxy-grand-prime-t3462500

https://jenkins.sandpox.org/job/FORTUNAXX_LINEAGEOS-14.1/

http://opengapps.org/