使用rdesktop将树莓派用做瘦客户端

编译 好的成果放在这里,给 大家分享一下吧:

rdesktop_rpi_1.8.3.tar

存在一个BUG,

rdesktop运行时提示如下:
ERROR: CredSSP: Initialize failed, do you have correct kerberos tgt initialized
我为了解决这个问题还试着装了krb5关相包并编译了半天。
最后有人说这是一个BUG,在编译rdesktop时可以用
./configure –disable-credssp –disable-smartcard
参数来避免这个问题。

最后结论:rdesktop does not support NTLM CredSSP

libgssglue-dev用于编译credssp支持

libpcsclite-dev用于编译smartcard支持

 

通过安装xrdp可以利用mstsc登录树莓派,将树莓派用做微型服务器。同样也可以在树莓派上登录其它rdp服务器将树莓派用做终端。rdesktop是一个开源软件常见有人将它编译成各种平台上的windows系统终端程序。rdesktop同样可以运行在树莓派上。
闲话少说,下面就直接上手了:

编译rdesktop for raspberrypi
需要的第三方库:
libpcsclite-dev
libgssglue-dev
libssl-dev
libx11-dev
这个工具树莓派默认没装需要装一下。
autoconf
libx11-dev
从以下网址获得rdesktop源码
https://github.com/rdesktop/rdesktop
先执行如下命令生成configure
./bootstrap
再执行
./configure
然后就简单了:
make
sudo make install

编译后得到rdesktop可以直接使用啦。
最简单的用法:
./rdesktop -f -a 16 -u admin -p mypass myserver

http://blog.csdn.net/zjjyliuweijie/article/details/7048984

一个相关的文档:

1。 通过rdesktop工具连接Windows远程桌面

没有安装用命令:

sudo apt-get install rdesktop

安装后,可以用如下命令:

rdesktop -f -a 16 -u administrator -p passwrod feelamcheung 192.168.0.2:8080

-u 和 -p: 指定用户名和密码

-f : 默认全屏, 需要用Ctrl-Alt-Enter组合键进行全屏模式切换。

-a 16表示使用16 bit色,192.168.0.2是Windows服务器地址, 8080是端口号(默认是3389,可以不用写)

-r clipboard:PRIMARYCLIPBOARD : 这个一定要加上,要不然不能在主机Linux和服务器Windows直接复制粘贴文字了。贴中文也没有问题。

-r sound:启动本地音频设备

-r disk:sunray=/home/jimmy : 指定主机Linux上的一个目录映射到远程Windows上的硬盘,传送文件就不用再靠Samba或者FTP了。

关于 rdesktop 更为详细的用法,可以查询 man rdesktop。

可以用图形界面的tsclient工具,底层也是使用rdesktop。

其他商业软件:Windows的Remote Connection, 或者Citrix这种商业软件

安装远程运行程序

配置XP:打开远程桌面:在“控制面版”的“系统”,“远程”,勾上“允许用户远程连接到此计算机”;

下载:http://www.cendio.com/files/thinlinc/seamlessrdp/seamlessrdp.zip 并解压到C盘根目录下,C:\seamlessrdp

然后Ubuntu中就可以运行

rdesktop -A -s ‘c:”seamlessrdp”seamlessrdpshell.exe C:”Program Files”Internet Explorer”iexplore.exe’ 192.168.1.100:3389 -u administrator -p password

2. RealPlayer 安装

下载下来的是RealPlayer11GOLD.bin

如何安装命令:

chmod +x ~/桌面/RealPlayer11GOLD.bin

sudo ~/桌面/RealPlayer11GOLD.bin

当终端显示

Welcome to the RealPlayer (10.0.8.805) Setup for UNIX
Setup will help you get RealPlayer running on your computer.
Press [Enter] to continue…
时按下回车键,进入下一步:

Enter the complete path to the directory where you want
RealPlayer to be installed. You must specify the full
pathname of the directory and have write privileges to
the chosen directory.
Directory: [/home/shixinyu/RealPlayer]:
这里默认安装到用户的主文件夹下的RealPlayer目录下,如果你想要安装到别处,就在此处输入路径,否则直接回车即可。

You have selected the following RealPlayer configuration:

Destination: /home/shixinyu/RealPlayer

Enter [F]inish to begin copying files, or [P]revious to go
back to the previous prompts: [F]: F
安装程序会提示最后确定信息,如果都确定了,按下F键后回车。
当提示

Copying RealPlayer files…configure system-wide symbolic links? [Y/n]:
时按下Y键回车即可,后面基本上就没有需要用户操作的地方了,通常到这里基本上就安装好了,你可以到“应用程序,影音”下找到RealPlayer11来运行了,首次运行会有一段安装协议需要同意。

注:如果在跟着上述步骤完成安装操作之后到应用程序菜单下的“影音”中单击RealPlayer无反应,并且你的Ubuntu安装的是SCIM输入法,那么很可能是SCIM与RealPlayer的冲突,你还需要进行下面操作:
$sudo gedit /home/[yourid]/RealPlayer/realplay “”[yourid]指你的主文件夹名
在打开的文本编辑器的首行添加下面一行
export GTK_IM_MODULE=xim

之后保存文本编辑器,然后再次执行RealPlayer应该就正常了。

 

关于xmsg

技术面前人人平等.同时技术也不分高低贵贱.正所谓学无大小,达者为尊.
此条目发表在RPi分类目录,贴了, , 标签。将固定链接加入收藏夹。