Status: Solved After some trial and error, and searching online, this is how I was able to install and set up Cursor in my Linux environment. The steps are:
- Download the AppImage from the Cursor AI website
- Make the AppImage executable
chmod +x cursor-*version*-amd64.AppImage
- Move the AppImage to the /opt directory
- On Ubuntu, you need to install some dependencies:
sudo apt-get install -y libfuse2
WARNINGIf you are on Ubuntu, and install fuse directly, your Ubuntu installation will (probably) not boot anymore. (And if you have FDE, as I do, and you didn’t back up your keys beforehand (as I procrastinated and learnt the hard way), you may find yourself having to completely erase the disk).
- Make a launching script (it gets stuck on some sort of sandboxing issue otherwise, and I added the script to be able to launch it with a single click from the applications menu, instead of having to open a terminal and adding the –no-sandbox flag):
#!/bin/bash
/opt/cursor.appimage --no-sandbox "$@"
I called it launch-cursor.sh Then to make it executable:
chmod +x /opt/cursor/launch-cursor.sh
- Make the desktop entry:
sudo nano /usr/share/applications/cursor.desktop
And add the following content:
[Desktop Entry]
Name=Cursor
Exec=/opt/cursor/launch-cursor.sh
Icon=/opt/cursor/cursor.png
Type=Application
- (Optional) Install the cursor icon: Get your cursor icon from the Cursor AI website and install it to /opt/cursor/cursor.png (you may or may not need escalated permissions to do this operation, but I did).
- And you’re done! You can now launch Cursor from your applications menu. (You can update it manually by downloading the latest AppImage from the Cursor AI website and repeating some of the steps above).
I also attempted to install Cursor via nix, distrobox (with Arch using Yay), but this is the way I got it to work.