2015年11月23日 星期一

Install Ubuntu packages from cdrom

  1. mount /dev/cdrom /media/cdrom
  2. uncomment the first line of /etc/apt/source.list
    deb xxxx
  3. apt-get install xxxxx

2015年11月12日 星期四

防止VPN連線成為預設閘道

Prevent VPN connection become the default gateway

for both IPv4 and IPv6 properties, after clicking the Advanced button, make sure "Use default gateway on remote network" isunchecked.

Prevent VPN proxy

jekyll docker under windows


  1. Install Docker Toolbox
  2. Startup Docker Terminal
  3. Use Putty to login 192.168.99.100 docker/tcuser (Do not use the original windows Bash, it will cause problem when using $(pwd) in docker --volume parameter)
  4. cd /c/Users/yourname/Document/jekyll_site
  5. jekyll new .

docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll -it -p 0.0.0.0:4000:4000 jekyll/jekyll:pages jekyll new .

5. jekyll s --force_polling
6. Browse the page in host browser with http://192.168.99.100:4000

2015年11月3日 星期二

Validate PCIe's Speed and Width under Linux

1. use `lspci` to list all pci devices
The number less than 7f:xx:xx is for CPU0
more than 80:xx:xx is for CPU1

2. use 'lspci -vv" to check the detail of target device
check the "LnkStat:"
 Speed 2.5GT/s is gen1
 Speed    5GT/s is gen2
 Speed    8GT/s is gen3

Width is the PCIe lances

Reference:
https://en.wikipedia.org/wiki/PCI_Express

2015年9月21日 星期一

openvpn

I follow the steps from this to setup my VPN server:
https://wiki.debian.org/OpenVPN

and here:
https://openvpn.net/index.php/open-source/documentation/howto.html

The important for me is:
Next, you must set up a route on the server-side LAN gateway to route the VPN client subnet (10.8.0.0/24) to the OpenVPN server (this is only necessary if the OpenVPN server and the LAN gateway are different machines).
Make sure that you've enabled IP and TUN/TAP forwarding on the OpenVPN server machine.


2015年8月31日 星期一