Linux下安装FreeRDP,连接windows远程桌面的好软件

转载自:冰点网络菜园 — 阿菜的自留地 [ http://www.bingd.com/blog/ ] 


 偶尔也玩一下Linux,发现Linux下没有类似微软远程桌面的东西,当然可以安装VNC,但是VNC却不能连Windows的远程桌面,网上说可以用RDesktop,但又评论说RDesktop连接Windows机器太慢了,微软有专门为MAC系统的RDP客户端,却没看到Linux下专用的,一直想找一个好用的能连远程桌面的软件,偶然在网上看到了FreeRDP,编译安装后,果然好用。文档是记录整个安装过程的,备忘!
        官方网站:http://www.freerdp.com/
        安装完后运行的命令是:xfreerdp 192.168.1.101 -u administrator -p 123
        功能说明(摘自百度快照):
        1、连接机器ip地址是 192.168.1.101,
        2、登录远程机的账户密码是:-u administrator -p 123
        3、使用全屏浏览: -f
        4、把本地的/media/folder目录共享给远程机,
        其中disk:后面先接远程机的用户名,然后才是本地目录路径:
        –plugin rdpdr –data disk:administrator:/media/folder
        注意的事项:
        1、从远程机的全屏切换回来的快捷键是:ctrl+alt+enter
        2、在挂载了共享给远程机的目录后,远程机的ip地址前面有一个空格,然后才是双短横 — ,而其他地方的双短横都是紧接命令的。
        3、为了不每次输入这么长的一段命令,可以写入.bashrc中(仅对当前环境有效),alias myconn=’command’
        4、更多的使用方法,请参考官方文档。


        以下为安装FreeRDP的整个过程:(加粗为手工输入的命令,其它内容可能因环境不同会有差异)
 
root@l1:~/home/acai# git clone https://github.com/FreeRDP/FreeRDP.git
Initialized empty Git repository in /home/acai/test/FreeRDP/.git/ 
remote: Counting objects: 13995, done. 
remote: Compressing objects: 100% (3677/3677), done. 
remote: Total 13995 (delta 10439), reused 13797 (delta 10290) 
Receiving objects: 100% (13995/13995), 5.46 MiB | 11 KiB/s, done. 
Resolving deltas: 100% (10439/10439), done. 


root@l1:~/home/acai# cd FreeRDP 


root@l1:~/home/acai/FreeRDP# apt-get install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
build-essential is already the newest version. 
git-core is already the newest version. 
libssl-dev is already the newest version. 
libx11-dev is already the newest version. 
libxext-dev is already the newest version. 
libxext-dev set to manually installed. 
libxinerama-dev is already the newest version. 
libxinerama-dev set to manually installed. 
libxcursor-dev is already the newest version. 
libxcursor-dev set to manually installed. 
libxdamage-dev is already the newest version. 
libxdamage-dev set to manually installed. 
libasound2-dev is already the newest version. 
The following extra packages will be installed: 
cmake-data emacsen-common x11proto-video-dev 
The following NEW packages will be installed: 
cmake cmake-data emacsen-common libcups2-dev libxkbfile-dev libxv-dev x11proto-video-dev 
0 upgraded, 7 newly installed, 0 to remove and 73 not upgraded. 
Need to get 7,132kB of archives. 
After this operation, 18.4MB of additional disk space will be used. 
Do you want to continue [Y/n]? y 


root@l1:~/home/acai/FreeRDP# apt-get install libavutil-dev libavcodec-dev 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
Suggested packages: 
libfaad-dev libogg-dev libschroedinger-dev libspeex-dev libtheora-dev libvorbis-dev libraw1394-dev 
libdc1394-22-dev 
The following NEW packages will be installed: 
libavcodec-dev libavutil-dev 
0 upgraded, 2 newly installed, 0 to remove and 73 not upgraded. 
Need to get 2,326kB of archives. 
After this operation, 6,558kB of additional disk space will be used. 


root@l1:~/home/acai/FreeRDP# apt-get install libcunit1-dev libdirectfb-dev xmlto doxygen libxtst-dev 
Reading package lists... Done 
Building dependency tree 
Reading state information... Done 
libdirectfb-dev is already the newest version. 
libdirectfb-dev set to manually installed. 
The following extra packages will be installed: 
dblatex doc-base libcunit1 libfreezethaw-perl libmldbm-perl libuuid-perl preview-latex-style texlive-bibtex-extra 
texlive-latex-extra texlive-latex-extra-doc texlive-math-extra texlive-pictures texlive-pictures-doc 
x11proto-record-dev 
Suggested packages: 
docbook latex-cJk-all opensp texlive-lang-cyrillic texlive-xetex transfig doxygen-doc doxygen-gui libcunit1-doc 
texpower xmltex 
The following NEW packages will be installed: 
dblatex doc-base doxygen libcunit1 libcunit1-dev libfreezethaw-perl libmldbm-perl libuuid-perl libxtst-dev 
preview-latex-style texlive-bibtex-extra texlive-latex-extra texlive-latex-extra-doc texlive-math-extra 
texlive-pictures texlive-pictures-doc x11proto-record-dev xmlto 
0 upgraded, 18 newly installed, 0 to remove and 73 not upgraded. 
Need to get 230MB of archives. 
After this operation, 360MB of additional disk space will be used. 
Do you want to continue [Y/n]? y 


root@l1:~/home/acai/FreeRDP# cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON . 
... 
-- Configuring done 
-- Generating done 
-- Build files have been written to: /home/acai/FreeRDP 


root@l1:~/home/acai/FreeRDP# make 
... 
Note: Writing xfreerdp.1 
[100%] Built target xfreerdp.manpage 


root@l1:~/home/acai/FreeRDP# make install 
... 


root@l1:~/home/acai/FreeRDP# cd /etc/ld.so.conf.d 
root@l1:/etc/ld.so.conf.d# ls 
afflib.conf GL.conf libasound2.conf vmware-tools-libraries.conf 
freerdp.conf i486-linux-gnu.conf libc.conf 


root@l1:/etc/ld.so.conf.d# vi freerdp.conf 
#写入并保存
#/usr/local/lib/freerdp 
#/usr/local/lib 
root@l1:/etc/ld.so.conf.d# cat freerdp.conf 
/usr/local/lib/freerdp 
/usr/local/lib 


root@l1:/etc/ld.so.conf.d# which xfreerdp 
/usr/local/bin/xfreerdp 


root@l1:/etc/ld.so.conf.d# cd /usr/local/bin 
root@l1:/usr/local/bin# xfreerdp 
xfreerdp: error while loading shared libraries: libfreerdp-core.so.1.0: cannot open shared obJect file: No such file or directory 


root@l1:/usr/local/bin# ldconfig 
root@l1:/usr/local/bin# ls -l /usr/local/bin | grep xfreerdp 
-rwxr-xr-x 1 root root 788141 2012-03-15 12:28 xfreerdp 


root@l1:/usr/local/bin# which xfreerdp 
/usr/local/bin/xfreerdp 


root@l1:/usr/local/bin# ls /usr/local/lib/freerdp/ 
audin_alsa.so disk.so printer.so rdpdr.so serial.so tsmf.so 
audin.so drdynvc.so rail.so rdpsnd_alsa.so tsmf_alsa.so 
cliprdr.so parallel.so rdpdbg.so rdpsnd.so tsmf_ffmpeg.so 


root@l1:/usr/local/bin# ls /usr/local/share/freerdp/keymaps/ 
aliases digital_vndr fujitsu macintosh sony xfree98 
amiga empty hp macosx sun xkb.pl 
ataritt evdev ibm sgi_vndr xfree86 


root@l1:/usr/local/bin# cd ~/.freerdp/ 
root@l1:~/.freerdp# xfreerdp 192.168.1.101 -u administrator -p 123 
connected to 192.168.1.101:3389 
connected to 192.168.1.101:3389 
connected to 192.168.1.101:3389 


#安装完成,整个过程完毕


来源冰点网络菜园:www.bingd.com , 原文地址:http://www.bingd.com/blog/html/HowToUseFreeRDPinLinux.htm

你可能感兴趣的:(RDP)