利用squid 反向代理 ghs.google.com 

众所周知,ghs.google.com 在我国大陆地区是无法访问的。
而要用到谷歌的blogspot、appspot的自定义域名 以及谷歌企业邮局apps 服务都要靠它,
导致广大网民是叫苦不迭.

以前我是经常为寻找可用ip而奔波,现在有了自己的vps,就要利用起来了.

反向代理其实很多web server 都有此功能,而我用的是缓存服务器 squid.

原因可能是觉得squid 设置更加简单吧

其实,缓存和做proxy 只是反向代理的目标不一样而已.
一个本地,一个是远程.

打开squid 配置文件,如我的位于 /etc/sysconfig/squid.conf

在文件顶行,写入:
http_port 80 accel defaultsite=xiazhengxin.cn vhost
acl ghs dstdomain ghs.xiazhengxin.cn
http_access allow ghs
http_access deny all
cache_peer ghs.google.com parent 80 0 no-query originserver name=to_ghs
cache_peer_access to_ghs allow ghs
cache_peer_access to_ghs deny all

即可.

保存好后,执行 squid -k reconfigure ,配置生效.

然后,添加一条 ghs.xiazhengxin.cn A记录到 vps ip就可以了.

待dns解析生效后,反向代理就做好了.

以后凡是用到 ghs.google.com 的地方,用ghs.xiazhengxin.cn 代替就可以了.

[ ] ( 1791 次浏览 ) 永久链接 ( 2.9 / 2377 )
编译安装cherokee 0.99.49b 通过 

cherokee 又发布了新的版本了,修复了一些bug.

更多的是更新了些个语言包.

下载安装,跟进

我的configure:
Compilation
Version: 0.99.49b
Compiled on: May 5 2010 12:11:33
Arguments to configure: '--prefix=/usr/local/cherokee' '--bindir=/usr/local/bin' '--sbindir=/usr/local/sbin' '--sysconfdir=/etc/sysconfig' '--localstatedir=/var' '--enable-beta' '--enable-os-string=Aoi_Sola' '--enable-trace' '--enable-backtraces' '--enable-internal-pcre' '--enable-static-module=all' '--with-mysql=no' '--with-wwwuser=http' '--with-wwwgroup=web'

检查依赖 和 编译没有问题,轻车熟路.

最后安装.稍加配置,cherokee -d 运行服务器.
[ ] ( 2583 次浏览 ) 永久链接 ( 3 / 2222 )
编译安装 pidgin 2.6.6 通过 

不得不说,ubuntu 自带的empathy确实不咋的,登录个qq都不成功.(可能是我RPWT吧)

腾讯官方的qq for linux 永久的停在了 1.0.2-beta1,囧rz

于是便打算自己安装个我比较喜欢的pidgin玩玩.

下载最新的 pidgin 2.6.6 版本,解压,进入目录.

我的configure:
It was created by pidgin configure 2.6.6, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ ./configure --prefix=/usr/local/pidgin --bindir=/usr/local/bin --sbindir=/usr/local/sbin --sysconfdir=/etc/sysconfig --localstatedir=/var --disable-largefile --enable-cap --with-x --with-python

检查依赖,pidgin的依赖也是不少,有 tk、tcl、perl、gtk+、glib、gstreamer、xss、doxgen、nm等等,可以根据给出的错误,一个个 apt-get.

如果嫌麻烦而网速又不错的话,可以直接通过 apt-get build-dep pidgin.
安装好所有依赖,大概150多M吧.

完了之后,make && make install.

编译的时间可能比较长,等会就好.

安装好后,输入 pidgin 即可运行.
[ ] ( 2523 次浏览 ) 永久链接 ( 2.9 / 2191 )
编译安装 VLC media player 1.0.6 Goldeneye 通过 

刚安装了ubuntu 10.04 系统,体验很好.

不过自带的totem 播放rmvb有黑屏现象,故想安装一个VLC。

下载vlc 最新版本 1.0.6,解压,进入目录.

我的configure:
It was created by vlc configure 1.0.6, which was
generated by GNU Autoconf 2.65. Invocation command line was

$ ./configure --prefix=/usr/local/vlc --bindir=/usr/local/bin --sbindir=/usr/local/sbin --sysconfdir=/etc/sysconfig --localstatedir=/var --enable-optimize-memory --enable-dvdread --enable-cddax --enable-vcdx --enable-wma-fixed --enable-real --enable-realrtsp --enable-flac --enable-snapshot --enable-cyberlink --disable-mtp --disable-live555 --disable-gme

我不得不说,vlc的依赖是最多的.

这是我报的错:
configure: WARNING: lua5.1 not found, trying lua >= 5.1 instead
configure: WARNING: lua >= 5.1 not found!
configure: WARNING: TagLib library not found
configure: WARNING: cannot find libdvbpsi headers
configure: WARNING: LibV4L2 support disabled because libv4l2 development headers were not found
configure: WARNING: CD Reading and information library not found
configure: WARNING: VCD information library not found
configure: WARNING: cddax plugin disabled because ok libcdio library not found or disabled
configure: WARNING: vcdx plugin disabled because ok libvcdinfo library not found or disabled
configure: WARNING: vcdx plugin disabled because ok libiso9660 library not found
configure: WARNING: vcdx plugin disabled because ok libvcdinfo library not found
configure: WARNING: the dvb access module requires libdvbpsi
configure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.

按照我之前写过的一篇日志里面张贴的依赖清单,一个个 apt-get.
值得一提的是,libdvbpsi库的deb包,在网易的源里没有就绪.
至少我当时是这样的,可以从packages.ubuntu.com 搜索到.

再次检查,报 g++ no found 错.安装g++. make clean 一下.

再次检查依赖,make.

又报了个 make alias 权限不足.检查了下源码包,跟目录下有个make-alias.
chmod u+x make-alias.

再次make 通过.

之后sudo make install.安装成功.

输入vlc,成功运行.

如图:

[ ] ( 1982 次浏览 ) 永久链接 ( 3 / 2459 )
编译安装 Cherokee 0.99.48 通过 

今天中午回来就收到了Cherokee Maillist 的通知,Cherokee 0.99.48 发布了.

更新了一些与 python 2.4 兼容的问题,于是我也跟进了.

下载源码包:wget http://www.cherokee-project.com/download/0.99/0.99.48/cherokee-0.99.48.tar.gz

解压,进入目录

我的configure:
It was created by cherokee configure '0.99.48', which was
generated by GNU Autoconf 2.65. Invocation command line was

$ ./configure --prefix=/usr/local/cherokee --bindir=/usr/local/bin --sbindir=/usr/local/sbin --sysconfdir=/etc/sysconfig --localstatedir=/var --enable-beta --enable-os-string=I_Love_Aoi_Sola --enable-trace --enable-backtraces --enable-internal-pcre --enable-static-module=all --with-mysql=no --with-wwwuser=http --with-wwwgroup=web

可以说是相当的顺利.

make && make install.

试了一下后台,启动服务器 还是有问题,仍然500.

不知道我编译有问题,还是该软件有问题……无语

不管了,先用备份的配置文件覆盖下,跑起来再说。
[ ] ( 2102 次浏览 ) 永久链接 ( 3 / 2499 )

<< <上一页 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 下一页> >>