Migrating from Jekyll to Hexo
Original Chinese title: jelly迁移hexo
Installing Hexo
- The official site explains it clearly, so I won’t repeat it here: hexo
- For a Chinese guide, I followed this guy’s post: Hexo Tutorial Series (2): Setting Up a Hexo Blog
- Migration guide: migration
- Currently using the Pacman theme
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:
-
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 -
Update
cd /usr/bin/ rm -rf python cp python2.7 python -
Test
python --version
-
-
Installing the Seafile client on CentOS:
-
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 -
Start the Seafile client
./seaf-cli start -
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
hexo 安装
- 官网很清楚了,就不再多述了 hexo
- 中文的,我参照的是这个哥们 hexo系列教程:(二)搭建hexo博客
- 迁移的教程 migration
- 模板目前用 Pacman
Centos seafile 同步备份
-
centos x32 I choose the teminal clent
tar -xvf seafile -
seafile need the python 2.7, if the python in the server is 2.6 (like me), update python or download the argparse module
-
update the python
-
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 -
update
cd /usr/bin/ rm -rf python cp python2.7 python -
test
python --version
-
-
install the seafile client in centos
-
wegt 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 -
Start seafile client
./seaf-cli start -
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"
-