{"id":43823,"date":"2023-03-27T12:54:02","date_gmt":"2023-03-27T12:54:02","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43823"},"modified":"2024-05-08T15:20:24","modified_gmt":"2024-05-08T15:20:24","slug":"alacritty-0-12-0-released-how-to-install","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/03\/alacritty-0-12-0-released-how-to-install\/","title":{"rendered":"GPU-Accelerated Terminal Emulator &#8216;Alacritty&#8217; 0.12.0 Released [How to Install]"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-43824\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>The popular Alacritty terminal emulator got a new release few days ago. Here are the new features and how to install guide for Ubuntu Linux.<\/p>\n<p>Alacritty is a free open-source GPU-accelerated terminal emulator written in Rust programming language. It features Vi mode motion and selection via keyboard, Vi search\/normal search, hints, etc.<\/p>\n<p>The new 0.12.0 release features <b>fractional scaling support on Wayland session<\/b> via wp-fractional-scale protocol. It also added <b>touchscreen input support for click, scroll, select, zoom actions<\/b>.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-0120.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43825\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-0120-600x375.webp\" alt=\"\" width=\"600\" height=\"375\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-0120-600x375.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-0120-300x187.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-0120-768x480.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-0120.webp 895w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Other changes include:<\/p>\n<ul>\n<li>Support for horizontal scrolling in mouse mode and alternative scrolling modes<\/li>\n<li>Support for running on GLES context<\/li>\n<li>New <code>window.resize_increments<\/code> config option, which is disabled by default<\/li>\n<li>New <code>-T<\/code> flag, short form for <code>--title<\/code>.<\/li>\n<li>Always use sRGB color space on macOS.<\/li>\n<li>Resize increments are now set on macOS and X11 to resize by cell sizes.<\/li>\n<li>Proper hint about window transparency in Wayland and macOS.<\/li>\n<li>Change <code>window.decorations_theme_variant<\/code> to use <code>Dark<\/code>, <code>Light<\/code>, and <code>None<\/code> values<\/li>\n<\/ul>\n<p>They are as well various other changes and bug-fixes, see the <a href=\"https:\/\/github.com\/alacritty\/alacritty\/releases\" target=\"_blank\" rel=\"noopener\">Github releases<\/a> page for details.<\/p>\n<h3>How to Install Alacritty terminal emulator in Ubuntu Linux<\/h3>\n<p>This app is not available in Ubuntu system repository until the next Ubuntu 23.04. User can install it via 2 methods: <b>cargo package manager<\/b>, or <b>third-party Ubuntu PPA<\/b>.<\/p>\n<h4>Option 1: Install Alacritty via cargo package manager<\/h4>\n<p>Cargo is the command line package manager for Rust, like Pip for Python. User can use the tool to install Alacritty terminal emulator in most Linux, though user needs to MANUALLY setup PATH variable and create shortcut icon.<\/p>\n<p>1. First, press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. When it opens, run command to install cargo:<\/p>\n<pre>sudo apt install cargo<\/pre>\n<p><i>Type user password (no asterisk feedback) when it asks and hit Enter to continue.<\/i><br \/>\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-cargo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43826\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-cargo-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-cargo-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-cargo-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-cargo-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-cargo.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. Then, install Alacritty for current user only by running command:<\/p>\n<pre>cargo install alacritty<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43827\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. As mentioned, cargo package does not add PATH variable by default. You can verify by running <b>$PATH<\/b> command and see if &#8220;<code>\/home\/USERNAME\/.cargo\/bin<\/code>&#8221; present in the output.<\/p>\n<p>To add it into user PATH, run command <b>nano ~\/.profile<\/b> to edit user profile and add following lines:<\/p>\n<pre>if [ -d \"$HOME\/.cargo\/bin\" ] ; then\r\n    PATH=\"$HOME\/.cargo\/bin:$PATH\"\r\nfi<\/pre>\n<p>When done, press <b>Ctrl+X<\/b>, type <b>y<\/b> and hit Enter to save change! <b>NOTE: user PATH changes take effect at next login.<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/add-cargo-path.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43830\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/add-cargo-path-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/add-cargo-path-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/add-cargo-path-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/add-cargo-path-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/add-cargo-path.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>4. The cargo package also does not create shortcut icons. Meaning you need to manually create one by running command:<\/p>\n<pre>nano ~\/.local\/share\/applications\/alacritty.desktop<\/pre>\n<p>Then paste following lines and save it:<\/p>\n<pre>[Desktop Entry]\r\nType=Application\r\nTryExec=alacritty\r\nExec=alacritty\r\nIcon=Alacritty\r\nTerminal=false\r\nCategories=System;TerminalEmulator;\r\n\r\nName=Alacritty\r\nGenericName=Terminal\r\nComment=A fast, cross-platform, OpenGL terminal emulator\r\nStartupWMClass=Alacritty\r\nActions=New;\r\n\r\n[Desktop Action New]\r\nName=New Terminal\r\nExec=alacritty<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-shortcut.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43831\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-shortcut-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-shortcut-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-shortcut-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-shortcut-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/cargo-alacritty-shortcut.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Finally, either use <b>alacritty<\/b> command or search for and launch it from start menu (or &#8216;Activities&#8217; overview).<\/p>\n<h4>Option 2: Install Alacritty in Ubuntu via PPA<\/h4>\n<p>An Ubuntu PPA can be more easy to install the terminal emulator for beginners. Though, it seems to be unofficial.<\/p>\n<p><em>NOTE: The PPA package at the moment includes Alacritty 0.13.0 development, though the package name marked as 0.12.0 stable.<\/em><\/p>\n<p>So far the PPA supports for <b>Ubuntu 20.04<\/b>, <b>Ubuntu 22.04<\/b>, <b>Ubuntu 23.10<\/b>, <b>Ubuntu 24.04<\/b> and their based systems.<\/p>\n<p>1. First, open a terminal window and run command to add the <a href=\"https:\/\/launchpad.net\/~aslatter\/+archive\/ubuntu\/ppa\" target=\"_blank\" rel=\"noopener\">Ubuntu PPA<\/a>:<\/p>\n<pre>sudo add-apt-repository ppa:aslatter\/ppa<\/pre>\n<p><i>Type user password (no asterisk feedback) when it asks and hit Enter to continue.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-ppa.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43828\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-ppa-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-ppa-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-ppa-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-ppa-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/alacritty-ppa.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2. Linux Mint and few Ubuntu based systems may need to manually update the package index, though it&#8217;s done automatically in Ubuntu since 20.04:<\/p>\n<pre>sudo apt update<\/pre>\n<p>3. Finally, install Alacritty terminal emulator via command:<\/p>\n<pre>sudo apt install alacritty<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-alacritty.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43829\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-alacritty-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-alacritty-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-alacritty-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-alacritty-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/apt-alacritty.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Once installed, search for and launch it from start menu or &#8216;Activities&#8217; overview, or by running <code>alacritty<\/code> command.<\/p>\n<h3>Uninstall Alacritty terminal emulator<\/h3>\n<p>To remove the package installed via Cargo, open terminal and run command:<\/p>\n<pre>cargo uninstall alacritty<\/pre>\n<p>Also remove the shortcut icon if added via command:<\/p>\n<pre>rm ~\/.local\/share\/applications\/alacritty.desktop<\/pre>\n<p>For choice, you may also remove the Cargo package manager, though other apps installed through Cargo will also be removed:<\/p>\n<pre>sudo apt remove cargo<\/pre>\n<p>To remove the package installed from Ubuntu PPA, use command:<\/p>\n<pre>sudo apt remove --autoremove alacritty<\/pre>\n<p>Also remove the Ubuntu PPA via command:<\/p>\n<pre>sudo add-apt-repository --remove ppa:aslatter\/ppa<\/pre>\n<p>That&#8217;s all. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>The popular Alacritty terminal emulator got a new release few days ago. Here are the new features and how to install guide for Ubuntu Linux. Alacritty is a free open-source GPU-accelerated terminal emulator written in Rust programming language. It features Vi mode motion and selection via keyboard, Vi search\/normal search, hints, etc. The new 0.12.0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":43824,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[883],"class_list":["post-43823","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-terminal-emulator"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=43823"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43823\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/43824"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=43823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}