четверг, 8 сентября 2011 г.

Ubuntu Mercurial Server


brunql@brunql-desktop:~$ sudo apt-get install mercurial-server 
[sudo] password for brunql: 
...
Настраивается пакет mercurial-server (1.0.1-1) ...
brunql@brunql-desktop:~$ ssh-keygen -C brunql@gmail.com
Generating public/private rsa key pair.
Enter file in which to save the key (/home/brunql/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/brunql/.ssh/id_rsa.
Your public key has been saved in /home/brunql/.ssh/id_rsa.pub.
The key fingerprint is:
97:c6:1d:95:f1:d4:09:61:d8:2d:90:6a:ab:2f:9e:b6 brunql@gmail.com
The key's randomart image is:
+--[ RSA 2048]----+
|           .=+*o+|
|           o.+.=.|
|          . . . .|
|         + o .   |
|        S * .    |
|         +       |
|        .        |
|       +.        |
|      oE+.       |
+-----------------+
brunql@brunql-desktop:~$ ssh-agent 
SSH_AUTH_SOCK=/tmp/ssh-KMcMgw3965/agent.3965; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3966; export SSH_AGENT_PID;
echo Agent pid 3966;
brunql@brunql-desktop:~$ ssh-add
Enter passphrase for /home/brunql/.ssh/id_rsa: 
Identity added: /home/brunql/.ssh/id_rsa (/home/brunql/.ssh/id_rsa)
brunql@brunql-desktop:~$ ssh-add -L > my-key
brunql@brunql-desktop:~$ sudo cp my-key /etc/mercurial-server/keys/root/brunql
brunql@brunql-desktop:~$ sudo -u hg /usr/share/mercurial-server/refresh-auth 
brunql@brunql-desktop:~$ 
brunql@brunql-desktop:~$ hg init ssh://hg@192.168.1.2/lightpack
The authenticity of host '192.168.1.2 (192.168.1.2)' can't be established.
RSA key fingerprint is 14:df:e8:92:af:3a:56:1f:9a:20:1b:fa:fa:a3:da:05.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.2' (RSA) to the list of known hosts.
brunql@brunql-desktop:~/code/lightpack-old$ hg push ssh://hg@192.168.1.2/lightpack
pushing to ssh://hg@192.168.1.2/lightpack
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 619 changesets with 2561 changes to 633 files (+8 heads)
brunql@brunql-desktop:~/code/lightpack-old$ ls /var/lib/mercurial-server/repos/
hgadmin  lightpack
brunql@brunql-desktop:~/code$ hg clone ssh://hg@192.168.1.2/lightpack
destination directory: lightpack
requesting all changes
adding changesets
adding manifests
adding file changes
added 619 changesets with 2561 changes to 633 files (+8 heads)
updating to branch default
329 files updated, 0 files merged, 0 files removed, 0 files unresolved
brunql@brunql-desktop:~/code$ 


http://ekkescorner.wordpress.com/blog-series/git-mercurial/step-by-step-install-mercurial-server-on-ubuntu/
http://dev.lshift.net/paul/mercurial-server/docbook.html
http://matttrent.com/articles/how-use-ssh-agent-windows-tortoisesvn

2 комментария:

  1. Situs Judi Online Slot Deposit Pulsa 10rb Paling Gacor
    PRAGMATIC138 merupakan situs judi online terpercaya di Indonesia dengan game judi slot online 광주 출장샵 terbaik yang menyediakan varian game 안산 출장샵 slot 진주 출장안마 gacor deposit pulsa 과천 출장마사지 10rb. 원주 출장샵

    ОтветитьУдалить

А у тебя есть клавиатура? Здесь можно попробовать воспользоваться ей по прямому назначению.