SCIM && Opera (5 Comments)

又是这个老问题,不知道其他人解决了没有,有时候在opera里scim突然输入不了,感觉假死,不过在输入框内点一下右键,再输入就可以了,搞了半天也不知道什么原因。

在operachian上找到一些方法,不过得慢慢测试哪个可以。

scim在opera中偶尔失去响应的解决方法

(5 Comments)  

bash:xpubuntu | 给menu.lst添加XP启动选项 (6 Comments)

上次写了一个,太麻烦了,zhan 指导并简化了一下,感谢鲇鱼。
~/bash 囧☯☎ cat xpubuntu.sh
#!/bin/bash
# Filename:xpubuntu.sh
# Add XP Menu to menu.lst
cd /boot/grub
sudo cp menu.lst menu.lst.bak
sudo sed -n '/# menu/,/End Default/p' menu.lst > menubegin
sudo sed -n '/End Default/,$p' menu.lst > menuend
sudo sed -i '1d' menuend
sudo cat menubegin XP menuend > menu.lst
sudo rm menubegin menuend

之前写的:bash:addxptomenu | 给menu.lst添加XP启动选项

sed: sed单行脚本快速参考

(6 Comments)  

Canonical Joins The Linux Foundation (No Comments)

Canonical Joins The Linux Foundation
Sunday, August 17th, 2008Commercial sponsor of Ubuntu ® looks to support cross-industry collaboration and promotion to fuel Linux growth

SAN FRANCISCO, Calif. – August 18, 2008 – The Linux Foundation, the nonprofit organization dedicated to accelerating the growth of Linux, today announced that Canonical has become a member of the Foundation.

Canonical is the commercial sponsor of Ubuntu, a popular version of the Linux operating system, and supports a wide range of other open source projects including Bazaar, Storm and Upstart. Ubuntu has become a popular choice for the server and desktop as well as for the rapidly emerging areas of netbooks and mobile Internet devices.
Matt Zimmerman is the CTO of the Ubuntu project in Canonical, chairs the Ubuntu Technical Board and leads all engineering efforts for the distribution.

“The Linux Foundation occupies a critical, non-commercial function in the use and popularization of Linux around the world. We’ve always seen the Linux Foundation’s value and are pleased to now become an official member and support its activities. We look forward to working with them to continue the march of Linux in all areas of computing,” said Matt Zimmerman, Ubuntu program manager and CTO, Canonical.

Ubuntu community members have been active participants in a variety of workgroups at the Foundation, including the Linux Standard Base, Desktop Architects and Driver Backporting groups. With Canonical’s support, user interests for both commercial and community versions of Ubuntu will be represented.

“Canonical is an important new member for the Linux Foundation,” said Jim Zemlin, executive director of The Linux Foundation. “Matt and his team have created an exciting distribution that has taken the world by storm. They have rallied the cause of cross-industry, cross-community collaboration for years. We are extremely pleased to work even more closely with Canonical as we push Linux to the next stage of growth.”

About the Linux Foundation
The Linux Foundation is a nonprofit consortium dedicated to fostering the growth of Linux. Founded in 2007, the Linux Foundation sponsors the work of Linux creator Linus Torvalds and is supported by leading Linux and open source companies and developers from around the world. The Linux Foundation promotes, protects and standardizes Linux by providing unified resources and services needed for open source to successfully compete with closed platforms. For more information, please visit www.linux-foundation.org.

###

Trademarks: The Linux Foundation and Linux Standard Base are trademarks of The Linux Foundation. Linux is a trademark of Linus Torvalds. Third party marks and brands are the property of their respective holders.

About The Linux Foundation

The Linux Foundation is a nonprofit consortium dedicated to fostering the growth of Linux. Founded in 2007, the LF sponsors the work of Linux creator Linus Torvalds and is supported by leading Linux and open source companies and developers from around the world. The Linux Foundation promotes, protects and standardizes Linux by providing unified resources and services needed for open source to successfully compete with closed platforms.

The open source model has transformed software development by providing faster demand-side learning, higher quality, better security, shorter development cycles, and lower prices than closed platform development models.

For Linux to remain open and attain the greatest ubiquity possible, important services must be provided, including legal protection, standardization, promotion and collaboration. The Linux Foundation has been founded to help close the gap between open source and proprietary platforms, while sustaining the openness, freedom of choice and technical superiority inherent in open source software.

source: Canonical Joins The Linux Foundation

(No Comments)  

埃蒙斯式的人生 (4 Comments)

