The terminal emulator is one of the most controversial applications in Linux. There are many emulators, but in this post, I will show you Alacritty Terminal - the fastest terminal emulator for Linux.

What is Alacritty?

According to Alacritty is a cross-platform, GPU-accelerated terminal emulator works on macOS, Ubuntu, BSD, and Windows. It’s free and open-source software that strongly focus on simplicity and performance. And it features Vi mode, search, Vi search etc.

Alacritty is a cross-platform, GPU-accelerated terminal emulator

Prerequisites?

  • Operating system: Linux - Ubuntu 16.04 to 20.10 with 2GB RAM (4GB preferable)
  • You can use a terminal to run Linux script
  • A user account with sudo privileges

Option 1: Install Alacritty on Ubuntu using APT?

Step 1: Open up your terminal emulator

Firstly, We need to open your terminal to run any command

Step 2: Add the Alacritty PPA to your Linux

sudo add-apt-repository ppa:aslatter/ppa

The system will prompt you to press enter to continue

Install alacritty on Ubuntu and Linux

Step 3: Update the latest versions of the packages

sudo apt update

Step 4: Install the latest version of Alacritty

Now you can start the installation of Alacritty Terminal with this command.

sudo apt install alacritty

Don’t forget to check if is installed correctly.

alacritty -V

If you get something like this, it is working.

alacritty 0.10.0-dev

Install Alacritty on ubuntu linux

Install Alacritty from Source Code

Prerequisites

Clone the source code

Before compiling Alacritty, you’ll have to first clone the source code:

git clone https://github.com/alacritty/alacritty.git
cd alacritty

Install the Rust compiler with rustup

1. Install rustup.rs

2. To make sure you have the right Rust compiler installed, run

rustup override set stable
rustup update stable

Install Dependencies

These are the very minimal requirements for building Alacritty; however, some installations may require extra dependencies.

If you’re using Wayland with an Nvidia GPU, you’ll probably want to install the EGL drivers as well (these are called libegl1-mesa-dev on Ubuntu).

sudo apt-get install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3

Building Alacritty Terminal

cargo build --release

If all goes well, this should place a binary at target/release/alacritty.

Create Alacritty Desktop Entry

Many Linux and BSD distributions support desktop entries for adding applications to system menus. This will create a desktop shortcut for Alacritty:

sudo cp target/release/alacritty /usr/local/bin # or anywhere else in $PATH
sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
sudo desktop-file-install extra/linux/Alacritty.desktop
sudo update-desktop-database

How to Uninstall Alacritty?

sudo apt remove --auto-remove alacritty

When it is uninstalled, you should remove this PPA to make your Ubuntu clean.

sudo add-apt-repository --remove ppa:aslatter/ppa

Conclusion

That’s what there is to it. You’ve completed the installation and setup of the Alacritty Terminal Emulator on Ubuntu.