Screencast.From.2025-03-01.17-08-40.mp4
This project is a Python-based GUI terminal and Bash script generator powered by Google's Gemini AI. It allows users to execute Linux commands, enforce input restrictions, and generate executable Bash scripts from natural language descriptions.
- Custom Linux Terminal: Linux shell
- Bash Script Generator: Converts natural language task descriptions into Bash scripts using Gemini AI.
- Interactive Interface: Built with Tkinter for ease of use.
- Command Execution: Supports running Bash commands directly within the application.
- Script Saving: Save generated Bash scripts and make them executable automatically.
Ensure you have the following installed:
- Python 3.x
- Tkinter (included with Python standard library)
- Google Generative AI SDK
- Clone this repository:
git clone https://github.com/your-repo/custom-linux-terminal.git cd custom-linux-terminal - Install dependencies:
pip install google-generativeai
- Replace
GEMINI_API_KEYin the script with your actual Google Gemini API key. - Run the application:
python terminal_gui.py
- Start typing commands after the prompt (
$sign). - Commands execute on pressing
Enter. - The terminal prevents accidental deletion of the prompt.
- Type
clearto reset the terminal.
- Enter a description of the task (e.g., "List all .txt files").
- Click "Generate Script" to create a Bash script.
- Review the script in the text box.
- Click "Save Script" to store it as an executable
.shfile.
- The AI-generated commands may require verification before execution.
- Running incorrect Bash commands may affect your system. Use with caution.
This project is open-source. Feel free to modify and use it as needed.
Developed by Haider.