Article Title: how to configure and use SSH to verify the CVS system server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Cvs (Concurrent Version System) is a widely used Version control tool. Although its functions are not as powerful as Perforce and Subversion, it is widely used in various software projects because it is easy to configure and use, and has been released for a long time.
First, install FreeBSD and apply security patches. This step is very simple. Download a FreeBSD (the upcoming 5.2-RELEASE is a good choice. This version may already be available for download at the time of this article) mini iso burn CD-ROM, and then install it (select "Minimum" installation ). Note: In order to be able to use ssh authentication, install crypto. Configure the network for this machine, and then restart it.
Then install some necessary package. FreeBSD 4.x with perl built in, and in 5.x, perl is removed from the basic system. To better use a series of functions including ACL and commit mail, perl must be installed.
I personally recommend using perl of version 5.8.x in ports. Before installation, make sure that the installation of perl 5.6.x is not available in the system. For new systems, You can execute the following commands with confidence:
This will delete any existing packages. generally, most FreeBSD users use cvsup to update the system. However, cvsup-without-gui is not included in the released CD, the common cvsup package requires a series of X11 libraries. To avoid the trouble, you can consider the following two different ways to complete the first code update:
1. Use cvs in FreeBSD to synchronize code:
Cvs-d: pserver: anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs login
Enter "anoncvs" and press ENTER
Cd/usr
Cvs-R-d: pserver: anoncvs@anoncvs.jp.FreeBSD.org:/home/ncvs export-r RELENG_5_2 src ports
Note: If you are not using 5.2-RELEASE, modify RELENG_5_2 as appropriate (for example, 4-STABLE is RELENG_4,-CURRENT is HEAD, and so on)
2. Install cvsup-without-gui:
Pkg_add-r cvsup-without-gui
Then we use cvsup to synchronize the code. Due to space limitations, we will not repeat it here
I personally recommend the first method. Of course, the second method should be faster, and cvsup does not need to be compiled manually. then install Perl 5.8.x:
Cd/usr/ports/lang/perl5.8 & make all install clean & rehash
Then we will encounter a very serious problem: use in ports. the perl script does not know that perl is not installed in the system. Therefore, an error occurs during execution. In this case, you only need to make a symbolic connection for perl. After completing the configuration, execute:
Use. perl port
In this way, the use. perl script will help you complete a series of work such as modifying the configuration file (such as/etc/make. conf. This is not a table. Configure OpenSSH (sshd) slightly. Generally, add the following two rows:
Protocol 2
PasswordAuthentication no
[1] [2] [3] Next page