open a terminal from python
You could do this:
os.system("gnome-terminal -e 'bash -c \"sudo apt-get update; exec bash\"'")
There are a few choices:
- add
; read -p "Hit ENTER to exit"
to the end of the command line. - add
; sleep 10
to the end of the command line to wait a bit, then exit. Configure gnome terminal:
Go to the "Edit" menu and click "Current Profile". Click on the "Title and Command" tab. In there, there is a setting called "When command exits". Change it to "hold the terminal open". You could also create a new profile.