在Ubuntu 9.04配置itshideen
To use the VPN service provided by ItsHidden.com, complete the following steps (that were partially found in this Ubuntu forum thread): 要使用itsHidden.com提供的VPN服务,请根据下面的步骤操作: Install the PPTP plug-in for Network Manager//安装nm的PPTP插件$ sudo apt-get install network-manager-pptp Restart Network Manager//重启NM服务 $ sudo killall NetworkManager && sudo NetworkManager & Create the VPN connection //创建VPN链接 In the “Advanced…” settings, enable “Use Point-to-Point encryption (MPPE)”//在VPN创建窗口,点击“高级”,勾选“使用点对点加密”
2009-09-02    
全国DNS地址收集

电信DNS列表 — 按拼音排序

电信 A安徽 202.102.192.68、202.102.199.68

电信 A澳门 202.175.3.8、202.175.3.3

电信 B北京 202.96.199.133、202.96.0.133、202.106.0.20、202.106.148.1

电信 C重庆 61.128.128.68、61.128.192.68

电信 F福建 218.85.157.99、218.85.152.99

电信 G甘肃 202.100.64.68、61.178.0.93

电信 G广东 202.96.128.86、202.96.134.133、202.96.128.143

电信 G广西 202.103.224.68、202.103.225.68

2009-08-30    
通过LiveCD修复GRUB2

昨天重新安装了Ubuntu,但是grub2出现问题,导致错误Error 15,压根进不了grub command line,没有办法,只好修复Grub2,无奈网上的内容多是修复Grub的,很少关于通过liveCD修复grub2的,在搜索google之后,发现了该文,特地翻译出来,给有需要的朋友们使用。

首先,需要Ubuntu LiveCD,并且从LIVECD引导系统。

打开一个终端窗口,输入下面的命令

$ sudo fdisk -l

查看你的硬盘设备的map,记住Ubuntu在哪个设备上安装,比如我的Ubuntu安装于/dev/sdb1,而/dev/sda是Windows,下面的所有命令都是以这个例子为准的。之后,挂载/dev/sdb1设备.

$ sudo mount /dev/sdb1 /mnt

假如你的/boot分区使用了单独的分区,则还需要挂载这个分区,比如/dev/sdb2。一定要仔细查看过fdisk的输出内容,千万别搞错了。

$ sudo mount /dev/sdb2 /mnt/boot
2009-08-27    
Fix mbr record in windows xp

Yesterday i reinstalled my ubuntu, but i don’t know how to destory my mbr record. I’ve 2 hard drives, one is 120G IDE hard drive installed Ubuntu, the other is 250G SATA harddrive installed Window Xp. And usually 120G harddrive is my first boot disk, and grub should be installed there. But last night i installed Grub2, I don’t know how to rewrite my 250g disk’s mbr.

Okay,right now let me fix it. You need administrative privileges to make it work!

First,you need a tool named “MBR Fix”, click here to download.

Second, extract it to a directory. You can find there’s only one command line tool.

Third, open your dos prompt, cd to the directory where your mbrfix locates.

2009-08-27    
情人节快乐!
我还不知道今天是情人节呢,但是看到google的样子变了,心想可能是七夕到了。哈,果不其然,真是。 ­ 祝各位有情人终成眷属啊,正好听闻校友macolex也要结婚了,真是好事连连啊。 同样的,各位单身的男娃娃女娃娃们,别心慌,泰然处之,终于我们都会成为别人的另一半的,今天如果不爽,就约几个死党出去喝个革命小酒,唱个革命小曲,泡个革命小妞(帅锅),也就满意了。哈哈。 哇,今天太阳很好,一扫昨日阴霾的天气,适合散步,恋爱,到黄河边吹风。
2009-08-27    
Twitter办公室一游
Twitter办公室一游 看看这个全球最火爆的信息集散地的源头是什么样的,相信也应该不是Twitter的“产房”,不过绝对是其成长的地方。
2009-08-25    
以爱为名

寂寞的酒杯,

