2008年12月26日星期五

OpenVPN failed to connect

Let today talk about IT.

You may asking, what is OpenVPN?

Anwser: OpenVPN is a full-featured open source SSL VPN solution that accommodates a wide range of configurations, including remote access, site-to-site VPNs, Wi-Fi security, and enterprise-scale remote access solutions with load balancing, failover, and fine-grained access-controls. Starting with the fundamental premise that complexity is the enemy of security, OpenVPN offers a cost-effective, lightweight alternative to other VPN technologies that is well-targeted for the SME and enterprise markets. from http://www.openvpn.net/

If I have failed to connect to my OpenVPN server. What support I need to do?

This is the question have been asking from my college many time. So, just share with all of you.

The solution:-
1. Go to Start → Control Panel. You should see screen as below

2. Click on the “Network Connections”.


3. Please looking for the network connection with “TAP-Win32 Adapter V9”. If this network connection turn-off(like graphic below). Please turn-on it.


4. To turn-on this network connection, please click on the icon and then right-click. You should see the graphic below.


5. hen, Click Enable to turn it on.

6. Start again your VPN.

2008年12月25日星期四

平安夜和圣诞节

今年的平安夜和圣诞节是我有时以来过的最痛苦和难过的一年... 它埋葬了我的心和感情. 埋葬了我的憧憬和希望..

真的是逾哭无泪.. 虽然心里很痛,但是我的表面冷静的然我自己都觉的可怕..



爱的越深,伤的就越深,即使你真的很用心很用心了,但..还是可能还是会丢了她。

2008年12月23日星期二

最近喜欢上"滚"这首歌. 也许是因为 他的歌词很出动我的心吧..

每当听到这首个都很有感触. 看他的MTV更让我激动...

就和大家分享这首歌...

这首歌有两个MTV版本. 都放上来了.




滚 (梁汉文+杨千嬅 合唱)

词:林夕 曲:雷颂德 编:雷颂德

你控诉我 接吻接上瘾
密密外遇 令你很痛恨
你呷醋呷上瘾 胆敢
去讽刺我 不愧是女人

平时和人 如何寻开心
捏着浴巾 去拥抱别人
苦苦的哑忍 离开你 没要紧

你作个证据 再对我教训
和他搞公司 是你虾我笨
我放弃奋斗 你至安心
跟他几点钟 方有着快感

堂堂男人 别太过份
如何缠他 我当顾问
何必于一起 没半点信任
三天不见了 谈何被信任



睡就睡 你作对 你喝醉
请不必屈我喝醉
梳化都给你割碎 全都因你衰*


睡就睡 你说对 你撒退
跟他好一对爱侣 我走开你没负累

请你滚 滚出去
你爱滚不配做人 爬出去
鬼上身 赶不退
我有信心不怕行雷 看心虚会是谁
你去 认罪 然后看死你落泪#

从未了解你 我偏太纵宠你
我也太纵你 你当我已死
别日夜在妒忌 假得你
我也有吻过你 是为着好奇
天都知 你与我 谁人有理

天天想你 才叫你妒忌
从此躲避 自卑的你
日嘈夜嘈调情亦无味
终于嘲笑我 我爱你不起

REPEAT*#

和人爱吧抱吧吻吧叫吧去吧舞吧 还是算吧
酸吧苦吧哭吧饮吧汤吧癫吧 别要醒吧
早已输了不怕不怕不怕不怕
随便对他笑我如何小家 咒吧 你不化
憎你 憎我惹起对骂 讲真因你极小家
你使我羞家羞家真羞家

REPEAT#

再见 不见 谁又有空再受罪
再见 分居 无谓吻伤我味蕾

Copy files between to sever by using scp

Today had received a call from ex-colleage. She asking me how to transfer the data from one server to another server and both server are running under linux. So, since she have the problem and I believe, some of people may have same problem.

So, I just shared it all of you.

The OpenSSH suite of programs is one of my favourite toolkits for administration of servers on a LAN. I routinely use the scp command to copy files between systems and move stuff around as required. In effect, it replaces the old rcp command, but it much more secure as well as more convenient to use.

To copy files between two machines, say 192.168.1.101 and 192.168.1.100, sit at 192.168.1.101 and use the following command:

scp * 192.168.1.100:


Simple as that! Assuming you are the same user id on both machines, this will copy all files in the current directory to your home directory on the destination machine, 192.168.1.100. The first thing the command will do, though, is ask you for your password on the remote system - once you supply that, then you’ll see the files copied, with progress bars.

Now, if you want to copy only some files, e.g. all txt files, use a standard wildcard, like this:

