For Linux operating system I think it is best to use Quillpad a web based phonetic Hindi typing software. It can also be used on many other platforms too, I e with FB, WA apps.