2007年4月7日星期六

Ubuntu下访问blogspot

网上看到访问被封杀的blogspot的方法。

1. 修改/etc/hosts文件
加入
72.14.219.190 mocibb.blogspot.com

2.新建proxy.pac, 设置为firefox的自动加载脚本。
function FindProxyForURL(url,host){
if(dnsDomainIs(host, ".blogspot.com")){
return "PROXY 72.14.219.190:80";
}
}

参考:
1.http://my.opera.com/fermi/blog/2007-03-22-how-to-visit-the-banned-blogspot

在Ubuntu上安装python

今天在机器上安装了python, 把步骤总结一下。

Ubuntu6.10默认就已经安装python了, 版本是2.4。
注意不要卸载默认的2.4,因为有些包可能依赖指定版本的python。

1. 解压缩source安装
>$mkdir ~/python
>$cp Python-2.5.tgz ~/python
>$tar -zxvf Python-2.5.tgz

解压之后会创建目录~/python/Python-2.5
2. 编译安装
编译python需要libc6-dev
>$apt-get install libc6-dev
>$cd ~/python/Python-2.5
>$./configure
>$make
>$make install
默认的安装目录是/usr/local,可以通过./configure --prefix=安装目录, 来指定。