πŸ“… Last updated: June 2025
✍️ Author: Hassan Rasool
πŸ§‘β€πŸ’» TL;DR: Download the AppImage, copy-paste this script, and you’re done!


πŸš€ Yes, You Can Use Cursor on Linux!

Cursor is an amazing AI-first code editor built on VS Code β€” but sadly, there’s no official Linux version yet.

The good news? It takes less than 2 minutes to make it work perfectly on Linux. Just:

  1. Download the latest .AppImage from cursor.so/download
  2. Run the script below
  3. Boom β€” Cursor launches like a native app πŸŽ‰

βœ… What This Script Does

  • Extracts the AppImage (so you don’t need FUSE)
  • Fixes sandbox permissions (so it doesn’t crash)
  • Adds Cursor to your launcher (so you can search & open it easily)
  • Automatically adds the app icon (so you don’t have to)

πŸ“œ One-Command Setup Script

Just copy and paste this into your terminal:

#!/bin/bash

# πŸš€ Super simple Cursor setup for Linux
set -e

APP_NAME="cursor"
INSTALL_DIR="$HOME/.local/bin/$APP_NAME"
DESKTOP_FILE="$HOME/.local/share/applications/$APP_NAME.desktop"
APPIMAGE_PATH="$HOME/Downloads/Cursor-*.AppImage"

echo "✨ Installing Cursor..."

# Make sure the AppImage exists
APPIMAGE_FILE=$(ls $APPIMAGE_PATH 2>/dev/null | head -n 1)
if [ ! -f "$APPIMAGE_FILE" ]; then
  echo "❌ Could not find Cursor AppImage at $APPIMAGE_PATH"
  echo "πŸ“¦ Download it from: https://www.cursor.so/download"
  exit 1
fi

# Extract AppImage
chmod +x "$APPIMAGE_FILE"
mkdir -p "$INSTALL_DIR"
"$APPIMAGE_FILE" --appimage-extract
mv squashfs-root/* "$INSTALL_DIR"

# Fix chrome-sandbox permissions
if [ -f "$INSTALL_DIR/chrome-sandbox" ]; then
  echo "πŸ” Fixing sandbox..."
  sudo chown root:root "$INSTALL_DIR/chrome-sandbox"
  sudo chmod 4755 "$INSTALL_DIR/chrome-sandbox"
fi

# Find a good icon
ICON_PATH="$INSTALL_DIR/cursor.png"
ICON_CANDIDATES=(
  "$INSTALL_DIR/usr/share/icons/hicolor/512x512/apps/cursor.png"
  "$INSTALL_DIR/resources/app/assets/icon.png"
)
for icon in "${ICON_CANDIDATES[@]}"; do
  if [ -f "$icon" ]; then
    cp "$icon" "$ICON_PATH"
    break
  fi
done

# Create .desktop launcher
mkdir -p "$(dirname "$DESKTOP_FILE")"
cat > "$DESKTOP_FILE" <<EOF
[Desktop Entry]
Name=Cursor
Exec=$INSTALL_DIR/AppRun
Icon=$ICON_PATH
Type=Application
Categories=Development;IDE;
StartupNotify=true
EOF

update-desktop-database ~/.local/share/applications

echo "βœ… Done! You can now launch Cursor from your app menu or by running:"
echo "$INSTALL_DIR/AppRun"

πŸ“Ž Or Download It Directly

Right-click & save this: πŸ‘‰ install-cursor.sh

Then just run:

chmod +x install-cursor.sh
./install-cursor.sh

🧠 Notes & Tips

  • No root needed, except for fixing the sandbox once
  • If you update Cursor, just re-run this script with the new .AppImage
  • This script works with almost any modern Linux distro

πŸ’¬ Questions? Feedback?

Feel free to comment or share this link! You can also tweak the script for advanced setups or create a pull request to improve it πŸ’‘