The Perfrect Build Script

A build script should be simple, extensible and compile native.

Generally shell scripts do great job as build scripts. But if your development environment consist of Linux, Windows and Docker environments, shell script do not run out of the box on every platform. As well scripting languages like python need dependencies and are difficult to maintain for different platforms.

The solution would be a script which can run without dependencies on every platform. The solution I picked is “golang”. Runs as script, compiles native, easy to cross compile and does not need any dependencies.

Since all artifacts produces are docker images, the script is called “captain”

https://github.com/trieder83/captain

Vertica installation on Ubuntu 16.04 LTS

Vertica currently supported on Ubuntu 14.04 LTS but not yet on 16.04.

But with a view hacks it will install on Ubuntu 16.04 LTS as well.

Install required packages

apt-get install mcelog dialog

Fake Debian version:<pre>

cp /etc/debian_version /etc/debian_version.org
echo "jessie/sid" > /etc/debian_version

Install Vertica

/opt/vertica/sbin/install_vertica --hosts 127.0.0.1 --failure-threshold NONE

Configure Vertica

sudo su - dbadmin
/opt/vertica/bin/adminTools

Have fun with Vertica Community Edition on Ubunut 16.04

Dell XPS 13 flickering issue with Ubuntu 16.04

Maybe a bit off topic. But this config solved my flickering issues on my Dell XPS 13 (9350) with the Intel HD Graphics 520

add /usr/share/X11/xorg.conf.d/20-intel.conf

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "AccelMethod" "sna"
    Option "TearFree" "true"
    Option "DRI" "3"
EndSection

Restart your X

systemctl restart lightdm

And any flickering should be gone.

Update: With kernel 4.4.0-42-generic Screen and Touchscreen are working after suspend.

XEN 4.4 with Oracle Linux Guest

The first post is not directly about data. Is about XEN and howto prepare it for Oracle Linux as Guest. Installing XEN is the easy and documented task.

To install the Oracle Linux 7.1 guest VM you need a proper VM configuration for installing and one for running the guest

The configuration for installing:

name = “oralin01”
kernel = “/media/cdrom/images/pxeboot/vmlinuz”
ramdisk = “/media/cdrom/images/pxeboot/initrd.img”
extra = “inst.vnc inst.stage2=hd:LABEL=OL-7.1\\x20Server.x86_64 earlyprintk=xen console=hvc0”
memory = 4096
vcpus = 2
vif = [ ‘bridge=xenbr0’ ]
disk = [ ‘/dev/vg0/oralin01,raw,xvda,rw’,’file:/pathtoiso/oracle_linux_7_1_V74844-01.iso,xvdc:cdrom,r’ ]
vfb = [ ‘type=vnc, vncdisplay=1, vnclisten=127.0.0.1’ ]
on_poweroff = ‘destroy’
on_reboot = ‘restart’
on_crash = ‘restart’

connect with the consloe or vnc

xl console oralin01

Setup the Oracle Linux 7.1. Then change the configuratin, destroy the domU (your guest vm) and recreate it with the run configuratin:

name = “oralin01″
bootloader=”pygrub”
memory = 4096
vcpus = 2
vif = [ ‘mac=00:16:3e:02:0a:79,bridge=xenbr0’ , ‘mac=00:16:3e:02:0a:80,bridge=xenbr0’]
disk = [ ‘/dev/vg0/oralin01,raw,xvda,rw’,’file:/pathtoiso/oracle/oracle_linux_7_1_V74844-01.iso,xvdc:cdrom,r’ ]
vfb = [ ‘type=vnc, vncdisplay=1, vnclisten=127.0.0.1’ ]
on_poweroff = ‘destroy’
on_reboot = ‘restart’
on_crash = ‘restart’

Notice we have two network interfaces (eth0, eth1) both on the xenbr0 which should allow us to configure the public and private network if we will install Oracle RAC on Xen later.