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. (オプション)システムに登録・アイコン設定
例:
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. 初回起動と設定
補足
- 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:
- https://qiita.com/r_07089713/items/283df373d4a8ae5ab678
- https://apidog.com/jp/blog/how-to-install-cursor-on-windows-mac-linux-jp/
- 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
- https://zenn.dev/mizki/articles/36535a1b75ab81
- https://www.kkaneko.jp/cc/dev/cursor.html
- https://blog.future.ad.jp/cursor
- https://note.com/mizupe/n/n0df6530446d0
- https://www.sbbit.jp/article/cont1/154286
- https://blog.future.ad.jp/cursor/doc
Perplexity の Eliot より: pplx.ai/share
Cursorのアイコン(cursor.png)を入手する方法は以下の通りです。
AppImageからアイコンを抽出する方法
- AppImageファイルのあるディレクトリに移動 bash
cd ~/Downloads # 例
- AppImageを展開(抽出) bash
./cursor-*.AppImage --appimage-extract
これで同じディレクトリにsquashfs-root
というフォルダが作成されます126。 - アイコンファイルの場所を探す
- 任意の場所にコピー bash
cp 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:
- https://gist.github.com/redheli/6b87bd1cea7d282730676a159e49e549
- https://forum.cursor.com/t/install-scripts-and-shell-integration/62835
- https://apidog.com/blog/how-to-install-cursor-on-windows-mac-linux/
- https://forum.cursor.com/t/tutorial-install-cursor-permanently-when-appimage-install-didnt-work-on-linux/7712
- https://gist.github.com/evgenyneu/5c5c37ca68886bf1bea38026f60603b6
- https://prasadsawant7.hashnode.dev/cursor-ai-ubuntu-installation
- https://dev.to/lovestaco/how-to-create-a-launcher-for-your-appimage-on-linux-mc3
- https://www.kkaneko.jp/cc/dev/cursor.html
- https://icons8.com/icons/set/cursor-sh
- https://qiita.com/masterpiecehack/items/00c55855531b26144594
- https://aur.archlinux.org/packages/cursor-appimage
- https://www.reddit.com/r/kde/comments/1gjgj6q/overview_search_cant_find_cursor_appimage/
- https://dev.to/mhbaando/how-to-install-cursor-the-ai-editor-on-linux-41dm
- https://qiita.com/kota33/items/20a884cbd969cf1ce087
- https://note.com/sojin25/n/nd50cb457d882
- https://github.com/getcursor/cursor/issues/1447
- https://dev.to/melvincarvalho/how-to-fix-cursor-appimage-not-running-on-ubuntu-2404-2o3p
- https://zenn.dev/mizki/articles/36535a1b75ab81
- https://zenn.dev/kumamoto/scraps/7abb947b7fc7e3
- https://forum.cursor.com/t/cursor-install-ubuntu-24-04/4838
Perplexity の Eliot より: pplx.ai/share