Skip to content

Latest commit

ย 

History

History
151 lines (97 loc) ยท 3.46 KB

File metadata and controls

151 lines (97 loc) ยท 3.46 KB

Xfreerdp

xfreerdp is a modern and feature-rich Remote Desktop Protocol (RDP) client for Linux. It supports various RDP features and provides additional flexibility.


Allow Remote Connetion on Windows PC


Installation on CentOS/RHEL

yum install epel-release
yum install freerdp

Basic Command Structure

xfreerdp /u:<username> /p:<password> /v:<server_address>

Example:

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144
  • /u: โ€” Username
  • /p: โ€” Password
  • /v: โ€” Server address (IP or hostname)

Commonly Used Options

Fullscreen Mode

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 +f
  • +f: Launches in fullscreen mode

Set Screen Resolution

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 /size:1920x1080
  • /size:<width>x<height>: Sets custom resolution

Redirect Local Drives

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 /drive:/home/nikhil/Documents
  • /drive:<local_path>: Redirects local directory to remote session

Redirect Clipboard

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 +clipboard
  • +clipboard: Enables copy-paste between local and remote

Redirect Audio

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 +audio
  • +audio: Redirects remote audio to local machine

Redirect USB Devices

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 +usb
  • +usb: Enables USB device redirection

Disable TLS Security

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 /sec:rdp
  • /sec:rdp: Uses legacy RDP security (not TLS)

Enable Network Level Authentication (NLA)

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 +tls
  • +tls: Enables TLS-based secure connection

Example Commands

Fullscreen with Custom Resolution:

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 +f /size:1920x1080

Redirect Clipboard and Audio:

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 +clipboard +audio

Redirect Local Drive (Documents):

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 /drive:/home/nikhil/Documents

Disable NLA and Use RDP Security:

xfreerdp /u:nikhil /p:7489 /v:192.168.95.144 /sec:rdp

Quick Summary

Option Description Example Command
+f Fullscreen Mode xfreerdp /u:rahul /p:123 /v:192.168.1.61 +f
/size: Custom Resolution xfreerdp /u:rahul /p:123 /v:192.168.1.61 /size:1920x1080
+clipboard Clipboard Redirection xfreerdp /u:rahul /p:123 /v:192.168.1.61 +clipboard
+audio Audio Redirection xfreerdp /u:rahul /p:123 /v:192.168.1.61 +audio
/drive: Drive Redirection xfreerdp /u:rahul /p:123 /v:192.168.1.61 /drive:/home/rahul/Documents
/sec:rdp Disable TLS (Use RDP) xfreerdp /u:rahul /p:123 /v:192.168.1.61 /sec:rdp
+usb USB Device Redirection xfreerdp /u:rahul /p:123 /v:192.168.1.61 +usb

โšก