Category Archives: computer

My ownCloud service is online

When Google decided to shut off its Google Reader, I understand on thing. You should not rely on others, no matter how reliable they are. For now, Dropbox serves me very well. But it will be much better if I can handle my stuffs on my own server, then no one can ever shut it down without my permission.

ownCloud is a Dropbox-like service. The instructions of how to set it up is rather foolproof. You can either follow the Lifehacker’s article or the official one. The former is much easier to follow.

But there was still something unexpectedly happened. And it took me a very long time to solve this silly problem. If you decide to run the newest version of ownCloud (which we all do generally), then you should pay closely attention to the PHP version on your server. the ownCloud 6 (the newest one for now) requires PHP 5.3.3, but the official page doesn’t state it clearly. My VPS runs unbuntu 10.04 now, and by default you just cannot upgrade PHP to that version. So you should manually add a PPA to achieve that goal.

I spent five hours to find it out. I hope this post could help others who face the same problem, though it only a possible.

p.s.: What’s next? I consider to configure my own mail server. Gmail is great, but as I said above, things that under my control will be much better.

How to change the hints settings of Pentadactyl

When using Pentadactyl in XP, I found the hints are too small to distinct. It doesn’t happen when I run Ubuntu. Anyway, I googled and figured it out. Here I think I should take a note, in case my memories don’t serve me some day. Actually Pentadactyl do leaves a lot of options, but sometimes I just don’t know how to change them.

:hi Hint font-family: Verdana; font-size: 10px; font-weight: bold; color:
white; background-color: red; border-color: ButtonShadow; border-width: 0px;
border-style: solid; padding: 0px 1px 0px 1px;

And, don’t forget to write it to your RC file.


Set SSL Google as the Default Search Engine when using Pentadactyl in Firefox

First of all, if you don’t have any idea what Pentadactyl is, then this post maybe not worth your time.

Secondly, I should tell you about my system environments: Ubuntu 11.04; Firefox 6.0. If yours are differ from mine, I suppose it will still be ok, in most of the cases, they share the same steps.

Now, let’s start.

  1. Why use Firefox? It’s the only browser what can have Pentadactyl as the add-on.
  2. Why use Pentadactyl? It’s vim-like add-on, designed for some keyboard addicted users to make life easier and more efficiently. If you ever heard about vim, you should know how powerful it is.
  3. Why bother to use encrypted google search engine? It’s really something personal, I like it, because I like it. If you insist to ask, I think the main reason is I don’t want my search queries to be intercepted. Besides, it makes me cool and different.

In Pentadactyl, when you want search something, just type “o”(open the results in current tab) or “t”(open the results in new tab) followed the search words. By default, Pentadactyl use google as the search engine, Not google ssl. So how to change it? Add it as a bookmark will be the first step. Since we use Pentadactyl, let’s do it in some cool way:

  1. Press “:” to begin to typing command.

    bmark -keyword gssl

  2. Press “Enter” to execute the command. And now you add it to your bookmark. Then press “:” again to type another command.

    set defsearch=gssl

  3. Job done!

Command no.1: “-keyword” is an option for you to name a search engine which will be used in the second command. The url I provided maybe only functional in my system environment, I’m not sure. But if it doesn’t work, you could find it by yourself. AND it’s more easier.

  1. Open
  2. Right click of the search box
  3. Choose “Add a Keyword for this Search…”
  4. Name a keyword as you like, in my case it will be “gssl

It’s exactly the same result as command no.1. You will find the url when you check this bookmark’s property.

Command no.2: is used to set the default search engine. I really try hard to find this option of Pentadactyl…

Well, over…

How to fix the problem when Firefox cannot launch in Ubuntu

I’ve encountered such problems for several times. I don’t know why, but it just happens. Bad luck, maybe.

First of all, let me describer the syndrome, actually there are two syndromes:

  1. After launching the Firefox, the browser returns an error message:

    firefox is already running, but is not responding…

  2. After launching the Firefox, there’s totally no feedback. At first, the icon will show up, and after a short while, it disappears.

So the point is: how to fix it?

Of course, everyone knows that you should check the answers which you get from Google. But this time I got no luck, either those guys problems are differ from mine or the answers didn’t work for me. But at least, you can have a try.

Solution One:

Open Terminal (Applications–Accessories–Terminal or simply hit Ctrl+Alt+T), enter

killall firefox-bin


killall firefox

then reboot your Firefox.

Solution Two:

Unfortunately, solution one didn’t apply to my problem. So I have to find another one.

Open Home Folder (Places–How Folder), show all the hidden folders (you can do it by hit Ctrl+H), find folder named “.mozllia“, find its sub-folder named “firefox“, delete it and try again.

Solution Two worked for me, So I hope it will also works for you. Good luck.

How to install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]

Source: How To Install Firefox 4 (Stable) In Ubuntu [10.04 and 10.10]

Now Firefox 4 (stable) has finally released, I cannot wait to have a try. Though I use Chrome quite a lot nowadays, Firefox was once my favorite. Somehow it’s a little bit slow, but it can highly customize, that win my heart, besides, I’m quite indulge in”Pentadactyl“, an add-on to emulate vim in the browser. Of course, Chrome has the similar extension, “Vimium“, but I suppose  “Pentadactyl” is better.

If your OS is other than Ubuntu, you can probably find Firefox installer in this page, download it, click and install, simple and easy. And if you happened to use Ubuntu like me, then follow these steps:

  1. If you are using the development version of Firefox, remove it with the command,
    sudo apt-get remove firefox-4.0
    If you are not using the development version, skip this step.
  2. Now add the Firefox stable PPA.
    sudo add-apt-repository ppa:mozillateam/firefox-stable
  3. Now update the software list
    sudo apt-get update
  4. Finally install Firefox 4 with the command.
    sudo apt-get install firefox
    After installation, you will find Firefox under Applications > Internet > Firefox Web Browser.

Some of the add-ons are not compatible with Firefox 4, such as “Autoproxy”, I don’t know how to fix it now, but I’m sure with the help Almighty Google, you can find your way.

O.k., let’s surf.

解决关于“无法加载登陆用户界面DLL msgina.dll”的错误


无法加载登陆用户界面 DLL msgina.dll


  1. 进安全系统做系统还原,发现进不去安全系统,放弃。
  2. 将系统切换到ubuntu下,上网找msgina.dll文件,下载一个去把XP下的这个dll文件替换掉,再重启,还是不行。
  3. 按最后一次正确的配置进系统,也还是老样子。







  1. 删隐藏分区:首先随便抓一张ghost版的xp盘,启动到dos工具集下面(我找过3张xp盘都有这个选项,你要没有只能说找的盘太烂了)。一般会有命令提示,用 HPA 这个命令,想详细了解的可以自己“/?”看帮助,否则就直接上命令:

    HPA /clr


  2. 全盘格式化:重启,进入到DM工具,具体记不清了,反正是基本步骤Advanced installation — Option A(就是整个盘弄成一个分区,然后格一下) — 一路ALt+c
  3. 分区:好了,现在硬盘上的资料删完了,也格式化过了,接着我们来分区。可能是因为我的这个方法不正宗或者是其他未知原因,用DM分区总是失败。换成PM(Partition Magic)就行了,在里面很简单设置好主分区、逻辑分区就ok了。这里说一下为什么一定要分区,因为一般的ghost安装盘总有一些数据要写到主分区之外的一个区,如果你给不出另一个区,安装就只能失败了。所以想偷懒弄一个主分区是行不通的。
  4. 安装:接下来正常安装就没问题,但和一般的情况不同。联想的机器用ghost版安装盘正常装完后就是一个驱动也认不出。这当然也就算了,最多自己麻烦点,一个一个去官网上下就好了。偷懒的还可以装一个驱动人生,自动匹配下载所有适用驱动。当然如果是给自己装机的花我并不建议这样,毕竟我有软件洁癖,非绝对必要的软件我是一个也不装的。但是给别人装机,那为了图省事就另当别论了。
  5. 其他问题:装好之后还是会有些莫名的问题,比如两显卡的有可能一块高性能显卡就用不了了,这些我也无解。所以还请大家自己权衡。






首先Dropbox作为一个被GFW光荣认证的服务,其质量的优质性不容质疑,这也是我坚定不移使用它的原因。(题外话:ubuntu下的ubuntu one也是个不错的选择。更新2014.04.18:这项服务已下线)但被墙的服务使用起来终归有些麻烦,要为其扩容更要点折腾的精神,所以我觉得你至少要知道以下一些概念:翻墙、虚拟机、ubuntu。都明白不?明白就接着看下去,不明白就走酱油通道。

  • 申请帐号


  • 安装虚拟机和镜像


首先下载virtualboxubuntu的iso镜像,在virtualbox里创建ubuntu虚拟机。(创建什么系统并不重要,只要你自己熟悉就好,我觉得ubuntu的live cd比较好,如此而已。你当然也可以用Windows PE,不过我没有试过,原理上讲是一样的。)

From Drop Box


From Drop Box

选择”Try Ubuntu“即可,不必安装,我们只是走走过场。

