Use Jekyll-Bootstrap to set up a simple GitHub blog record

Source: Internet
Author: User
Use Jekyll-Bootstrap to set up a simple GitHub blog record


1. Add an SSH key:
[HTML]
Ssh-keygen-t rsa-c "email address"

Enter the command and press Enter. The following prompt is displayed. Press enter.
[HTML]
Enter file in which to save the key (/home/LQG/. Ssh/id_rsa ):

Then, the system prompts you to enter the encryption string for key decoding:
[HTML]
Enter passphrase (empty for no passphrase ):
Enter same passphrase again:

The following prompt is displayed:
[HTML]
Your identification has been saved in/home/LQG/. Ssh/id_rsa.
Your public key has been saved in/home/LQG/. Ssh/id_rsa.pub.
The key fingerprint is:
91: 0f: 4E: EC: 89: AD: 3B: 75: D1: 32: A9: F1: 59: EE: 8f:
The key's randomart image is:
+ -- [RSA 2048] ---- +
|
|... |
| * O |
| *. = O |
|. S +. B |
|. O +. |
|... |
|... O. |
|... E |
+ ----------------- +
Next, VIM ~ /. Ssh/id_rsa.pub, copy all content,
Go to the GitHub page, select SSH key-add key in account setting, paste and save the copied content...
Run the following command to test:
[HTML]
Ssh-T git@github.com

[HTML]
Hi <em> username </em>! You 've successfully authenticated, but GitHub does not provide shell access.

2. Add a project library create a new Repo On the GitHub page. The Library name is username.github.com (I am lqgw.2.github.com );
Create a local folder with the same name
[HTML]
Mkdir lqg1122.github.com
CD lqg1122.github.com
3. Because we use the open-source blog framework Jekyll-Bootstrap, We need to download the code.
[HTML]
Git clone https://github.com/plusjade/jekyll-bootstrap.git
Git add.
Git commit-M "submit information: First commit"
 
Git push origin master

After the code is submitted, wait a few minutes. Open username.github.com and you will be able to see a blog model. After self-modification, the blog will become your own blog .. If you are lazy, you need to install rake locally, and then enter the corresponding installation command for the topic in the project folder.

Just submit ..... Www.2cto.com
[HTML]
Sudo apt-Get install rake
Rake theme: Install git = "https://github.com/jekyllbootstrap/theme-the-program.git"
 
Git add.
Git commit-M "submit information: First commit"
 
Git push origin master

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.