Run Cursor AI on eisy!
Introductions
Cursor AI is a fabulous tool that helps speed up your plugin development using AI. In addition, we are using it to add more AI features into all our products and services.
This said, Cursor AI does not have a FreeBSD version. So, in order to get it to run on your eisy, you will need to perform a few tasks.
Download and Extract Cursor AI
- Download cursor from https://www.cursor.com/ for Linux
- Extract the AppImage file using the following command:
cursor-1.20.0-x86_64.AppImage --appimage-extract
This will create a directory called squashfs-root in the current directory.
Install Dependencies
Since Cursor AI will be running in linux compatibility mode, you need to install the following packages (Rocky Linux). Here's the command:
sudo pkg install linux-rl9-alsa-lib linux-rl9-at-spi2-atk linux-rl9-at-spi2-core linux-rl9-atk linux-rl9-avahi-libs linux-rl9-brotli linux-rl9-cairo linux-rl9-cairo-gobject linux-rl9-cups-libs linux-rl9-dbus-libs linux-rl9-dri linux-rl9-elfutils-libelf linux-rl9-elfutils-libs linux-rl9-expat linux-rl9-flac-libs linux-rl9-fontconfig linux-rl9-freetype linux-rl9-fribidi linux-rl9-gdk-pixbuf2 linux-rl9-gnutls linux-rl9-graphite2 linux-rl9-gsm linux-rl9-gtk3 linux-rl9-harfbuzz linux-rl9-icu linux-rl9-jbigkit-libs linux-rl9-jpeg linux-rl9-libdrm linux-rl9-libepoxy linux-rl9-libevent linux-rl9-libgcrypt linux-rl9-libglvnd linux-rl9-libgpg-error linux-rl9-libidn2 linux-rl9-libogg linux-rl9-libpciaccess linux-rl9-libpng linux-rl9-libproxy linux-rl9-librsvg2 linux-rl9-libsigsegv linux-rl9-libsndfile linux-rl9-libstemmer linux-rl9-libtasn1 linux-rl9-libthai linux-rl9-libtiff linux-rl9-libtracker-sparql linux-rl9-libunistring linux-rl9-libvorbis linux-rl9-libwebp linux-rl9-libxkbcommon linux-rl9-libxml2 linux-rl9-llvm linux-rl9-lz4 linux-rl9-nettle linux-rl9-nspr linux-rl9-nss linux-rl9-openal-soft linux-rl9-p11-kit linux-rl9-pango linux-rl9-pixman linux-rl9-python39 linux-rl9-sqlite linux-rl9-systemd-libs linux-rl9-wayland linux-rl9-xorg-libs linux_base-rl9
Update Library Path for Linux Compatibility Mode
- Edit the
/compat/linux/etc/ld.so.conffile to include the path to the extraction directory (i.e.squashfs-root). After edit, the contents of the file will look something like this:
/usr/home/admin/squashfs-root <--- This is the path to the extraction directory
include ld.so.conf.d/*.conf
- Run the following command to update the ld.so.conf file:
sudo /compat/linux/sbin/ldconfig
Enable and Start the Linux Compatibility Mode
- Enable Linux Compatibility mode:
sudo sysrc linux_enable="YES"
- Start linux compatibility:
sudo service linux start
Run the Cursor!
- Run the cursor executable ensuring that you use --no-sandbox
/usr/home/admin/squashfs-root/cursor --no-sandbox &
- To login, make sure you use
chrome --no-sandbox
