Skip to content

Instantly share code, notes, and snippets.

@imshaiknasir
Forked from evgenyneu/setup_cursor_ubuntu.md
Created February 2, 2025 14:44
Show Gist options
  • Save imshaiknasir/1f8adc119c722ca4f9290b29f50364a7 to your computer and use it in GitHub Desktop.
Save imshaiknasir/1f8adc119c722ca4f9290b29f50364a7 to your computer and use it in GitHub Desktop.
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage
  1. Install libfuse2
sudo apt update
sudo apt install libfuse2
  1. Make it an executable
chmod +x ~/Applications/cursor.AppImage
  1. Run
~/Applications/cursor.AppImage --no-sandbox
  1. Add cursor shortcut

Add to .bashrc or .zshrc

alias cursor='~/Applications/your-app.AppImage --no-sandbox'
@imshaiknasir
Copy link
Author

If you want a shortcut on your taskbar like any normal application, add this file

In terminal type

$ nano ~/.local/share/applications/cursor.desktop

Then add the link to your application. You will need the cursor.png icon file you can either extract from the AppImage or take a snapshot of it.

Would love the cursor team to sort this out though. It's unnecessarily difficult to install/update on ubuntu plus rather unsafe with the --no-sandbox flag that is recently needed.

[Desktop Entry]
Name=cursor
Exec=/home/HOMEDIRHERE/Apps/your-app.AppImage --no-sandbox
Icon=/home/HOMEDIRHERE/.local/share/icons/cursor.png
Type=Application
Terminal=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment