2012年9月23日 星期日

install LDOCE5 on CentOS6

Environment:

CentOS 6 x86_64

1.
> cd 'folder of LDOCE5 iso'/ linux
> sudo linux32 ./setup.sh

2. 
error message:
(ldoce5-bin:16815): Gtk-WARNING **: 'clearlooks'

> yum install gtk2-engines.i686

3.

only the user who installed LDOCE5 can use this software
Others can't execute this software.
Each user must install the software for his own usage
> linux32 ./setup.sh


[Ref]
http://terrywang.net/archives/914
http://tw.myblog.yahoo.com/chrysler-wrangler/article?mid=730&prev=764&l=f&fid=10
http://yang.backoz.info:88/post/1/2010/05/02/918

2012年9月13日 星期四

Install XnViewMp on CentOS 6/7

OS: centos 6.3/7
Desktop: Gnome 2

Steps:
 1.
> su
> cd /opt
> wget  http://download.xnview.com/XnViewMP-linux-x64.tgz

2.
> tar -zxvf  XnViewMP-linux-x64.tgz

3.
> cd /opt/XnView/
> vi XnView.desktop
----------------------------------------

[Desktop Entry]
Encoding=UTF-8
Terminal=0
Exec=/opt/XnView/xnview.sh
Icon=/opt/XnView/xnview.png

Type=Application
Categories=Graphics;
StartupNotify=true
Name=XnView Multi Platform
GenericName=XnViewMP
-------------------------------------------

4.
> cp XnView.desktop /usr/share/applications/

5. execute
> ./xnview.sh

6.
Done

Method 2:
[XnViewMP]
>> yum install qt5-qtbase qt5-qtbase-common qt5-qtbase-gui qt5-qtscript xcb-util-renderutil xcb-util-wm qt5-qtmultimedia qt5-qtsensors qt5-qtsvg qt5-qtwebkit qt5-qtx11extras
>> wget http://download.xnview.com/XnViewMP-linux.x86_64.rpm
conflicts with filesystem:
>> yum install  rpmrebuild
>> rpmrebuild -ep XnViewMP-linux.x86_64.rpm
Your configured editor (probably vi) will pop up with an already loaded file.

Search for the lines containing / and /usr/bin (lines like %dir %attr(0755, root, root) "/"), and remove them. They are starting in about line 340.
(I removed the line with /usr as well.)

Save end exit.
Answer yes. It will then tell you the location of the fixed rpm.
 

>> rpm -ivh  XnViewMP-linux.x86_64.rpm
>> xnview &
done



2012年9月11日 星期二

CentOS reference sites

http://godontop.com/category/red-hat/page/3

http://www.ichiayi.com/wiki/tech/centos-pdf

2012年9月9日 星期日

Charge your motor battery with normal charger






[Ref] http://shopping.pchome.com.tw/CGAA7M-A44738888

Sometimes your motorcycle may be out of power.
Don't change your old battery immediately. In some cases, you can charge your battery as in this case.

Pieces of Equipment: 
1. charger DC out about 12V 1A
2. connectors (hand made)
3. used battery (Lead-acid battery)


Setup:



My charging record:
Measured Voltage @ Time
9.57V @ 0 min
9.58V @ 30 mins
9.59V @ 60mins
9.60V @ 90mins
9.60V@ 120mins
12.04V@ 150mins
12.10V@180mins
12.15V@210mins
12.20V@240mins
12.25V@270mins
------------------------
stop charging
and put the battery back to my motorcycle

2012年9月4日 星期二

Accelerating NFS by cachefilesd

OS: CentOS 6.3

Step 1:
> yum install cachefilesd

Step 2:
> vi /etc/cachefilesd.conf
(I choose the default values and change nothing)

Step 3:  
> /etc/init.d/cachefilesd restart

Step 3:
>mount -t nfs -o fsc 192.168.1.1:/home/nfs /mnt/nfs

in my case
>mount -t nfs -o rw,bg,fsc 192.168.1.1:/nfs /nfs

PS.
1. I still don't figure out how to setup the limitation for the cache files.
I would check it out later
2. Sometimes, the process 'gvfsd-metadata' may occupy 100% CPU performance
sol:
> kill -9 'UID of  "gvfsd-metadata" '
> rm -fr ~/.local/share/gvfs-metadata


[ref]
1. http://www.cyberciti.biz/faq/centos-redhat-install-configure-cachefilesd-for-nfs/