[Csync2] Installing Csync2 on RHEL 7

Jeremiah Brock jbrock at everettcc.edu
Wed Apr 27 16:08:09 CEST 2016


Good morning,

    I hope that the following will help the next person googling their
brains out for any documentation on installing Csync2 2.0 on RHEL 7.

sudo yum -y install gcc gcc-c++ make openssl openssl-devel librsync
librsync-devel gnutls libtasn1 gnutls-devel sqlite sqlite-devel lsyncd
xinetd

cd ~

wget http://oss.linbit.com/csync2/csync2-2.0.tar.gz

tar xvf csync2-2.0.tar.gz

cd csync2-2.0

./configure
make
sudo make install

sudo make cert


sudo su

echo "csync2 30865/tcp" >> /etc/services

exit


# Update path for sudo

sudo vi /etc/sudoers


Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin

# Generate key
sudo csync2 -k /usr/local/etc/csync2_ssl_cert.key

#Modify Confs

sudo vi /usr/local/etc/csync2.cfg

group website {

 host node1;

 host node2;

 key /usr/local/etc/csync2_ssl_cert.key;

 include /var/www/drupal;

 auto none;

}

sudo vi /usr/local/etc/csync2_node1.cfg

group node1 {

 host node1;

 host (node2);

 key /usr/local/etc/csync2_ssl_cert.key;

 include /var/www/drupal;

 auto none;

}

sudo vi /usr/local/etc/csync2_node2.cfg

group node2 {

 host (node1);

 host node2;

 key /usr/local/etc/csync2_ssl_cert.key;

 include /var/www/drupal;

 auto none;

}

# Configure Xinetd csync2 service

sudo chkconfig --level 345 xinetd on
sudo vi /etc/xinetd/csync2

service csync2

{

disable = no

protocol = tcp

socket_type = stream

wait = no

user = root

server = /usr/local/sbin/csync2

server_args = -i

}


sudo service xinetd start

sudo firewall-cmd --permanent --add-port=30865/tcp
sudo firewall-cmd --reload



Hope you all have a great day,


~Jeremy

-- 
Jeremiah Brock
IT Web, Data and Development Services
425-259-8707
jbrock at everettcc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20160427/3673c98c/attachment.htm>


More information about the Csync2 mailing list