Power of Linux within a mobile app

Janhavi Jain
2 min readOct 6, 2020

Linux, the name is everywhere. Whether you are a techie or a layman, everyone has seen the black screen in movies that the hackers keep typing on and get unimaginable things done on, within moments. Yes, the supremely powerful Linux shell is what I’m talking about.

Linux Shell

Not everyone has enough knowledge to install or even use the Linux OS, but everyone these days, from infants to vegetable sellers seem to have the know-how of using mobile applications. So wouldn’t it be interesting to have an application which gives all that power to the user in an extremely easy to use manner?

To make it more usable, I added the Google’s firebase service to manage the database and keep a record of all the commands run by the application, to keep check on the enormous power being lend to the user. This ensures responsible usage, and it helps make the application safe.

That’s what I decided to work on. Here are the code snippets to hint at the logic behind the application. The app is fully functional, but I’ll be working on it’s deployment and improvement of it’s UI and UX.

Packages

Packages used included Cloud_firestore, firebase_core, material, google_fonts and http.

Firebase was initialized by declaring its instance within the StatefulWidget. Since, the cgi-bin needs to be accessed for the Linux-integration API, the url is stored within the url variable.

The rest of the code includes containers, columns, rows and decorations to make it user friendly as shown here. The output of every command is stored in the “Output” column of my firebase collection.

Hope this article aided your education! Have a nice day!

--

--

Janhavi Jain

Hi there! I write about many technologies like Docker and Hadoop in an easy to understand language. My LinkedIn: https://www.linkedin.com/in/janhavi-jain