β¨ Easiest Way to Run Cursor on Linux (2025)
π 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:
- Download the latest
.AppImagefrom cursor.so/download - Run the script below
- 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 π‘