@fredlackey/devutils 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
- package/src/commands/install.js +374 -36
- package/src/installs/adobe-creative-cloud.js +527 -25
- package/src/installs/adobe-creative-cloud.md +605 -0
- package/src/installs/appcleaner.js +303 -26
- package/src/installs/appcleaner.md +699 -0
- package/src/installs/apt-transport-https.js +390 -0
- package/src/installs/apt-transport-https.md +678 -0
- package/src/installs/atomicparsley.js +624 -26
- package/src/installs/atomicparsley.md +795 -0
- package/src/installs/aws-cli.js +779 -26
- package/src/installs/aws-cli.md +727 -0
- package/src/installs/balena-etcher.js +688 -26
- package/src/installs/balena-etcher.md +761 -0
- package/src/installs/bambu-studio.js +912 -26
- package/src/installs/bambu-studio.md +780 -0
- package/src/installs/bash-completion.js +554 -23
- package/src/installs/bash-completion.md +833 -0
- package/src/installs/bash.js +399 -26
- package/src/installs/bash.md +993 -0
- package/src/installs/beyond-compare.js +585 -26
- package/src/installs/beyond-compare.md +813 -0
- package/src/installs/build-essential.js +511 -26
- package/src/installs/build-essential.md +977 -0
- package/src/installs/ca-certificates.js +618 -0
- package/src/installs/ca-certificates.md +937 -0
- package/src/installs/caffeine.js +490 -26
- package/src/installs/caffeine.md +839 -0
- package/src/installs/camtasia.js +577 -25
- package/src/installs/camtasia.md +762 -0
- package/src/installs/chatgpt.js +458 -26
- package/src/installs/chatgpt.md +814 -0
- package/src/installs/chocolatey.js +447 -0
- package/src/installs/chocolatey.md +661 -0
- package/src/installs/chrome-canary.js +472 -26
- package/src/installs/chrome-canary.md +641 -0
- package/src/installs/chromium.js +645 -26
- package/src/installs/chromium.md +838 -0
- package/src/installs/claude-code.js +558 -26
- package/src/installs/claude-code.md +1173 -0
- package/src/installs/curl.js +361 -26
- package/src/installs/curl.md +714 -0
- package/src/installs/cursor.js +561 -26
- package/src/installs/cursor.md +970 -0
- package/src/installs/dbschema.js +674 -26
- package/src/installs/dbschema.md +925 -0
- package/src/installs/dependencies.md +435 -0
- package/src/installs/development-tools.js +600 -0
- package/src/installs/development-tools.md +977 -0
- package/src/installs/docker.js +1010 -25
- package/src/installs/docker.md +1109 -0
- package/src/installs/drawio.js +1001 -26
- package/src/installs/drawio.md +795 -0
- package/src/installs/elmedia-player.js +328 -25
- package/src/installs/elmedia-player.md +556 -0
- package/src/installs/ffmpeg.js +870 -25
- package/src/installs/ffmpeg.md +852 -0
- package/src/installs/file.js +464 -0
- package/src/installs/file.md +987 -0
- package/src/installs/gemini-cli.js +793 -26
- package/src/installs/gemini-cli.md +1153 -0
- package/src/installs/git.js +382 -26
- package/src/installs/git.md +907 -0
- package/src/installs/gitego.js +931 -26
- package/src/installs/gitego.md +1172 -0
- package/src/installs/go.js +913 -26
- package/src/installs/go.md +958 -0
- package/src/installs/google-chrome.js +801 -25
- package/src/installs/google-chrome.md +862 -0
- package/src/installs/gpg.js +412 -73
- package/src/installs/gpg.md +1056 -0
- package/src/installs/homebrew.js +1015 -26
- package/src/installs/homebrew.md +988 -0
- package/src/installs/imageoptim.js +950 -26
- package/src/installs/imageoptim.md +1119 -0
- package/src/installs/installers.json +2297 -0
- package/src/installs/jq.js +382 -26
- package/src/installs/jq.md +809 -0
- package/src/installs/keyboard-maestro.js +701 -26
- package/src/installs/keyboard-maestro.md +825 -0
- package/src/installs/latex.js +771 -26
- package/src/installs/latex.md +1095 -0
- package/src/installs/lftp.js +338 -26
- package/src/installs/lftp.md +907 -0
- package/src/installs/lsb-release.js +346 -0
- package/src/installs/lsb-release.md +814 -0
- package/src/installs/messenger.js +829 -26
- package/src/installs/messenger.md +900 -0
- package/src/installs/microsoft-office.js +550 -26
- package/src/installs/microsoft-office.md +760 -0
- package/src/installs/microsoft-teams.js +782 -25
- package/src/installs/microsoft-teams.md +886 -0
- package/src/installs/node.js +886 -26
- package/src/installs/node.md +1153 -0
- package/src/installs/nordpass.js +698 -26
- package/src/installs/nordpass.md +921 -0
- package/src/installs/nvm.js +977 -26
- package/src/installs/nvm.md +1057 -0
- package/src/installs/openssh.js +734 -64
- package/src/installs/openssh.md +1056 -0
- package/src/installs/pandoc.js +644 -26
- package/src/installs/pandoc.md +1036 -0
- package/src/installs/pinentry.js +492 -26
- package/src/installs/pinentry.md +1142 -0
- package/src/installs/pngyu.js +851 -26
- package/src/installs/pngyu.md +896 -0
- package/src/installs/postman.js +781 -26
- package/src/installs/postman.md +940 -0
- package/src/installs/procps.js +425 -0
- package/src/installs/procps.md +851 -0
- package/src/installs/safari-tech-preview.js +355 -25
- package/src/installs/safari-tech-preview.md +533 -0
- package/src/installs/sfnt2woff.js +640 -26
- package/src/installs/sfnt2woff.md +795 -0
- package/src/installs/shellcheck.js +463 -26
- package/src/installs/shellcheck.md +1005 -0
- package/src/installs/slack.js +722 -25
- package/src/installs/slack.md +865 -0
- package/src/installs/snagit.js +566 -25
- package/src/installs/snagit.md +844 -0
- package/src/installs/software-properties-common.js +372 -0
- package/src/installs/software-properties-common.md +805 -0
- package/src/installs/spotify.js +858 -25
- package/src/installs/spotify.md +901 -0
- package/src/installs/studio-3t.js +803 -26
- package/src/installs/studio-3t.md +918 -0
- package/src/installs/sublime-text.js +780 -25
- package/src/installs/sublime-text.md +914 -0
- package/src/installs/superwhisper.js +687 -25
- package/src/installs/superwhisper.md +630 -0
- package/src/installs/tailscale.js +727 -26
- package/src/installs/tailscale.md +1100 -0
- package/src/installs/tar.js +389 -0
- package/src/installs/tar.md +946 -0
- package/src/installs/termius.js +780 -26
- package/src/installs/termius.md +844 -0
- package/src/installs/terraform.js +761 -26
- package/src/installs/terraform.md +899 -0
- package/src/installs/tidal.js +752 -25
- package/src/installs/tidal.md +864 -0
- package/src/installs/tmux.js +328 -26
- package/src/installs/tmux.md +1030 -0
- package/src/installs/tree.js +393 -26
- package/src/installs/tree.md +833 -0
- package/src/installs/unzip.js +460 -0
- package/src/installs/unzip.md +879 -0
- package/src/installs/vim.js +403 -26
- package/src/installs/vim.md +1040 -0
- package/src/installs/vlc.js +803 -26
- package/src/installs/vlc.md +927 -0
- package/src/installs/vscode.js +825 -26
- package/src/installs/vscode.md +1002 -0
- package/src/installs/wget.js +415 -0
- package/src/installs/wget.md +791 -0
- package/src/installs/whatsapp.js +710 -25
- package/src/installs/whatsapp.md +854 -0
- package/src/installs/winpty.js +352 -0
- package/src/installs/winpty.md +620 -0
- package/src/installs/woff2.js +535 -26
- package/src/installs/woff2.md +977 -0
- package/src/installs/wsl.js +572 -0
- package/src/installs/wsl.md +699 -0
- package/src/installs/xcode-clt.js +520 -0
- package/src/installs/xcode-clt.md +351 -0
- package/src/installs/xcode.js +542 -26
- package/src/installs/xcode.md +573 -0
- package/src/installs/yarn.js +806 -26
- package/src/installs/yarn.md +1074 -0
- package/src/installs/yq.js +636 -26
- package/src/installs/yq.md +944 -0
- package/src/installs/yt-dlp.js +683 -26
- package/src/installs/yt-dlp.md +946 -0
- package/src/installs/yum-utils.js +297 -0
- package/src/installs/yum-utils.md +648 -0
- package/src/installs/zoom.js +740 -25
- package/src/installs/zoom.md +884 -0
- package/src/scripts/README.md +567 -45
- package/src/scripts/STATUS.md +208 -0
- package/src/scripts/afk.js +395 -7
- package/src/scripts/backup-all.js +731 -9
- package/src/scripts/backup-source.js +711 -8
- package/src/scripts/brewd.js +373 -7
- package/src/scripts/brewi.js +505 -9
- package/src/scripts/brewr.js +512 -9
- package/src/scripts/brews.js +462 -9
- package/src/scripts/brewu.js +488 -7
- package/src/scripts/c.js +185 -7
- package/src/scripts/ccurl.js +325 -8
- package/src/scripts/certbot-crontab-init.js +488 -8
- package/src/scripts/certbot-init.js +641 -9
- package/src/scripts/ch.js +339 -7
- package/src/scripts/claude-danger.js +253 -8
- package/src/scripts/clean-dev.js +419 -8
- package/src/scripts/clear-dns-cache.js +525 -7
- package/src/scripts/clone.js +417 -7
- package/src/scripts/code-all.js +420 -7
- package/src/scripts/count-files.js +195 -8
- package/src/scripts/count-folders.js +195 -8
- package/src/scripts/count.js +248 -8
- package/src/scripts/d.js +203 -7
- package/src/scripts/datauri.js +373 -8
- package/src/scripts/delete-files.js +363 -7
- package/src/scripts/docker-clean.js +410 -8
- package/src/scripts/dp.js +426 -7
- package/src/scripts/e.js +375 -9
- package/src/scripts/empty-trash.js +497 -7
- package/src/scripts/evm.js +428 -9
- package/src/scripts/fetch-github-repos.js +441 -10
- package/src/scripts/get-channel.js +329 -8
- package/src/scripts/get-course.js +384 -11
- package/src/scripts/get-dependencies.js +290 -9
- package/src/scripts/get-folder.js +783 -10
- package/src/scripts/get-tunes.js +411 -10
- package/src/scripts/get-video.js +352 -9
- package/src/scripts/git-backup.js +561 -9
- package/src/scripts/git-clone.js +477 -9
- package/src/scripts/git-pup.js +303 -7
- package/src/scripts/git-push.js +380 -8
- package/src/scripts/h.js +607 -9
- package/src/scripts/hide-desktop-icons.js +483 -7
- package/src/scripts/hide-hidden-files.js +522 -7
- package/src/scripts/install-dependencies-from.js +440 -9
- package/src/scripts/ips.js +647 -10
- package/src/scripts/iso.js +354 -8
- package/src/scripts/killni.js +561 -7
- package/src/scripts/ll.js +451 -8
- package/src/scripts/local-ip.js +310 -8
- package/src/scripts/m.js +508 -8
- package/src/scripts/map.js +293 -8
- package/src/scripts/mkd.js +287 -7
- package/src/scripts/ncu-update-all.js +441 -8
- package/src/scripts/nginx-init.js +702 -12
- package/src/scripts/npmi.js +366 -7
- package/src/scripts/o.js +495 -8
- package/src/scripts/org-by-date.js +321 -7
- package/src/scripts/p.js +208 -7
- package/src/scripts/packages.js +313 -8
- package/src/scripts/path.js +209 -7
- package/src/scripts/ports.js +582 -8
- package/src/scripts/q.js +290 -8
- package/src/scripts/refresh-files.js +378 -10
- package/src/scripts/remove-smaller-files.js +500 -8
- package/src/scripts/rename-files-with-date.js +517 -9
- package/src/scripts/resize-image.js +523 -9
- package/src/scripts/rm-safe.js +653 -8
- package/src/scripts/s.js +525 -9
- package/src/scripts/set-git-public.js +349 -7
- package/src/scripts/show-desktop-icons.js +459 -7
- package/src/scripts/show-hidden-files.js +456 -7
- package/src/scripts/tpa.js +265 -8
- package/src/scripts/tpo.js +264 -7
- package/src/scripts/u.js +489 -7
- package/src/scripts/vpush.js +422 -8
- package/src/scripts/y.js +267 -7
- package/src/utils/common/os.js +94 -2
- package/src/utils/ubuntu/apt.js +13 -7
- package/src/utils/windows/choco.js +82 -26
- package/src/utils/windows/winget.js +89 -27
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
# Installing Cursor
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Cursor is an AI-powered code editor built on Visual Studio Code that provides intelligent coding assistance through seamless AI integrations. It enables pair programming with AI, offering features like real-time code suggestions, debugging assistance, and code generation using advanced language models. Because Cursor is forked from VS Code, you can easily migrate your existing extensions, themes, and keybindings.
|
|
6
|
+
|
|
7
|
+
Cursor is available for macOS, Windows, and Linux. It requires an active internet connection for AI features and offers both free and paid subscription tiers.
|
|
8
|
+
|
|
9
|
+
## Dependencies
|
|
10
|
+
|
|
11
|
+
### macOS (Homebrew)
|
|
12
|
+
- **Required:**
|
|
13
|
+
- Homebrew - Install via `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
|
|
14
|
+
- **Optional:** None
|
|
15
|
+
- **Auto-installed:**
|
|
16
|
+
- Xcode Command Line Tools (automatically installed by Homebrew if not present)
|
|
17
|
+
|
|
18
|
+
### Ubuntu (APT/Snap)
|
|
19
|
+
- **Required:**
|
|
20
|
+
- `curl` - Install via `sudo apt-get install -y curl` (usually pre-installed)
|
|
21
|
+
- `apt-get` - System package manager (pre-installed)
|
|
22
|
+
- `sudo` privileges - Required for package installation
|
|
23
|
+
- **Optional:**
|
|
24
|
+
- `libfuse2` (for Ubuntu 20.04-22.04) - Install via `sudo apt-get install -y libfuse2` (only needed for AppImage installation method)
|
|
25
|
+
- `libfuse2t64` (for Ubuntu 24.04+) - Install via `sudo apt-get install -y libfuse2t64` (only needed for AppImage installation method)
|
|
26
|
+
- **Auto-installed:** None
|
|
27
|
+
|
|
28
|
+
### Raspberry Pi OS (APT/Snap)
|
|
29
|
+
- **Required:**
|
|
30
|
+
- `curl` - Install via `sudo apt-get install -y curl` (usually pre-installed)
|
|
31
|
+
- `apt-get` - System package manager (pre-installed)
|
|
32
|
+
- `sudo` privileges - Required for package installation
|
|
33
|
+
- ARM64 architecture (aarch64) - Requires 64-bit Raspberry Pi OS; verify with `uname -m`
|
|
34
|
+
- **Optional:**
|
|
35
|
+
- `libfuse2` - Install via `sudo apt-get install -y libfuse2` (only needed for AppImage installation method)
|
|
36
|
+
- **Auto-installed:** None
|
|
37
|
+
|
|
38
|
+
### Amazon Linux (DNF/YUM)
|
|
39
|
+
- **Required:**
|
|
40
|
+
- `curl` - Install via `sudo dnf install -y curl` or `sudo yum install -y curl` (usually pre-installed)
|
|
41
|
+
- `dnf` (Amazon Linux 2023, RHEL 8+, Fedora) or `yum` (Amazon Linux 2, older RHEL) - System package manager (pre-installed)
|
|
42
|
+
- `sudo` privileges - Required for package installation
|
|
43
|
+
- **Optional:**
|
|
44
|
+
- `fuse` - Install via `sudo dnf install -y fuse fuse-libs` or `sudo yum install -y fuse fuse-libs` (only needed for AppImage installation method)
|
|
45
|
+
- Desktop environment - Install via `sudo dnf groupinstall -y "Server with GUI"` (Cursor is a GUI application)
|
|
46
|
+
- **Auto-installed:** None
|
|
47
|
+
|
|
48
|
+
### Windows (Chocolatey/winget)
|
|
49
|
+
- **Required:**
|
|
50
|
+
- `winget` - Pre-installed on Windows 10 version 1809+ and Windows 11; install from Microsoft Store via "App Installer" if missing
|
|
51
|
+
- **Optional:** None
|
|
52
|
+
- **Auto-installed:** None
|
|
53
|
+
|
|
54
|
+
### Git Bash (Manual/Portable)
|
|
55
|
+
- **Required:**
|
|
56
|
+
- `winget.exe` - Pre-installed on Windows 10 version 1809+ and Windows 11; accessible from Git Bash as `winget.exe`
|
|
57
|
+
- Git for Windows - Download from https://git-scm.com/downloads/win (provides Git Bash environment)
|
|
58
|
+
- **Optional:** None
|
|
59
|
+
- **Auto-installed:** None
|
|
60
|
+
|
|
61
|
+
## Prerequisites
|
|
62
|
+
|
|
63
|
+
Before installing Cursor on any platform, ensure:
|
|
64
|
+
|
|
65
|
+
1. **Internet connectivity** - Required for downloading and for all AI-powered features
|
|
66
|
+
2. **Sufficient disk space** - At least 2 GB available
|
|
67
|
+
3. **Minimum RAM** - 4 GB RAM recommended
|
|
68
|
+
4. **Administrative privileges** - Required on most platforms for installation
|
|
69
|
+
|
|
70
|
+
## Platform-Specific Installation
|
|
71
|
+
|
|
72
|
+
### macOS (Homebrew)
|
|
73
|
+
|
|
74
|
+
#### Prerequisites
|
|
75
|
+
|
|
76
|
+
- macOS 10.15 (Catalina) or later
|
|
77
|
+
- Homebrew package manager installed
|
|
78
|
+
- Terminal access
|
|
79
|
+
|
|
80
|
+
Homebrew supports both Apple Silicon (M1/M2/M3/M4) and Intel Macs. If Homebrew is not installed, install it first:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
#### Installation Steps
|
|
87
|
+
|
|
88
|
+
Run the following command to install Cursor via Homebrew:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
brew install --cask --quiet cursor
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The `--cask` flag indicates this is a macOS application (not a command-line formula), and `--quiet` suppresses non-essential output for automation compatibility.
|
|
95
|
+
|
|
96
|
+
After installation, Cursor is available in `/Applications/Cursor.app` and can be launched from Spotlight or the Applications folder.
|
|
97
|
+
|
|
98
|
+
#### Verification
|
|
99
|
+
|
|
100
|
+
Confirm the installation succeeded by launching the application:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
open -a Cursor
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Alternatively, verify the application exists:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
ls /Applications/Cursor.app
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Expected output:
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
/Applications/Cursor.app
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### Troubleshooting
|
|
119
|
+
|
|
120
|
+
**Problem**: `brew: command not found`
|
|
121
|
+
|
|
122
|
+
**Solution**: Homebrew is not installed or not in PATH. Install Homebrew or add it to your PATH:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
For Intel Macs, use:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
eval "$(/usr/local/bin/brew shellenv)"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Problem**: Installation fails with "Cask 'cursor' is unavailable"
|
|
135
|
+
|
|
136
|
+
**Solution**: Update Homebrew to get the latest cask definitions:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
brew update
|
|
140
|
+
brew install --cask --quiet cursor
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**Problem**: App shows "Cursor can't be opened because Apple cannot check it for malicious software"
|
|
144
|
+
|
|
145
|
+
**Solution**: This can occur on first launch. Right-click the app in Applications and select "Open", then click "Open" in the dialog. Alternatively, clear the quarantine flag:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
xattr -cr /Applications/Cursor.app
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Problem**: Cursor does not appear in PATH for terminal commands
|
|
152
|
+
|
|
153
|
+
**Solution**: Open Cursor, then press `Cmd+Shift+P` to open the Command Palette. Type "Shell Command: Install 'cursor' command in PATH" and select it. This adds the `cursor` command to your terminal.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### Ubuntu/Debian (APT)
|
|
158
|
+
|
|
159
|
+
#### Prerequisites
|
|
160
|
+
|
|
161
|
+
- Ubuntu 20.04 or later, or Debian 10 or later (64-bit x86_64 or ARM64)
|
|
162
|
+
- sudo privileges
|
|
163
|
+
- Active internet connection
|
|
164
|
+
|
|
165
|
+
#### Installation Steps
|
|
166
|
+
|
|
167
|
+
**Method: Download and Install .deb Package**
|
|
168
|
+
|
|
169
|
+
Download and install the Cursor .deb package directly. This method enables automatic updates through your package manager.
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-deb-x64&releaseTrack=stable" -o /tmp/cursor.deb && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y /tmp/cursor.deb && rm /tmp/cursor.deb
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
This command:
|
|
176
|
+
- Downloads the latest stable Cursor .deb package for x86_64
|
|
177
|
+
- Installs it using apt-get with no interactive prompts
|
|
178
|
+
- Cleans up the downloaded file
|
|
179
|
+
|
|
180
|
+
For ARM64 systems (like AWS Graviton), use:
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-deb-arm64&releaseTrack=stable" -o /tmp/cursor.deb && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y /tmp/cursor.deb && rm /tmp/cursor.deb
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
After installation, Cursor is available in your application menu and can be launched from the terminal with the `cursor` command.
|
|
187
|
+
|
|
188
|
+
**Alternative Method: AppImage (Portable)**
|
|
189
|
+
|
|
190
|
+
If you prefer not to use the package manager or encounter issues with the .deb package:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-appImage-x64&releaseTrack=stable" -o /tmp/cursor.AppImage && chmod +x /tmp/cursor.AppImage && sudo mv /tmp/cursor.AppImage /opt/cursor.AppImage
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Install the required FUSE library for AppImage support:
|
|
197
|
+
|
|
198
|
+
For Ubuntu 20.04 - 22.04:
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libfuse2
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
For Ubuntu 24.04 and later:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libfuse2t64
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**Important**: On Ubuntu 22.04 and later, do NOT install the `fuse` package directly as it can remove critical system packages. Always use `libfuse2` or `libfuse2t64` instead.
|
|
211
|
+
|
|
212
|
+
#### Verification
|
|
213
|
+
|
|
214
|
+
For .deb installation, verify with:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
cursor --version
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
For AppImage installation, verify with:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
/opt/cursor.AppImage --version
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Launch Cursor:
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
cursor
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Or for AppImage:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
/opt/cursor.AppImage
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
#### Troubleshooting
|
|
239
|
+
|
|
240
|
+
**Problem**: "dlopen(): error loading libfuse.so.2" when running AppImage
|
|
241
|
+
|
|
242
|
+
**Solution**: Install the FUSE library as shown in the installation steps. Alternatively, extract and run the AppImage without FUSE:
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
/opt/cursor.AppImage --appimage-extract
|
|
246
|
+
./squashfs-root/cursor
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**Problem**: Sandbox errors when launching Cursor
|
|
250
|
+
|
|
251
|
+
**Solution**: In trusted environments, you can bypass sandbox restrictions. Modify your launch command:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
/opt/cursor.AppImage --no-sandbox
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**Note**: Using `--no-sandbox` reduces security. Only use this in trusted environments.
|
|
258
|
+
|
|
259
|
+
**Problem**: apt update fails after installing Cursor .deb
|
|
260
|
+
|
|
261
|
+
**Solution**: There are known issues with the Cursor apt repository on some systems. If apt update fails, temporarily disable the Cursor repository:
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
sudo mv /etc/apt/sources.list.d/cursor.list /etc/apt/sources.list.d/cursor.list.disabled
|
|
265
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Cursor will still work; you will just need to update it manually by downloading a new .deb package.
|
|
269
|
+
|
|
270
|
+
**Problem**: `cursor: command not found` after installation
|
|
271
|
+
|
|
272
|
+
**Solution**: The cursor command may not be in your PATH. Open Cursor graphically, then use the Command Palette (`Ctrl+Shift+P`) and run "Shell Command: Install 'cursor' command in PATH".
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
### Raspberry Pi OS (APT)
|
|
277
|
+
|
|
278
|
+
#### Prerequisites
|
|
279
|
+
|
|
280
|
+
- Raspberry Pi OS (64-bit) - ARM64/aarch64 architecture **required**
|
|
281
|
+
- Raspberry Pi 4 or later with 4 GB or more RAM recommended
|
|
282
|
+
- sudo privileges
|
|
283
|
+
- Active internet connection
|
|
284
|
+
|
|
285
|
+
**Critical Architecture Requirement**: Cursor requires a 64-bit operating system. Verify your architecture:
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
uname -m
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
This must output `aarch64`. If it outputs `armv7l`, you are running 32-bit Raspberry Pi OS and must install the 64-bit version from the Raspberry Pi Imager.
|
|
292
|
+
|
|
293
|
+
#### Installation Steps
|
|
294
|
+
|
|
295
|
+
**Method: Download and Install .deb Package (ARM64)**
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-deb-arm64&releaseTrack=stable" -o /tmp/cursor.deb && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y /tmp/cursor.deb && rm /tmp/cursor.deb
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
**Alternative Method: AppImage (ARM64)**
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-appImage-arm64&releaseTrack=stable" -o /tmp/cursor.AppImage && chmod +x /tmp/cursor.AppImage && sudo mv /tmp/cursor.AppImage /opt/cursor.AppImage
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Install the FUSE library for AppImage support:
|
|
308
|
+
|
|
309
|
+
```bash
|
|
310
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libfuse2
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
#### Verification
|
|
314
|
+
|
|
315
|
+
For .deb installation:
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
cursor --version
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
For AppImage installation:
|
|
322
|
+
|
|
323
|
+
```bash
|
|
324
|
+
/opt/cursor.AppImage --version
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
#### Troubleshooting
|
|
328
|
+
|
|
329
|
+
**Problem**: Cursor crashes immediately on launch
|
|
330
|
+
|
|
331
|
+
**Solution**: Some users have reported crashes with the ARM64 AppImage on Raspberry Pi 5. Try using the .deb package instead, or extract and run the AppImage:
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
/opt/cursor.AppImage --appimage-extract
|
|
335
|
+
./squashfs-root/cursor --no-sandbox
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
**Problem**: `uname -m` shows `armv7l` instead of `aarch64`
|
|
339
|
+
|
|
340
|
+
**Solution**: You are running 32-bit Raspberry Pi OS. Cursor requires 64-bit. Download and install the 64-bit Raspberry Pi OS image from https://www.raspberrypi.com/software/.
|
|
341
|
+
|
|
342
|
+
**Problem**: Slow performance or high memory usage
|
|
343
|
+
|
|
344
|
+
**Solution**: Raspberry Pi has limited resources. Close other applications and ensure you have at least 4 GB RAM. Consider increasing swap:
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
sudo dphys-swapfile swapoff
|
|
348
|
+
sudo sed -i 's/CONF_SWAPSIZE=.*/CONF_SWAPSIZE=2048/' /etc/dphys-swapfile
|
|
349
|
+
sudo dphys-swapfile setup
|
|
350
|
+
sudo dphys-swapfile swapon
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
**Problem**: Display issues on Wayland
|
|
354
|
+
|
|
355
|
+
**Solution**: If you experience rendering issues on Wayland, try running with X11:
|
|
356
|
+
|
|
357
|
+
```bash
|
|
358
|
+
GDK_BACKEND=x11 cursor
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
---
|
|
362
|
+
|
|
363
|
+
### Amazon Linux/RHEL (DNF/YUM)
|
|
364
|
+
|
|
365
|
+
#### Prerequisites
|
|
366
|
+
|
|
367
|
+
- Amazon Linux 2023 (AL2023), Amazon Linux 2 (AL2), RHEL 8+, Fedora, or CentOS Stream 8+
|
|
368
|
+
- sudo privileges
|
|
369
|
+
- Active internet connection
|
|
370
|
+
- Desktop environment (if using GUI; Cursor is a graphical application)
|
|
371
|
+
|
|
372
|
+
#### Installation Steps
|
|
373
|
+
|
|
374
|
+
**Method: Download and Install RPM Package**
|
|
375
|
+
|
|
376
|
+
For Amazon Linux 2023, RHEL 8+, and Fedora (using DNF):
|
|
377
|
+
|
|
378
|
+
```bash
|
|
379
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-rpm-x64&releaseTrack=stable" -o /tmp/cursor.rpm && sudo dnf install -y /tmp/cursor.rpm && rm /tmp/cursor.rpm
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
For Amazon Linux 2 and older systems (using YUM):
|
|
383
|
+
|
|
384
|
+
```bash
|
|
385
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-rpm-x64&releaseTrack=stable" -o /tmp/cursor.rpm && sudo yum install -y /tmp/cursor.rpm && rm /tmp/cursor.rpm
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
For ARM64 systems (AWS Graviton, etc.):
|
|
389
|
+
|
|
390
|
+
```bash
|
|
391
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-rpm-arm64&releaseTrack=stable" -o /tmp/cursor.rpm && sudo dnf install -y /tmp/cursor.rpm && rm /tmp/cursor.rpm
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
**Alternative Method: AppImage (Portable)**
|
|
395
|
+
|
|
396
|
+
For headless servers or environments where the RPM installation is not suitable:
|
|
397
|
+
|
|
398
|
+
```bash
|
|
399
|
+
curl -fsSL "https://www.cursor.com/api/download?platform=linux-appImage-x64&releaseTrack=stable" -o /tmp/cursor.AppImage && chmod +x /tmp/cursor.AppImage && sudo mv /tmp/cursor.AppImage /opt/cursor.AppImage
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
Install FUSE for AppImage support:
|
|
403
|
+
|
|
404
|
+
```bash
|
|
405
|
+
sudo dnf install -y fuse fuse-libs
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
Or for YUM-based systems:
|
|
409
|
+
|
|
410
|
+
```bash
|
|
411
|
+
sudo yum install -y fuse fuse-libs
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
#### Verification
|
|
415
|
+
|
|
416
|
+
For RPM installation:
|
|
417
|
+
|
|
418
|
+
```bash
|
|
419
|
+
cursor --version
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
For AppImage installation:
|
|
423
|
+
|
|
424
|
+
```bash
|
|
425
|
+
/opt/cursor.AppImage --version
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
#### Troubleshooting
|
|
429
|
+
|
|
430
|
+
**Problem**: No graphical display available
|
|
431
|
+
|
|
432
|
+
**Solution**: Cursor is a GUI application and requires a desktop environment. For headless servers, you can use X11 forwarding:
|
|
433
|
+
|
|
434
|
+
```bash
|
|
435
|
+
ssh -X user@server
|
|
436
|
+
cursor
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
Or install a desktop environment:
|
|
440
|
+
|
|
441
|
+
```bash
|
|
442
|
+
sudo dnf groupinstall -y "Server with GUI"
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
**Problem**: AppImage fails with "FUSE not available"
|
|
446
|
+
|
|
447
|
+
**Solution**: Install FUSE:
|
|
448
|
+
|
|
449
|
+
```bash
|
|
450
|
+
sudo dnf install -y fuse fuse-libs
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
Or extract and run the AppImage directly:
|
|
454
|
+
|
|
455
|
+
```bash
|
|
456
|
+
/opt/cursor.AppImage --appimage-extract
|
|
457
|
+
./squashfs-root/cursor
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
**Problem**: SELinux blocking execution
|
|
461
|
+
|
|
462
|
+
**Solution**: Check the audit log for SELinux denials:
|
|
463
|
+
|
|
464
|
+
```bash
|
|
465
|
+
sudo ausearch -m avc -ts recent
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
For testing, you can temporarily set SELinux to permissive mode:
|
|
469
|
+
|
|
470
|
+
```bash
|
|
471
|
+
sudo setenforce 0
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
**Note**: This is temporary. For production, create a proper SELinux policy.
|
|
475
|
+
|
|
476
|
+
**Problem**: Missing dependencies
|
|
477
|
+
|
|
478
|
+
**Solution**: Install common dependencies:
|
|
479
|
+
|
|
480
|
+
```bash
|
|
481
|
+
sudo dnf install -y libX11 libXScrnSaver gtk3 nss alsa-lib
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
---
|
|
485
|
+
|
|
486
|
+
### Windows (winget)
|
|
487
|
+
|
|
488
|
+
#### Prerequisites
|
|
489
|
+
|
|
490
|
+
- Windows 10 version 1809 or later, or Windows 11
|
|
491
|
+
- winget package manager (pre-installed on Windows 10 1809+ and Windows 11)
|
|
492
|
+
- Administrator privileges recommended
|
|
493
|
+
- Active internet connection
|
|
494
|
+
|
|
495
|
+
#### Installation Steps
|
|
496
|
+
|
|
497
|
+
Run the following command in an Administrator PowerShell or Command Prompt:
|
|
498
|
+
|
|
499
|
+
```powershell
|
|
500
|
+
winget install --id Anysphere.Cursor --silent --accept-package-agreements --accept-source-agreements
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
This command:
|
|
504
|
+
- `--id Anysphere.Cursor` - Specifies the Cursor package
|
|
505
|
+
- `--silent` - Runs without user prompts
|
|
506
|
+
- `--accept-package-agreements` - Automatically accepts package license agreements
|
|
507
|
+
- `--accept-source-agreements` - Automatically accepts source license agreements
|
|
508
|
+
|
|
509
|
+
**Alternative Method: Chocolatey**
|
|
510
|
+
|
|
511
|
+
If Chocolatey is installed, you can use:
|
|
512
|
+
|
|
513
|
+
```powershell
|
|
514
|
+
choco install cursoride -y
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
The `-y` flag automatically confirms the installation without prompts.
|
|
518
|
+
|
|
519
|
+
**Note**: The Chocolatey package name is `cursoride`, not `cursor`.
|
|
520
|
+
|
|
521
|
+
After installation, close and reopen your terminal for PATH updates to take effect.
|
|
522
|
+
|
|
523
|
+
#### Verification
|
|
524
|
+
|
|
525
|
+
Open a new PowerShell or Command Prompt window, then verify the installation:
|
|
526
|
+
|
|
527
|
+
```powershell
|
|
528
|
+
winget list --id Anysphere.Cursor
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
Or launch Cursor:
|
|
532
|
+
|
|
533
|
+
```powershell
|
|
534
|
+
cursor
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
Alternatively, search for "Cursor" in the Start Menu.
|
|
538
|
+
|
|
539
|
+
#### Troubleshooting
|
|
540
|
+
|
|
541
|
+
**Problem**: `winget: The term 'winget' is not recognized`
|
|
542
|
+
|
|
543
|
+
**Solution**: winget may not be installed or PATH may not be updated. Install App Installer from the Microsoft Store:
|
|
544
|
+
|
|
545
|
+
```powershell
|
|
546
|
+
start ms-windows-store://pdp/?productid=9NBLGGH4NNS1
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
After installation, open a new terminal window.
|
|
550
|
+
|
|
551
|
+
**Problem**: Installation fails with "Administrator privileges required"
|
|
552
|
+
|
|
553
|
+
**Solution**: Right-click PowerShell or Command Prompt and select "Run as administrator", then retry the installation command.
|
|
554
|
+
|
|
555
|
+
**Problem**: `cursor: command not found` after installation
|
|
556
|
+
|
|
557
|
+
**Solution**: The PATH has not been updated. Close and reopen your terminal. If the problem persists, open Cursor from the Start Menu, then use the Command Palette (`Ctrl+Shift+P`) and run "Shell Command: Install 'cursor' command in PATH".
|
|
558
|
+
|
|
559
|
+
**Problem**: Windows Defender SmartScreen blocks the installer
|
|
560
|
+
|
|
561
|
+
**Solution**: Cursor is a legitimate application from Anysphere. Click "More info" and then "Run anyway". For enterprise environments, contact your IT administrator to whitelist the Cursor installer.
|
|
562
|
+
|
|
563
|
+
**Problem**: Antivirus flags the installer
|
|
564
|
+
|
|
565
|
+
**Solution**: Some antivirus software may flag the installer due to its behavior. Temporarily disable your antivirus during installation, or add an exception for the Cursor installer and installation directory.
|
|
566
|
+
|
|
567
|
+
---
|
|
568
|
+
|
|
569
|
+
### WSL (Ubuntu)
|
|
570
|
+
|
|
571
|
+
#### Prerequisites
|
|
572
|
+
|
|
573
|
+
- Windows 10 version 2004 or later, or Windows 11
|
|
574
|
+
- Windows Subsystem for Linux installed with Ubuntu distribution
|
|
575
|
+
- WSL 2 recommended for best performance
|
|
576
|
+
- Cursor installed on Windows (see Windows section above)
|
|
577
|
+
|
|
578
|
+
**Important**: Cursor runs on Windows and connects to WSL using the Remote - WSL extension pattern (similar to VS Code). You do not install Cursor inside WSL itself. Instead, install Cursor on Windows and use its remote development capabilities to connect to your WSL environment.
|
|
579
|
+
|
|
580
|
+
Verify WSL is installed and running Ubuntu:
|
|
581
|
+
|
|
582
|
+
```bash
|
|
583
|
+
wsl --list --verbose
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
#### Installation Steps
|
|
587
|
+
|
|
588
|
+
**Step 1: Install Cursor on Windows**
|
|
589
|
+
|
|
590
|
+
From PowerShell (as Administrator):
|
|
591
|
+
|
|
592
|
+
```powershell
|
|
593
|
+
winget install --id Anysphere.Cursor --silent --accept-package-agreements --accept-source-agreements
|
|
594
|
+
```
|
|
595
|
+
|
|
596
|
+
**Step 2: Configure WSL PATH (Optional)**
|
|
597
|
+
|
|
598
|
+
To launch Cursor from within WSL, add the Windows Cursor installation to your WSL PATH. Add this line to your `~/.bashrc` or `~/.zshrc` in WSL:
|
|
599
|
+
|
|
600
|
+
```bash
|
|
601
|
+
echo 'export PATH="$PATH:/mnt/c/Users/$(cmd.exe /c echo %USERNAME% 2>/dev/null | tr -d '\r')/AppData/Local/Programs/cursor/resources/app/bin"' >> ~/.bashrc && source ~/.bashrc
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
**Step 3: Connect to WSL from Cursor**
|
|
605
|
+
|
|
606
|
+
1. Launch Cursor on Windows
|
|
607
|
+
2. Click the green icon in the bottom-left corner (shows "><" or "Remote")
|
|
608
|
+
3. Select "Connect to WSL" from the menu
|
|
609
|
+
4. Choose your Ubuntu distribution from the list
|
|
610
|
+
5. Cursor installs the necessary server components in WSL (first connection may take a few minutes)
|
|
611
|
+
|
|
612
|
+
After connecting, you can open folders and files within your WSL filesystem directly from Cursor.
|
|
613
|
+
|
|
614
|
+
#### Verification
|
|
615
|
+
|
|
616
|
+
From within WSL, verify you can launch Cursor (after PATH configuration):
|
|
617
|
+
|
|
618
|
+
```bash
|
|
619
|
+
cursor --version
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
Or from Windows, verify Cursor can connect to WSL:
|
|
623
|
+
|
|
624
|
+
1. Open Cursor
|
|
625
|
+
2. Press `Ctrl+Shift+P` to open the Command Palette
|
|
626
|
+
3. Type "Remote-WSL: New Window" and select it
|
|
627
|
+
4. Verify Cursor opens with a WSL connection (indicated in the bottom-left corner)
|
|
628
|
+
|
|
629
|
+
#### Troubleshooting
|
|
630
|
+
|
|
631
|
+
**Problem**: "WSL extension is supported only in Microsoft versions of VS Code"
|
|
632
|
+
|
|
633
|
+
**Solution**: This error can occur if there is a conflict with VS Code Remote extensions. Ensure you are using the latest version of Cursor. Reinstall Cursor if necessary:
|
|
634
|
+
|
|
635
|
+
```powershell
|
|
636
|
+
winget uninstall --id Anysphere.Cursor --silent
|
|
637
|
+
winget install --id Anysphere.Cursor --silent --accept-package-agreements --accept-source-agreements
|
|
638
|
+
```
|
|
639
|
+
|
|
640
|
+
**Problem**: Cannot connect to WSL from Cursor
|
|
641
|
+
|
|
642
|
+
**Solution**: Ensure WSL 2 is installed and your distribution is running:
|
|
643
|
+
|
|
644
|
+
```powershell
|
|
645
|
+
wsl --set-default-version 2
|
|
646
|
+
wsl --install -d Ubuntu
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
Restart WSL:
|
|
650
|
+
|
|
651
|
+
```powershell
|
|
652
|
+
wsl --shutdown
|
|
653
|
+
wsl
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
**Problem**: Slow file access when working with Windows files from WSL
|
|
657
|
+
|
|
658
|
+
**Solution**: WSL has slower performance when accessing files on the Windows filesystem (`/mnt/c/`). For best performance, keep your projects within the WSL filesystem (`~/projects/` or similar).
|
|
659
|
+
|
|
660
|
+
**Problem**: `cursor: command not found` in WSL
|
|
661
|
+
|
|
662
|
+
**Solution**: The PATH may not include the Windows Cursor installation. Verify the path exists and update your shell configuration:
|
|
663
|
+
|
|
664
|
+
```bash
|
|
665
|
+
ls "/mnt/c/Users/$(cmd.exe /c echo %USERNAME% 2>/dev/null | tr -d '\r')/AppData/Local/Programs/cursor/resources/app/bin"
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
If the directory does not exist, Cursor may be installed in a different location. Search for it:
|
|
669
|
+
|
|
670
|
+
```bash
|
|
671
|
+
find /mnt/c/Users -name "cursor" -type d 2>/dev/null | head -5
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
---
|
|
675
|
+
|
|
676
|
+
### Git Bash (Windows)
|
|
677
|
+
|
|
678
|
+
#### Prerequisites
|
|
679
|
+
|
|
680
|
+
- Windows 10 or later
|
|
681
|
+
- Git for Windows installed (provides Git Bash)
|
|
682
|
+
- PowerShell available (for initial installation)
|
|
683
|
+
|
|
684
|
+
Git Bash provides a Unix-compatible environment on Windows. Since Cursor is a Windows application, it is installed on Windows and accessible from Git Bash.
|
|
685
|
+
|
|
686
|
+
Download Git for Windows from https://git-scm.com/downloads/win if not already installed.
|
|
687
|
+
|
|
688
|
+
#### Installation Steps
|
|
689
|
+
|
|
690
|
+
Git Bash can execute Windows commands, so use winget from within Git Bash:
|
|
691
|
+
|
|
692
|
+
```bash
|
|
693
|
+
winget.exe install --id Anysphere.Cursor --silent --accept-package-agreements --accept-source-agreements
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
**Alternative: Use PowerShell from Git Bash**
|
|
697
|
+
|
|
698
|
+
```bash
|
|
699
|
+
powershell.exe -Command "winget install --id Anysphere.Cursor --silent --accept-package-agreements --accept-source-agreements"
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
**Alternative: Use Chocolatey from Git Bash**
|
|
703
|
+
|
|
704
|
+
```bash
|
|
705
|
+
choco.exe install cursoride -y
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
After installation, close and reopen Git Bash for PATH updates to take effect.
|
|
709
|
+
|
|
710
|
+
#### Verification
|
|
711
|
+
|
|
712
|
+
Open a new Git Bash window and run:
|
|
713
|
+
|
|
714
|
+
```bash
|
|
715
|
+
cursor --version
|
|
716
|
+
```
|
|
717
|
+
|
|
718
|
+
Or launch Cursor:
|
|
719
|
+
|
|
720
|
+
```bash
|
|
721
|
+
cursor
|
|
722
|
+
```
|
|
723
|
+
|
|
724
|
+
If the cursor command is not available, launch via Windows:
|
|
725
|
+
|
|
726
|
+
```bash
|
|
727
|
+
cmd.exe /c start "" "Cursor"
|
|
728
|
+
```
|
|
729
|
+
|
|
730
|
+
#### Troubleshooting
|
|
731
|
+
|
|
732
|
+
**Problem**: `winget.exe: command not found`
|
|
733
|
+
|
|
734
|
+
**Solution**: Winget may not be in the Git Bash PATH. Use the full path:
|
|
735
|
+
|
|
736
|
+
```bash
|
|
737
|
+
"/c/Users/$USER/AppData/Local/Microsoft/WindowsApps/winget.exe" install --id Anysphere.Cursor --silent --accept-package-agreements --accept-source-agreements
|
|
738
|
+
```
|
|
739
|
+
|
|
740
|
+
**Problem**: `cursor: command not found` after installation
|
|
741
|
+
|
|
742
|
+
**Solution**: The PATH in Git Bash may not include the Cursor binary. Add it manually:
|
|
743
|
+
|
|
744
|
+
```bash
|
|
745
|
+
echo 'export PATH="$PATH:/c/Users/$USER/AppData/Local/Programs/cursor/resources/app/bin"' >> ~/.bashrc
|
|
746
|
+
source ~/.bashrc
|
|
747
|
+
```
|
|
748
|
+
|
|
749
|
+
**Problem**: PowerShell command fails from Git Bash
|
|
750
|
+
|
|
751
|
+
**Solution**: Ensure PowerShell is accessible. Try using the full path:
|
|
752
|
+
|
|
753
|
+
```bash
|
|
754
|
+
"/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe" -Command "winget install --id Anysphere.Cursor --silent --accept-package-agreements --accept-source-agreements"
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
**Problem**: Cannot launch Cursor from Git Bash
|
|
758
|
+
|
|
759
|
+
**Solution**: Use the Windows `start` command through cmd:
|
|
760
|
+
|
|
761
|
+
```bash
|
|
762
|
+
cmd.exe /c start "" "Cursor"
|
|
763
|
+
```
|
|
764
|
+
|
|
765
|
+
Or open directly using the Windows path:
|
|
766
|
+
|
|
767
|
+
```bash
|
|
768
|
+
"/c/Users/$USER/AppData/Local/Programs/cursor/Cursor.exe" &
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
---
|
|
772
|
+
|
|
773
|
+
## Post-Installation Configuration
|
|
774
|
+
|
|
775
|
+
### First-Time Setup
|
|
776
|
+
|
|
777
|
+
After installing and launching Cursor on any platform:
|
|
778
|
+
|
|
779
|
+
1. **Sign in (Optional)** - Create a Cursor account or sign in with GitHub/Google to enable cloud sync and access AI features
|
|
780
|
+
2. **Import VS Code Settings** - Cursor prompts you to import extensions, themes, keybindings, and settings from VS Code if detected
|
|
781
|
+
3. **Configure AI Model** - Go to Settings > AI to configure your preferred AI model and API keys
|
|
782
|
+
4. **Install Shell Command** - Use the Command Palette (`Cmd+Shift+P` on macOS, `Ctrl+Shift+P` on Windows/Linux) and run "Shell Command: Install 'cursor' command in PATH"
|
|
783
|
+
|
|
784
|
+
### Keyboard Shortcuts
|
|
785
|
+
|
|
786
|
+
Cursor inherits VS Code keyboard shortcuts and adds AI-specific ones:
|
|
787
|
+
|
|
788
|
+
| Action | macOS | Windows/Linux |
|
|
789
|
+
|--------|-------|---------------|
|
|
790
|
+
| Open Command Palette | Cmd+Shift+P | Ctrl+Shift+P |
|
|
791
|
+
| AI Chat | Cmd+L | Ctrl+L |
|
|
792
|
+
| AI Edit | Cmd+K | Ctrl+K |
|
|
793
|
+
| Accept AI Suggestion | Tab | Tab |
|
|
794
|
+
| New File | Cmd+N | Ctrl+N |
|
|
795
|
+
| Open Folder | Cmd+O | Ctrl+O |
|
|
796
|
+
| Toggle Terminal | Ctrl+` | Ctrl+` |
|
|
797
|
+
|
|
798
|
+
### Configuring Extensions
|
|
799
|
+
|
|
800
|
+
Cursor supports VS Code extensions. Install extensions via:
|
|
801
|
+
|
|
802
|
+
1. Open the Extensions view (`Cmd+Shift+X` on macOS, `Ctrl+Shift+X` on Windows/Linux)
|
|
803
|
+
2. Search for the desired extension
|
|
804
|
+
3. Click "Install"
|
|
805
|
+
|
|
806
|
+
Popular extensions for development:
|
|
807
|
+
- ESLint (for JavaScript/TypeScript linting)
|
|
808
|
+
- Prettier (for code formatting)
|
|
809
|
+
- GitLens (for enhanced Git integration)
|
|
810
|
+
- Remote - SSH (for remote development)
|
|
811
|
+
|
|
812
|
+
### Configuring AI Features
|
|
813
|
+
|
|
814
|
+
Cursor offers multiple AI models and configuration options:
|
|
815
|
+
|
|
816
|
+
1. Open Settings (`Cmd+,` on macOS, `Ctrl+,` on Windows/Linux)
|
|
817
|
+
2. Navigate to "AI" or "Cursor" settings
|
|
818
|
+
3. Configure:
|
|
819
|
+
- Default AI model (GPT-4, Claude, etc.)
|
|
820
|
+
- API keys (if using your own)
|
|
821
|
+
- Context settings (how much code context to include)
|
|
822
|
+
- Privacy settings (what data is sent to AI)
|
|
823
|
+
|
|
824
|
+
---
|
|
825
|
+
|
|
826
|
+
## Common Issues
|
|
827
|
+
|
|
828
|
+
### Issue: AI Features Not Working
|
|
829
|
+
|
|
830
|
+
**Symptoms**: AI suggestions do not appear, or AI chat returns errors.
|
|
831
|
+
|
|
832
|
+
**Solution**:
|
|
833
|
+
1. Ensure you are signed in to Cursor
|
|
834
|
+
2. Check your internet connection
|
|
835
|
+
3. Verify your subscription status (some features require paid plans)
|
|
836
|
+
4. Check Cursor status at https://status.cursor.com/
|
|
837
|
+
|
|
838
|
+
### Issue: High CPU or Memory Usage
|
|
839
|
+
|
|
840
|
+
**Symptoms**: Cursor consumes excessive system resources.
|
|
841
|
+
|
|
842
|
+
**Solution**:
|
|
843
|
+
1. Disable unused extensions (Extensions view > Installed > Disable)
|
|
844
|
+
2. Close unused editor tabs
|
|
845
|
+
3. Reduce the number of open projects
|
|
846
|
+
4. Restart Cursor to clear cached data
|
|
847
|
+
|
|
848
|
+
### Issue: Extensions Not Working
|
|
849
|
+
|
|
850
|
+
**Symptoms**: VS Code extensions fail to install or function.
|
|
851
|
+
|
|
852
|
+
**Solution**:
|
|
853
|
+
1. Ensure you are using compatible extensions (some VS Code extensions may not work with Cursor)
|
|
854
|
+
2. Check extension compatibility on the extension's marketplace page
|
|
855
|
+
3. Try reinstalling the extension
|
|
856
|
+
4. Report incompatible extensions to the Cursor team
|
|
857
|
+
|
|
858
|
+
### Issue: Cursor Cannot Find Installed Packages (Node, Python, etc.)
|
|
859
|
+
|
|
860
|
+
**Symptoms**: Terminal in Cursor cannot find globally installed packages.
|
|
861
|
+
|
|
862
|
+
**Solution**: Cursor may not inherit your shell's PATH. Add this to your shell configuration:
|
|
863
|
+
|
|
864
|
+
For macOS/Linux (`~/.bashrc` or `~/.zshrc`):
|
|
865
|
+
|
|
866
|
+
```bash
|
|
867
|
+
export PATH="$PATH:/usr/local/bin:/opt/homebrew/bin"
|
|
868
|
+
```
|
|
869
|
+
|
|
870
|
+
Restart Cursor after modifying shell configuration.
|
|
871
|
+
|
|
872
|
+
### Issue: Git Integration Not Working
|
|
873
|
+
|
|
874
|
+
**Symptoms**: Git status, diff, or other features do not work.
|
|
875
|
+
|
|
876
|
+
**Solution**:
|
|
877
|
+
1. Ensure Git is installed and in your PATH
|
|
878
|
+
2. Open a terminal in Cursor and run `git --version`
|
|
879
|
+
3. If Git is not found, install it or add it to your PATH
|
|
880
|
+
4. Configure Git user identity if prompted:
|
|
881
|
+
|
|
882
|
+
```bash
|
|
883
|
+
git config --global user.name "Your Name"
|
|
884
|
+
git config --global user.email "your.email@example.com"
|
|
885
|
+
```
|
|
886
|
+
|
|
887
|
+
---
|
|
888
|
+
|
|
889
|
+
## Uninstallation
|
|
890
|
+
|
|
891
|
+
### macOS
|
|
892
|
+
|
|
893
|
+
```bash
|
|
894
|
+
brew uninstall --cask cursor
|
|
895
|
+
rm -rf ~/Library/Application\ Support/Cursor
|
|
896
|
+
rm -rf ~/Library/Caches/Cursor
|
|
897
|
+
```
|
|
898
|
+
|
|
899
|
+
### Ubuntu/Debian
|
|
900
|
+
|
|
901
|
+
For .deb installation:
|
|
902
|
+
|
|
903
|
+
```bash
|
|
904
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get remove -y cursor
|
|
905
|
+
rm -rf ~/.config/Cursor
|
|
906
|
+
rm -rf ~/.cache/Cursor
|
|
907
|
+
```
|
|
908
|
+
|
|
909
|
+
For AppImage installation:
|
|
910
|
+
|
|
911
|
+
```bash
|
|
912
|
+
sudo rm /opt/cursor.AppImage
|
|
913
|
+
rm -rf ~/.config/Cursor
|
|
914
|
+
rm -rf ~/.cache/Cursor
|
|
915
|
+
```
|
|
916
|
+
|
|
917
|
+
### Amazon Linux/RHEL
|
|
918
|
+
|
|
919
|
+
For RPM installation:
|
|
920
|
+
|
|
921
|
+
```bash
|
|
922
|
+
sudo dnf remove -y cursor
|
|
923
|
+
rm -rf ~/.config/Cursor
|
|
924
|
+
rm -rf ~/.cache/Cursor
|
|
925
|
+
```
|
|
926
|
+
|
|
927
|
+
For AppImage installation:
|
|
928
|
+
|
|
929
|
+
```bash
|
|
930
|
+
sudo rm /opt/cursor.AppImage
|
|
931
|
+
rm -rf ~/.config/Cursor
|
|
932
|
+
rm -rf ~/.cache/Cursor
|
|
933
|
+
```
|
|
934
|
+
|
|
935
|
+
### Windows
|
|
936
|
+
|
|
937
|
+
Using winget:
|
|
938
|
+
|
|
939
|
+
```powershell
|
|
940
|
+
winget uninstall --id Anysphere.Cursor --silent
|
|
941
|
+
```
|
|
942
|
+
|
|
943
|
+
Using Chocolatey:
|
|
944
|
+
|
|
945
|
+
```powershell
|
|
946
|
+
choco uninstall cursoride -y
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
Remove user data (PowerShell):
|
|
950
|
+
|
|
951
|
+
```powershell
|
|
952
|
+
Remove-Item -Path "$env:APPDATA\Cursor" -Recurse -Force
|
|
953
|
+
Remove-Item -Path "$env:LOCALAPPDATA\Cursor" -Recurse -Force
|
|
954
|
+
```
|
|
955
|
+
|
|
956
|
+
---
|
|
957
|
+
|
|
958
|
+
## References
|
|
959
|
+
|
|
960
|
+
- [Cursor Official Website](https://cursor.com/)
|
|
961
|
+
- [Cursor Download Page](https://cursor.com/download)
|
|
962
|
+
- [Cursor Documentation](https://cursor.com/docs)
|
|
963
|
+
- [Cursor CLI Installation](https://cursor.com/docs/cli/installation)
|
|
964
|
+
- [Cursor Downloads Reference](https://cursor.com/docs/downloads)
|
|
965
|
+
- [Cursor Homebrew Cask](https://formulae.brew.sh/cask/cursor)
|
|
966
|
+
- [Cursor Chocolatey Package](https://community.chocolatey.org/packages/cursoride)
|
|
967
|
+
- [Cursor winget Package](https://winstall.app/apps/Anysphere.Cursor)
|
|
968
|
+
- [Cursor Community Forum](https://forum.cursor.com/)
|
|
969
|
+
- [Cursor GitHub Issues](https://github.com/cursor/cursor/issues)
|
|
970
|
+
- [Cursor Status Page](https://status.cursor.com/)
|