On Using SVN

  1. Generate key pair. Log on any Unix server(e.g. sparc3), create a folder with the name “.ssh” and then type in “ssh-keygen” or “ssh-keygen –t rsa”. When you are asked to “enter file in which to save the key” or “Enter passphrase”, just press “Enter”. The whole process is illustrated in Figure 1. In the end, the public key is saved in .ssh/id_rsa.pub and the corresponding private key is saved in .ssh/id_rsa. Save these two files in your own computer and send id_rsa.pub to Terence.
    Figure 1 generating key pair
  2. Download puttygen.exe, pageant.exe and TortoiseSVN. Install TortoiseSVN and restart your computer after installation.(You can download first two from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html and TortoiseSVN from http://tortoisesvn.net/downloads.)
  3. Double click puttygen.exe, choose Conversions→Import key(Figure 2).
    Figure 2 private key conversion-step1
  4. Select your private key file id_rsa(Figure 3).
    Figure 3 private key conversion-step2
  5. Click “Save private key” and “Yes” in warning dialog box. E.g., we save it in E:\ ssl_pk.ppk (Figure 4).
    Figure 4 private key conversion-step3
  6. Double click pageant.exe, right click its icon in the system tray and click “Add key”. Then select E:\ ssl_pk.ppk.
  7. Create a folder with any name at any place, for instance, E:\SSLWork. Right click “SVN checkout”, type in “svn+ssh://ssl@vc.cse.cuhk.edu.hk/uac/spc/ssl/data/ssl” as “URL of repository” and “E:\SSL” as “Checkout directory”. Click OK to check out (Figure 5). Each time before starting your work, right click the icon of the SSLWork folder and click “SVN Update” to get the latest version, after finishing change please do not forget to click “SVN Commit”.
    Figure 5 checking out from server
 
kb/svn.txt · Last modified: 2010/01/14 15:07 by bcli     Back to top