April 2017
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

April 2017
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Asterisk 13 video call configuration on CentOS 7

Asterisk 13 video call configuration on CentOS 7 Now we can configure video calling through asterisk . This is simple and easy . # vi /etc/asterisk/sip.conf [general] videosupport=yes And add below configuration under your context area . My context is [LocalExt] . [LocalExt] disallow=all allow=ulaw allow=alow allow=h263 allow=h264 allow=h263p Save the file and reload asterisk […]

ZFS installation and configuration in CentOS 6 & 7

ZFS installation and configuration in CentOS 6 & 7 ZFS is a combined file system and logical volume manager designed by Sun Microsystems. The features of ZFS include protection against data corruption, support for high storage capacities, efficient data compression, integration of the concepts of file system and volume management, snapshots and copy-on-write clones, continuous […]

IPV6 DHCP Server on CentOS 7

Without any talk we can go straight to configure IPV6 DHCP server .

IPV6 NS : 2015:9:19:ffff::1

IPV6 DHCP SERVER : 2015:9:19:ffff::2

 

# yum install dhcp -y

# cp /usr/share/doc/dhcp-4.2.5/dhcpd6.conf.example /etc/dhcp/dhcpd6.conf

# cat /etc/dhcp/dhcpd6.conf

default-lease-time 2592000; preferred-lifetime 604800; option dhcp-renewal-time 3600; option dhcp-rebinding-time 7200; allow leasequery; option dhcp6.info-refresh-time 21600; dhcpv6-lease-file-name “/var/lib/dhcpd/dhcpd6.leases”;

 

subnet6 2015:9:19:ffff::/64 […]

BTRFS in CentOS 7

In these days we can find lot of file systems and they are also used in many Operating systems and block devices . Comparing with this file systems BTRFS is a newbie . Btrfs is a new copy on write (CoW) filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair […]

GlusterFS and NFS with High Availability on CentOS 7

GlusterFS and NFS with High Availability on CentOS 7

GlusterFS and NFS with High Availability on CentOS 7 Technical requirements 3 x CentOS 7 Machines 4 IP’s Additional hard drive for each machine with same size. (eg : /dev/sdb ) Disable SELinux

Installation Install CentOS 7 Minimal on 3 machines and give static IP’s . […]

Samba in CentOS 6.8 as Secondary DC with Microsoft Active Directory 2012R2

1 . https://bugzilla.samba.org/show_bug.cgi?id=10265 It’s necessary to manually lower the domain and forest functional levels on the Windows 2012 server first, via Powershell: Set-ADForestMode -Identity “mydom.local” -ForestMode Windows2008R2Forest Set-ADDomainMode -Identity “mydom.local” -DomainMode Windows2008R2Domain 2. Need a fresh installed minimal CentOS 6.x OS . Disable SELinux and firewall . Update software packages . Please check above notes […]

python code for disk space

#!/usr/bin/env python #coding:utf-8 import subprocess import json import os,sys space = [] df= os.popen(‘df -P -k’).read() df = subprocess.Popen([“df”, “-P”, “-k”], stdout=subprocess.PIPE) output = df.communicate()[0] for line in output.split(“\n”)[1:]: if len(line): try: device, size, used, available, percent, mountpoint = line.split() space.append(dict(mountpoint=mountpoint, available=available)) except: pass print json.dumps(dict(space=space), indent=4)