Monday, December 22, 2008
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就可以了~
例如:
ln -s /shares/internal/MYWEB /usr/www/lib/
2) 如果需要可以列出目录结构,则打开文件/etc/lighttpd/lighttpd.conf添加:dir-listing.activate = "enable"
3) 重启My Book
4) 在浏览器中http://
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
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.
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
Subscribe to:
Posts (Atom)