30

How could I get the terminal to be launched once I have logged in, so that typing commands is much simpler?

3 Answers 3

44
  1. Press the Super key (windows key).
  2. Type "Startup Applications"
  3. Click on the Startup Applications option
  4. Click "Add"
  5. In the "name" field, type Terminal
  6. In the "command" field, type gnome-terminal
  7. Click "Add"

You are done! Next time you login, the terminal app will be launched.

2
  • 1
    It would be better to use x-terminal-emulator instead of gnome-terminal, so if the user uses update-alternatives to switch to a different default terminal emulator it gets used instead. Mind if I edit this in? Commented Sep 22, 2018 at 21:31
  • In ubuntu 20_04 it is qterminal, the desktop is lxqt.
    – Timo
    Commented Aug 16, 2020 at 10:14
10

You can do this without GUI:

  1. 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".

1
  • This approach is more clear and more flexible. Like easily bash commands can also be executed`
    – Gagan
    Commented Sep 14, 2019 at 4:59
7

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.

4
  • 6
    Not really the answer I am looking for.
    – ir-g
    Commented Jan 11, 2014 at 16:48
  • Works for me on Lubuntu Commented Sep 15, 2014 at 18:39
  • Well it's a way to open the terminal, but OP is looking to get it started automatically at the startup.
    – mtk
    Commented Aug 8, 2015 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 Commented Oct 28, 2023 at 12:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .