Sunday, April 12, 2015

Software Development Technologies

Software Development Technologies

List of awesome technologies to simplify you cloud software development.



Docker https://www.docker.com/

"Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux. Docker uses resource isolation features of the Linux kernel such ascgroups and kernel namespaces to allow independent "containers" to run within a single Linux instance, avoiding the overhead of starting virtual machines." - Wikipedia

Vagrnat -  https://www.vagrantup.com/

"Vagrant is computer software for creating and configuring virtual development environments.[2] It can be seen as a wrapper around virtualization software such as VirtualBoxKVMVMware and around configuration management software such asAnsibleChefSalt or Puppet." - Wikipedia

Ubuntu and IPv6


If Using a VM, enable IPv6

Enable IPv6 on ESX Host

To enable IPv6 using the vSphere Client:
  1. Connect to the host or vCenter Server using the vSphere Client.
  2. Select the host in the inventory and click the Configuration tab.
  3. Under the Hardware section, click the Networking link.
  4. In the Virtual Switch view, click the top-level Properties link.
  5. Select Enable IPv6 support on this host system.
  6. Click OK.
  7. Restart the host for changes to take effect.

    Note: To disable IPv6, deselect the checkbox and restart.

Enabling IPv6 on vSphere Wb Client

To enable IPv6 in ESXi 5.5:
  1. In the vSphere Web Client, navigate to the host.
  2. In the Manage tab, click Networking and click Advanced.
  3. Click Edit.
  4. In the IPv6 support dropdown menu, select Enable.
  5. Click OK.
  6. Reboot the host to apply the changes.

Setup IPv6 to AUTO
sudo sysctl -w net.ipv6.conf.eth1.autoconf=0
sudo sysctl -w net.ipv6.conf.eth1.accept_ra=0

Verify IPv6 Module


Check if ipv6 is enabled (0 means enabled, 1 disabled)
root@edge-workstation:/# cat /proc/sys/net/ipv6/conf/all/disable_ipv6


Install ipv6 utils
apt-get install iproute iputils-ping iputils-tracepath$ apt-cache search ipv6

Configure static IPv6 address


 
Make sure you are root:
$ sudo -suOpen network configuration file
# vim /etc/network/interfacesAppend the following lines:
### Static IPv6
iface eth1 inet6 static
pre-up modprobe ipv6
address 2001:480:230::42
netmask 64
gateway 2001:480:230::1
Restart Network
# /etc/init.d/networking restart

Verify IPv6 Configuration

See your IPv6 address, enter:
# ifconfig eth0
# ip -6 address show eth0
Display kernel IPv6 routing table:
# netstat -nr -6Verify that it works with ping6 or traceroute6
# ping6 ipv6.google.com# traceroute6 ipv6.google.com

Sunday, February 8, 2015

Configuring Apache in OS X 10.10.1 Yosemite

Configuration
  • Create a folder to hold your sites, or choose an existing folder
    • Typical example would be: ~/Sites ( /Users/{username}/Sites/ )
  • Open or create apache configuration file for given user
    • vi /etc/apache2/users/{username}.conf
    • Note: there are many options, will try to describe them later
 <Directory "/Users/{username}/Sites">  
   addlanguage en .en  
   LanguagePriority en fr de  
   ForceLanguagePriority Fallback  
   Options Indexes MultiViews FollowSymLinks  
   Require all granted  
   AllowOverride All  
   Order allow,deny  
   Allow from all  
 </Directory>  

  • Modify you virtual hosts
    • vi /etc/apache2/extra/httpd-vhosts.conf
 <VirtualHost *:80>  
   DocumentRoot /Users/{username}/Sites/  
   ServerName localhost  
   ErrorLog "/private/var/log/apache2/localhost-error_log"  
   CustomLog "/private/var/log/apache2/localhost-access_log" common  
 </VirtualHost>   

  • Modify User Dir configuration
    • vi /etc/apache2/extra/httpd-userdir.conf 
    • Make sure 'UserDir' is set to your dir, for example 'Sites"
    • Uncomment: Include /private/etc/apache2/users/*.conf
 UserDir Sites  
 #  
 # Control access to UserDir directories. The following is an example  
 # for a site where these directories are restricted to read-only.  
 #  
 Include /private/etc/apache2/users/*.conf  
 <IfModule bonjour_module>  
     RegisterUserSite customized-users  
 </IfModule>  
  • Configure apache modules in /etc/apache2/httpd.conf
    • Uncomment the modules
    • Make sure to uncomment the 2 files we are including, user dir and virtual hosts
 LoadModule deflate_module libexec/apache2/mod_deflate.so   
 LoadModule userdir_module libexec/apache2/mod_userdir.so   
 LoadModule rewrite_module libexec/apache2/mod_rewrite.so   
 Include /private/etc/apache2/extra/httpd-userdir.conf   
 Include/private/etc/apache2/extra/httpd-vhosts.conf  
  • Restart apache server - sudo apachectl restart 
  • Make sure apache is working - http://localhost/
  • Test apache for local user - http://localhost/~{username}/