Thursday Jul 16, 2009

如何使用Opensoalris中的多媒体播放器totem

(转载请注明来源地址http://blogs.sun.com/weixue)

安装了Opensolaris后,多数的用户可能马上就像要进行的应用,就是听歌,看电影了。呵呵,可惜阿由于某些原因,很多多媒体格式的解码器都不是默认安装的,可能你发现了,totem这个多媒体播放器其实什么也不能播放。。怎么办呢?很简单安转相应的解码器就行了。玩过Unix/linux的都知道其实这些解码器插件都在GStreamer里。这里为大家提供几个简单的方法可以用现成的:

1. 最有效,最简单,最全面的结局方案就是去这个网站,这里提供了很多Solaris上的多媒体软件,有的是商业的,有的可以自由使用。 把它(http://ips.homeunix.com:10906/) 加到pulisher里,直接就可以安转各种解码器的IPS 包了。比如你要安装播放flash和MPEG的解码器插件:

  1. "pkg set-authority -O http://ips.homeunix.com:10906 ips.homeunix.com" to add repository.
  2. "pkg refresh --full" to update catalog.
  3. "pkg install MBLgst-plugin-ffmpeg MBLgst-plugin-flv" to install plugins.

这里还很很多mp3, DVD的插件,转好这些包一般的视频音频基本上可以自由看听了。

2. 这个网站提供了一些:GStreamer Input Selector Plugin for OpenSolaris

http://addons.songbirdnest.com/addon/1354/versions

3. 有个热心人,自己编译了一些常用的解码器: http://blog.sartek.net/2009/05/gstreamer-stuff-on-opensolaris.html

当然,你完全也可以自己下载GStreamer,然后自己编译。

Monday May 25, 2009

Changing Truetype Fonts path to make NV and OpenSolaris same

Solaris Nevada will be "Changing Truetype Fonts path to make NV and OpenSolaris same". Post simple description one-page here for discussion.  It's automatic approved now. If you have any comments, please let me know asap.

Monday May 04, 2009

Build Open X on Solaris by yourself - OpenSolaris Project: Fully Open X Project

转载时请以超链接形式标明文章原始出处和作者信息.  :
http://blogs.sun.com/weixue/entry/build_open_x_on_solaris

OpenSolaris Project: Fully Open X Project is fully X project which include X library and application for  Opensolaris. The Fully Open X Project (FOX) will create a public Mercurial gate on opensolaris.org containing a merge of these three source bases:

  • the current OpenSolaris X code drops published by the Sun X team
  • the Xorg SPARC driver sources created by Martin Bochnig for Martux
  • the full X11R7.2 source builds created by Moinak Ghosh for Belenix
Build fox-gate: please see:  http://opensolaris.org/os/project/fox/build_inst/

Thursday Apr 30, 2009

Tip: Different master pty regards between Solaris and Linux

转载时请以超链接形式标明文章原始出处和作者信息
http://blogs.sun.com/weixue/entry/tip_differece_master_pty_regards

During investigation Opensolaris bug 6824625. The root cause is the different result of calling tcsetattr() for pty on Solaris and Linux.
Solaris and Linux treat slave pty differently.
For opening pty (Pseudo Terminal), there have two steps, open master device and slave device sequently. On Solaris, master pty device is not regarded as a terminal device. it regard slave device as a terminal device only.
But On Linux(I tested on Ubuntu), both master and slave devices are regarded as terminal devices.

So, tcsetattr() can work for both master and slave device on Linux. But, tcsetattr() can only work for slave pty device on Solaris. You can also use isatty() to tests if file descriptor is associated with terminal device .

It's a useful tip for porting terminal application between Solaris and Linux.

A piece of code for your reference, how to open pty: You can see that ioctl() only apply to slave device on Solaris(in macro #ifdef __sun).

FYI.

The Open Group Base Specifications : General Terminal Interface.
Concept of pty, tty..(in Chinese)

Friday Mar 20, 2009

How to complile fetion for pidgin on OpenSolaris 在Opensolaris上编译飞信

转载时请以超链接形式标明文章原始出处和作者信息
http://blogs.sun.com/weixue/entry/how_to_complile_fetion_for

在Opensolaris上使用pidgin这个即时通信客户端,可以支持很多的协议。但是国内流行的QQ和飞信在最新官方的Opensoalris发布版里都没有加入这两个协议的支持。本文讲述如何在pidgin中使用飞信的扩展。这里是编译好的飞信扩展libfetion.so,(感谢SunYong同学编译的release版:))下载后放到 /usr/lib/purple-2 目录下,重新启动pidgin即可。

下面说说如何自己动手编译飞信fetion,首先在Opensoalris中搭建编译环境,可参考这篇文章。(如果你觉得这篇难看懂,就把Sunstudio装上先,然后装下列包pkg install ss-dev SUNWxwinc SUNWxorg-headers SUNWgnome-common-devel SUNWperl-xml-parser SUNWiconv-unicode SUNWiconv-extra SUNWgit SUNWgm4 SUNWgnu-gettext SUNWperl-xml-parser SUNWGlib SUNWgnu-automake-110 SUNWaconf

编译的步骤:

下载 fetion protocol,将fetion目录整个拷贝到:
../libpurple/protocols

修改:
../libpurple/protocols/Makefile.in and Makefile.am
在DIST_SUBDIRS中增加fetion

修改:
configure.ac,
照着qq的位置加入fetion

编译:
aclocal
autoconf
automake -a -f -c

./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --disable-binreloc --enable-gnutls=no --with-nss-includes=/usr/include/mps --with-nss-libs=/usr/lib/mps --with-nspr-includes=/usr/include/mps --with-nspr-libs=/usr/lib/mps --enable-gnome-keyring --enable-gevolution --enable-cap --disable-meanwhile --disable-nm --disable-consoleui --with-perl-lib=vendor --disable-nss CC=/opt/SUNWspro/bin/cc CXX=/opt/SUNWspro/bin/CC

make


Monday Mar 16, 2009

InstallFest BeiYou University HongFu brach

On Mar.15, another InstallFest at BeiYou University HongFu brach. Some pictures FYI.

Slide :

Monday Mar 09, 2009

InstallFest for Colleges - Beiyou (Beijing University of Posts and Telecommunications) Station

Last Sunday (Mar. 8) afternoon, Techgirls Group from BLUG and BOSS (Beiyou University OSS society) in Beiyou University (BUPT) co-organizing a Girls Installfest. But this time is NOT girl only activity. ;). I received invistation to be a speaker and help to the participator to install OpenSolaris. It's good opportunity to promote OpenSolaris the community.

Almost all the participants had no any experience of using Solaris. Even it is the first for a lot of them to hear of Solaris. At the beginning,I did a twenty-minutes presentation to introduce the OpenSolaris. Then, Forrest Wu, who have been work on ZFS project as a DP for more than three years, also give a very short presentation to introduce ZFS. I believe the presentations are very helpful to attract the participated students to install OpenSolaris. Especially for ZFS. :)  This afternoon, Forrest and I helped more than ten students installed OpenSolaris (dual boot or in virtualbox) successfully.

This is a successful activity. I summarized some concern of students and issue we encountered. I think these issues/concern deserve our attention and improvement in order to attract more users.

1. Parted disk - Most of student have a WindowsXP/Vista OS, so the first thing to install dual root system is disk partition. It's seems only mast partition could be recognized by installer.

2. How much size ZFS snapshot need? very small, even you can ignore it.

3. Where I can download and upgrade software? Besides default IPS server, IPS server mirror available for China : http://pkg.unix-center.net. Futher more:
blastwave (preferred)               http://blastwave.network.com:10000/
sunfreeware                         http://pkg.sunfreeware.com:9000/

4. Instance message client application: Can I use qq and fetion? Yes, pidgin support qq and fetion protocol modules. But currently, you need compile them by yourself.   I have to say that these two instance message tools are very very popular in China. The office number by Tencent, there are 4 hundred million registered users for qq. And fetion is the fastest-growing instant messaging tools in China currently which delivered by China Mobile. So if these two modules could be integrated by default for China user, it will make OpenSolaris more closed with China user.

5. Driver, as you know this is old problem, we are resolving them step by step. The good thing is that we can see most major device drive we supported. And good news is more and more device drivers will be supported in the future.

Here some pictures I'd like share with you.


Wednesday Nov 19, 2008

Sun University Day in Beijing - Tsinghua University (清华大学 Sun 大学日)

Sun University Day in Beijing - Tsinghua University will be hold on this Friday, 2008/11/21. My colleagues and I have a session to show some OpenSolaris Demos (Desktop and Entertainment, Package management and ZFS, Developer Tools, VirtualBox) . And also have free QA time for audience. I will demo and introduce VirtualBox.
If you are interested, you can register from http://developers.sun.com.cn/events/overview.html
Sun University Day in Beijing (清华大学 Sun 大学日) 
Date: 2008/11/21
Location: 清华大学主楼后厅1层报告厅

For agenda details please see: http://developers.sun.com.cn/events/agenda.html


Sun Techday in Beijing also will be hold on 2008/11/21~2008/11/22 at 北京国际会议中心
See details :http://www.suntechdays.cn/
I will be there 2008/11/22.
Hope see you then. :)

