You can do this without GUI:
- On your terminal, navigate to
.config/autostart
directory..config/autostart
may be in your home directory:
cd ~/.config/autostart
2. Open the (new) gnome-terminal.desktop
file with your favourite text editor. I use vi
:
vi gnome-terminal.desktop
3. Paste the following code in the file. Update some lines if you like as you find suitable, or simply use as is:
[Desktop Entry]
Type=Application
Exec=gnome-terminal
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_NG]=Terminal
Name=Terminal
Comment[en_NG]=Start Terminal On Startup
Comment=Start Terminal On Startup
4. Save the file, and you’re done.
If you need the terminal to both start and run a custom shell script command, edit the gnome-terminal.desktop
file and change the line that goes Exec=gnome-terminal
to Exec=gnome-terminal --command "path/to/your/shell/script"
.