Well it is possible. Well for ubuntu you can go for wide range of options but I will propose you go for python (quite easy to implement) or C/C++. .NET framework is not inherently supported on linux...