Skip to content

Instantly share code, notes, and snippets.

@evgenyneu
Last active June 13, 2025 07:43
Show Gist options
  • Save evgenyneu/5c5c37ca68886bf1bea38026f60603b6 to your computer and use it in GitHub Desktop.
Save evgenyneu/5c5c37ca68886bf1bea38026f60603b6 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/cursor.AppImage --no-sandbox'
@tarcisiomiranda
Copy link

@jonathan-apptega thanks for the comment
@luisbonilla90 yeah, the nohup command is better.

Just updated the gist here:
https://gist.github.com/tarcisiomiranda/c9059e4071dcdaafa8a16eb6ae049d33

@dennisushi
Copy link

dennisushi commented Jun 5, 2025

This script is very nice, but it is missing the installation of libfuse when required, so you will have to install it before running.

Please put a warning in your comment - installing fuse on Ubuntu 24 can break systems and we don't want some person to randomly copy and paste it!

@UtkarshGoel22
Copy link

UtkarshGoel22 commented Jun 10, 2025

@jonathan-apptega thanks for the comment @luisbonilla90 yeah, the nohup command is better.

Just updated the gist here: https://gist.github.com/tarcisiomiranda/c9059e4071dcdaafa8a16eb6ae049d33

Do not use this script on Ubuntu 24.04
This will break your system. libfuse2 is not working correctly and has compatibility issues with Ubuntu 24.04, it can break graphical session startup, especially if the desktop tries to auto-launch Cursor or index it (e.g., via GNOME Shell, tracker, etc.).
I faced the same issue. Things were working fine until I turned off my system and tried to log back in. I was stuck on the login screen.

@jonathan-apptega
Copy link

@jonathan-apptega thanks for the comment @luisbonilla90 yeah, the nohup command is better.
Just updated the gist here: https://gist.github.com/tarcisiomiranda/c9059e4071dcdaafa8a16eb6ae049d33

Do not use this script on Ubuntu 24.04 This will break your system. libfuse2 is not working correctly and has compatibility issues with Ubuntu 24.04, it can break graphical session startup, especially if the desktop tries to auto-launch Cursor or index it (e.g., via GNOME Shell, tracker, etc.). I faced the same issue. Things were working fine until I turned off my system and tried to log back in. I was stuck on the login screen.

Yes, you are right, please don't use it until you know the risks.

In my case I had to start Ubuntu in recovery mode with network features and from the terminal I run this command:

apt install ubuntu-desktop-minimal

That will fix the issue.

@hieutt192
Copy link

hieutt192 commented Jun 11, 2025

I found a way to run Cursor on Ubuntu 24.04 without installing libfuse2. I simply extracted the AppImage file and ran the executable inside the extracted folder
β€”> it worked for me.

πŸ‘‰ Link to install and update Cursor for Ubuntu 24.04 (branch Cursor-ubuntu24.04)

Note: The main branch is for Ubuntu 22.04.
My main branch checks the Ubuntu version and only installs Cursor if it's Ubuntu 22.04, to avoid issues on other ubuntu versions.

@imdt-felipyc
Copy link

I found a way to run Cursor on Ubuntu 24.04 without installing libfuse2. I simply extracted the AppImage file and ran the executable inside the extracted folder β€”> it worked for me.

πŸ‘‰ Link to install and update Cursor for Ubuntu 24.04 (branch Cursor-ubuntu24.04)

Note: The main branch is for Ubuntu 22.04. My main branch checks the Ubuntu version and only installs Cursor if it's Ubuntu 22.04, to avoid issues on other ubuntu versions.

Isso funcionou para min em 11/06/2025

@lmdvlpr
Copy link

lmdvlpr commented Jun 12, 2025

I found a way to run Cursor on Ubuntu 24.04 without installing libfuse2. I simply extracted the AppImage file and ran the executable inside the extracted folder β€”> it worked for me.
πŸ‘‰ Link to install and update Cursor for Ubuntu 24.04 (branch Cursor-ubuntu24.04)
Note: The main branch is for Ubuntu 22.04. My main branch checks the Ubuntu version and only installs Cursor if it's Ubuntu 22.04, to avoid issues on other ubuntu versions.

Isso funcionou para min em 11/06/2025

Thanks! This works for me too.

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