Rabu, 28 September 2016

How To Install Subversion On Centos 7.X


This is how to blog, Install & Configure Apache Subversion (SVN) on CentOS 7.


What is Apache Subversion :-

Apache Subversion, which is unremarkably referred to inwards its abbreviated variety out equally SVN, (named subsequently the command yell SVN) is a pop software versioning in addition to revision command organisation which is distributed equally a costless software nether the Apache License. Mainly used past times developers to keep introduce in addition to historic file versions similar documentation, source code, in addition to spider web pages, it primarily aims to travel a compatible successor to the extensively used CVS (Concurrent Versions System). As a affair of fact, the Subversion has been widely used past times the costless software community. This tutorial explains how to install in addition to travel SVN on CentOS 7.

Step:1 Install SVN & Apache Packages :

SVN & Apache (HTTPD) packet are available inwards the default CentOS vii repository. Use below yum command to install required packages :
[root@SVN  ]# yum install httpd subversion mod_dav_svn mod_ldap

Step:2 Edit the configuration file of Apache Subversion

[root@svn  ]# vi /etc/httpd/conf.modules.d/10-subversion.conf 
Make certain below mentioned trace of piece of job are uncomment inwards the config file (/etc/httpd/conf.modules.d/10-subversion.conf).

LoadModule dav_svn_module     modules/mod_dav_svn.so LoadModule authz_svn_module   modules/mod_authz_svn.so LoadModule dontdothat_module  modules/mod_dontdothat.so 

Step:3 Start & enable the apache (httpd) service:

[root@svn  ]# systemctl starting fourth dimension httpd 
[root@svn  ]# systemctl enable httpd Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service. 

Step:4 Allow httpd port inwards firewall:

 Add port fourscore using below command
[root@svn  ]# firewall-cmd --zone=public --permanent --add-port=80/tcp success 
Reload firewall config using below command
[root@svn  ]# firewall-cmd --reload success 
Check allowed port using below command
[root@svn  ]# firewall-cmd --zone=public --permanent --list-port 80/tcp

Step:5 Create & Configure SVN Repository :

First Create a Directory where you lot desire to exercise all the repositories.
[root@svn  ]# mkdir /svndata
Now exercise SVN repository using below command.
[root@svn  ]# svnadmin exercise /svndata/testrepo
Now Change the permission in addition to brand possessor to Apache using below command
[root@svn  ]# chown -R apache:apache /svndata/testrepo/ 

Step:6 Create repository configuration file:

 Now, We postulate to exercise a config file for the testrepo so that nosotros tin access it through Apache.

Create testrepo.conf file to path /etc/httpd/conf.d/
[root@svn  ]# vi /etc/httpd/conf.d/testrepo.conf
Now append below mentioned trace of piece of job into file.
<location /testrepo> DAV svn SVNPath /svndata/testrepo  Order deny,allow   Deny from all   Allow from 10.0.0.0/24   Allow from 10.0.1.0/24    AuthType Basic    AuthName "SVN Auth"   AuthBasicProvider "ldap"   AuthLDAPURL ldap://BMT-DC-01.ISHIR.LOCAL:3268/DC=ISHIR,DC=LOCAL?sAMAccountName?sub?(objectClass=user)   AuthLDAPBindDN       svnauth@ISHIR.LOCAL   AuthLDAPBindPassword *********   authzldapauthoritative Off  AuthzSVNAccessFile /etc/svn/testrepo   require valid-user </Location>  
Save in addition to buy the farm from file.

Step:7 Create User access file.

We postulate to exercise auth file, Where nosotros tin assign user access for the specific repository using below command.
[root@svn  ]# vi /etc/svn/testrepo
Now add together the user whom you lot desire to plough over access on this repo.
[/] asingh = rw 
Save in addition to buy the farm from file.

Step:8 Restart Apache in addition to endeavor to browse the URL.


[root@svn  ]# systemctl restart httpd 
Now browse the URL:


Step:9 Import Trunk, Tag in addition to Branch :

First, exercise a directory where nosotros volition exercise trunk, tag in addition to branches then that inwards futurity nosotros tin exactly import from here.
[root@svn  ]# mkdir /home/amar [root@svn  ]# cd /home/amar/ [root@svn amar]# mkdir body branches tag 

Let's import trunk, tag in addition to branches into testrepo using below command.