Wednesday Nov 05, 2008

再说VirtualBox上网问题 - DNS server

前面一片Blog提及如何切换无线网卡和有线网卡,使得Guest OS OpenSolaris上网的问题。今天进一步补充关于DNS server的问题。 如果你在家使用电信的网络直接连接如Internet,VirtualBox的默认网络配置已经默认为你选好DNS server,你可以顺利的在Guest OS中上网。 但是,很多情况你可能在某个公司的局域网络内部,这时候默认的DNS就无法正确解析域名。解决的方法就是: 1.先在Host OS中查看局域网的DNS server地址。如:Windows上可以用 ipconfig /all 2.然后将这个地址加入到/etc/resolv.conf的第一行: 如:naneserver xxx.xxx.xxx.xxx 3.重启DNS client 服务:svcadm restart dns/client

Monday Oct 20, 2008

使用Virtualbox的2个小技巧 - Two tips of using virtualbox

Host OS:WindowsXP
Guest OS:  Opensolaris
在使用Virtualbox的时候可能会遇到的两个问题

1.在GuestOS Opensolaris中上网。
如果你在安装时使用的是无线的网卡,安装完成后系统默认将会自动为你配置NAT,这时候你就可以在Guest OS Opensolaris中上网了。但是很多人用的笔记本可能有时候会切换到使用有线的网卡来上网,这时候GuestOS中很可能就不能连接网络了。解决的方法是,禁用无线网卡,然后重新启动Virtualbox里的GuestOS就可以了。

