Install Alacritty GPU Terminal on Ubuntu
In this article
Alacritty is a fast, GPU-accelerated terminal emulator that uses your graphics card to render text, making it noticeably snappier than most default terminals. This guide walks you through installing it on Ubuntu using the official APT repository, which is the simplest and most reliable method. You'll need a working internet connection and sudo privileges on your Ubuntu system.
What You'll Need
- Ubuntu 20.04 or newer (the APT repo covers these versions).
- An active internet connection.
- Sudo access (you'll be prompted for your password).
- Optional: a GPU driver already installed (Alacritty works without one, but it uses the GPU for rendering if available).
Step-by-Step
- Open a terminal. You can use the default GNOME Terminal (press Ctrl+Alt+T).
- Update your package lists. Run
sudo apt updateto refresh the package index. This ensures you get the latest available versions. - Add the Alacritty PPA. The official Alacritty team maintains a Personal Package Archive (PPA) that provides up-to-date builds. Run:
sudo add-apt-repository ppa:aslatter/ppa
Press Enter when prompted to confirm. - Update again. After adding the PPA, run
sudo apt updateagain so your system knows about the new packages. - Install Alacritty. Run
sudo apt install alacritty. This will download and install the terminal along with any required dependencies. - Verify the installation. After installation completes, run
alacritty --versionin your current terminal. You should see output likealacritty 0.13.1(the exact version may vary). - Launch Alacritty. You can start it by typing
alacrittyin your current terminal, or by searching for "Alacritty" in your applications menu. A new window should open with the Alacritty terminal. - Set as default (optional). If you want Alacritty to be your default terminal, you can set it in your system settings. On GNOME, go to Settings → Default Applications → Terminal and choose "Alacritty". For other desktop environments, the method varies.
Common Mistakes
- Skipping the first
apt update. If you don't update before adding the PPA, the PPA might not be recognized correctly, and the install may fail. - Using the wrong PPA. Some older guides suggest
ppa:mmstick76/alacritty, but that is outdated. Useppa:aslatter/ppaas shown above. - Forgetting to confirm the PPA addition. When you run
add-apt-repository, it asks for confirmation. If you press N or close the terminal, the PPA won't be added. - Not having universe repository enabled. The PPA depends on packages from the universe repository. If you have a minimal installation, ensure universe is enabled by running
sudo add-apt-repository universebefore adding the Alacritty PPA.
Tips
- Configuration file. Alacritty uses a YAML configuration file. After first launch, it creates a default at
~/.config/alacritty/alacritty.yml. You can edit this to change fonts, colors, and keybindings. - GPU acceleration. Alacritty automatically uses your GPU for rendering. If you have an NVIDIA card, ensure the proprietary driver is installed for best performance. You can check with
nvidia-smi. - Copy-paste. By default, copying is Ctrl+Shift+C and pasting is Ctrl+Shift+V. This is because Ctrl+C is reserved for sending SIGINT.
- Use with tmux. Many users pair Alacritty with tmux for session management. It works out of the box.
- Keep it updated. Periodically run
sudo apt update && sudo apt upgradeto get new Alacritty versions and security fixes.
Troubleshooting
- Alacritty doesn't start. If nothing happens when you run
alacritty, check for errors by running it from your current terminal:alacritty. Common issues include missing dependencies or a corrupted config file. Try moving your config:mv ~/.config/alacritty ~/.config/alacritty.bakand then launch again. - "add-apt-repository: command not found". This means the
software-properties-commonpackage is missing. Install it withsudo apt install software-properties-common, then retry the PPA command. - Install fails with "Package 'alacritty' has no installation candidate". This usually means the PPA wasn't added correctly or the package list is stale. Run
sudo apt updateagain, and if it still fails, double-check the PPA name. - Text is blurry or small. This is often due to font settings. Edit your config file and set a larger font size, for example:
font: size: 12. Then restart Alacritty. - GPU acceleration not working. If you have an integrated GPU (Intel) and a discrete GPU (NVIDIA/AMD), Alacritty might use the wrong one. You can force it by launching with
DRI_PRIME=1 alacritty(for NVIDIA Optimus systems).
Frequently Asked Questions
Is Alacritty really faster than the default GNOME Terminal?
Yes, Alacritty uses the GPU for rendering, which significantly reduces CPU load and can feel smoother, especially with lots of text output. However, the difference may not be dramatic on modern hardware.
Can I use Alacritty without a dedicated GPU?
Yes, Alacritty works fine with integrated graphics. It uses whatever GPU is available, including the one built into your CPU.
How do I change the font or color scheme?
Edit the configuration file at ~/.config/alacritty/alacritty.yml. You can set font: and colors: sections. After saving, restart Alacritty or press Ctrl+Shift+R to reload.
Does Alacritty support tabs or splits?
No, Alacritty does not support tabs or split panes natively. It is designed to be a simple terminal, and you can use terminal multiplexers like tmux or screen for that functionality.
How do I uninstall Alacritty?
Run sudo apt remove alacritty to uninstall. Optionally, remove the PPA with sudo add-apt-repository --remove ppa:aslatter/ppa.
Is Alacritty available as a Snap or Flatpak?
Yes, there are unofficial snaps and flatpaks, but the APT method described here is the official and most reliable way on Ubuntu.