azyan
May 9, 2024, 6:50am
1
Hello, I am trying to install Cursor on a fresh Ubuntu 24.04 and I keep getting this error:
Command: ./cursor-0.33.1x86_64.AppImage
Output:
[15782:0509/084956.875712:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I’m aborting now. You need to make sure that /tmp/.mount_cursorgbp94S/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)
I am not very prolific with AppImage, could you give me any tip to continue the installation?
Thanks.
2 Likes
Its a problem with apparmor you need to create a profile to run Cursor.
opened 10:21PM - 31 Aug 23 UTC
# Feature Request for Cursor App Desktop Integration on Linux
## **Is your fe… ature request related to a problem? Please describe.**
Yes, integrating the Cursor app into Linux desktop environments is a manual process. I'm always frustrated when I download a new `.AppImage` version and have to update the `.desktop` file and the icon manually.
## **Describe the solution you'd like**
I've created a bash script that automates the entire process. It does the following:
1. Finds the latest version of the Cursor `.AppImage`.
2. Updates or creates a symlink to point to the latest `.AppImage`.
3. Downloads the Cursor app icon if it doesn't already exist.
4. Conditionally creates or updates a `.desktop` file for the Cursor app.
```bash
#!/bin/bash
# Step 1: Find the latest version of the .AppImage
LATEST_APPIMAGE=$(ls -t $HOME/Applications/cursor-*.AppImage | head -n 1)
echo "Latest AppImage: $LATEST_APPIMAGE"
# Step 2: Update symlink to the latest version
SYMLINK_PATH="$HOME/Applications/cursor.AppImage"
ln -sf $LATEST_APPIMAGE $SYMLINK_PATH
echo "Updated symlink to: $SYMLINK_PATH"
# Step 3: Download the Cursor logo if not exists
ICON_PATH="$HOME/.local/share/icons/cursor-icon.svg"
if [ ! -f "$ICON_PATH" ]; then
mkdir -p $(dirname $ICON_PATH)
curl -o $ICON_PATH "https://www.cursor.so/brand/icon.svg"
echo "Downloaded logo to: $ICON_PATH"
fi
# Step 4: Conditionally create or update the .desktop file
DESKTOP_FILE_PATH="$HOME/.local/share/applications/cursor.desktop"
if [ ! -f "$DESKTOP_FILE_PATH" ] || [ "$LATEST_APPIMAGE" != "$(grep -oP '(?<=^Exec=).*' $DESKTOP_FILE_PATH)" ]; then
DESKTOP_FILE_CONTENT="[Desktop Entry]
Name=Cursor
Exec=$SYMLINK_PATH
Terminal=false
Type=Application
Icon=$ICON_PATH
StartupWMClass=Cursor
X-AppImage-Version=latest
Comment=Cursor is an AI-first coding environment.
MimeType=x-scheme-handler/cursor;
Categories=Utility;Development
"
echo "$DESKTOP_FILE_CONTENT" > $DESKTOP_FILE_PATH
chmod +x $DESKTOP_FILE_PATH
echo "Updated .desktop file at: $DESKTOP_FILE_PATH"
else
echo ".desktop file is up-to-date."
fi
```
## How to Use:
You can review the script [here](https://gist.github.com/arpagon/7cb8ff6361380725c893f5535fbbb58d) before executing it.
To install and run the script in one command, execute the following:
```bash
curl -sSL "https://gist.githubusercontent.com/arpagon/7cb8ff6361380725c893f5535fbbb58d/raw/b9e532bc1db5912d32693337694d941fa0ff60f7/CursorDesktopIntegrator.sh" | bash
```
## **Additional context**
This script aims to make the user experience more seamless by automating what is otherwise a repetitive manual task. It's particularly useful for users who frequently update their Cursor `.AppImage`.
1 Like
Is their any easier to install cursor on ubuntu 24.04 version, even this approach is causing so many bugs ?
1 Like
I had the same issue. If you run it with the --no-sandbox
option, it should work fine.
./cursor-0.40.1x86_64.AppImage --no-sandbox
3 Likes