From Drop Box
  • 连接ssh


From Drop Box


ssh -D 7070  -p port -l user


我很不幸,自己的ssh每天准时在我折腾Dropbox扩容的时候down掉,只好用1984.org提供的ssh,偏偏他们不提供shell,说要在命令行中加 -N 参数,否则在Terminal(终端)下一连接上就断开。这个我到最后都没有搞定,只能放弃,改用图形化程序gSTM。这个程序可以在Ubuntu Software Center里找到。

From Drop Box


From Drop Box
From Drop Box
From Drop Box


From Drop Box

在下图相应位置处填入信息:Name 随意;Host为ssh服务器域名或IP;Login为你的用户名;Port为端口号,一般为22或443。然后再点击”Add”,类型选”Dynamic”,端口填7070,其他默认。

From Drop Box
  • 安装Dropbox



一、直接在虚拟机中下载:依次打开Firefox–Edit–Preferences– Advanced–Network–Settings,出现如下图所示:选择Manual proxy configurations,Socks Host填127.0.0.1 Port填7070,确认关闭即可。现在Firefox就全局用ssh代理了,直接去Dropbox的网站下载相应安装程序即可。当然,有人可能知道autoproxy插件,用来甄别是否需要ssh代理,毕竟很多网站并没有被墙,走ssh反而慢。不过在这里本来就不需要开多少网站,安装autoproxy插件,我认为反而麻烦了,走走全局代理即可。

From Drop Box

二、在宿主机中先下载完成,再共享到虚拟机:现在宿主机中下载好相应的安装程序,放入一个文件夹然后共享出来,接着在ubuntu虚拟机中依次点击Places–Connect to server,出现如下图所示。Service type根据自己的情况选择,一般大家的宿主机都是Windows吧,那么就选”Windows share”;Server填自己宿主机的IP。然后点”Connect”连接到宿主机,选择相应共享目录下的安装文件拷贝到虚拟机来安装。

From Drop Box


下载Dropbox daemon:32bit 这里;64bit 这里

  • 调校Dropbox

Terminal(终端)中键入命令后应该会出现如下界面,这时候还是连不上Dropbox,那是肯定的,永远别忘了Dropbox被墙了。这时候要选择”Connection Options”进行代理设置。

From Drop Box


From Drop Box

然后按图中所示填入信息:选择Manually proxy settings,Proxy Type选SOCKS5,Server填127.0.0.1,Port填7070。确认后关闭即可。

From Drop Box

然后跳出Setup界面,选择”I already have Dropbox account”。

From Drop Box


From Drop Box


O.K.! Done! Your Dropbox’s Capacity Has Been Enlarged!

  • 重新再跑一遍虚拟机。


From Drop Box

补充说明1 : 在使用Dropbox的时候记得去改系统的hosts文件(不同的操作系统,这个文件的位置也各不相同,ubuntu下好像需要sudo一下才能修改。),增加这么一段:

然后Dropbox的设置改成No proxy server。现在就可以无代理正常使用Dropbox软件的同步功能,网页的话好像还是缺样式表,看上去很糟糕。不过无所谓,大家都很少登陆网页版的吧?如果这个方法失效了那就只能走ssh代理了,比较凄惨,所以尽量在Dropbox里以放小文件为主,电影什么的也走ssh代理就有些痛苦了。

补充说明2 : 如果你有edu邮箱,那么去Dropbox认证一下,你的邀请码每邀请一人可以增加500m空间。这个也很给力,让我们扩容更省力。大家可以试一试下面这个,我测试过,有效:

@ 教育部-微软(中国) 。另外Dropbox的edu邮箱认证地址:这里





  1. Dropbox自身被墙,要在虚拟机中翻墙连接Dropbox服务器。
  2. Dropbox在ubuntu下的古怪安装程序,需要辅助措施才能安装完成。

p.s : 如果有朋友确实有困难,又想扩容,我这里可以视情况提供帮助(人太多我就不能为力了),当然一定记得留下你们的邀请码

Fix the Problem which Ubuntu Cannot Root Itself

先说说今天的Ubuntu Release Party。我因为坐错了车所以去晚了,结果反而坐在了第一排,说实话,以我的视力坐后面几排还真看不清楚,会严重影响我听讲的效果。我觉得这个活动举办得很成功,看到了不少大牛,听到了不少经验。交流了一下就解决了我输入法的大问题,这个前文也有提到。而且又接触到了一个叫Ubuntu-Tweak的软件,那是相当得给力啊。今天这样的活动一定要继续跟进。

