tags: - hexo - blog categories: - informational comments: true
Node.js v14.x:
# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
# Using Debian, as root
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt update
sudo apt-get install nodejs
which npm
dpkg -S /usr/bin/npm
nodejs: /usr/bin/npm
dpkg -l|grep nodejs
ii nodejs 14.17.6-deb-1nodesource1 amd64 Node.js event-based server-side javascript engine
sudo npm install hexo-cli -g
sudo npm install hexo-server -g
sudo useradd -m hexo_user
su - hexo_user
mkdir -p ~/hexo/blog
cd ~/hexo/blog
hexo init
npm install
hexo clean
sources/_drafts/MY.md
these 2 commands
have to be runsu - hexo_user
mkdir -p ~/hexo/blog
cd ~/hexo/blog
hexo new my-first-blog-post
vi sources/_drafts/my-first-blog-post.md
hexo generate
hexo deploy
su - hexo_user
cd ~/hexo/blog
git clone https://github.com/iissnan/hexo-theme-next themes/next
hexo server --draft --open -i 192.168.2.21
for s in /tmp/a/*.md; do
ss="${s##*/}"
hexo new "${ss%.md}"
done
edit each new md file in /tmp/a/… - fix the heading template
copy the files to sources/-drafts/
ensure the file names have - and not _
publish all of them and check for errors
for s in sources/-drafts/*.md; do
ss="${s##*/}"
hexo publish "${ss%.md}"
done
hexo new adhoc_db_queries
vi sources/_drafts/adhoc_db_queries.md
hexo new adhoc_db_queries
---
title: Avoiding SSH failures due to non compliant calendar events
tags:
- ssh
- login
categories:
- informational
comments: true
date: 2021-04-30 00:00:00
---
hexo generate
hexo deploy
npm install hexo-generator-search --save
vi _config.yml
npm uninstall hexo-generator-searchdb --save
vi _config.yml
tar -czvf ~/nginx.tgz /var/www/html/nginx/
tar -czf ~/hexo.blog.tgz /var/www/html/nginx/blog/
cd /var/www/html/nginx/blog/
cd sources/_posts
git init
https://yangbolong.github.io/2016/12/18/hexo-git/ https://www.cgmartin.com/2016/01/03/getting-started-with-hexo-blog/ https://hexo.io/docs/themes https://qiuyiwu.github.io/2019/01/25/Hexo-LocalSearch/ https://github.com/nodesource/distributions/blob/master/README.md#debinstall