2016年8月28日 星期日

大陸地區雲端服務-節點個數比較


IDC點評


  • 華為
    • 節點太少,只有一個華北區,不考慮



  • AWS
    • 在中國有一個北京的點,此點並非所有服務都可以使用
      • 不過基本的EC2+RDS都有
      • CloudFront與Route53沒有
      • 非中國區節點,較其他服務供應商多

  • 華雲
    • 海外節點只有一個:香港

  • ucCloud
    • 結點海外只有香港與美國加州
    • 加速節點遍佈全球,在中國也頗多

  • 阿里雲
    • 世界第四?
    • 海外節點:新加玻,美東,美西
    • 中國結點:華東,華北,華南
    • 準備上線結點:日本,中東,歐洲

  • 騰訊
    • 海外節點:新加玻,香港,多倫多
    • 中國結點:廣州,上海,北京


參考資料:
http://developer.hwclouds.com/endpoint.html
https://aws.amazon.com/tw/about-aws/global-infrastructure/regional-product-services/
https://www.chinac.com/About/resourcenodes.html
https://www.ucloud.cn/site/dc/
https://docs.ucloud.cn/storage_cdn/ucdn/node.html
https://intl.aliyun.com/zh/why-alibaba-cloud?spm=a3c0i.7968205.230823.3.WqVEVl




2016年4月12日 星期二

sshfs on ubuntu / mac os



  • Ubuntu安裝 SSHFS
    • sudo apt-get install sshfs
    • 新增可以使用 SSHFS 的使用者(以帳號hsu0301 為例)
      • usermod -a -G fuse hsu0301
    • 掛載 SSHFS 硬碟
      • 下面的指令把hsu0301@192.168.1.2 的 /home/hsu0301 資料夾,掛到自己電腦的 remote_home資料夾
        • sshfs hsu0301@192.168.1.2:/home/hsu0301 remote_home

  • Mac安裝SSHFS
    • 安裝OSXFUSE & SSHFS
      • https://osxfuse.github.io
    • 掛載 SSHFS 硬碟
      • 下面的指令把hsu0301@192.168.1.2 的 /home/hsu0301 資料夾,掛到自己電腦的 remote_home資料夾
        • sshfs hsu0301@192.168.1.2:/home/hsu0301 remote_home

2016年4月11日 星期一

hsu0301 is not in the sudoers file. This incident will be reported.


1. su

2. visudo

3.下面是添加完的结果。
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
hsu0301 ALL=(ALL)       ALL              <----新加入的

2016年3月8日 星期二

ubuntu 14.04 装 tftp server

1.安裝套件

sudo apt-get install xinetd tftpd tftp


2.sudo vi /etc/xinetd.d/tftp 

service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = ~/tftp
    disable         = no
}

3.建立資料夾

sudo mkdir ~/tftp
sudo chmod -R 777 ~/tftp
sudo chown -R nobody ~/tftp

4.sudo service xinetd restart

5.測試tufts get file都會Error Code 2: Access violation

將/etc/xinetd.d/tftp 改成如下即可 ==

service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = /home/jim.hsu/tftp
    disable         = no
}

2016年3月4日 星期五

LuCI (Lua Configiration Interface)

  • LuCI (Lua Configiration Interface) 是 OpenWRT 的 Web 管理介面。

  • LuCI 是一個 MVC framework,所以我們可以在 LuCI 的基礎上寫 Web 的應用程式。

  • OpenWRT management flow:   
  • official reference:



2015年10月30日 星期五

[Tool] 將 PDF 轉換為 PowerPoint


付費的官方解法 - Adobe Acrobat DC

網路上有不少免費的web版轉換工具,但很多轉出來都跑版或是一片空白

smallpdf目前測試正常








2015年9月3日 星期四

Google Cloud Platform V.S AWS



價格試算:

Amazon Web Service:

Google Cloud Platform:


IO PK:

By the numbers: How Google Compute Engine stacks up to Amazon EC2


價格PK:

Google vs. AWS Pricing: Google Cuts Are First of 2015


網路速度PK

Need for speed: Testing the networking performance of the top 4 cloud providers

Amazon EC2 vs Azure vs Rackspace Cloud vs Google C. Engine | Some tests and stats


總結:


  • Google Cloud在大優點是在台灣有機房,相比AWS東京,ping大勝
  • Google在價格上有優勢
  • AWS在產品完整度上Google目前還不能比
以新創、低需求、低成本來考慮的話,Google或許是個好選擇?