2.Host OS:WindowsXP 与 Guest OS:  Opensolaris之间共享文件夹
虽然VirtualBox自身有共享文件夹的功能,但是不巧的是目前Host OS:WindowsXP 与 Guest OS:  Opensolaris 这种组合还不能支持!。一种方法是,在Host OS WindowsXP 中设置一个共享文件夹,然后再Guest OS:  Opensolaris中使用smb client的服务mount改共享文件夹,以实现文件夹的共享。



  • 在WindowsXP中设定共享文件夹:share,共享名为share。

  • 在Opensolaris中启动smb/client 服务:svcadm enable smb/client

  • 将Windows中的共享目录mount到Opensolaris中:mount -F smbfs //129.158.151.45/share /mnt(129.158.151.45为WindowsXP的IP地址,share为共享名)

Friday Oct 17, 2008

how to compile with gtk on OpenSolaris supplement - install require package

My previous blog  how to compile with gtk on OpenSolaris  mentioned how to compiled gtk application on OpenSolaris. But, actually, if you install OpenSolaris and Sunstudio only, you still can not compile out gtk application, three packages is required for compile/develop gtk application.:

SUNWgnome-common-devel
SUNWxwinc
SUNWxorg-headers

So you need install these three packages by Package Manager or cmd line: pkg install package_name

