Skip to content

Faheem506pk/how-to-install-cursor-ai-in-ubuntu-easy-and-fast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Seamless Cursor AI Installation Guide – Ubuntu AppImage Setup

Cursor AI Logo

🎯 *Guide written by Faheem – a passionate Full Stack Web Developer from Pakistan. *

πŸ–₯️ Install Cursor AI (.AppImage) on Ubuntu – Quick & Easy

βœ… Prerequisites

  • Ubuntu OS installed
  • .AppImage file for Cursor AI downloaded

πŸ“₯ Step 1: Download Cursor AI AppImage

Rename the downloaded file:

cursor.AppImage

πŸ“ Step 2: Make it executable

cd ~/Downloads
chmod a+x cursor.AppImage

πŸ“¦ Step 3: Install required FUSE package

sudo apt install libfuse2

🚚 Step 4: Move AppImage to system directory

sudo mv cursor.AppImage /opt/cursor.AppImage

πŸ–ΌοΈ Step 5: Create a Desktop Entry

sudo nano /usr/share/applications/cursor.desktop

Paste 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, then Enter, then Ctrl + X


πŸ–±οΈ Step 6: Create a global CLI command

sudo nano /usr/local/bin/cursor

Paste:

#!/bin/bash
/opt/cursor.AppImage "$@" > /dev/null 2>&1 &

Then:

sudo chmod +x /usr/local/bin/cursor

πŸ” Step 7: Set up AppArmor profile

sudo nano /etc/apparmor.d/cursor-AppImage

Paste 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-AppImage

βœ… Step 8: Launch Cursor AI from anywhere

cursor .

❓ Cursor Icon Not Showing?

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 .png file
  • βœ… Run: chmod 644 cursor.png
  • βœ… Optional: update-desktop-database

πŸ™Œ Author

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.