scp *.txt 192.168.1.100:

Suppose you want to copy them to a destination directory other than your home directory, use:

scp *.txt 192.168.1.100:/home/username/directory

Of course, you have to have write permission on the target directory.

Suppose you want to copy files from the other machine back to the one you’re on - then use this syntax:

scp 192.168.1.100:*.txt .

If you have a DNS or hosts file set up, then you can (and should) use hostnames in the command, like this:

scp mail/* mailsrvr:/home/joe/mail

This will copy the contents of the mail subdirectory (of the current directory) on this machine, to the directory /home/joe/mail on the machine mailsrvr.


去律师楼

今天的心情有点象在下雨。不知怎得,就是开心不起来。

起了一个大早。因为今天必须去见两个律师楼。是去转换房屋的佣有权。真他妈的。。还真贵。不见了将近十三千。好不容易存的半命的钱 ,就这样没了。见财化水。不过想想也就算了。必尽从此以后。这间家就是我的了。名正言顺的是我的了。哈。。哈。。多年的梦想终于达成了。

\



有时在想。。。人,一辈子的劳碌。除了买房买车。就是养育儿女。就想当年父母对我们的养育。究竟还有多少人还记得父母对我们的恩情呢?

哈。。。把话题扯远了。想到每个月必须付二千多元。。压力呀。。。还是努力的找钱吧!

肚子饿了还是一样得过日子。。。

平静的生活很多人都想,但有多少人能够呢?只因我们的心都不平静。

2008年12月21日星期日

冬至来了.

今天是冬至。很多朋友都回家吃汤圆去了。对我这个游子来说,本想回家陪父母过节。不过又拿不到假期以及车程又远。只好做罢。觉得有点对不起父母。让俩老在老家过节。。很不孝。


还好小弟今天也没做工。所以就跟小弟去做我新买的家的家私。尤于小弟和我必须工作,所以进展很慢。看看我们自己做的家俱。好看吗?


这是今天的成果。。。虽然做到满身臭汗味。不过,满开心和满足的。



这是前两个星期前的成果。。那Tina水真的有点难闻。不过闻久了,就不觉得难闻了。




看来还要-段时间才能完成。只好一步一步来哆哆哆。。。


尤于今天冬至。。收到很多祝贺的短信(SMS)。有朋友的。。新旧同事的。。亲戚的。。和大家分享分享。。


短信一:

圣诞铃声在蔓延、祝你幸福乐年年、冬至记得吃汤圆、愿你合家庆团圆、吃在嘴里心里甜、吃饱之后不要闲努力赚钱好过年。


短信二:

日历没剩几张, 灰尘快满一岁, 在一年的尾声快将来临前先送你粒亲手搓的汤圆@@@@…在送你些圣诞雪花**¥*¥*…愿你佳节快乐!


我女朋友的。。。

《冬至》来临了!所以准备特制的汤圆送给你…

O:-*。ö。o。:-DO。O。o。ö。。O:-P。O。O;-)。。ö。O。:$。ö。O。。:-)ö。o:-S。Ö。B-)。。ö

我是用…关心…真心…快乐…幸福…祝福…及想念…这六种特制的六味汤圆…你吃了这些我亲手烹调的汤圆,你一定…一定…要记得吃啊!祝您“冬至快乐” & MERRY X'MAS !


我可爱小妹的。。。

嘟嘟、嘟嘟~~

╭══╮

╭╯ΘΘ║

╰⊙═⊙╯。oо○

我给你送汤圆来啦!!!

送你一碗甜美又有营养的汤圆! 含量成分, 100%纯关心.

配料:健康+快乐+幸福+甜蜜

祝您:冬至快乐还要天天幸福哦~

在此,祝大家在这个佳节里,身体安康。


Reset PostgreSQL password

As we know. PostreSQL database was free. So, quite of number people used it in theire application. Nowadays, too many username and password need to remember. Sometime, we may forgot our username and password.

Here.. I would like to take the opportunity to explain “How to reset your PostgreSQL Database username and password”.

Get back your PostgreSQL username

  1. Open file called pg_auth. This file was listed all the users used for PostgreSQL. You can get this file at {Postgre_install_path}\{postgre_version}\main\pgdata\global\. However, this may different with your installation.

Reset PostgreSQL Password

  1. Open file called pg_hba.conf andlooking for “md5″ (at the bottom of the file). Changed the md5 trust. This file normally will located at {Postgre_install_path}\{postgre_version}\main\
  2. Restart your PostgreSQL Database.
  3. Enteryour new password.
  4. Do the samething as step 1. Change trust back to md5
  5. Restart your PostgreSQL Database.