Sunday, August 31, 2008

Saturday, August 30, 2008

Almost lost everything of my work today.

I mistakenly shift+deleted the Papers directory which contains all the papers I wrote in the past few years. I thought I was deleting the directory in the backup drive; however, I was working in the source drive. It's like a disaster after I realized what I just did.

(... anxious & searching & downloading...)

(about one hour later)

Oh, my god! I finally rescued myself. NO. It is Easy Recovery saved me. I got back all the things I had just lose. Thanks god!

BTW. Easy Recovery is far better than Final Data 2.

Sunday, August 24, 2008

How to record all the inputs of users?

/usr/lib/acct/accton /var/adm/pacct

lastcomm [username]

Tuesday, August 19, 2008

Configure start-up launching programs for Windows.

There is a program called "msconfig" which can configure whether start the programs when the system starts up and user logins in the system.

Sunday, August 17, 2008

Run WinXP as a guest in Solaris 10 x86.

Install Sun's xVM VirtualBox software following the Readme.txt file.

However, when running VitualBox, it gave an error:
> VirtualBox
ld.so.1: VirtualBox: fatal: libGL.so: open failed: No such file or directory
Killed

The libGL.so was found in /usr/X11/lib/mesa/amd64/. Thus, add this to the library searching path will solve the problem:
setenv LD_LIBRARY_PATH /usr/X11/lib/mesa/amd64/:${LD_LIBRARY_PATH}

Now, I can running Windows XP SP2 in Solaris.

Wednesday, August 13, 2008

Why dvipdfm failed to create .pdf from .dvi in Solaris 10 x86?

It is about the version of zcat.

In my solaris 10 x86 system, the first zcat found was /usr/bin/zcat.
NAME
compress, uncompress, zcat - compress, uncompress files or
display expanded files

SYNOPSIS
compress [-fv] [-b bits] [file...]

compress [-cfv] [-b bits] [file]

uncompress [-cfv] [file...]

zcat [file...]



However, I think the dvipdfm program really wants GNU version of zcat. In Solaris, it is /usr/bin/gzcat.
NAME
gzip, gunzip, gzcat - compress or expand files

SYNOPSIS
gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ... ]
gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name ... ]
gzcat [ -fhLV ] [ name ... ]


Thus, link gzcat to zcat and preceeds the /usr/bin/zcat will solves the problem.

Winedit is boring. Uninstall it.

Q: 如何去掉WinEdt的自动换行?
A: WinEdt的编辑窗口最下面的状态条中有一项wrap,将其点击为灰色

Q: WinEdt总是自动把几个单词缩到一行里面,如何解决?
A: 1. 关掉wrap功能
2. 在每行的首字前面加一个空格或一个"Tab"

西站购火车票记

南南姑妈和姐姐要会宜昌,没法子搞到票,只好自己出面去西站碰碰运气。提前1个多小时到售票厅,听一售票员说晚7点以后只有5号窗口之后的才售票。此时6号窗口还没开,前面有2人排队,于是排第3。6点多的时候窗口开了,但要买5天之后的票要到7点才开始卖,于是排队等着。买4天之内的票可直接上前购买,不过很多人不知道,白排了半天队。而且售票员一直不停地在出4日内各车次卧铺票(只要有票就出),目的不明,不象是黄牛倒票。快到7点的时候,排第2的突然走了,于是前面又少了一个人。^_^。7点,放票了,运气不错,居然让我买了2两k49硬卧下铺。哈哈。。回家啰。。往外走的时候才发现:k,后面排队的人真多!!

小结:去的早 + 运气不错。

How to overwrite existing files when use wget?

It seems that there is no way to force overwriting every files when downloading files using wget. However, use -N option can surely force downloading and overwriting newer files.

How to setup RHEL-5 as a NTP client to Solaris 10 X86 NTP server?

How to ?

How to setup Solaris 10 X86 as NTP server?

Copy /etc/inet/ntp.server to /etc/inet/net.conf. And edit the ntp.conf,

server asia.pool.ntp.org
server cn.pool.ntp.org
fudge cn.pool.ntp.org stratum 0

broadcast 224.0.1.1 ttl 4


Then svcadm enable ntp

Monday, August 11, 2008

CCTV: terrific is translated as "可怕的".

It's terrific.
”(运动员的表现)真是太可怕了.“

谁翻译的?!