Recently did a few googling for setting up a CVS repository for Eclipse(actually not really matter what ever the client is..) Here I think I should better write it down for future referencing.1. Create the CVS directorysudo mkdir /usr/local/CVS/sudo cvs -d /usr/local/CVS/ initsudo chmod -R a+rw /usr/local/CVS/ (Here have security issue but I dun really care about it.)2. Deal with xinetdCreate a file /etc/xinetd.d/cvspserver with the following content:service cvspserver{disable = nosocket_type = streamwait = nouser = rootserver = /usr/bin/cvsserver_args = -f --allow-root=/usr/local/CVS pservergroups = yesflags = REUSE}Then restart xinetd.sudo kill -HUP `cat /var/run/xinetd.pid`sudo /System/Library/StartupItems/IPServices/IPServices start3. User accountsCreate password file /usr/local/CVS/CVSROOT/passwd with sudo htpasswd -c passwd [username]4. Setting up EclipseIn Eclipse, config the CVS repository connection :pserver:[username]@127.0.0.1:/usr/local/CVS Done.5. Some extra notespserver connection type is unsave, better use pserverssh2 or extsshBASH Cheat SheetVi Cheat Sheet
Filed under: Apple, Programming



最近的回應