Home Private Messages Search
CPG Dragonfly™ CMS
 
Wiki ⇒ Install ⇒ From CVS ⇒ Developer Tips & Tricks

WikiInstallFrom CVS ⇒ Developer Tips & Tricks  

Glossary
The Project
Install
Upgrading or Switching
Dragonfly admininistration
Dragonfly public view
Dragonfly Themes
Build local server
Tips and Tricks
Rules & Regulations
v9 Developer's Manual
v10 Developer's manual
Wiki Permissions
3.9.4: Developer Tips & Tricks Parent
Only team members that need to access/make changes to CVS tree will need this.

1. Linux/Unix

1.1 SSH

1.2 CVS

  • If your distribution doesn't include CVS visit ximbiot.com/cvs/cvshome/ to get and install CVS

    wget https://ccvs.cvshome.org/files/documents/19/863/cvs-1.11.20.tar.gz
    tar zxf cvs-1.11.20.tar.gz
    cd cvs-1.11.20
    ./configure --prefix=/usr/local
    make && make install

  • set CVS_RSH=ssh. If you use bash you can add the following lines to your .bash_profile (don't forget to re-login!)

    CVS_RSH=ssh
    export CVS_RSH

1.3 hint(s)

  • you can alias cvs='cvs -z9' to use compression without specifying -z9 every time. Add the following line to your .bashrc (don't forget to re-login!)

    alias cvs='cvs -z9'

  • if you still need to fill in your password then the key isn't used and you should run the following commands

    ssh-agent bash
    ssh-add dragonflycvskey


2. Windows

2.1 Create a home directory

  • create a new directory as your home directory (unix-style commands will store here their configuration files), for example: c:\home
  • add set HOME=c:\home to your autoexec.bat (don't forget to restart windows!)

2.2 SSH

2.3 CVS

  • Get and install CVS from march-hare.com/cvspro/ (if you plan to use WinCVS gui frontend you can use CVS client that is included in WinCVS distribution)
  • add set CVS_RSH=ssh to your autoexec.bat (don't forget to restart windows!)


3. LinCVS/CrossVC frontend

LinCVS is a free GUI frontend for CVS. You can download it from lincvs.org.


4. TortoiseCVS frontend

TortoiseCVS is a free Windows Explorer integration for CVS. You can download it from tortoisecvs.org.


5. WinCVS frontend

WinCVS is a free GUI frontend for CVS. You can download it from wincvs.org (it include a working version of CVS).

5.1 WinCVS configuration

  • General/CVSROOT= :ext:username@cpgnuke.com:/cvs
  • General/Authentification: SSH server
  • optional: if you created ssh identity keys set RSA identity to your %home%/.ssh/identity file
  • optional: Globals/TCPIP compression to 9 (recommended)
  • Ports/Alternate rsh name: ssh
  • WinCVS/Home: your home directory

5.2 hint(s)

  • ! important: if you don't use ssh identity keys you will need to type your password in the black console window that appear when you activate a CVS command

6. SSH identity keys

Creating those keys allow you to access Dragonfly server without typing your password every time.

6.1 Creating SSH identity keys

  1. ssh-keygen -trsa -fdragonflycvskey -C username@cpgnuke.com
    (from your local computer, you should now have two files .dragonflycvskey and dragonflycvskey.pub in your .ssh directory)
  2. Check if the remote machine has a .ssh directory

    ssh username@cpgnuke.com
    ls -la

    if not, then create it:

    mkdir .ssh
    chmod 0700 .ssh

  3. copy public identity file to dragonfly server: cat dragonflycvskey.pub | ssh username@cpgnuke.com "umask 077; cat >> .ssh/authorized_keys" (from your local computer)

Now you can try to login with ssh -l username cpgnuke.com and you shouldn't be asked for a password. For more information regarding dragonfly access and ssh identity keys read SSH Keys and CVS/Shell Accounts at Sourceforge.

6.2 Using the same identity keys under Linux and Windows

Just copy dragonflycvskey and dragonflycvskey.pub in .ssh subdirectory of your home directory on your local machine (from Linux partition to Windows or from Windows partition to Linux).

! Important: if you have copied identity keys from Windows partition to Linux don't forget to set access mode to 600, otherwise they will not work. (chmod 600 .ssh/dragonflycvskey*)


7. More CVS/SSH information

7.1 SourceForge documents

7.2 General CVS information

 
Updated: Wednesday, April 08, 2009 (14:34:07) by DJ Maze
Created:  Thursday, May 19, 2005 (21:48:00) by DJMaze

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy