DALLASCAO.COM

Site of Cao Shouguang, English to Chinese translator


Warning: Missing argument 1 for shapeshifter_archive_page_title(), called in /var/www/dallascao.com/en/wp-content/themes/shapeshifter/category.php on line 10 and defined in /var/www/dallascao.com/en/wp-content/themes/shapeshifter/includes/functions-do-actions.php on line 142

Category: World Wide Web

Install openvpn on ubuntu

Install openvpn on ubuntu
apt-get update apt-get upgrade --show-upgraded apt-get install openvpn udev cp -R /usr/share/doc/openvpn/examples/easy-rsa/ /etc/openvpn vim /etc/openvpn/easy-rsa/2.0/vars cd /etc/openvpn/easy-rsa/2.0/ cp openssl-1.0.0.cnf openssl.cnf . /etc/openvpn/easy-rsa/2.0/vars . /etc/openvpn/easy-rsa/2.0/clean-all . /etc/openvpn/easy-rsa/2.0/build-ca . /etc/openvpn/easy-rsa/2.0/build-key-server server . /etc/openvpn/easy-rsa/2.0/build-key client1 . /etc/openvpn/easy-rsa/2.0/build-dh cd /etc/openvpn/easy-rsa/2.0/keys cp ca.crt ca.key dh1024.pem server.crt server.key /etc/openvpn cd /usr/share/doc/openvpn/examples/sample-config-files gunzip -d server.conf.gz cp server.conf /etc/openvpn/ cp client.conf ~/ cd […]Read More

Excel 2013: Can’t exit design mode

Excel 2013: Can’t exit design mode
If you have an old excel file with Macro codes and controls, you are likely to get an annoying error with newer versions of Excel: Control ‘xxx’ cannot be created. Cannot exit design mode. OK. You may try to find out how to make that control work. If you decide to remove that Control and […]Read More

iptables study note

iptables study note
list current iptables rules: iptables -L Remove all iptables rules: iptables --flush iptables --delete-chain Rejects all connections from ip 1.2.3.4 iptables -I INPUT -s 1.2.3.4 -j DROP Log connection to TCP Port 1205 iptables -I INPUT -p tcp --dport 1205 -j LOG Accept connection to TCP Port 1205 iptables -I INPUT -p tcp --dport 1205 […]Read More

curl failure: Empty responses

curl failure: Empty responses
When you curl a ssl (https) webpage and you receive empty responses, the problem may reside on the server side. It seems that php and linux curl requires ssl servers to have FQDN configured. Interestingly there is no problem with web browsers. The following codes work on apache+Ubuntu environment. To check if FQDN is properly […]Read More

Cannot ping VPS’s own IP or localhost

Cannot ping VPS’s own IP or localhost
This issue seems appear only on openvz VPS. You can manually add route to solve this. 1. Run “route” in SSH command line to check your default route. Mine is 192.0.2.1 2. Run this command: route add -net [VPS IP Replace last section with 0] netmask 255.255.255.0 gw [default route IP] In my situation, my […]Read More