Linux Mint

How to Install Alacritty on Linux Mint 21

Alacritty is a terminal emulator that is fast and efficient as it uses the GPU to accelerate rendering, making it one of the fastest terminals available for free. Alacritty is open-source and cross-platform, and it is written in Rust, a programming language known for its memory safety and performance. So, if you are running Linux Mint and want to get an efficient and robust terminal emulator then read this guide.

Installing Alacritty on Linux Mint 21

The main reason that makes it beneficial is that it uses a minimalistic design, which helps to reduce the amount of memory and CPU usage required to run the terminal so to get this emulator on Linux Mint there are two ways and those are:

Through PPA Repository

This terminal emulator has cross-platform compatibility due to which it can run on Windows, Linux, and macOS, and it uses the same configuration file across all platforms. Since this application is not present on default package manager by default so to install it, one needs to add its repository and for that execute:

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

Next update the packages list so that the repository should be successfully updated and afterwards install it on Linux Mint by using:

$ sudo apt install alacrity -y

Now once the application is installed run it through Linux Mint terminal by executing alacritty command and get started with this terminal emulator:

$ alacritty

Now to remove this application from Linux Mint if you are no longer to use it then execute the below command in case you installed it through PPA:

$ sudo apt remove --autoremove alacritty -y

Through Snap Store

Another way to get this emulator on Linux Mint is by using the Snap store and for you need to install it on Linux Mint and if you already have it on Linux Mint then execute:

$ sudo snap install alacritty --classic

Now the application is installed run it through Linux Mint terminal by executing alacritty command and get started with this terminal emulator:

$ alacritty

Now to remove this application from Linux Mint if you are no longer to use it then execute the below mentioned command in case you installed it through snap:

$ sudo snap remove alacritty

Graphical user interface, text, application Description automatically generated

Through Source File

If you don’t like adding repository or in short looking for another way to install this terminal emulator then you can install it by getting its source file, so here are some steps that one should perform:

Step 1: To get this application running successfully there are some dependencies that are needed to be installed so for that purpose execute:

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

Next, install the rust programing language as this emulator is based on this language so for that purpose execute:

$ sudo curl https://sh.rustup.rs -sSf | sh

Step 2: Since we have to get the source file from GitHub so in order to do that Git needs to be installed on Linux Mint and for that execute:

$ sudo apt install git -y

Text Description automatically generated

Next, clone the source code of Alacritty from GitHub using:

$ git clone https://github.com/jwilm/alacritty.git

Step 3: Once you have got the source code now just move to the directory and create the binary packages using cargo build like this:

$ cargo build --release

Next to see if the Alacritty is installed correctly check it by executing the following two commands and if there are no errors then it is a sign that the installation is successful:

$ sudo tic -xe alacritty,alacritty-direct extra/alacritty.info

Now run the below mentioned command to get the information about the application to check for any errors and warnings:

$ infocmp alacritty

Step 4: Now to make the desktop shortcut for this terminal emulator simply execute the below given commands one by one:

First copy the alacritty folder in the bin directory and for that execute:

$ sudo cp target/release/alacritty /usr/local/bin

Next, add the logo of alacrity to its desktop application and for that purpose execute:

$ sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg

Now it’s time to install the desktop file on Linux Mint and for that purpose execute:

$ sudo desktop-file-install extra/linux/Alacritty.desktop

Once you have executed the above commands successfully now update the database of Linux Mint desktop and for that execute:

$ sudo update-desktop-database

Once you are done installing this application run it through the Linux Mint application menu and get started using this terminal emulator:

Now to remove this application from Linux Mint if you are no longer to use it then execute the below command in case you installed it through its source file then execute the below given commands:

First remove the application file from the bin directory and for that purpose execute:

$ sudo rm /usr/local/bin/alacritty

Next, remove the desktop icon image and for that purpose execute:

$ sudo rm /usr/share/pixmaps/Alacritty.svg

No remove the application file for desktop of alacritty and for that execute:

$ sudo rm /usr/share/applications/Alacritty.desktop

Once you have executed the above commands successfully now update the database of Linux Mint desktop and for that execute:

$ sudo update-desktop-database

Conclusion

Alacritty is a high-performance terminal emulator that uses the GPU to accelerate rendering, making it one of the fastest terminals available. It is open-source, cross-platform and written in Rust and it can be easily installed on Linux Mint 21 by installing Rust and using cargo. Overall, Alacritty is a good option for those who are looking for a fast and efficient terminal emulator on Linux Mint 21 and it’s worth giving it a try. To install it on Linux Mint 21 there are three ways one is through PPA repository, second is through Snap store and third is by using its source file from GitHub.

About the author

Aaliyan Javaid

I am an electrical engineer and a technical blogger. My keen interest in embedded systems has led me to write and share my knowledge about them.