freerdp-1.1 现在已支持 X11, Directfb等后端,并且有ios,及 android 的版本
这里主要是讲编译directfb 后端
基于X11 的编译方法参考:
http://blog.chinaunix.net/uid-20648944-id-3841632.html
os: ubuntu 10.04
1. 安装directfb
apt-get install libdirectfb-dev
2. 编译
cmake . -DCMAKE_BUILD_TYPE=Release -DWITH_FFMPEG=OFF -DWITH_XINERAMA=OFF \
-DWITH_XCURSOR=OFF -DWITH_DIRECTFB=ON \
-DCMAKE_INSTALL_PREFIX=/opt/usr/freerdp-1.1 -DWITH_GSTREAMER=ON
cd client/DIRECTFB
make
make install
3. 配制directfb 运行环境
如果未配制此文件,则运行时表现了一个花屏的效果(白灰色)
a) directfbrc
directfbrc 的 man文档 :
touch /etc/directfbrc
vi /etc/directfbrc
system=fbdev
autoflip-window
desktop-buffer-mode=auto
vt-switching
graphics-vt
no-deinit-check
no-motion-compression
no-translucent-windows
memcpy=x86 #根据自己的情况修改
mode=1024x768 #
根据自己的情况修改, 但此分辨率要在/etc/fb.modes 里面有对就项
depth=32 #
根据自己的情况修改 可以通过fbset -i 查看当前的分辨率的相关信息
dma
hardware
# for the moment, we need DirectFB's own cursor sprite
cursor
b) fb.modes
cat /etc/fb.modes
# #
# Sample video modes #
# #
##########FORMAT##########
#mode
# geometry
# timings
# options
# rgba
#endmode
mode "800x600-60"
# D: 40.000 MHz, H: 37.879 kHz, V: 60.317 Hz
geometry 800 600 800 1800 32
timings 25000 88 40 23 1 128 4
hsync high
vsync high
accel true
rgba 8/16,8/8,8/0,8/24
endmode
mode "1024x768-60"
# D: 65.003 MHz, H: 48.365 kHz, V: 60.006 Hz
geometry 1024 768 1024 2304 32
timings 15384 160 24 29 3 136 6
accel true
rgba 8/16,8/8,8/0,8/24
endmode
mode "1024x768-70"
# D: 75.002 MHz, H: 56.477 kHz, V: 70.071 Hz
geometry 1024 768 1024 2304 32
timings 13333 144 24 29 3 136 6
endmode
mode "1024x768-75"
# D: 78.75 MHz, H: 60.023 kHz, V: 75.03 Hz
geometry 1024 768 1024 768 32
timings 12698 176 16 28 1 96 3
hsync high
vsync high
endmode
mode "1280x1024-60"
# D: 108.003 MHz, H: 63.983 kHz, V: 60.021 Hz
geometry 1280 1024 1280 3072 32
timings 9259 248 48 38 1 112 3
hsync high
vsync high
accel true
rgba 8/16,8/8,8/0,8/24
endmode
mode "1366x768-60"
# D: 85.507 MHz, H: 47.716 kHz, V: 59.794 Hz
geometry 1366 768 1366 2304 32
timings 11695 213 70 24 3 143 3
endmode
mode "1440x900-60"
# D: 106.508 MHz, H: 55.939 kHz, V: 59.892 Hz
geometry 1440 900 1440 2700 32
timings 9389 232 80 25 3 152 6
endmode
mode "1920x1080-60"
# D: 138.504 MHz, H: 66.589 kHz, V: 59.936 Hz
geometry 1920 1080 1920 3240 32
timings 7220 80 48 23 3 32 5
endmode
4. 运行
sudo su
cd /opt/usr/freerdp-1.1/bin
./dfreerdp /u:admin /p:123 /v:192.168.1.150
参考:
http://taoofmac.com/space/blog/2013/01/09/2339
阅读(2060) | 评论(0) | 转发(0) |