What's the best way to turn an Android device into Linux server? I have an Android device with a broken screen and I'd like to turn it into a dedicated Linux server.
Now I'm reading articles found by googling but I'm still not sure what is the best way to do this. One way I've found so far is using Linux Deploy after rooting my phone. However, I'm still not sure it is the best and valid way since I have a little knowledge on Android and Linux.

I have listed below what I want.


A dedicated Linux server so it doesn't need to be run alongside Android. (I don't worry about its performance but I want to fully utilize the device's performance.)
A server which can be accessed via SSH clients such as PuTTY.
A full featured Linux server on which I can run Python and MySQL. (I hope it can be a replacement for my Google Cloud service.)


Can somebody give me a guide for this?
Since Android IS Linux you can use the existing Android configured by your carrier/manufacturer to to run Linux applications. The other approach is to replace the entire OS on the device and this is heavily dependent on the device. Not because compatibility with the CPU or even drivers is a big issue but because carriers lock down features of the device and the boot loader process is extremely convoluted on android devices as well as the need for a image or "rom" to install the distribution as well as a way to flash it to the device all of which are things that are specific to the device and may be locked by the carrier. 

You can use an app called Linux Deploy to install a chrooted Debian distribution. But this will use the Linux kernel provided by the Android OS itself.
https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy