欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Make previous windows blog available on Linux

程序员文章站 2022-04-17 17:45:12
...

See this article on my own blog https://dyingdown.github.io/2020/01/29/Linux-Blog/
While using windows, I have already had a blog and using hexo system. And my blog is on my mechanical hard disk. I want it to be accessible while using Linux.

There are two steps to make it.

Mount the disk

Click to see what is mount and how to mount.

Basically, you can use your previous command to operate your blog. However, I still has problem. Even I’ve already installed hexo-cli, it still and understand the hexo command. So needs another thing. npx

Install npm

open the terminal and type

yay npm

And then for each hexo command, you add npx at before. For example:

npm hexo d

You also need to add new ssh key to your repository.

Type the following command.

ssh-****** -t rsa -C "the email address of GitHub"

After some Enter, you get the message:

Your public key has been saved in /c/Users/user/.ssh/id_rsa.pub.

Find the file and open it, copy all the content in it and past it in http://github.com/settings/ssh.

you can use gedit to open it

gedit id_rsa.pub

Make previous windows blog available on Linux

Make previous windows blog available on Linux

Title is arbitrary.

All done.

相关标签: Blog

上一篇: hexo搭建

下一篇: 勇气