使用Google Authenticator两步验证加强SSH登录
Jan 28, 2016
Google Authenticator开源版主页 https://github.com/google/google-authenticator 安装Google Authenticator Ubuntu通过以下命令安装: apt-get install libpam-google-authenticator CentOS通过以下命令安装: yum install google-authenticator 其他系统可以通过源码编译安装 git clone https://github.com/google/google-authenticator-libpam.git cd google-authenticator-libpam/ ./bootstrap.sh ./configure make make install 注意:在Debian7中执行./configure时可能存在以下错误提示 …
Linux下使用grive管理Google Drive
Aug 26, 2015
找到一个linux下可用的google drive客户端,纯cli操作,值得推荐 grive项目主页 https://github.com/Grive/grive Ubuntu中下通过PPA安装grive sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install grive 使用grive同步Google Drive …
安装Nginx和ngx_pagespeed
Jul 24, 2015
VPS配置: Ubuntu 14.04 x86 RAM 512M SWAP 64M DISK 5G 准备工作 sudo apt-get update&&apt-get upgrade -y sudo apt-get install build-essential zlib1g-dev libpcre3 libpcre3-dev unzip libssl-dev -y 下载ngx_pagespeed cd NPS_VERSION=1.9.32.4 wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip unzip release-${NPS_VERSION}-beta.zip cd ngx_pagespeed-release-${NPS_VERSION}-beta/ wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz tar -xzvf ${NPS_VERSION}.tar.gz 安装Nginx cd groupadd www useradd -s /sbin/nologin -g www www NGINX_VERSION=1.8.0 wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz tar -xvzf nginx-${NGINX_VERSION}.tar.gz cd nginx-${NGINX_VERSION}/ ./configure \ --user=www \ --group=www \ --prefix=/usr/local/nginx \ --with-http_stub_status_module \ --with-http_ssl_module \ --with-http_spdy_module \ --with-http_gzip_static_module \ --with-http_sub_module \ --add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}-beta \ sudo make sudo make install sudo ln -sf /usr/local/nginx/sbin/nginx /usr/bin/nginx 配置/etc/init.d/nginx …
将博客从Typecho转移至Gor
Jul 20, 2015
缘由 VPS快到期了,不想继续维护,太累,并且香港VPS价格也不菲。 于是打算选择一个静态博客平台,原来用过的不少:jekyll,hexo,gor,pelican,最后决定Gor …
stuffGoogleGitgorGithubVPSMySQLMarkdowngolangBlogtypechophpsqlnotepad++
Linux下安装最新版golang
May 11, 2015
ubuntu中可以使用apt-get install golang来安装go,但是版本稍旧 如果需要安装最新版的golang,那就得自己动手咧 安装golang 从官网下载最新版,手动安装 …
下载Chrome离线安装包
Aug 30, 2014
Chrome离线安装包下载地址: 正式版 http://www.google.com/chrome/eula.html?hl=zh-CN&standalone=1 测试版 http://www.google.com/chrome/eula.html?hl=zh-CN&standalone=1&extra=betachannel 开发版 http://www.google.com/chrome/eula.html?hl=zh-CN&standalone=1&extra=devchannel 下载文件名为ChromeStandaloneSetup.exe
Linux下部署goAgent
May 30, 2013
准备工作 下载Google Appengine SDK For Pyahont与goAgent 1.Google App Engine SDK for Python https://developers.google.com/appengine/downloads?hl=zh-CN#Google_App_Engine_SDK_for_Python 2.goagent https://code.google.com/p/goagent/ 下载后解压,将goagent文件夹放到google_appengine目录下,目录结构如下: …