今天一回家就开始折腾Ubuntu10.10,结果我那台陈旧的台式机,在调试的时候突然给我来了个死机,无法启动了。我以为废了,要重装,不过老天毕竟还没有绝我之路啊,一般这样的情况在Windows底下我就放弃了。但今天我看了一下错误代码,大致如下(具体的当然记得没那么清楚,但有一句提示我Try passing init=bootarg):

kinit: name_to_dev_t (/dev/disk/by-uuid/84effa58-ee21-420d-9c45-233a552636af) = dev(8,2)
kinit: trying to resume from /dev/disk/by-uuid/84effa58-ee21-420d-9c45-233a552636af)
kinit: no resume imgae, doing normal boot….
mount: mounting /dev/disk/bu-uuid/ac67818a-4afa-4a75-b78a-b53758624b2b on /root failed:invalid argument
mount: mounting /root/dev on /dev/.static/dev failed: no such file or directory
mount: mounting /sys on root/sys failed: no such file or directory
Taget file system doesn’t have /sbin/init
no init found, Try passing init=bootarg
Busybox v1.10.2 (ubuntu 1:1.10.2-1 ubuntu7) built in shell (ash) Enter ‘help’ for a list of built in commands


  1. 找一张Live CD. (我千辛万苦翻出一张Ubuntu9.04的,lucky~)
  2. 进入Ubuntu系统,打开终端(Terminal)
  3. 输入命令

    sudo e2fsck -C0 -p -f -v /dev/sda1

e2fsck是一个用于检测和修复ext文件系统的命令。(e2fsck is the program for checking and repairing ext series file systems.)其中的/dev/sda1就是你Ubuntu所在的分区,这个参数根据个人不同的情况进行修改。如果不清楚的话可以用下面的命令来察看。

sudo fdisk -l

重新开机就终于又顺利地进到了Ubuntu10.10. OH, yes!

p.s: 情不自禁地要提一下Ubuntu10.10下的字体实在太漂亮了,无论是中文还是英文,这样连写博客都能让人写得那么地愉悦。

Some Ubuntu Tips

  1. Ubuntu版本更新
  2. Ubuntu10.10已经发布,但现在还没办法从旧版本直接自动更新到新版本。我们可以通过在终端(terminal)键入命令来实现:

    update-manager --devel-release



  3. SCIM输入法的bug
  4. 每次升级我都会遇到SCIM输入法的bug,具体说来就是打中文时如果按了方向键或者退位键就再也打不出中文了,一定要再切换一次中英文输入法才行。而打字时方向键或者退位键的使用频率是极高的,所以这个bug严重影响使用。我至今也搞不清原因。

    解决办法只能是删除重装,不过要注意:在Synaptic Package Manager的选中SCIM后一定要Mark for Complete Removal,然后重启后再重装。别问我为什么,我就是这么搞成功的。对了重装的时候别忘了勾选scim-pinyin,勾选scim的时候默认是不装的。

    update1: 测试了一下,还是不行,很奇怪,在浏览器里就是无法使用方向键或者退位键,在gedit里就木有问题。哼,妈了个巴子。

    update2: 今天参加了Ubuntu Release Party,询问了一下别人,开始改用ibus-sunpinyin,好像还不错。

  5. Ubuntu和Windows双系统下调整开机菜单的默认选项。
  6. 关于Ubuntu和Windows双系统的安装可以参考我的这篇文章


    sudo gedit /etc/default/grub

    修改GRUB_DEFAULT=x(举例来说如果你希望的启动项是第5项,就把GRUB_DEFAULT改为4)。有人还提到可以添加了GRUB_GFXMODE=1024×768,来提高Grub界面的分辨率。我试 了一下,不是很好用,还不如没有这一行的效果好,遂放弃。


    sudo update-grub


  7. Ubuntu下gedit中无法正确显示中文的问题
  8. 这个问题是偶然发现的。因为要修改一些html文件,结果无论是gedit还是vim都无法正确显示文件中的中文。解决办法:

    Alt-F2后键入gconf-editor,打开“配置编辑器”。展开左边的树节点,找到 /apps/gedit-2/preferences/encodings 节点并单击它。双击右边的 auto_detected 键,打开“编辑键”对话框。单击列表右边的“添加”按钮,输入“GB18030”,单击确定按钮。
    列表的最底部新增加了一个“GB18030”。单击选中它,并单击右边的 “Up” 按钮直到 “GB18030” 位于列表的顶部为止。

p.s: 最后情不自禁地推荐两个学习Ubuntu的好地方,Ubuntu中文论坛WOW! Ubuntu,你能想到的问题几乎都能在这里找到,实在太给力了!