-
Notifications
You must be signed in to change notification settings - Fork 42
Run FreeEed over RDP on Ubuntu
FreeEed is a desktop (Swing) application, so to use it on a remote Ubuntu
machine — for example an AWS EC2 instance or an office workstation — you run a
graphical desktop on that machine and connect to it with a Remote Desktop
client. This page sets up xrdp (an open-source RDP server) on Ubuntu.
Shortcut: if you'd rather not set this up yourself, we can hand you a ready-made VM with everything installed — write to mark@scaia.ai.
Ubuntu Server has no GUI, and the full GNOME desktop is unreliable over
xrdp. Install the lightweight XFCE desktop, which works well with RDP:
sudo apt update
sudo apt install -y xfce4 xfce4-goodies(On Ubuntu Desktop a GUI is already present, but installing XFCE for the RDP session still avoids the GNOME/xrdp session conflicts described below.)
sudo apt install -y xrdp
sudo adduser xrdp ssl-cert # let xrdp read the TLS cert
sudo systemctl enable --now xrdpTell the RDP session to start XFCE:
echo "xfce4-session" > ~/.xsession
sudo systemctl restart xrdpConfirm it is listening on port 3389:
sudo systemctl status xrdp
sudo ss -ltnp | grep 3389RDP authenticates with the Linux account password. Cloud images (e.g. AWS)
often have no password set for the ubuntu user, so set one:
sudo passwd ubuntu # use a strong passwordLocal firewall (UFW), if enabled:
sudo ufw allow 3389/tcpOn AWS: add an inbound rule to the instance's Security Group — TCP port 3389.
Security: restrict the source to your own IP, never
0.0.0.0/0. Exposing RDP to the whole internet invites brute-force attacks. Safer still, keep 3389 closed and tunnel over SSH (see below) or put the host behind a VPN.
Point your RDP client at your_server_ip:3389 and log in with the Linux
username and the password from step 3.
-
Windows: Remote Desktop Connection (
mstsc) - macOS: Windows App / Microsoft Remote Desktop (App Store)
-
Linux: Remmina (
sudo apt install remmina)
SSH-tunnel alternative (recommended, keeps 3389 closed):
ssh -i yourkey.pem -L 3389:localhost:3389 ubuntu@your_server_ip…then connect your RDP client to localhost:3389.
Once you're on the remote desktop, follow the full installation instructions. In short:
- Install the prerequisites — Java (Amazon Corretto)
plus a few packages:
sudo apt update sudo apt install -y pst-utils wkhtmltopdf tesseract-ocr nautilus
- Download the complete pack from the Download page and unzip it.
-
cd freeeed_complete_packand run./start_all.sh. - Verify the install with the bundled sample project (see Quick start).
Document conversion (LibreOffice/soffice) and OCR run inside this session just
as they do locally — no extra display configuration is needed.
-
Black screen / immediate disconnect: the session manager (often GNOME) is
conflicting with
xrdp. Make sure~/.xsessioncontainsxfce4-sessionand that you are not also logged into the same user at the physical console —xrdpand a local GNOME session can't share one login. -
"Connection refused":
xrdpisn't running (sudo systemctl restart xrdp) or port 3389 is blocked (recheck UFW and, on AWS, the Security Group). -
Login fails: the account has no/!wrong password — rerun
sudo passwd <user>. -
Authentication popups inside the desktop (color profile / system prompts):
harmless on a server; click Cancel, or install
sudo apt install -y policykit-1-gnometo dismiss them.
See also: Quick start, Prerequisites.