Hi Ashish,
Sorry for late reply. We have moved away from influxdb for various reasons. And I am not using the forum as much.
Yes, I got the prophet to work with linux - ubuntu 16.04. I dont think it would be much different with other distros.
As far as I remember the code and kapacitor config setup for prophet shared here: Prophet Forecasting UDF - Unable to write response to InfluxDB - #15 by dpayne works fine . But the important thing was to switch to kapacitor user in linux to run python script, which creates the socket file, then you start kapacitor and it can read the socket file.
I hope it helps, good luck.