How to Install Cursor the AI Editor on Linux Update 2024

mhbaando

Kamaal Abshir

Posted on August 27, 2023

How to Install Cursor the AI Editor on Linux Update 2024

Cursor is an AI-first code editor that can be downloaded on Windows, Mac, and Linux platforms and is intended for pair programming with AI, and it was created to assist developers in creating software more quickly and effectively.

I set up Cursor on my Mac and utilized it. It is simple to install on a Mac, but I found it to be extremely difficult to install on Ubuntu Linux.

However, after doing some research online, I was able to figure out how to install Ubuntu Linux. Here are the steps I took to get my computer's cursor to operate.

  • Step 1 Visit the Cursor website at https://cursor.so and click on the "Download" button.

cursro ai editor

  • Step 2 When the download is finished, a file with this extension .AppImage at the end will be in your download folder

Hold on, what is this ".AppImage" extension?

AppImage is a universal software package format that does not require the conventional installation method to be installed on Linux.

  • Step 3 Do not click it immediately! For the file to function properly, we must first make it executable. To make the file executable, go to the Downloads folder (or the place where you downloaded the Cursor software) and execute this command.
chmod +x cursor-0.42.4x86_64.AppImage
Enter fullscreen mode Exit fullscreen mode

cursor-0.42.4x86_64 is the name of the file i got from the Cursor website but yours may differ, Simply replace the name of your file to the command above, only replace after +x

Proceed to Step 4 if you run into a problem at this point, If you didn't encounter this error, you can skip the Step 4

./cursor-0.42.4x86_64.AppImage
dlopen(): error loading libfuse.so.2

AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information
Enter fullscreen mode Exit fullscreen mode

so what is going on ? what is this error ? Don't Panic !!

The error message indicates that the .AppImage requires FUSE to run, to fix this issue, and fuse it is a mechanism for Unix-like operating systems that allows non-privileged users to create their own file systems without editing kernel code.
This is achieved by running file system code in user space, while the FUSE kernel module provides only a "bridge" to the actual kernel interfaces.

  • Setp 4 install libfuse2
sudo apt-get install libfuse2
Enter fullscreen mode Exit fullscreen mode
  • Step 5 once you install the libfuse2 now run again this command
chmod +x cursor-0.42.4x86_64.AppImage
Enter fullscreen mode Exit fullscreen mode
  • Step 6 Great! You can now run the .AppImage file either by running the command from the terminal or by opening the Cursor file directly from your Downloads folder
./cursor-0.42.4x86_64.AppImage
Enter fullscreen mode Exit fullscreen mode

Follow these steps to add Cursor to your applications list

How to add cursor app on the installed application list

Follow these steps to add Cursor to your applications list

  • Move the app from the download to opt folder
sudo mv cursor-0.42.4x86_64.AppImage /opt/cursor.appimage
Enter fullscreen mode Exit fullscreen mode
  • Create a desktop entry for Cursor by running the command
sudo nano /usr/share/applications/cursor.desktop
Enter fullscreen mode Exit fullscreen mode
  • Past the follow in the file you've just created
[Desktop Entry]
Name=Cursor
Exec=/opt/cursor.appimage
Icon=/opt/cursor.png
Type=Application
Categories=Development;
Enter fullscreen mode Exit fullscreen mode
  1. save the file
ctl + x  
Enter fullscreen mode Exit fullscreen mode

then

press y 
Enter fullscreen mode Exit fullscreen mode

then

press enter
Enter fullscreen mode Exit fullscreen mode

As Final Step, we should add an icon to the app so you can tell it apart from other applications

Since we moved the app into the /opt directory, add a .png image into the /opt directory as well

The image file should be named cursor.png as defined when we created the desktop entry.

cusror is working and have custom icon

If you did all the steps and you application icon is not showing Log Out then login again

That is it thanks for reading :)

πŸ’– πŸ’ͺ πŸ™… 🚩
mhbaando
Kamaal Abshir

Posted on August 27, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related