2012年1月5日星期四

Flashing TP-LINK WR841N into DD-WRT

Stable and many advanced configurations.

2011年12月15日星期四

Network problem with VMware Fusion bridged autodetect mode

Vmware fusion 4.1.0 under OS X has a bug when using Bridged autodetect mode.

For example, suppose you have a cabled ethernet and also a WiFi connection. If you set the Guest OS to use ethernet as bridged with autodetect mode, it works fine at the beginning, but when you switch your Host internet connection from cable to WiFi, and switch back, the Host ethernet would not able to determine the status, let alone establish a connection.
The solution is easy, set the Guest OS to use ethernet as bridged but with a specific network adaptor and problem will fix immediately.

http://www.ianmcshane.org/2010/03/12/vmware-fusion-network-bridge-error-finally-solved/

2011年12月8日星期四

OpenVPN configuration files

server (Ubuntu Server).
local 10.xx.xx.xx
port PORT_NUMBER
proto udp
dev tun
ca /YOUR_CA_DIR/ca.crt
cert /YOUR_CA_DIR/key-server.crt
key /YOUR_CA_DIR/key-server.key
dh /YOUR_CA_DIR/dh1024.pem
cipher AES-128-CBC # AES is faster than BF
max-routes 3000
ifconfig-pool-persist ipp.txt
server 10.168.1.0 255.255.255.0
push "redirect-gateway"
push "dhcp-option DNS 208.67.220.220" # OpenDNS.
push "dhcp-option DNS 208.67.222.222"
client-to-client
duplicate-cn
keepalive 10 60
comp-lzo
max-clients 10
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
mute 20



Client (MAC OS X)
remote SERVER_IP SERVER_PORT udp
persist-key
tls-client
pull
ca ca.crt
redirect-gateway def1
dev tun
persist-tun
cert cert.crt
comp-lzo no
nobind
key key.key
remote-cert-tls server
script-security 2
cipher AES-128-CBC

delayed auto start Apps after login to OS X

using applescript.
start up QQ Mail FireFox and VMware Fusion automatically.
the last one is refresh time with internet time server.

delay 60
do shell script "open /Applications/QQ.app"
delay 15
do shell script "open /Applications/Mail.app"
delay 30
do shell script "open /Applications/FireFox.app"
delay 60
do shell script "open /Applications/'VMware Fusion.app'"
delay 5
do shell script "sudo ntpdate 133.100.11.8" password "YOUR_PASSCODE" with administrator privileges

Re Activate MathType for Mac OS X

Delete the following files and reinstall MathType.

/Library/Application Support/.AppOptions67.plist
/Library/Application Support/.InstallOptions67.plist

Something about our Lab

Theory is when you know everything but nothing works.
Practice is when everything works but no one knows why.
In our lab, theory and practice are combined: nothing works and no one knows why.