BTW, There is a discussion about dependencies of these three packages FYI. http://opensolaris.org/jive/thread.jspa?messageID=259469
. also post bugID for it http://defect.opensolaris.org/bz/show_bug.cgi?id=2561

之前的一篇how to compile with gtk on OpenSolaris介绍如何在Opensolaris编译gtk的程序,但是如果你只是装了Opensolaris和Sunstudio的化,仍然无法编译gtk的程序,因为以下三个包也是必须的,可以使用包管理程序或者命令行装上以下三个包即可。
SUNWgnome-common-devel
SUNWxwinc
SUNWxorg-headers

Saturday Oct 11, 2008

how to compile with gtk on OpenSolaris

For people who use gtk+ on OpenSolaris first time. When you compile the application which used gtk+ library, the necessary compile and link options must be used. But for gtk+, the options are too much to list them all. "pkg-config" is useful to help you compile.
This is a simplest gtk application example:

/\*
\* base.c
\*/
#include <gtk/gtk.h>

int main( int argc, char \*argv[] )
{
GtkWidget \*window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return(0);
}

compile as following step: 1>cc -c `pkg-config --cflags gtk+-2.0` base.c 2>cc -o base `pkg-config --libs gtk+-2.0` base.o

Tuesday Jul 01, 2008

Adding Malaysian Indonesian Vietnamese UTF 8 Locales to Solaris

So far, Solaris do not support Malaysian Indonesian Vietnamese locales. For adding these three locales :
Malaysian: ms_MY.UTF-8
Indonesian: id_ID.UTF-8
Vietnamese: vi_VN.UTF-8

I commit one-pager: http://wikis.sun.com/display/xi18n/One+Pager+for+Adding+Malaysian+Indonesian+Vietnamese+UTF+8+Locales

If you are interested in these project,please review and give your comments.
Another importing thing: I'm not native speaker either of three language, so I am looking forward to know if there have anyone, who know one of these tree languages, would like to be volunteer to test the new locales when I finish them. If you are interested, please feel free contact me. Any help will be highly appreciated.

Wednesday May 07, 2008

Sun大学技术日 - 大连理工大学

4月26日作为一个Speaker参加了在大连理工大学的Sun大学技术日的活动。我这次所讲的内容是介绍Sunstudio12的一些高级特性,以及如何使用它们。主要将了并行开发方面的强大支持,因为这个是Sunstudio12的强大之处,同时也是今后软件开发的趋势。因此同学们也是格外感兴趣。本来计划一个小时的讲座,结果持续了1个半小时。在提问阶段,同学们积极踊跃的提问,但是因为时间关系,很遗憾没法满足所有同学提问的要求。我连说3次最后一个问题,却仍然难挡大家的热情,在讲座结束后仍有不少同学围过来提问。看到大家的积极性这么高,很高兴,也很感动。据SDN部门的同时统计当天到场的有415位同学,后面的同学甚至是站着听的,很感动。我们这次的活动是成功的。对我来说也是一次学习的过程。

另外这次是我第一次去大连,也是第一次来大连理工的新校区,感觉很安静,风景气候也都不错。下面是我拍的一些照片:



更多关于这次活动的情况也可以看我的同事Fiona的Blog。 

Monday Nov 12, 2007

在笔记本电脑中安装Windows和OpenSolaris双系统的视频教程

如果你的笔记本电脑已经安装了Windows操作系统,那么可以按照该教程

http://frsun.downloads.edgesuite.net/sun/07C00892/index.html 

的方法,再装一个Solaris系统体验一下。

安装完成后,你将拥有一个双启动系统,在Grub引导菜单可以选择你想要的系统。这个视频教程是比较新的,是安装Nevada70a 的 Developer Edition Installation。使用的是新的安装程序界面。教程讲解很细致,关键的步骤都很详细。其中,分区的部分,如果你的Windows系统有其他分区工具,如PQmagic也可以。

About

williamxue

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today