Page cover

Install Cursor the AI Editor on Ubuntu 22.04/24.04

Download

Download cursor from here.

Grant executable permission

chmod +x ~/Downloads/cursor-0.41.3x86_64.AppImage

Install FUSE Dependency

sudo apt install libfuse2

Adding cursor to the system

Move cursor to system directory

sudo mkdir /opt/cursor/
sudo mv ~/Downloads/cursor-0.41.3x86_64.AppImage /opt/cursor/cursor.appimage
sudo mv ~/Downloads/cursor.png /opt/cursor/cursor.png

Create a new cursor.desktop application description file and input the following content

sudo nano /usr/share/applications/cursor.desktop
cursor.desktop
[Desktop Entry]
Name=Cursor
Exec=/opt/cursor/cursor.appimage
Icon=/opt/cursor/cursor.png
Type=Application
Categories=Development;

For icon, this image can be used, taken from cursor GitHub repo.

Set up apparmor to allow executing cursor command at command line

https://github.com/getcursor/cursor/issues/844#issuecomment-2080288303

sudo nano /etc/apparmor.d/cursor-appimage
cursor-appimage
# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"

abi <abi/4.0>,
include <tunables/global>

profile cursor /opt/cursor/cursor*.appimage flags=(unconfined) {
  userns,

  # Site-specific additions and overrides.  See local/README for details.
  include if exists <local/cursor>
}

And then run

sudo apparmor_parser -r /etc/apparmor.d/cursor-appimage

Last updated

Was this helpful?