[root@svn  ]# svn import /home/amar/ file:///svndata/testrepo/ -m "initial messege" Adding         /home/amar/tag Adding         /home/amar/trunk Adding         /home/amar/branches  Committed revision 1. [root@svn  ]# 

Step:10 Restart Apache in addition to depository fiscal establishment fit URL:


[root@svn  ]# systemctl restart httpd

Now browse the URL



That's All 



!!!!! Cheers !!!!!!











Sumber https://linuxhowtoguide.blogspot.com/

Jumat, 02 September 2016

Setting Upwardly Multiple Illustration Of Openerp (Odoo) Ix On Centos 7.X

This is how to spider web log to setup multiple Instance of Odoo in centos 7.x


What is Odoo -

Odoo, formerly known every bit OpenERP, is an Open Source Enterprise Resource Planning ERP spider web based concern software written inwards Python which comes amongst a suite of spider web apps designed for every business, such every bit Website Builders, eCommerce modules, Billing together with Accounting, Human Resources, Point of Sale, Customer Relationship Management, Inventory module, Live Chat together with many other apps together with features.

Requirement -

1- One working Centos box.
2- PostgreSQL
3- Python 2.7

Step 1- Installation of ODOO 9.
To perform fresh installation of Odoo nine delight thought my previous article

Setting Up OpenERP (Odoo) nine amongst Apache on CentOS 7.x


Step 2- setting upward multiple instances of Odoo.

First, nosotros require to banking company gibe currently installed oddo path including configuration file, service path, together with other packet add-ons. Use below mentioned command:


[root@localhost  ]# find / -name odoo /etc/odoo /var/lib/odoo /var/lib/odoo/filestore/odoo /var/log/odoo [root@localhost  ]#  

We flora above-mentioned odoo configuration file path add-ons path.

Step three - Create a re-create of the inwards a higher house directory.

First re-create configuration folder using cp command 
[root@localhost  ]# cp -R /etc/odoo/ /etc/odoo1
Second re-create odoo data folder using below command;
[root@localhost  ]# cp -R /var/lib/odoo/ /var/lib/odoo1 
Third re-create filestore folder using below command.
[root@localhost  ]# cp -R /var/lib/odoo1/filestore/odoo /var/lib/odoo1/filestore/odoo1
Fourth re-create log folder
[root@localhost  ]# cp -R /var/log/odoo/ /var/log/odoo1
Step four - Let's brand required changes inwards copied folder's configuration files.

First alter configuration file using vim editor :
[root@localhost  ]# vi /etc/odoo1/openerp-server.conf
 Now brand the highlighted changes inwards this file :
[options] addons_path = /usr/lib/python2.7/site-packages/openerp/addons admin_passwd = ***** csv_internal_sep = , data_dir = /var/lib/odoo1 db_host = False db_maxconn = 64 db_name = False db_password = False db_port = False db_template = template1 db_user = odoo dbfilter = .* debug_mode = False demo = {} email_from = False geoip_database = /usr/share/GeoIP/GeoLiteCity.dat import_partial = limit_memory_hard = 2684354560 limit_memory_soft = 2147483648 limit_request = 8192 limit_time_cpu = sixty limit_time_real = 120 list_db = True log_db = False log_db_level = alert log_handler = :INFO log_level = information logfile = None logrotate = False longpolling_port = 8072 max_cron_threads = 2 osv_memory_age_limit = 1.0 osv_memory_count_limit = False pg_path = None pidfile = None proxy_mode = False reportgz = False server_wide_modules = None smtp_password = False smtp_port = 25 smtp_server = localhost smtp_ssl = False smtp_user = False syslog = False test_commit = False test_enable = False test_file = False test_report_directory = False translate_modules = ['all'] unaccent = False without_demo = False workers = 0 xmlrpc = True xmlrpc_interface = xmlrpc_port = 8070
Save together with Exit from the file.

Step v - Create service for this odoo1 instance.

 First, create a re-create of odoo python script using below command.
[root@localhost  ]# cp -R /usr/bin/odoo.py /usr/bin/odoo1.py
Second Create a re-create of existing service using below ascendency :
[root@localhost  ]# cp -R /usr/lib/systemd/system/odoo.service /usr/lib/systemd/system/odoo1.service



