DevTech101

DevTech101

Month: June 2016

OpenStack / Solaris 11.3 (Kilo) – Part one

First we need to create a Virtual Router and Load Balancer Note: The Full Kilo setup can be found here – How To Install Openstack Kilo On Solaris-12 With OVS Will use vrrp v3 (solrias tech) Install needed packages pkg install vrrp Disable redirects ipadm set-prop -p send_redirects=off ipv4 on first node The example below …

OpenStack / Solaris 11.3 (Kilo) – Part one Read More »

Solaris NodeJS zone install and configuration

Solaris NodeJS zone install and configuration First, lets Compile NodJS from source, get the source from the NodeJS website. Something like the below should work to compile. env CC=gcc ./configure –prefix=/opt/node-v6.2.2 # for 8 cpu’s gmake -j 8 gmake install Next, lets modify the zone properties and distribute the compiled bundle to all the Solaris …

Solaris NodeJS zone install and configuration Read More »

Nginx SMF for Solaris – Allowing Users Starting Nginx With SMF

Assigning access to any user to start Nginx Below are the steps needed to a user that will be allowed to start Nginx with the Solaris SMF system. Add to /etc/user_attr nginx::::auths=solaris.smf.manage.nginx Or just run usermod -A solaris.smf.manage.nginx nginx Add to /etc/security/auth_attr.d/local-entries solaris.smf.manage.nginx:::enable, disable and refresh nginx:: Create the service

Linux RAID & LVM

LVM stuff pvdisplay vgdisplay lvdisplay Check status cat /proc/mdstat cat /etc/mdadm.conf Make Raid 10 mdadm –create /dev/md30 –run –level=10 –chunk=4 –raid-devices=4 /dev/sda /dev/sdb /dev/sdd /dev/sdf mdadm –examine /dev/md30 mdadm –detail /dev/md30 Make file system mkfs.ext4 -O extent -b 4096 -E stride=128,stripe-width=128 -O ^has_journal /dev/md30 tune2fs -o journal_data_writeback /dev/md30 # append output to /etc/mdadm.conf mdadm –detail …

Linux RAID & LVM Read More »

Configuring Linux LDAP & SSSD

Follow the process below to get ldap working on Linux First, Disable the firewall (or configure to allow LDAP traffic). systemctl disable firewalld systemctl stop firewalld /etc/selinux/config SELINUX=disabled LDAP configuration # DC1 echo -n | openssl s_client -connect ldap1.domain.com:1636 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > /etc/openldap/cacerts/ldap1.pem echo -n | openssl s_client -connect ldap2.domain.com:1636 | …

Configuring Linux LDAP & SSSD Read More »

Creating a Linux Bond With vLan Tags

How to create a vlan interface and start at boot time. First check if the bounding module is loaded. lsmod | grep 8021q /etc/sysconfig/network-scripts/ifcfg-solr DEVICE=solr TYPE=Ethernet BOOTPROTO=none ONBOOT=yes /etc/sysconfig/network-scripts/ifcfg-solr.2018 DEVICE=solr.2018 IPADDR=10.10.18.51 NETWORK=10.10.18.0 NETMASK=255.255.254.0 GATEWAY=10.10.18.1 ONBOOT=yes BOOTPROTO=none USERCTL=no VLAN=yes To test just issue /etc/init.d/network restart or ifup [if_name] To remove the new vlan How to remove …

Creating a Linux Bond With vLan Tags Read More »

Oracle BDA iPython, Notebook and Jupytar Configuration

How to install iPython/Notebook on an Oracle BDA Install the below packages pip install ibackports.ssl_match_hostname-3.5.0.1.tar.gz ipython-1.2.1.tar.gz pyzmq-15.2.0.zip tornado-3.2.1.tar.gz add parcels in CDH GUI parcel address Remote Parcel Repository URLs https://repo.continuum.io/pkgs/misc/parcels/ donwload, distrubite, activate System startup script /usr/local/notebook/bin/start_notebook.sh #!/bin/bash export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rh/python27/root/usr/lib64 export PATH=/opt/rh/python27/root/usr/bin:$PATH # Notebook export PYSPARK_DRIVER_PYTHON=ipython export PYSPARK_DRIVER_PYTHON_OPTS=”notebook –NotebookApp.open_browser=False –NotebookApp.ip=’*’ –NotebookApp.port=8880″ # Jupyter #export PYSPARK_DRIVER_PYTHON=/opt/cloudera/parcels/Anaconda/bin/jupyter …

Oracle BDA iPython, Notebook and Jupytar Configuration Read More »