安装wssh, zdaemon,pagekite等

安装wssh遇到许多问题和有趣的东西,记录如下:

  • 要安装wssh,需要先装 geventpyCrypto,其余用 sudo pip install flask paramiko werkzeug jinja2 ecdsa gevent-websocket
  • https://github.com/aluzzardi/wssh.git下载wssh python setup.py install 运行sudo wsshd, 如果发现缺少包,就用pip install
  • fix问题, 用浏览器打开http://ip:5000
  • change from geventwebsocket import WebSocketHandler to from geventwebsocket.handler import WebSocketHandler in file EGG-INFO/scripts/wsshd
  • change raw.github.com to rawgithub.com in file wssh/templates/index.html
  • 运行命令sudo wssh也可以连接
  • 安装zdaemon,
    1
    2
    pip install zdaemon
    zdaemon -p wsshd start
  • 安装PageKite
    1
    2
    3
    curl -s https://pagekite.net/pk/ |sudo bash
    pagekite.py --signup
    pagekite.py 5000 mypi.pagekite.me

Reference

https://github.com/amitsaha/raspi-guide/blob/master/doc/install.rst
http://echorand.me/2012/10/13/web-based-ssh-access-to-your-raspberry-pi/
http://www.vpsee.com/2013/06/invoke-a-linux-shell-with-ssh-account-from-browser/