Cursor Linux インストール

LinuxでCursorをインストールする方法

Cursor(カーソル)はAI機能を搭載したエディタで、Linuxでは主にAppImage形式で配布されています。以下の手順でインストールできます。

1. 公式サイトからAppImageをダウンロード

  • Cursorの公式サイト(https://cursor.sh など)にアクセスし、「Download for Linux」や「無料でダウンロード」ボタンからAppImageファイル(例: cursor-0.42.3-x86_64.AppImage)をダウンロードします1235

2. 必要なパッケージのインストール(Ubuntuの場合)

  • Ubuntu 22.04以降では多くの場合不要ですが、AppImage実行にFUSEが必要な場合があります。
  • 必要に応じて以下を実行してください(特にUbuntu 24.04/22.04以前や他ディストリの場合):
bashsudo apt update
sudo apt install libfuse2

3. AppImageファイルに実行権限を付与

  • ダウンロードしたディレクトリに移動し、次のコマンドを実行します。
bashchmod +x cursor-*.AppImage

4. AppImageを実行

  • 以下のコマンドでCursorを起動します。
bash./cursor-*.AppImage
  • 起動時に「–no-sandbox」オプションが必要な場合は次のようにします。
bash./cursor-*.AppImage --no-sandbox

5. (オプション)システムに登録・アイコン設定

  • より便利に使うため、AppImageを/opt~/Applicationsなどに移動し、デスクトップエントリを作成するとアプリ一覧から起動できるようになります345

例:

bashsudo mkdir -p /opt/cursor
sudo mv cursor-*.AppImage /opt/cursor/cursor.appimage
  • デスクトップエントリ作成例(/usr/share/applications/cursor.desktop):
text[Desktop Entry]
Name=Cursor
Exec=/opt/cursor/cursor.appimage
Icon=/opt/cursor/cursor.png
Type=Application
Categories=Development;

6. 初回起動と設定

  • 初回起動時に言語設定(japaneseなど)やログイン(Googleアカウント等)が求められる場合があります67
  • VSCodeの設定インポートやプライバシーモードの選択も可能です67

補足

  • Ubuntu 22.04以降ではlibfuse2が標準で入っている場合が多いですが、エラーが出る場合はインストールしてください5
  • 他のディストリビューションでも基本的な流れは同じですが、必要な依存パッケージが異なる場合があります45

参考コマンドまとめ

bash# 1. ダウンロード(例: Downloadsフォルダに保存)
cd ~/Downloads

# 2. 実行権限付与
chmod +x cursor-*.AppImage

# 3. 起動
./cursor-*.AppImage

# 4. 必要ならlibfuse2インストール(Ubuntu系)
sudo apt install libfuse2

この手順でCursorをLinuxにインストールできます。VSCodeに近い操作感でAI機能を活用できるエディタです678

Citations:

  1. https://qiita.com/r_07089713/items/283df373d4a8ae5ab678
  2. https://apidog.com/jp/blog/how-to-install-cursor-on-windows-mac-linux-jp/
  3. https://imemo.space/programming/ai-cursor-linux-%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB
  4. https://zenn.dev/mizki/articles/36535a1b75ab81
  5. https://www.kkaneko.jp/cc/dev/cursor.html
  6. https://blog.future.ad.jp/cursor
  7. https://note.com/mizupe/n/n0df6530446d0
  8. https://www.sbbit.jp/article/cont1/154286
  9. https://blog.future.ad.jp/cursor/doc

Perplexity の Eliot より: pplx.ai/share

Cursorのアイコン(cursor.png)を入手する方法は以下の通りです。

AppImageからアイコンを抽出する方法

  1. AppImageファイルのあるディレクトリに移動 bashcd ~/Downloads # 例
  2. AppImageを展開(抽出) bash./cursor-*.AppImage --appimage-extract これで同じディレクトリにsquashfs-rootというフォルダが作成されます126
  3. アイコンファイルの場所を探す
    • 多くの場合、以下のパスにアイコンがあります。 textsquashfs-root/usr/share/icons/hicolor/128x128/apps/cursor.png
    • サイズ違いで256x256512x512などもあります12
  4. 任意の場所にコピー bashcp squashfs-root/usr/share/icons/hicolor/128x128/apps/cursor.png ~/Applications/cursor/cursor.png または必要なサイズのpngを選んでコピーしてください。

補足

  • もし抽出したフォルダ内にアイコンが見つからない場合、favicon.icoを公式サイトからダウンロードしてpngに変換する方法もありますが、AppImageから抽出するのが最も確実です2
  • アイコンのパスはディストリビューションやバージョンによって異なる場合がありますが、squashfs-root/usr/share/icons/hicolor/以下に複数サイズのpngが格納されているのが一般的です126

この方法でIcon=/opt/cursor/cursor.png用のpngファイルを取得できます。

Citations:

  1. https://gist.github.com/redheli/6b87bd1cea7d282730676a159e49e549
  2. https://forum.cursor.com/t/install-scripts-and-shell-integration/62835
  3. https://apidog.com/blog/how-to-install-cursor-on-windows-mac-linux/
  4. https://forum.cursor.com/t/tutorial-install-cursor-permanently-when-appimage-install-didnt-work-on-linux/7712
  5. https://gist.github.com/evgenyneu/5c5c37ca68886bf1bea38026f60603b6
  6. https://prasadsawant7.hashnode.dev/cursor-ai-ubuntu-installation
  7. https://dev.to/lovestaco/how-to-create-a-launcher-for-your-appimage-on-linux-mc3
  8. https://www.kkaneko.jp/cc/dev/cursor.html
  9. https://icons8.com/icons/set/cursor-sh
  10. https://qiita.com/masterpiecehack/items/00c55855531b26144594
  11. https://aur.archlinux.org/packages/cursor-appimage
  12. https://www.reddit.com/r/kde/comments/1gjgj6q/overview_search_cant_find_cursor_appimage/
  13. https://dev.to/mhbaando/how-to-install-cursor-the-ai-editor-on-linux-41dm
  14. https://qiita.com/kota33/items/20a884cbd969cf1ce087
  15. https://note.com/sojin25/n/nd50cb457d882
  16. https://github.com/getcursor/cursor/issues/1447
  17. https://dev.to/melvincarvalho/how-to-fix-cursor-appimage-not-running-on-ubuntu-2404-2o3p
  18. https://zenn.dev/mizki/articles/36535a1b75ab81
  19. https://zenn.dev/kumamoto/scraps/7abb947b7fc7e3
  20. https://forum.cursor.com/t/cursor-install-ubuntu-24-04/4838

Perplexity の Eliot より: pplx.ai/share

タイトルとURLをコピーしました