存档
On my router there are some interfaces in /etc/config/network. The wan interface is configured as a PPPOE netowrk to connect my ISP. There is also a pptp-vpn connected named zvpn. I found it is very slow to run “/etc/init.d/network reload”, taking about 2 miniutes. If I comment out the zvpn interface, it runs fast. Obviously, [...]
vmware version: vmware workstation 8.0.1 build-528992 debian kernel: 3.1.0-1-486 vmware tools fails to install or run. solution: 1. apt-get install libglib2.0-0 2. patch /usr/lib/vmware-tools/modules/source/vmhgfs.tar unpack vmhgfs.tar, patch, repack. the patch: diff -ur vmhgfs-only-old/file.c vmhgfs-only/file.c — vmhgfs-only-old/file.c 2011-11-14 11:41:31.000000000 +0800 +++ vmhgfs-only/file.c 2012-01-19 17:59:47.899616529 +0800 @@ -84,6 +84,8 @@ #if defined VMW_FSYNC_OLD struct dentry *dentry, #endif [...]
set install_name for dylib g++ -install_name xxx.o -o xxx.dylib view install_name: method1: otool -L xxx.dylib see the first row. change install_name install_name_tool -change old.dylib new.dylib xxx.dylib pack libs lipo -create a_32.dylib a_64.dylib -output a.dylib