Monday, December 22, 2008

fedora 10 bluetooth mouse problem

yum update --enablerepo=updates-testing

Monday, December 15, 2008

use WD MyBook As a WEB Server

1) 首先建立连接
例如:
ln -s /shares/internal/MYWEB /usr/www/lib/

2) 如果需要可以列出目录结构,则打开文件/etc/lighttpd/lighttpd.conf添加:dir-listing.activate = "enable"

3) 重启My Book

4) 在浏览器中http:///MYWEB就可以了~

Friday, December 5, 2008

create swap on file

su
dd if=/dev/zero of=/swapfile bs=1024 count=2000000
mkswap -c /swapfile
---edit /etc/fstab
---add
/swapfile swap swap defaults 0 0

Saturday, November 8, 2008

vmware on kernel 2.6.27

su -
rpm -ihv VMware-Workstation-6.5.0-118166.x86_64.rpm
cd /usr/lib/vmware/modules/source
for a in *.tar ; do tar xf $a; done
pushd vmblock-only; make; popd
pushd vmci-only; make; popd
pushd vmmon-only; make; popd
pushd vmnet-only; make; popd
cp vmci-only/Module.symvers vsock-only/
pushd vsock-only; make; popd
find -name *.ko -exec cp \
{} /lib/modules/'uname -r'/kernel/drivers/misc/ \;

chmod +x /lib/modules/'uname -r'/kernel/drivers/misc/v*.ko

then modify the script /etc/init.d/vmware, at line 122 (the
vmwareLoadModule() function), replace the line
/sbin/insmod -s -f "/lib/modules/`uname -r`/misc/$1.ko"
with
/sbin/insmod -s -f "/lib/modules/`uname -r`/kernel/drivers/misc/$1.ko"

then
/etc/init.d/vmware start

and vmware can be used.

Saturday, October 18, 2008

改变LINUX窗口标题栏上的按键位置

gconftool-2 --set /apps/metacity/general/button_layout --type string "menu:minimize,maximize,close"

Sunday, August 17, 2008

美丽的庙湾




vmware client runs too fast .

modify /etc/vmware/config
add the following codes:
host.noTSC = "TRUE"

Thursday, August 14, 2008

install wine and ies4linux on linux.

1. sudo yum install -y wine*

2. download ies4linux

3. install ies4linux.

4. wine Chinese.
4.1 copy simsun.ttc from windows\Fonts to .wine/driver_c/windows/fonts/
4.2
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"

4.3 run regedit ~/.wine/fonts.reg