Tag Archives: firefox

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 https://encrypted.google.com/search?sclient=psy&hl=en&safe=off&site=webhp&source=hp&q=%s&pbx=1&oq=&aq=&aqi=&aql=&gs_sm=&gs_upl=

  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 https://encrypted.google.com
  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

or

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.

崂山道士之术

穿墙之术众多,我只谈自己熟悉的。举一反三、勤学善问才是王道:

一、使用在线代理,赛风:http://ifuwocheng.info。这个代理太过出名,众所周知,所以很容易遭到封杀。我发这篇文章的时候应该还能用,过段时间就难说了。

二、使用SSH:首先你要有个SSH的帐号,有心的人总能找到资源,或者舍得出钱。如果觉得麻烦,看到这里就可以跳过了。拿到SSH帐号后,也要分好多情况:主要是你所使用的浏览器和操作系统,如果你用*unix,那么我默认你为高手,也就不再赘述。这里主要谈Windows,首先推荐使用tunnelier,别问为什么,大家都说好,你用熟以后自然可以自主地进行再选择。下载地址:这里。界面如下:

Host:添你申请空间的域名或ip
Port:一般是22,特殊情况空间提供商应该会告知你
Username:你懂的
Initial method:选Password,后下方会出来空格给你填密码。
然后点Login,正常情况就能连上SSH了。
接下来讨论浏览器:
1、Chrome:

用Proxy Switchy。安装地址:这里。设置界面如下:

New Profile–Profile Name随便填--SOCKS Host: 127.0.0.1 Port: 7070–选择SOCKS v5–再选择Switch Rules标签
勾选 Enable Switch Rules 然后勾选 Online Rule List,在Online Rule List 下面填写 http://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt 后面下拉列表框选择你前面命名的Profile Name,勾选 AutoProxy Compatible List,然后Save,大功告成。
2、Firefox:

用AutoProxy,安装地址:这里

添加一项,名字随意,proxy host: 127.0.0.1  port:7070,选择socks5

选择刚才命名的代理名字

选择gfwLists。OK,完成。

3、IE

Internet选项–局域网设置–勾选“为LAN使用代理服务器”–地址:127.0.0.1 端口:7070–OK,完成

看上去好像IE简单点,其实是因为它只能选择全局代理,无论看什么网页(即使没有被墙),都走SSH通道,效率上是大打折扣的。而且SSH主机一般在国外,借道国外的话很多优酷、土豆的视频因为版权问题都不会给你看的哟,兲朝真是太狡猾了。。。而Chrome和Firefox在使用了上述插件后可以自动选择是否走SSH通道,并可以由用户自定义,这当然要好的多。而且如果你希望全局代理,在Chrome和Firefox中也完全做得到。因为实际意义不大,这里就不介绍了。

如何启用Sidewiki

sidewiki是google推出的一项服务,不了解的请google,不想了解的请去打酱油。这个服务也有段时间了,本来没怎么用过,这几天心情好,就随便装了一下,结果失败了。由于是需要装在google工具栏上,我都没google就猜到问题出在语言版本上(我的firefox和Google工具栏都是中文版),话说国外的服务中文版的很多不支持,外国服务的设置中文版也没有。据说firefox是不能切换成英文版的,只能重装,但通过修改一些设置,可以把google工具栏变成英文版的,挺神奇的。好,那么开工:

  1. Firefox地址栏里键入“about:config”,不包括引号。
  2. 点击“我保证会小心”
  3. 过滤器里键入general.useragent.locale,不包括引号。
  4. 修改属性为“us-EN,不包括引号。
  5. 重启浏览器。
  6. 再重启浏览器。(是的,你没看错,我试了两台机器,都是要重启两遍google工具栏才变成英文版的,原因不明。)

现在再安装sidewiki就行了,重启后google工具栏会出现sidewiki的图标,在适当的网页里就可以添加自己的评注了。