简洁的想法

仁爱、喜乐、和平、忍耐、恩慈、良善、信实、温柔、节制

SparkleShare

| Comments

1
2
3
4
5
lsb_release -sc
lucid

git --version
git version 1.7.7

我想安装SparkleShare:

1
2
3
4
mkdir -p ~/.ssh
sudo add-apt-repository ppa:warp10/sparkleshare
sudo apt-get update
sudo apt-get install sparkleshare libwebkit1.1-cil

杯具了:

1
2
3
4
5
6
7
8
9
10
11
12
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
git-core 已经是最新的版本了。
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
  sparkleshare: 依赖: git (>= 1.7.1) 但无法安装它
E: 破损的软件包

OK, 升级Git

1
2
3
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git-core

On the server

1
$ git init --bare /home/neten/MyBackup.git

On the client(s)
1, 再装一次:

1
2
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

9, click Sync

Comments