You can install Cursor IDE easily by downloading and running the installation script provided in this Gist:
-
Open a terminal.
-
Download the installation script:
curl -L https://gist.githubusercontent.com/hosni/1b9475ddc9c4ebdb90c98269ecf86ffd/raw/install-cursor.sh -o install-cursor.sh
- Make the script executable:
chmod +x install-cursor.sh
- Run the script with root privileges:
sudo ./install-cursor.sh
💡 This script will:
- Download the latest Cursor IDE AppImage
- Move it to
/opt/cursor/
- Set up a desktop entry and icon so you can launch Cursor from your app menu
Follow these steps to manually install Cursor IDE on a Linux system.
Use curl
and jq
to get the download URL for the AppImage:
curl -s "https://www.cursor.com/api/download?platform=linux-x64&releaseTrack=stable" | jq -r .downloadUrl
Create a directory for Cursor:
sudo mkdir -p /opt/cursor
Use the URL from Step 1 to download the AppImage to /opt/cursor
:
curl -L "YOUR_DOWNLOADED_URL_HERE" -o /opt/cursor/cursor.AppImage
sudo chmod +x /opt/cursor/cursor.AppImage
Download the .desktop
file:
sudo curl -L "https://gist.githubusercontent.com/hosni/1b9475ddc9c4ebdb90c98269ecf86ffd/raw/cursor.desktop" -o /usr/share/applications/cursor.desktop
Download the url-handler .desktop
file:
sudo curl -L "https://gist.githubusercontent.com/hosni/1b9475ddc9c4ebdb90c98269ecf86ffd/raw/cursor-url-handler.desktop" -o /usr/share/applications/cursor-url-handler.desktop
Register cursor url-handler:
xdg-mime default cursor-url-handler.desktop x-scheme-handler/cursor
sudo mkdir -p /usr/share/icons/hicolor/scalable/apps
sudo curl -L "https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/logo/app-logo.svg" -o /usr/share/icons/hicolor/scalable/apps/cursor.svg
If the Cursor IDE icon doesn’t appear in your application menu immediately:
Option 1: Refresh GTK icon caches manually
sudo update-icon-caches /usr/share/icons/*
Option 2 (GNOME only): Restart the shell
Press ALT + F2
, type r
, and press Enter
.
ℹ️ This restarts GNOME Shell and refreshes icons without logging out.
✅ That’s it! You should now see Cursor IDE in your application launcher.
You can now find Cursor IDE in your application menu or launch it using:
/opt/cursor/cursor.AppImage