下载最新版的 Freerdp: git clone https://github.com/FreeRDP/FreeRDP.git 安装所需的环境: sudo apt-get install build-essential git cmake libssl-dev libx11-dev libxext-dev libxinerama-dev libxcursor-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev sudo apt-get install libcunit1-dev libdirectfb-dev xmlto doxygen Generate makefiles: (生成 makefile 文件) cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON . If you are using Eclipse, you can also generate Eclipse project files: cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON . 执行 make make install 执行 sudo Now create /etc/ld.so.conf.d/freerdp.conf and add the following line to it: /usr/local/lib/freerdp Depending on your OS/distribution, you may also need to add this line: /usr/local/lib Run ldconfig. You should now have xfreerdp installed in /usr/local/bin: awake@envy:~$ which xfreerdp /usr/local/bin/xfreerdp Plugins are installed in /usr/local/lib/freerdp: awake@envy:/usr/local/lib/freerdp$ ls cliprdr.so disk.so drdynvc.so printer.so rail.so rdpdbg.so rdpdr.so rdpsnd_alsa.so rdpsnd.so keymaps are installed in /usr/local/share/freerdp: awake@envy:/usr/local/share/freerdp$ ls keymaps/ aliases ataritt amiga empty fujitsu ibm macosx sony xfree86 xkb.pl digital_vndr evdev hp macintosh sgi_vndr sun xfree98 After launching FreeRDP at least once, ~/.freerdp will be created to store known hosts: awake@envy:~/.freerdp$ ls cacert known_hosts Xfreerdp 常用命令 xfreerdp -a 16 -f -u ubuntu -a 位色 -f 全屏 -u 用户名 -p 密码 -g 分辨率 ip 目标 ip 地址 -p 123456 -g 800*600 [ip] xfreerdp - HowTo by example... Connecting I want to connect to donaldsplace.duckburg.calistoa xfreerdp donaldsplace.duckburg.calistoa For some other reason the port to connect is 1234 (and not 3389) xfreerdp donaldsplace.duckburg.calistoa:1234 or xfreerdp -t 1234 donaldsplace.duckburg.calistoa I want to connect to donaldsplace and be (for authentication) known as “daisy” of domain duck xfreerdp -u daisy -d duck donaldsplace.duckburg.calistoa You could also specify the password along using xfreerdp -u daisy -d duck -p myPass donaldsplace.duckburg.calistoa Note that this may have no effect if “Always prompt for password” is enabled on the server. WARNING: if you specify a password on the command line it may be visible to other users when they use tools like ps. I want to connect to the root console of donaldsplace.duckburg.calistoa xfreerdp -0 donaldsplace.duckburg.calistoa I want to enable compression to reduce the needed bandwidth xfreerdp -z donaldsplace.duckburg.calistoa Keep in mind that while reducing the needed bandwidth this increases CPU utilization on the server. Layout, Experiance & co. I don’t like the default size of 1024x768 - how can I open a connection in 2000x900? xfreerdp -g 2000x900 donaldsplace.duckburg.calistoa How do I open a connection in Fullscreen? xfreerdp -f donaldsplace.duckburg.calistoa Then use ctrl + alt + enter to return from fullscreen. How do I change the default color-depth of a connection to 8 bpp? xfreerdp -a 8 donaldsplace.duckburg.calistoa How do I enable my desktop background-image? xfreerdp -x lan donaldsplace.duckburg.calistoa Keep in mind that setting a higher experiance (-x) needs more bandwidth. How do I enable Hindi Traditional keyboard layout variant? xfreerdp -k 0x00010439 donaldsplace.duckburg.calistoa Is there a list of some standard keyboard identifiers? xfreerdp --kbd-list My ${worlds-best-layout} identifier is not listed. What now? Add a little page on how to find the Identifier. How do I change the %CLIENTNAME% Environment-Variable of a session to “daysi” xfreerdp -n daysi donaldsplace.duckburg.calistoa Keep in mind that this only works, if the session is created. Re-connecting to an existing session does not change the clientname variable. Redirection -o Audio I want to synchronize the clipboard data when connecting to donaldsplace.duckburg.calistoa xfreerdp --plugin cliprdr donaldsplace.duckburg.calistoa I want to redirect sound when connecting to donaldsplace.duckburg.calistoa xfreerdp --plugin rdpsnd donaldsplace.duckburg.calistoa I want to redirect all my (CUPS) printers when connecting to donaldsplace.duckburg.calistoa xfreerdp --plugin rdpdr --data printer -- donaldsplace.duckburg.calistoa more Printer examples (including drivers) I want my homefolder redirected as a share when connecting to donaldsplace.duckburg.calistoa and the share-name should corrospond to my (client) user name xfreerdp --plugin rdpdr --data disk:${USERNAME}:${HOME} -- donaldsplace.duckburg.calistoa