HostUS 香港 VPS 512MB RAM / 15GB @ USD35 (HKD280) / 每年

DigitalOcean 就快到期,所以都時侯睇下有冇其他 VPS選擇,好感謝Github Student Pack 免費送DigitalOcean 俾我用一年半左右。

而上星期左右,找到一間美國VPS AlphaRacks,USD 9.99 一年。申請了試用幾天,除了ping 輕高之外,當時都很滿意。但好景不常,當我轉移了這個網站的時候,發現速度CPU不穩定,懷疑 cpu core 根本不是獨佔,建議不要貪平用它架站,當玩下好了。

之後找到 HostUS,並且有香港伺服器,如標題所說 USD 35每年,HKD 24 每個月左右,這個價錢可說是無敵,因為香港的 Shared Hosting 都不可能 24元一個月。成功申請後,ssh 入去,只能說速度超爽,畢竟是本地伺服器,Ping 只有 5ms。

申請網址: https://my.hostus.us/aff.php?aff=1384
把 香港 VPS Shopping Cart: https://my.hostus.us/cart.php?a=add&pid=179

Source: https://lowendbox.com/blog/hostus-hong-kong-openvz-vps-starting-at-35year-for-512mb/

VPN

http://www.vixual.net/blog/archives/32

 

iptables –flush POSTROUTING –table nat
iptables –flush FORWARD
iptables -A INPUT -p tcp -m tcp –dport 1723 -j ACCEPT
iptables -A INPUT -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.240.0/24 -o eth0 -j MASQUERADE
service iptables save
chkconfig iptables on

NTFS External HD With ownCloud on the Raspberry Pi

In my case I want www-data to be the owner.

$ id -u www-data
$ id -g www-data

Say they both return 33 here is what you would add in /etc/fstab

/etc/sda1 /media/exthdd ntfs-3g defaults,uid=33,gid=33,fmask=007,dmask=007 0 0

 

Source: http://ja.cques.ca/blog/2013/09/25/ntfs-external-hd-with-owncloud-on-the-raspberry-pi/

“no Go source files” while installing Gogs on Raspberry Pi

I was faced this error while installing Gogs on my Raspberry Pi.

no Go source files in <path>

Finally, I figured out what was happening. It is because I installed the old version of Go from apt-get and didn’t remove it completely.

  1. You should type “apt-get remove golang-*” to remove all related Go packages.
  2. Then follow this tutorial to install the newer version of Go and Gogs:

http://blog.meinside.pe.kr/Gogs-on-Raspberry-Pi/