How to Install Cursor the AI Editor on Linux Update 2024
Kamaal Abshir
Posted on August 27, 2023
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.
- 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
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
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
- Step 5 once you install the libfuse2 now run again this command
chmod +x cursor-0.42.4x86_64.AppImage
- 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
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
- Create a desktop entry for Cursor by running the command
sudo nano /usr/share/applications/cursor.desktop
- 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;
- save the file
ctl + x
then
press y
then
press enter
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.
If you did all the steps and you application icon is not showing Log Out then login again
That is it thanks for reading :)
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
October 2, 2024