Skip to content
Search

FreeRDP

lastmod 2024-07-10created 2024-05-309 edits

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Enjoy the freedom of using your software wherever you want, the way you want it, in a world where interoperability can finally liberate your computing experience.

Install

Ubuntu/Debian:

sudo apt install freerdp2-x11

Fedora:

sudo dnf install freerdp

Arch:

sudo pacman -S freerdp

RemoteApp

To run a RemoteApp with FreeRDP, use the following command:

xfreerdp /v:your-server-address /u:username /p:password /app:"||AppAlias"

Here, your-server-address is the address of the Windows server, and username and password are the user name and password needed for authentication. AppAlias is the alias of the application you want to run.

Example

If you want to run Notepad (notepad), enter the command as follows:

xfreerdp /v:your-server-address /u:username /p:password /app:"||notepad"

Someone reportedly ran KakaoTalk like this:

xfreerdp -u forcecore --app --plugin rail --data "%windir%\system32\cmd.exe" -- SERVER:PORT

*.rdp file

You can also save RemoteApp settings in an .rdp file and run it. An .rdp file is a plain text file that can contain various configuration options.

screen mode id:i:2
use multimon:i:0
desktopwidth:i:800
desktopheight:i:600
session bpp:i:24
winposstr:s:0,1,10,10,800,600
compression:i:1
keyboardhook:i:2
audiocapturemode:i:0
videoplaybackmode:i:1
connection type:i:2
networkautodetect:i:1
bandwidthautodetect:i:1
displayconnectionbar:i:1
disable wallpaper:i:0
allow font smoothing:i:0
allow desktop composition:i:0
disable full window drag:i:1
disable menu anims:i:1
disable themes:i:0
disable cursor setting:i:0
bitmapcachepersistenable:i:1
full address:s:your-server-address
audiomode:i:0
redirectprinters:i:1
redirectcomports:i:0
redirectsmartcards:i:1
redirectclipboard:i:1
redirectposdevices:i:0
autoreconnection enabled:i:1
authentication level:i:2
prompt for credentials:i:0
negotiate security layer:i:1
remoteapplicationmode:i:1
remoteapplicationname:s:Notepad
remoteapplicationprogram:s:||notepad
remoteapplicationcmdline:s:
username:s:your-username
password:s:your-password

Run:

xfreerdp notepad.rdp

Troubleshooting

RAIL_EXEC_E_NOT_IN_ALLOWLIST

xfreerdp -u forcecore --app --plugin rail --data "\Program Files (x86)\Kakao\KakaoTalk\KakaoTalk.exe" -- SERVER:PORT

If you get a RAIL_EXEC_E_NOT_IN_ALLOWLIST error when connecting, you need to add the program to the RemoteApp access list on the host server (Windows).

Alternatively, edit the registry so that all programs can be accessed:

\\HKLocalMachine\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

If the key (folder) does not exist, add it, and add the following value at that location.

  • Type: DWORD32
  • Key: fAllowUnlistedRemotePrograms
  • Value: 1

Then connect.

See also

Favorite site

author Zer0 sitemap