Legacy Archive (2015): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

Migrating from Jekyll to Hexo

Original Chinese title: jelly迁移hexo

Installing Hexo

CentOS Seafile Sync Backup

  • For CentOS x32, I chose the terminal client:

    tar -xvf seafile
  • Seafile requires Python 2.7. If your server has Python 2.6 (like mine did), either upgrade Python or download the argparse module.

  • Upgrading Python:

    1. Download

      wget http://li.nux.ro/download/nux/dextop/el6/i386/nux-dextop-release-0-2.el6.nux.noarch.rpm
      rpm -ivh nux-dextop-release-0-2.el6.nux.noarch.rpm
      yum -y install python27
      yum -y install python27-devel
    2. Update

      cd /usr/bin/
      rm -rf python
      cp python2.7 python
    3. Test

      python --version
  • Installing the Seafile client on CentOS:

    1. Download with wget (my CentOS is x86_64):

      wget https://bitbucket.org/haiwen/seafile/downloads/seafile-cli_4.0.4_x86-64.tar.gz
      tar -xvf seafile-cli_4.0.4_x86-64.tar.gz
      mkdir ~/seafile-client
      cd seafile-cli_4.0.4
      ./seaf-cli init -d ~/seafile-client
    2. Start the Seafile client

      ./seaf-cli start
    3. Download a library from a server

      seaf-cli download
      -l "the id of the library"
      -s  "the url + port of server"
      -d "the folder where the library folder will be downloaded"
      -u "username on server"
      -p "password"

That’s about it