Skip to content

Instantly share code, notes, and snippets.

@cobaohieu
Last active June 21, 2021 04:28
Show Gist options
  • Save cobaohieu/7bfb9a8a1130c54285a0a3f3517cff26 to your computer and use it in GitHub Desktop.
Save cobaohieu/7bfb9a8a1130c54285a0a3f3517cff26 to your computer and use it in GitHub Desktop.
update-alternatives for terminal on Ubuntu

Run the following commands as root or user with sudo access to update the packages list and install the prerequisites: To install the Development Tools packages, run the following command as root or user with sudo privileges :

$ sudo apt update
$ sudo apt-get upgrade -y
$ sudo apt-get dist-upgrade -y
$ sudo apt-get install build-essential software-properties-common manpages-dev -y
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
$ sudo apt-get update -y

Install Tilix if you wanna use this as a main terminal

$ sudo apt-get install -y tilix

So we have 7 - use these in update-alernatives

$ sudo update-alternatives --config x-terminal-emulator
There are 7 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).

  Selection    Path                             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/terminator               50        auto mode
  1            /usr/bin/gnome-terminal.wrapper   40        manual mode
  2            /usr/bin/koi8rxterm               20        manual mode
  3            /usr/bin/lxterm                   30        manual mode
  4            /usr/bin/terminator               50        manual mode
  5            /usr/bin/tilix.wrapper            30        manual mode
  6            /usr/bin/uxterm                   20        manual mode
  7            /usr/bin/xterm                    20        manual mode

Press <enter> to keep the current choice[*], or type selection number: 5
update-alternatives: using /usr/bin/tilix.wrapper to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in manual mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment