Instead of using the default Terminal emulator App, I want to open a Terminal Tab on the Chrome or Firefox Browser which I can do on Chromium OS (Crosh) but not on Ubuntu.
You can use node environment for it.
Then install web-terminal
npm install web-terminal -g web-terminal --port 8088
just open that link in your browser:
You can add a new entry to startup applications to launch it automatically at startup.
Open that window, name your entry and add the command in it or add the path of your bash script.
It's not a good idea to use a terminal emulator on your web browser. If you don't feel secure in your local network and you are not behind a firewall router, attackers may infiltrate in your operating system.
Closing the assigned port to incoming connection attempts via
ufw blocks accession to your computer from local network or internet.
sudo ufw enable sudo ufw deny in 8088
Check out the status of your firewall:
sudo ufw status