π― *Guide written by Faheem β a passionate Full Stack Web Developer from Pakistan. *
- Ubuntu OS installed
.AppImagefile for Cursor AI downloaded
Rename the downloaded file:
cursor.AppImagecd ~/Downloads
chmod a+x cursor.AppImagesudo apt install libfuse2sudo mv cursor.AppImage /opt/cursor.AppImagesudo nano /usr/share/applications/cursor.desktopPaste this (replace username with your actual username if needed):
[Desktop Entry]
Name=Cursor AI IDE
Exec=/opt/cursor.AppImage
Icon=/home/username/.local/share/icons/cursor.png
Type=Application
Categories=Development;Save:
Ctrl + O, thenEnter, thenCtrl + X
sudo nano /usr/local/bin/cursorPaste:
#!/bin/bash
/opt/cursor.AppImage "$@" > /dev/null 2>&1 &Then:
sudo chmod +x /usr/local/bin/cursorsudo nano /etc/apparmor.d/cursor-AppImagePaste this:
#include <tunables/global>
profile cursor /opt/cursor.AppImage flags=(unconfined) {
#include <abstractions/base>
/opt/cursor.AppImage mr,
owner @{HOME}/** rw,
/tmp/** rwk,
/proc/sys/kernel/yama/ptrace_scope r,
/sys/devices/system/cpu/cpufreq/policy*/cpuinfo_max_freq r,
}
Then apply:
sudo apparmor_parser -r /etc/apparmor.d/cursor-AppImagecursor .Make sure the icon image exists:
/home/[replace with your username]/.local/share/icons/cursor.png
Since you are inside ~/Downloads and you already have cursor.png there, just run:
cp cursor.png ~/.local/share/icons/cursor.png
If the icons folder does not exist, create it first:
mkdir -p ~/.local/share/icons cp cursor.png ~/.local/share/icons/cursor.png```
β Now your cursor.png will be copied to /home/faheem506pk/.local/share/icons/cursor.png.
If not showing:
- β
Check itβs a valid
.pngfile - β
Run:
chmod 644 cursor.png - β
Optional:
update-desktop-database
Muhammad Faheem Iqbal π¨βπ» Full Stack Web Developer π GitHub
Enjoy faster coding with Cursor AI on Ubuntu! π Feel free to star β this repo if it helped you.
