Jekyll-Bootstrap을 이용한 github Blog 간단한 레코드 작성

2269 단어
개발 환경: ubuntu
1. SSH Key 추가:
ssh-keygen -t rsa -C "    "

명령을 입력하면 차로 돌아갑니다. 다음과 같은 힌트가 나타납니다. 차로 돌아갑니다.
Enter file in which to save the key (/home/lqg/.ssh/id_rsa): 

다음에 암호화된 암호 문자열을 입력하라는 메시지가 표시됩니다.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 

다음 프롬프트를 입력하면 성공입니다.
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:9d [email protected]
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|       . .       |
|        *  o     |
|       *.== o    |
|      . S+.B     |
|       .o + .    |
|      .. . .     |
|      ..    .o . |
|      ..    ..E  |
+-----------------+

이어서 vim~/.ssh/id_rsa.pub, 모든 내용을 복사,
마지막으로github 페이지로 돌아가서 account setting에서 sshkey-addkey를 선택하여 앞에 복사한 내용을 붙여서 저장합니다.
두드리기 명령 테스트:
ssh -T [email protected]
    Hi <em>username</em>! You've successfully authenticated, but GitHub does not provide shell access.

2.github 페이지에 프로젝트 라이브러리create a new repo를 추가합니다. 라이브러리 이름은username입니다.github.com(본인: lqg1122.github.com);
그런 다음 같은 이름의 폴더를 로컬로 만듭니다.
mkdir lqg1122.github.com
cd lqg1122.github.com

3. 오픈된 블로그 프레임워크인 Jekyll-Bootstrap을 이용하기 때문에 코드를 다운로드해야 한다
git clone https://github.com/plusjade/jekyll-bootstrap.git
git add .
git commit -m "    :first commit"

git push origin master

코드 제출이 끝난 후 몇 분만 기다려서username을 엽니다.github.com에서 하나의 블로그 모델을 볼 수 있습니다. 자신의 수정을 거쳐 사용자 정의를 한 후에야 자신의 전속 블로그가 됩니다.게으름을 피우면 Jekyll-Bootstrap 홈페이지에서 문제를 제공할 수 있다.http://jekyllbootstrap.com/하지만 손발을 좀 써야 돼...로컬에 라크를 설치하고 프로젝트 폴더에 테마에 맞는 설치 명령을 입력하고 수정된 코드를 제출하면 됩니다...
sudo apt-get install rake
rake theme:install git="https://github.com/jekyllbootstrap/theme-the-program.git"

git add .
git commit -m "    :first commit"

git push origin master

즐거운 시간 보내세요~

좋은 웹페이지 즐겨찾기