ubuntu安装cursor
先要安装一个fuse,这里一定要装libfuse2,装fuse的话直接挂了
sudo apt-get install libfuse2
去下一个cursor:
wget https://downloads.cursor.com/production/client/linux/x64/appimage/Cursor-0.46.11-ae378be9dc2f5f1a6a1a220c6e25f9f03c8d4e19.deb.glibc2.25-x86_64.AppImage
移动到/opt文件夹
mv Cursor-0.46.11-ae378be9dc2f5f1a6a1a220c6e25f9f03c8d4e19.deb.glibc2.25-x86_64.AppImage /opt/Cursor.AppImage
改一下权限
sudo chmod +x /opt/cursor.appimage
写一个启动脚本
nano cursor.sh
内容如下:
#!/bin/bash /opt/cursor.appimage --no-sandbox
给他一个运行权限
chmod +x cursor.sh
把他移动到合适的位置
sudo mv cursor.sh /usr/local/bin/
创建一个桌面快捷方式
sudo nano /usr/share/applications/cursor.desktop
内容如下:
[Desktop Entry] Name=Cursor Comment=A powerful code editor for developers Exec=/usr/local/bin/cursor.sh Icon=/opt/cursor.png Terminal=false Type=Application Categories=Development;
最后再更新一下图标
gtk-update-icon-cache update-desktop-database