缠绵的烟雾,

空洞的眼神,

是不是你放纵的理由。

灯红酒绿的城市,

喧嚣的人群之中,

我的空虚占有一席之地。

以爱为名,

在无数个夜里,

透过妩媚的你,

欢快的撕咬,

2009-08-22    
Arch Linux 2009.08 下载

arch

Arch Linux是一份独立开发的、为i686优化的Linux发行,它面向高级Linux用户。它使用自行开发的包管理器pacman来为最新的应用软件提供更新升级,并进行完整的依赖性维护。Arch可以从光盘镜像或者从FTP服务器安装,它以一份连续演化的、动态的系统形式运作。缺省的安装提供一份坚实的基础,用户可再进行定制安装。此外,Arch Build System(ABS)能支持简便创建新软件包,修改原先软件包的配置,以及通过Arch Linux User Repository来将这些软件包与其他人共享。

Linux kernel 2.6.30.4, udev 141 and Pacman 3.3.0. Changes compared to 2009.02: more up-to-date software; usage of new AIF installer, which brings better disk editor with support for dm_crypt and LVM setups, support for automated installations using configuration files, a framework to build your own installation procedures, better date/time setting with NTP support, re-factored GRUB installation routines and usability improvements; Aufs instead of Unionfs; enhanced boot device detection on image start; bug fixes (XFS freeze, mirror setting, clock corrections, network settings)

2009-08-21    
Linux 中避免 /etc/resolv.conf 被改写 + 几种解决办法的比较

最近又遇到/etc/resolv.conf会定时被改写掉的问题了,这回是在FreeBSD中!

在 LAN via NAT 或是 PPPoE 的环境中上Internet,我们总得在resolv.conf中指定 DNS server,而这里的 DNS server 是通过 DHCP server 自动获取的,如果不能正确获得则需要手动把 ISP 给出的 DNS server 加入。可有时候一些“聪明”的程序总是会跳出来搞些小动作,把我们自己写入的设定换掉,而且还是轮询的,你再改,没有过几分钟就又被改掉。

之前遇到过的情况有(DNS server 抓不对,且会被改写!):

  1. Ubuntu 6.10 (Edgy) 通过 ppp 拨号时,只抓到 ADSL Modem DHCP server IP.
  2. Ubuntu 7.04 (Feisty) 那个可恶的network-manager程序会定时抓 ADSL Modem DHCP server IP.
  3. VMWare 中的 Guest OS 以 NAT 网络 获取IP的时候,只抓到NAT DHCP server IP.

于是有很多人都跳出来问一个问题:“如何避免 resolv.conf 被修改、改写和覆写等等?“

然而对于UNIX这样灵活的系统,解法也有很多,我们一一看来,哪个粗糙,哪个优雅!

2009-08-20    
2009-8-17

Playing poker is very magnificent undertaking. Usually,  I’m not interested in success of failure, but when playing poker, it’s out of control. I’ve no idea why I would like to be that. Originally, this post should be posted last night.  But ’cause I was so sleepy that forgot it.

Today it’s very heavy rainy, I wake up at 8 am. That’s too early for me. Generally speaking, even though I keep my eyes closed against the light of morning as long as possible. This is my shit life. ah…i will confess a fun thing of mine. About 3 days ago, I went home with my classmate,  when he got off the bus, the drencher was coming. The raindrop looked like bean. God bless me! When i got off,  I run into it straight. Unfortunately, even though I was all wringing, but I felt so great. Yeah, pretty good. He’s so clever that found a shelter timely. However, he still got a cold, what a poor man!

These days I’m trying to read an English electronic version of textbook, it’s about how to learn PHP, which is hypertext preprocessor,  it’s a kind of script language running on computer, it can process dynamic web pages, and provide some functions such as hit counter, guestbook and so on. The current version is PHP 5. If you are interested in it, please visit here. And it can works very well with MySQL database, it’s a popular set over the Internet. I think though I’m so free, why not learn some new stuff.

2009-08-19