OpenSolaris Community&Adoption The courage to innovate

星期一 十二月 29, 2008


如何在OpenSolaris中使用共享桌面呢?老师在教学过程中常需要让学生观看自己的桌面操作,在Windows上有很多工具可以实现此功能,同样的,在OpenSolaris下也可以,默认的OpenSolaris 2008.11版本系统即带有此功能。


1。在客户端上安装软件包: SUNWvncviewer


2。在服务器端启动共享桌面,配置允许客户访问的权限等。



3。在客户端进行访问:输入命令:vncviewer 即弹出如下窗口。访问地址格式如下:IP:窗口号。如本例子为:129.158.145.81:0



4。查看桌面:



老一代学计算机的人用的基本是五笔,我也不例外,哈哈。不过偶尔也会多到一些生僻的字打不出来,做还是用拼音。


可惜在OpenSolaris下没有这两者结合的输入法。 没关系,自已做一个吧。如果比较懒,发给我邮件,我给你发一个做好的码表吧。


1。确保你的系统已经安装了SCIM,如果没有,请参考此链接 http://blogs.sun.com/rickyzhou/entry/%E5%A6%82%E4%BD%95%E5%9C%A8opensolaris%E4%B8%AD%E4%BD%BF%E7%94%A8%E4%BA%94%E7%AC%94


2。确认完成了第一步后,开始执行如下步骤。


(1)制作拼音码表。利用Windows中的全拼。在Windows系统目录(如: C:/Windows/systems32/)下找到文件 WINPY.mb。在目录:C:/Program Files/Windows NT/Accessories/。可找到文件 Imegen.exe,双击此文件,选择 "逆转换",如下图:。如果实在找不到以上两文件,请网上搜索或找一台有的拷一下吧。以上转换成 WINPY.TXT。



(2)到如下地址:http://down.csdn.net/html/2006-09/21/159348.html下载mb2scim工具,进行格式转换。在Windows上用此工具进行SCIM格式的转换:mb2scim.exe  WINPY.TXT pinyin.txt


 (3) 获取OpenSolaris上SCIM五笔码表文件,只要将scim内的五笔码表转换出来就行了。进入SCIM码表存放的目录:/usr/share/scim/tables,执行scim-make-table Wubi.bin -o Wubi.txt,得到逆转换后的五笔的码表。


(4)合并数据。打开上面两文件pinyin.txt和 Wubi.txt。在pinyin文件中找如下两个数据段:


BEGIN_CHAR_PROMPTS_DEFINITION
。。。。要复制的数据。。。。。。
END_CHAR_PROMPTS_DEFINITION


及表数据段 :   


BEGIN_TABLE


。。要复制的数据段。。。。


END_TABLE


找上面两段数据分别拷贝到 Wubi.txt文件中。


(5)修改 Wubi.txt文件中MAX_KEY_LENGTH值为 12,使得允许输入的字符大一点。


(6)生成SCIM五笔拼音码表。


执行如下命令:scim-make-table Wubi.txt -b -o /usr/share/scim/tables/Wubi_Pinyin.bin


删除掉以前的五笔表:


 pfexec rm /usr/share/scim/tables/Wubi.bin


重新启动机器即可。



星期五 十二月 26, 2008


I always want to show some cool stuff to my friends in OpenSolaris, so I need badly to record the screen.


Check out here : http://code.google.com/p/recordmysolaris/


This tool can help you to record the screen. But it doesn't have the " Finish" Button, I work around this with command " pfexec pkill recordmysolaris " .

Another problems is that this tool requires OSS audio driver. So you need to remove the original driver and install OSS.


使用这个工具可以方便的在OpenSolaris进行屏幕录制。唯一的缺陷是没有停止的按钮或快捷键,至少我没找到。所以每次我都使用如下命令进行停止: pkill recordmysolaris。这个工具有个毛病,它需要用 OSS声卡驱动。所以必须先卸载原有的驱动,装上OSS.

星期四 十二月 25, 2008

On Dec. 20th, 2008, we conduct a Sun OpenSource Day in Qinu Software Park, Jinan City of ShanDong Province, China
This event attracts about 25 engineers from 11 companies, some of them are CTO, manager or director.
We deliver four topics in this event : OpenSolaris new feature, ZFS,
Zone and Dtrace.
The Top 1 feature that these engineers love is ZFS, on which we spend quite a lot of time, talking and discussing.
After this event, 23 engineers planned to setup OpenSolaris User Group in JiNan, so they can learn more about this cool product.
More pictures about this event :
http://picasaweb.google.com/opensolaris.china/UserGroupJiNan
Special thanks to Open Community Team, James Bai, Polly Wang , Liu Kangping, Chen Jianxun for your support.
Special thanks to Fang Li , Fiona Duan for your help in planning this event.
Special thanks to our Sun Open Source Ambassador in Jinan, Tian Guansheng( engineer form NEC ), to organize this event.

星期一 十二月 15, 2008


我在安装最新版本的OpenSolaris时,常是全新安装。我比较不想用升级的方式,主要原因是信不过程序员,哈哈,升级产生的问题还蛮多的。由于是全新安装,就涉及到数据的备份。这里我用的是rsync。步骤如下:
假设服务器IP为:192.168.0.3,请在实际使用中相应修改。

1。安装 rsync包:
 pfexec pkg install SUNWrsync

2。配置服务器配置文件( /etc/rsyncd.conf),该文件默认不存在,请创建它。
在文件中输入如下内容,以最简单的例子:
关于rsyncd.conf的详细介绍,可参考:http://rsync.samba.org/ftp/rsync/rsyncd.conf.html
##################################
[ftp]
path = /root            #要备份的路径,本例备份的是 /root目录
uid = root              
gid = root
comment = Backup ROOT
#############################

3。修改文件:/etc/services,加入 如下内容。该文件默认只读,请将其改为可写(命令:chmod +w /etc/services):
rsync      873/tcp              #rsync,added by Ricky

4。启动rsync服务:
命令:pfexec rsync --daemon &

5。在另外一台服务器上,即可进行备份。同样的,也先装 rsync包才行:

命令 : pfexec rsync --progress -a 192.168.0.3::ftp /export/backup
(注:请确保文件夹 /export/backup)


注意:常出现 @ERROR chroot错误的话,应该重新写下配置文件,只要有多余的空白行,就会出错。