I am new to Ubuntu. I just want to startup 3 terminals every time after I Power Off. Thanks for your help in getting me started.
You mean you want to stop the power off sequence and start 3 terminals? Or are you saying that upon every start up, you want 3 terminals started?
after PowerOff? or PowerOn?
As in prompting accurately ⊠search
ârun script after Ubuntu power down and bootupâ
I will leave you to write the script to open three sessions of terminal.
If you want to âpaneâ these terminal windows then try x-tile.
Your first launch script can be to launch x-tile session.
x-tile
then in x-title window which opens choose sessions to launch.
Or see options by running x-tile help.
Which Ubuntu version are you using?
Please clarify: do you want 3 terminals to run after you choose Power Off but before shutdown OR 3 terminals to open when you restart the computer?
What is supposed to happen in these 3 terminals, running scripts?
The more information you give us, the easier it will be to help.
Welcome to Ubuntu Discourse!
Your post did not contain enough information to let anyone help you. From Welcome To Support And Help - Support and Help - Ubuntu Community Hub:
Please edit your post to show this information. For future reference, clicking on those links on that page (Iâd suggest âNothing here matches. I want to ask a different support questionâ) brings up a template for you to fill-out so we have this information in your query.
Thanks!
the latter. Thank you.
during PowerOn. Thank you.
Sorry. OS Ubuntu 22.04.5 LTS. Three terminals opening after restart. Thank you.
You may use crontab: see
https://help.ubuntu.com/community/CronHowto
https://askubuntu.com/questions/2368/how-do-i-set-up-a-cron-job
Perhaps Startup applications is one way to achieve your goal.
@g-schick Yes, that is another way of doing it. However, that would only let you start one instance of the program.
The OP wants 3 terminals to open although we still donât know why or what is supposed to happen in those terminals.
Easiest way to achieve this would be to write a bash script and then add to Startup Applications.
You could also go to Startup Applications give it a name like 3 terminals and add this to the command field then save:
gnome-terminal --window & gnome-terminal --window & gnome-terminal --window &
But this seems like a rather clumsy solution to me.
@rubi1200 I wasnât sure if it will let you start 3 terminals. Should have checked first. But as you suggested with script it does. For learning purpose (and curiosity) I created the script bash3.sh:
#!/bin/bash
bash -c âgnome-terminalâ
bash -c âgnome-terminalâ
bash -c âgnome-terminalâ
Then made it executeable: âchmod +x ./bash3.shâ and added that script to Startup Applications. Works.
Now I have three terminals opened on start up but yet I do not know the final purpose.
At this stage, none of us know what the OP wants to do with those terminals