A simple web-based terminal built with Flask. This terminal allows users to execute basic commands via a browser interface and displays the output in real-time.
- Web-based interface: Accessible from any device with a web browser.
- Security Measures: Uses subprocess to securely handle commands.
Ensure you have the following installed:
- Python 3.x
- Flask (
pip install Flask
)
-
Clone this repository:
git clone https://github.com/Amitminer/WebTerminal.git cd WebTerminal
-
Install required dependencies:
pip install Flask
-
Run the application:
python terminal.py
-
Access the WebTerminal in your browser:
http://localhost:5000
Feel free to expand the list of commands by modifying terminal.py
.
For deploying the app on a server, you can use services like Linode, AWS, or a VPS. To run it on a VPS:
- Install Python and Flask on the VPS.
- Run
python terminal.py
on the server. - Access the terminal using the server's IP address and port (default port: 5000).
You can change the port in
terminal.py
by modifying the last line:app.run(host='0.0.0.0', port=your_port)
You can customize the terminal's appearance by editing the HTML and CSS in the terminal.py
template string. Change colors, fonts, or layout as per your needs.