How could I get the terminal to be launched once I have logged in, so that typing commands is much simpler?
3 Answers
- Press the Super key (windows key).
- Type "Startup Applications"
- Click on the
Startup Applicationsoption - Click "Add"
- In the "name" field, type
Terminal - In the "command" field, type
gnome-terminal - Click "Add"
You are done! Next time you login, the terminal app will be launched.
- 8,866
- 1,254
You can do this without GUI:
On your terminal, navigate to
.config/autostartdirectory..config/autostartmay be in your home directory:cd ~/.config/autostartOpen the (new)
gnome-terminal.desktopfile with your favourite text editor. I usevi:vi gnome-terminal.desktopPaste 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 StartupSave 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".
-
This approach is more clear and more flexible. Like easily bash commands can also be executed` – Gagan Sep 14 '19 at 04:59
If you don't want to have a terminal window open on every login there is a simple way to get one as soon as you need it: CTRLALTT will open a terminal window immediately.
- 13,134
-
6
-
-
Well it's a way to open the terminal, but OP is looking to get it started automatically at the startup. – mtk Aug 08 '15 at 14:21
-
I cannot vote for this (since it does not address the OP's question), but I still found this really useful: still works in Debian KDE – JonathanDavidArndt Oct 28 '23 at 12:34
x-terminal-emulatorinstead ofgnome-terminal, so if the user usesupdate-alternativesto switch to a different default terminal emulator it gets used instead. Mind if I edit this in? – Michael Hoffmann Sep 22 '18 at 21:31qterminal, the desktop islxqt. – Timo Aug 16 '20 at 10:14