埃蒙斯的身上又发生了怪事,记得四年前他的雅典奥运会的时候,他问到:“我射了,怎么会没有成绩。”过了一会儿,裁判告诉他:“2号靶位成绩为0,因为他射到了别人的靶子上。”真的很不可思议,类似的事情会在北京奥运会上再次上演,这次,他在遥遥领先,胜利在望的情况下,最后一下只得到了4.4环。
埃蒙斯,你怎么了?难道你真的和上帝有仇?很多人会这样问,而且很快就会有许多人帮他给出答案:是心理太紧张了;是运气太差了;或许是枪械出了问题;也有人说他是故意的。其实,这些的答案对与错都已经不重要,重要的是努力了,眼看只有一步之遥,马上就要成功了,然而最后却与之失之交臂,这就是世间无法解释的埃蒙斯式的人生。
看着埃蒙斯与其爱妻相拥,最后神情自然的离去,我着实为他感到高兴,因为埃蒙斯式的人生注定就不需要成功的奖牌与美丽的光环。这是另一种与众不同人生,是其他人所不能理解,但却充满着乐趣的人生。我想到了自己,何偿又不是另一个自在的埃蒙斯呢?
我也渴望过成功,而且为了心中的理想一直奋力向前。记得印象最深的是高考,每一次模拟考,我都能正常发挥,而且在自己的长项,地理科目之中,四次模拟考我全得了地区第一,可最后关键的一次我却彻底的失败了。是什么原因?我也不止一次的问过自己,但这本来就是没有答案的。更令我没有想到的,这种意外还有第二次,第三次。
第二次应该算是大学毕业的时候,那时我文化课与体育成绩都不错,同学们也认为,惟有我能获得优秀毕业生。可是,又是这个莫明其妙的“可是”发生了,成绩单下来的时候,居然一门退选的课目在电脑单中没有删除,当时学院领导都已经开出证明,证明我确实退选了,但依然没有用,我还是在眼看就要得到荣誉的时候,折戟沉沙。我付之一笑,心里很清楚,如果一定要搞个明白,恐怕一百个爱因斯坦的脑子也不够用,既然人生就是这样,下次类似的情况可能还会出现。我有了心理准备,果然,很快就有了第三次。
我找了个女朋友,感情也不错,谈了一段时间,打算心无牵挂的结婚。于是,她回家告诉了父母,我知道,她是满怀希望去的,然而没过多久却失落的回到了我身边,她说她父母没有同意。我当时只是要求她给我时间,因为我深信凭我的能力,能够做通她父母的思想工作。尽管平时工作很忙,但为了自己与她,我一有时间就去了,事情也符合我的预期,他的父母果真在我的工作下,渐渐改变了态度。那时候,我的确很开心,以为一切都水到渠成了。可是,等我回来,她却不见了。怎么回事?当时我着实愣了好些时日,但慢慢的,我也想了个通彻,反正是不明不白的事,又何必太放在心上呢?仅仅人生有些滑稽罢了。
埃蒙斯式的人生就是这样,放在体育竞技场上,有的人会觉得可笑,放在现实的生活中,会觉得匪夷所思,总之,观看他,都需要吃惊的瞪起眼睛来。当然,如果一定要给出答案,想必应该能罗列出一些来,但这其实根本就是自欺欺人。人生,不管是谁都避不了意外,埃蒙斯式的人生只不过格外意外而已,他注定是平淡的,没有兴高彩烈的胜利狂欢,也没有神情沮丧的怨天尤人。成功与失败都已经不是人生的音符,惟有的,只是脚踏实地的往前走,以完完全全属于自己的心态,来面对这异彩纷呈的人生。

Source:埃蒙斯式的人生(MOP)

(4 Comments)  

Install Kubuntu 8.04 on VMWare Workstation 6.04 (No Comments)

前两天一同学说要给服务器装Linux,但是之前没接触过,我就顺便给推荐了一下Ubuntu,让他用Live CD体验一下。

那天的体验也挺好玩的,我们两个QQ远程控制,他又永远登陆服务器(他公司局域网里的服务器),服务器暂时跑的是Windows Sever 2003好像,我可以用鼠标在他的服务器上活动,但是就是不能输入东西。安装了VMWare workstation后,开始安装Ubuntu,在安装过程中到了82%的时候,等候了10多分钟,好像是配置apt的过程,其他一切顺利。不过最后安装VMWare tools的时候就是安装不好,不知道什么原因。VMWare workstation以前玩过,自从遇到VirtualBox后就一直到用VBox了,都对VMWare生疏了,记得当时安装VMWare tools很顺利的。

