Open a terminal window and type the following commands one-by-one:
sudo apt-get install libusb-dev
cd (go to the path where you've downloaded the SpFlashTool)
tar -xvzf SP_Flash_Tool_Linux_v5.1520.00.100.tar.gz
chmod +x flash_tool.sh
chmod +x flash_tool
After you’ve entered all the commands, SPFlashTool should be installed on your PC and the shortcut should appear in the list of all applications.
Now let’s prepare your PC before connecting a Redmi Note 4 MTK device to it.
Open terminal and enter the following commands:
Disable USB connection security:
sudo apt remove modemmanager
Check by typing:
lsmod | grep cdc_acm
In case nothing happened after the previous line, try entering:
sudo modprobe cdc_acm
Now add the user account to “dialout” and “uucp” groups: