ORIGIN

Make previous windows blog available on Linux

BlogLinux 1 mins197 words

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

1
yay npm

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

1
npm hexo d

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

Type the following command.

1
ssh-keygen -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

1
gedit id_rsa.pub

img

img

Title is arbitrary.

All done.

TOP
COMMENT
  • ABOUT
  • |
o_oyao
  The Jigsaw puzzle is incomplete with even one missing piece. And I want to be the last piece to make the puzzle complete.
Like my post?
Default QR Code
made with ❤️ by o_oyao
©o_oyao 2019-2024

|