git clone git://github.com/imathis/octopress.git blog
我为octopress生成一个gems包, 进入目录的同时, 运行rvm use命令
12345678910111213141516171819
vi neten/.rvmrc
# rvm use 1.9.2rvm use ruby-1.9.2-p290@octopress
$ cd blog=====================================================================================NOTICE====================================================================================== RVM has encountered a new or modified .rvmrc file in the current directory== This is a shell script and therefore may contain any shell commands. ==== Examine the contents of this file carefully to be sure the contents are== safe before trusting it! ( Choose v[iew] below to view the contents )=====================================================================================Do you wish to trust this .rvmrc file? (/home/peng/Projects/RubySites/blog/.rvmrc)y[es], n[o], v[iew], c[ancel]> y
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553)[x86_64-linux]
# Be sure to restart your server when you modify this file.Neten::Application.config.session_store:cookie_store,key:'_neten_session'# Use the database for sessions instead of the cookie-based default,# which shouldn't be used to store highly confidential information# (create the session table with "rails generate session_migration")# Neten::Application.config.session_store :active_record_store
[master 1861d1a] SomeDocuments
Committer: Neten <neten@HP.(none)>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1580 files changed, 205989 insertions(+), 0 deletions(-)
sudo apt-get install sparkleshare libwebkit1.1-cil
cd /home/neten
2, Install the SSH client:
1
$ sudo apt-get install openssh-client
3, Generate an RSA key pair used to authenticate with the server (instead of using a password):
1
$ ssh-keygen
(accept defaults and leave password blank here)
4, Send your RSA key to your server*(neten is my Username):
1
$ ssh-copy-id neten@192.168.1.2
5, Now you can
1
$ sparkleshare start
and a Dialog box should appear.
6, Enter your name and e-mail, click next.
7, Tick “On my own server:” and enter neten@192.168.1.2 in the box there.
8, In the “Folder Name” field, enter the full server side path to the git repo you created on your server (maybe something like /home/neten/MyBackup.git