If you want to run Cursor AI on a cloud server and access it via Remote Desktop (RDP) with a full Graphical User Interface (GUI), here’s a complete guide. You’ll be able to edit code with AI assistance from anywhere using just your browser or Remote Desktop client.
This guide will walk you through installing a lightweight desktop environment, configuring XRDP, and setting up the Cursor AI editor on your Ubuntu 24.04 server.
Table of Contents 📑
- Step 1: Create a Vultr Server
- Step 2: Install a Lightweight Desktop Environment
- Step 3: Install and Configure XRDP
- Step 4: Setup GNOME Keyring
- Step 5: Install Chromium Browser
- Step 6: Install Cursor AI
- Step 7: Access Your Ubuntu Remote Desktop
- Conclusion
🤝 Affiliate Transparency
Note: This guide includes affiliate links. If you use my Vultr link, you’ll receive $300 in free credits (while the promotion is active), and I’ll earn a small commission — at no extra cost to you. This helps support the creation of detailed tutorials like this. Thank you for your support 💙🙂👍
Step 1: Create a Vultr Server
- Sign up on Vultr using this affiliate link to receive $300 in free credits.
- Choose Ubuntu 24.04 (64-bit) as the OS.
- Suggested configurations:
- Minimum: Shared CPU, 2 vCPU, 2 GB RAM
- Ideal: Dedicated CPU, 2 vCPU, 4 GB RAM
Step 2: Install a Lightweight Desktop Environment
We'll use Xfce because it's lightweight and fast.
Update packages:
sudo apt update && sudo apt upgrade -y
Install Xfce:
sudo apt install -y xfce4 xfce4-goodies
Step 3: Install and Configure XRDP
XRDP allows Remote Desktop Protocol (RDP) clients to access your Ubuntu desktop.
Install XRDP:
sudo apt install -y xrdp
Enable XRDP service:
sudo systemctl enable --now xrdp
Open RDP port in firewall:
sudo ufw allow 3389/tcp
Set the default desktop session:
echo "startxfce4" | sudo tee /etc/skel/.xsession
(Recommended) Create a non-root user:
adduser myuser
usermod -aG sudo myuser
Step 4: Setup GNOME Keyring
Some apps require a keyring daemon like GNOME Keyring to securely store and retrieve secrets such as passwords, API tokens, and encryption keys. GNOME Keyring runs in the background, encrypts data using your login password, and provides centralized access through APIs. Without it, apps relying on secure credential storage may fail to authenticate or prompt repeatedly for passwords.
Install gnome-keyring
:
sudo apt install -y gnome-keyring
Manually start it after login:
eval $(/usr/bin/gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
Auto-start it via GUI:
- Go to Settings > Session and Startup
- Under Application Autostart, click Add
- Name:
GNOME Keyring
-
Command:
/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg
Step 5: Install Chromium Browser
Cursor AI may rely on browser-based features.
sudo apt install -y chromium-browser
Step 6: Access Your Ubuntu Remote Desktop
- Launch your RDP client (Windows/macOS/Linux).
- Connect using your server's IP and your non-root user credentials.
Step 7: Install Cursor AI
Cursor AI is a powerful AI-based code editor.
Minimum Requirements:
- Ubuntu 24.04
- 2 GB RAM, 2 vCPU (shared)
- 3 GB disk space
Recommended Server:
- Dedicated 2 vCPU, 4 GB RAM
Install FUSE (required for AppImage):
sudo apt install -y fuse
Download Cursor AI from the official site:
Open Chromium and go to https://cursor.com, then download the Linux AppImage.
After downloading:
cd ~/Downloads
chmod +x CursorAI.AppImage
(Optional) Move to global path:
sudo mv CursorAI.AppImage /opt/CursorAI.AppImage
sudo ln -s /opt/CursorAI.AppImage /usr/local/bin/cursor
Launch Cursor:
cursor
Conclusion
Your cloud server is now equipped with a fast desktop environment and the Cursor AI code editor for remote development. Now you can use AI to enhance your code from anywhere in the world!
If you found this guide helpful, consider giving it a like or repost. Thank you for reading and have a great day 😉👍
Top comments (0)