2024-09-28 21:41:49 -05:00
2023-12-10 21:01:23 -05:00
2024-09-28 21:41:49 -05:00

Setup: Install Cursor IDE on Linux

Introduction

This guide helps you install Cursor IDE as a desktop application on Linux, simplifying the setup process.

What is Cursor IDE?

Cursor IDE is an AI-powered code editor, built on the foundations of Visual Studio Code and enhanced with ChatGPT integration. It offers a rich development experience with AI-based coding assistance. To learn more about Cursor IDE, visit the official Cursor website.

Cursor

Compatibility of Cursor IDE Setup Script (Tested Systems)

Operating System Version Status
Ubuntu 22.04 LTS ✅ Compatible
Ubuntu 24.04 LTS ✅ Compatible
Pop!_OS 22.04 LTS ✅ Compatible
Arch Linux - ✅ Compatible
Deepin OS 20.9 ✅ Compatible
Deepin OS 23 ✅ Compatible

Prerequisites

Before starting the installation, ensure the following dependencies are installed on your system:

  • Git: Used to clone the repository.
  • Curl: Required to download the installation files.
  • Bash: The script is written in Bash, so ensure it's available in your shell.

To install these dependencies (if not already installed), use the following commands:

sudo apt update
sudo apt install git curl bash -y

Installation

To install Cursor IDE, run the following command in your terminal. This will clone the repository, navigate into it, and start the installation process:

git clone https://github.com/argell10/SetupCursorIDE.git --depth=1 && cd SetupCursorIDE && ./install.sh && cd .. && rm -rf SetupCursorIDE

This script will:

  1. Download the Cursor IDE application.
  2. Set it up as a desktop application.
  3. Create a .desktop file for easy access from your applications menu.
  4. Configure an automatic update script using systemd.

Customizing the Installation

If you'd like to change the installation directory or other settings, you can modify the install.sh script before running it. The default installation path is /opt/cursor/.

Features

  • AI-powered coding: Leverages ChatGPT for real-time code suggestions and improvements.
  • Cross-platform: Cursor IDE is available on Windows, macOS, and Linux.
  • VSCode-based: Built on the familiar interface of Visual Studio Code, making it easy for VSCode users to adapt.

Automatic Updates

The installation process configures a systemd service that checks for and installs the latest updates of Cursor IDE. To manually trigger an update, run the following command:

systemctl --user start update-cursor.service

To enable automatic updates at startup:

systemctl --user enable update-cursor.service

Uninstallation

To completely remove Cursor IDE from your system, run:

sudo rm -rf /opt/cursor
rm ~/.config/systemd/user/update-cursor.service

Additionally, you can disable the systemd update service:

systemctl --user disable update-cursor.service

Learn More

For more details about Cursor IDE and its features, visit the official website.

Description
矢印 | Cursor AI Code Editor, installer and setup in Linux ➤
Readme Apache-2.0 248 KiB
Languages
Shell 100%