Now made the required changes into newly created service.
[root@localhost  ]# vi /usr/lib/systemd/system/odoo1.service
[Unit] Description=Odoo Open Source ERP together with CRM After=network.target  [Service] Type=simple User=odoo Group=odoo ExecStart=/usr/bin/odoo1.py --config=/etc/odoo1/openerp-server.conf  [Install] WantedBy=multi-user.target  
Save together with Exit from the file.

Step six - Change the permission on required files together with folders:
First Change the permission of Configuration folder using below command:
[root@localhost  ]# chown -R odoo:odoo /etc/odoo1

Second alter the permission of /Var/lib/odoo1 folder using below ascendency :
[root@localhost  ]# chown -R odoo:odoo /var/lib/odoo1 

 Third alter the permission of logs folder :
[root@localhost  ]# chown -R odoo:odoo /var/log/odoo1

Step seven - Let's Start together with enable odoo1 service using below command:
 First start service using below command:
[root@localhost  ]# systemctl starting fourth dimension odoo1
Second, enable service to starting fourth dimension at the kicking fourth dimension using below command.


[root@localhost  ]# systemctl enable odoo1

Let's banking company gibe odoo1 service condition using below command;
[root@localhost  ]# systemctl condition odoo1 ● odoo1.service - Odoo Open Source ERP together with CRM    Loaded: loaded (/usr/lib/systemd/system/odoo1.service; enabled; vendor preset: disabled)    Active: active (running) since Friday 2016-09-02 17:33:54 IST; 7min agone  Main PID: 7541 (odoo1.py)    CGroup: /system.slice/odoo1.service            └─7541 /usr/bin/python /usr/bin/odoo1.py --config=/etc/odoo1/openerp-server.conf  Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,227 7541 INFO odoo1 openerp.models: Computing rear left together with correct for tabular array ir_ui_menu... Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,254 7541 INFO odoo1 openerp.addons.base.ir.ir_translation: module base: loading base of operations translation file...guage en_US Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,254 7541 INFO odoo1 openerp.tools.translate: loading /usr/lib/python2.7/site-packages/openerp/addons/.../i18n/en.po Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,262 7541 INFO odoo1 openerp.addons.base.ir.ir_translation: module web_planner: loading translation fi...guage en_US Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,262 7541 INFO odoo1 openerp.tools.translate: loading /usr/lib/python2.7/site-packages/openerp/addons/...8n/en_US.po Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,401 7541 INFO odoo1 werkzeug: 10.0.1.13 - - [02/Sep/2016 12:08:37] "POST /web/database/create HTTP/1.1" 303 - Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,405 7541 INFO odoo1 openerp.addons.base.ir.ir_http: Generating routing map Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,441 7541 INFO odoo1 werkzeug: 10.0.1.13 - - [02/Sep/2016 12:08:37] "GET /web/ HTTP/1.1" 303 - Sep 02 17:38:37 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:37,480 7541 INFO odoo1 werkzeug: 10.0.1.13 - - [02/Sep/2016 12:08:37] "GET /web/login HTTP/1.1" 200 - Sep 02 17:38:55 localhost.localdomain odoo1.py[7541]: 2016-09-02 12:08:55,528 7541 INFO odoo1 openerp.addons.base.ir.ir_autovacuum: GC'd 0 user log entries Hint: Some lines were ellipsized, role -l to present inwards full. [root@localhost  ]# 

Step 8 - Allow port seat out 8070 from firewall using below command:
[root@localhost  ]# firewall-cmd --zone=public --permanent --add-port=8070/tcp success 

Let's Reload firewall service using below command 
[root@localhost  ]# firewall-cmd --reload success

Step nine - Let's access odoo novel instance.

Open browser together with hitting URL - http://server-ip:8070 

- Now choose create create database together with create 1 novel database for newly created instance:


















- Now choose create novel database :

















- Now create amount the information to create novel database every bit below: together with click on continue







































- Now hold upward into the given details to log inwards :






















After successful login you lot volition teach below window:




















Congratulations New Instance has been setup successfully.


That's All
!!!Cheers!!!




Sumber https://linuxhowtoguide.blogspot.com/

Kamis, 01 September 2016

How To Laid A Firewall Using Firewalld On Centos 7.X

This is how to weblog to hold upward alongside Firewall inwards Centos vii using Firewall CMD command.


