程序员达达

Tools on Linux

How to configure git server on CentOS 5.7

1. Install git $ yum install git git-daemon if your yum cannot find git , try get the EPEL release for CentOS 5 first $ rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm 2. Create user “git” and add public key from other developer $ sudo adduser git $ cat /tmp/id_rsa.1.pub >> ~/.ssh/authorized_keys $ cat /tmp/id_rsa.2.pub >> ~/.ssh/authorized_keys 3. Create…

Unix FTP command line tutorial

To login: ~$ ftp nps3.missouri.edu The display shows: Connected to nps3. 220 Welcome to ECE4270 FTP service. Name (nps3.missouri.edu:daniel): Type in your name, press enter. Then you will see: 331 Please specify the password. Password: Type in your password, if it is correct, you can login: 230 Login successful. Remote system type is UNIX. Using…

configure vsftpd on CentOS 6.3

Installation: ~$ yum install vsftpd Auto launch after reboot: ~$ chkconfig vsftpd on Start/stop/restart vsftpd ~$ service vsftpd start ~$ service vsftpd stop ~$ service vsftpd restart Change configuration: ~$ vim /ect/vsftpd/vsftpd.conf Add user: step1: modify /etc/vsftpd/vsftpd.conf chroot_list_enable=YES chroot_list_file=/etc/vsftpd/chroot_list step2: add user without ssh login ~$ useradd -d /opt/ftpusers/da -g ftp -s /sbin/nologin da ~$…