CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 40169|回复: 39

用lunbuntu + A80 实现spice 客户端

[复制链接]
发表于 2015-3-20 16:16:19 | 显示全部楼层 |阅读模式
Spice 客户端主要用于oVirt 这个虚拟化系统,你也可以用KVM。主要作用就是一个windows 瘦身机。


1. 刷lubuntu v0.4  详细看本版教程

2. 编译安装Spice   
先更新一下源,不然安装会相关依赖报错。
apt-get update
相关组件
apt-get install libusb-1.0 libgudev-1.0-0 libgudev-1.0-dev
apt-get install intltool openssl libssl-dev gtk+-3.0 libpulse-dev libjpeg62 libjpeg62-dev curl cifs-utils


安装USB重定向支持(可以不安装如不用USB重定向)
wget http://spice-space.org/download/usbredir/usbredir-0.7.tar.bz2
bzip2 -d usbredir-0.7.tar.bz2
tar -xvf usbredir-0.7.tar
./configure
make
make install


wget http://www.spice-space.org/download/gtk/spice-gtk-0.25.tar.bz2
bzip2 -d spice-gtk-0.25.tar.bz2
tar -xvf spice-gtk-0.25.tar
./configure --enable-usbredir=yes --libdir=/usr/lib
make
make install


3. 使用方法:

在图形界面下运行:   spicy -h oVirt服务器地址  -w 虚拟机的密码 -p spice端口  -s 安全端口  --spice-ca-file=spice证书

如: spicy -h 172.16.1.1 -w 123456 -p 5900 -s 5901 --spice-ca-file=./ca.crt

差不多就是这样子:














评分

参与人数 1威望 +3 金钱 +5 贡献 +5 收起 理由
yuanwf + 3 + 5 + 5 很给力!

查看全部评分

回复

使用道具 举报

 楼主| 发表于 2015-3-20 16:16:48 | 显示全部楼层

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-3-20 16:18:56 | 显示全部楼层
现在遇到的问题就是,缩小视频播放窗口就可以流畅播放。但是那个全屏就卡得要死。

我怀疑是,这个spice 用的码流不支持硬解,或是 A80处理不过来(也不至于)。

回复 支持 反对

使用道具 举报

发表于 2015-3-23 09:57:10 | 显示全部楼层
lazypaul 发表于 2015-3-20 16:18
现在遇到的问题就是,缩小视频播放窗口就可以流畅播放。但是那个全屏就卡得要死。

我怀疑是,这个spice 用 ...

支持一下。看看编译的时候能不能带 ./configure  --enable-gles2 之类的。把gpu用起来。
回复 支持 反对

使用道具 举报

发表于 2015-3-23 11:52:54 | 显示全部楼层
lazypaul 发表于 2015-3-20 16:18
现在遇到的问题就是,缩小视频播放窗口就可以流畅播放。但是那个全屏就卡得要死。

我怀疑是,这个spice 用 ...

对于你的部署,你觉得oVirt + spice稳定性怎样
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-3-24 09:11:15 | 显示全部楼层
yuanwf 发表于 2015-3-23 11:52
对于你的部署,你觉得oVirt + spice稳定性怎样

稳定性很不错。CT与CTA80也很给力,从没死过机。 就是性能不咋地,看到的人家的RK3199那些图形表现非常好。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-3-24 09:15:23 | 显示全部楼层
sunbeyond 发表于 2015-3-23 09:57
支持一下。看看编译的时候能不能带 ./configure  --enable-gles2 之类的。把gpu用起来。 ...

研究过的就有个差数是使用 xorg 或者那个 gtk
回复 支持 反对

使用道具 举报

发表于 2015-3-24 15:25:37 | 显示全部楼层
lazypaul 发表于 2015-3-24 09:15
研究过的就有个差数是使用 xorg 或者那个 gtk

不知道你用的v0.4是什么版本,可以贴xorg.conf给我看一下吗,如果是用fbturbo,用xorg参数,如果用pvr,就用gtk。
回复 支持 反对

使用道具 举报

发表于 2015-3-24 15:27:44 | 显示全部楼层
lazypaul 发表于 2015-3-20 16:18
现在遇到的问题就是,缩小视频播放窗口就可以流畅播放。但是那个全屏就卡得要死。

我怀疑是,这个spice 用 ...

看样子可以继续加速,但要研究下spice实现的原理
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-3-25 09:28:40 | 显示全部楼层
费德勒 发表于 2015-3-24 15:25
不知道你用的v0.4是什么版本,可以贴xorg.conf给我看一下吗,如果是用fbturbo,用xorg参数,如果用pvr, ...

# X.Org X server configuration file.

Section "Device"
        Identifier      "Allwinner A10/A13 FBDEV"
        Driver          "fbturbo"
        Option          "fbdev" "/dev/fb0"

        Option          "SwapbuffersWait" "true"
EndSection

Section "Device"
        Identifier      "Video Device"
        Driver          "pvr"
        Option          "FlipChain"             "true"
        #Option         "SoftEXA"               "false"
#       Option         "SoftEXA"               "true"
        Option          "fbdev" "/dev/fb0"
        Option          "SwapbuffersWait" "true"
EndSection

Section "Monitor"
        Identifier      "Monitor"
# Option                "DPMS"          "false"
EndSection

Section "Screen"
        Identifier      "Screen"
        Monitor         "Monitor"
        Device          "Video Device"
EndSection

Section "ServerLayout"
        Identifier      "Server Layout"
        Screen          "Screen"
EndSection

Section "ServerFlags"
        Option          "DefaultServerLayout"   "Server Layout"

        # Disable screen blanking. Disable DPMS in the Monitor section as well.
        # Option                "BlankTime"             "35790"
        # Option                "StandbyTime"           "35790"
        # Option                "SuspendTime"           "35790"
        # Option                "OffTime"               "35790"
EndSection

默认编译使用的是gtk+3.0    , 虽然我尝试转换到使用X11(提示使用的是GTK2.0作为后台)   依然搞出来的效果不理想。但在WINDOWS下1080P依然无任何压力。 瘦身机还是卡得要死。

spice 使用的是那个mjpeg 编码, 不知道 lubuntu 带硬解的版本能不能解这个
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-4-19 09:46 , Processed in 0.033035 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部