前天下载了VMWare workstation 6.04,就想试试,我的硬盘上安装的是Ubuntu,我两个硬盘,一个安装了Ubuntu,另一个安装了XP,不过两个系统相互独立。半夜闲来无事,就在6.04上体验了一下Kubuntu 8.04,感受一下KDE的魅力。安装过程很顺利,不过最后装不上grub,所以就安装了LILO。这次我下载了VMWare的manual专门看了一下VMWare tools的安装,其实很简单的。

Kubuntu安装好后,安装tools。关闭虚拟机里的8.04,然后在设置那里的CD-Rom那里选择试用ISO镜像,选择VMWare安装路径下的linux.iso,也就是所谓的驱动程序,然后开启虚拟机里的Kubuntu,系统启动后一般会提示CD-Rom里有东西,然后选择虚拟机菜单里的 VM – Install VMWare Tools 选项。

打开一个终端:
因为安装过程中要编译,所以我们在新安装好的Kubuntu的系统上要安装编译环境,这很简单。
sudo apt-get install build-essential

然后:
cd cdrom
sudo cp /VMwareTools-6.0.0-xxxx.tar.gz /tmp # Where xxxx is the build/revision number of the Workstation release.
cd /tmp
sudo tar zxpf VMwareTools-6.0.0-xxxx.tar.gz
cd vmware-tools-distrib
sudo ./vmware-install.pl

一路回车就可以了,这个过程大概就是问你要创建一些文件夹,编译一些VMWare相关的包。
大功告成。
我在论坛上看到好多人老是装不上tools,怀疑就是没安装编译环境所导致的。
试用了半天,还是不习惯,现在KDE 4.0 默认不安装kate了?那默认的编辑软件是什么啊,不会是VI,EMACS吧?
音乐播放软件 Amarok 默认好像也没安装,默认的那个不认识哦。试了一下 Fcitx,还不错。
有空试试安装 Oracle,同学极力推荐我学习 Linux + Oracle,听说很赚钱。有空就看看咯。

上图一张:

KUbuntu

(No Comments)  

bash:addxptomenu | 给menu.lst添加XP启动选项 (No Comments)

Ubuntu和XP是相对独立的两个盘,无论把哪个盘挂载到Master接口上都可以启动,但是现在Ubuntu接的Master接口,XP接的是Slaver,要启动XP,需要修改menu.lst。

也就是把下面这段加到menu.lst中 ## ## End Default Options ## 之后
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdc1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

想了好久了,一直想写个bash,因为每次升级内核后都要修改menu.lst,太麻烦了。
前两天在IRC里问了一下,给了个大体的思路,今天整理了一下,用很笨的办法写了个bash,不过算是实现功能了。
~/bash 囧☯☎ cat addxptomenu.sh
#!/bin/bash
# Filename:addxptomenu.sh
# Add XP Menu to menu.lst
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
sudo cp /boot/grub/menu.lst /home/element/bash/
cd ~/bash
sudo chown element\: menu.lst
total=`cat menu.lst | wc -l`
i=`cat menu.lst | grep -n 'End Default Options' | awk -F: '{print $1}'`
((i=$i+1))
#i=129
((a=$total-$i))
mv menu.lst menu.lst.bak
cat menu.lst.bak | head --line=$i >> menu.lst
cat XP >> menu.lst
cat menu.lst.bak | tail --line=$a >> menu.lst
sudo chown root\: menu.lst
sudo mv menu.lst /boot/grub/menu.lst

再慢慢优化吧

PS:后来改的:

bashxpubuntu-给menulst添加xp启动选项

(No Comments)  

CSS for Opera (No Comments)

方便opera调整字体
~/bash 囧☯☎ cat user.css
html,body,*
{font-family:"WenQuanYi Bitmap Song"!important;}

把user.css存到~/.opera/styles/user,然后在Prefereences中的Advanced的Content中的Style Options中选择user.css

(No Comments)  

键盘 | Keyboard (No Comments)

昨天昨天打扫房子,看到键盘太脏了,一直想给它打扫一下,可是没机会,昨天干脆给拆了,螺丝还真多,14个哦。然后把每个键都拆了下来,洗了个澡,干净多了。趁机看了里面的机构,发现很简单的,怪不得一个键盘的成本价可以少的几块的。听说鼠标挺贵的,不过上次拆一个鼠标,里面也挺简单的,想必不值几个钱。当然,好的肯定贵了,呵呵。犹如山寨对专业的。其实我觉得山寨的也挺专业的。装的时候差点装不回去了,因为我有好几个键上面的字都磨掉了,光秃秃的,最后就随便装了一下,反正都一样大。

发现我还蛮爱干净的,赞自己一个。

发现最近太懒了,不愿意写东西,一拖再拖。

(No Comments)