Introduction :
Firewalld is a consummate firewall solution available past times default on CentOS vii servers. In this guide, nosotros volition embrace how to ready a firewall for your server in addition to present you lot the basics of managing the firewall alongside thefirewall-cmd administrative tool (if you'd rather role iptables alongside CentOS, follow this guide).

Turning on the Firewall :
Before nosotros tin laid about to practise our firewall rules, nosotros request to genuinely plough the daemon on. The systemdunit file is called firewalld.service. We tin outset the daemon for this session past times typing:
[root@localhost  ]# systemctl outset firewalld
Check firewalld daemon condition :
[root@localhost  ]# systemctl condition firewalld ● firewalld.service - firewalld - dynamic firewall daemon    Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)    Active: active (running) since Friday 2016-09-02 12:14:45 IST; 5min agone  Main PID: 651 (firewalld)    CGroup: /system.slice/firewalld.service            └─651 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid  Sep 02 12:14:40 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon... Sep 02 12:14:45 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon. 
Check firewalld status :

[root@localhost  ]# firewall-cmd --state running 

Check electrical flow Default Zone :
We tin come across which zone is currently selected equally the default past times typing:

[root@localhost  ]# firewall-cmd --get-default-zone public 

Check electrical flow Active Zone :
[root@localhost  ]# firewall-cmd --get-active-zone public   interfaces: eth0 

Check electrical flow opened upward Port :
[root@localhost  ]# firewall-cmd --list-port 8069/tcp 80/tcp 5000-5500/tcp 20/tcp 21/tcp 9000/tcp 22/tcp 
how to listing permanent  open Port :
[root@localhost  ]# firewall-cmd --zone=public --permanent --list-port 8069/tcp 80/tcp 5000-5500/tcp 20/tcp 21/tcp 9000/tcp 22/tcp [root@localhost  ]# 


How to listing all data including opened upward or block port :
[root@localhost  ]# firewall-cmd --list-all public (default, active)   interfaces: eth0   sources:   services: dhcpv6-client ssh   ports: 8069/tcp 80/tcp 5000-5500/tcp 20/tcp 21/tcp 9000/tcp 22/tcp   masquerade: no   forward-ports:   icmp-blocks:   rich rules:  [root@localhost  ]# 

How to listing all available zone:
[root@localhost  ]# firewall-cmd --get-zones block dmz driblet external dwelling solid internal populace trusted work 

How to listing all data of populace zone:

[root@localhost  ]# firewall-cmd --list-all --zone=public public (default, active)   interfaces: eth0   sources:   services: dhcpv6-client ssh   ports: 8069/tcp 80/tcp 5000-5500/tcp 20/tcp 21/tcp 9000/tcp 22/tcp   masquerade: no   forward-ports:   icmp-blocks:   rich rules:  


How to listing all services :
[root@localhost  ]# firewall-cmd --get-services RH-Satellite-6 amanda-client bacula bacula-client dhcp dhcpv6 dhcpv6-client dns freeipa-ldap freeipa-ldaps freeipa-replication ftp high-availability http https imaps ipp ipp-client ipsec iscsi-target kerberos kpasswd ldap ldaps libvirt libvirt-tls mdns mountd ms-wbt mysql nfs ntp openvpn pmcd pmproxy pmwebapi pmwebapis pop3s postgresql proxy-dhcp radius rpc-bind rsyncd samba samba-client smtp ssh telnet tftp tftp-client transmission-client vdsm vnc-server wbem-https [root@localhost  ]# 


How to listing all permanently opened upward services :
[root@localhost  ]# firewall-cmd --zone=public --permanent --list-services dhcpv6-client ssh 

How to add together (open) a port permanently  :
[root@localhost  ]# firewall-cmd --zone=public --permanent --add-port=80/tcp success

How to reload firewall to employ changed afterwards adding port or service :
[root@localhost  ]# firewall-cmd --reload success

How to add together (open) a service permanently  :

[root@localhost  ]# firewall-cmd --zone=public --permanent --add-service=mysql success 

How to add together (open) TCP port arrive at permanently  :
[root@localhost  ]# firewall-cmd --zone=public --permanent --add-port=4000-4400/tcp success
How to add together (open) UDP port arrive at permanently  :

[root@localhost  ]# firewall-cmd --zone=public --permanent --add-port=4000-4400/udp success



That's All...
!!!Cheers!!!





Sumber https://linuxhowtoguide.blogspot.com/