Default [Q] Setting up web server on flooded Wildfire S

Hi everyone!

A couple of months ago I got my Wildfire S accidentally flooded. It was just collecting dust since then, but today I came up with an idea to get a web server running on it. As far as I know, everything works fine except the display. So here's my question: is there a way to set up a server on that phone without the need to use the touchscreen? Maybe I could install some light linux distribution and configure it via USB/SSH?