Sunday, October 16, 2016

Thursday, October 6, 2016

Getting webex to run on linux

It can mess up your system, so why not use docker instead?


Get this image
url: https://hub.docker.com/r/dnk8n/docker-webex/
command: docker pull dnk8n/docker-webex


close all running firefox instances

start image

sudo docker run -it \
    --env DISPLAY=unix$DISPLAY \
    --privileged \
    --name=docker-webex \
    --volume /dev/snd:/dev/snd \
    --volume /tmp/.X11-unix:/tmp/.X11-unix \
    dnk8n/docker-webex:latest $1


if firefox is already open and you want to maintain your existing session

sudo docker run -it \
    --env DISPLAY=unix$DISPLAY \
    --privileged \
    --name=docker-webex \
    --volume /dev/snd:/dev/snd \
    --volume /tmp/.X11-unix:/tmp/.X11-unix \
    dnk8n/docker-webex:latest $1 \
    /usr/bin/firefox go.webex.com --no-remote

make sure there is no whitespace after \ otherwise the multiline commands wont work

Wednesday, October 5, 2016

The last unicorn, by Peter S Beagle

A nice book with a rather poetic style and multiple references to the power of the stories.
Recommended

Finetuning an adafruit pir sensor

These sensors are a bit tricky to calibrate, so this web site is quite handy http://arduinobasics.blogspot.co.uk/2013/12/pir-sensor-part-2.html

Saturday, September 3, 2016

Weaverley by sir Walter Scott

Just finished the first novel of Scott, with the title Weaverley.
It is one of the classic books of Scottish literature and narrates the story of an English gentleman of the name Weaverley, that serves as an officer in the English army during the Jacobite civil war.

Apart from the very long editorial, which may or may not exist in different versions of the book, and the somewhat flowery style of sir Scott, the book is captivating. It is describing the social structure in the scottish highlands during the civil war and also describes how the war itself affected the future generations of Scotland.

Overall a very interesting reading to anyone who is interested in understanding the complicated history of Scotland.

Wednesday, August 10, 2016

Resizing disk space in Virtualbox virtual machine

If you need to increase your disk space in a virtual machine, if your disk is in vmdk format then you need to execute the following steps:

First you need to convert your disk to vdi by cloning.
Vdi can be resized and replace the vmdk disk in place. Just remove the vmdk in the settings
Internal partition needs to be resized this can be done by using the gparted iso:

http://gparted.sourceforge.net/download.php


Add the gparted as a cd iso and boot from it, resize the partition. In the next boot the system will recognize the new capacity

Vdi cloning and disk increase can be done with the following two commands:
  • VBoxManage clonehd "/home/nickapos/VirtualBox VMs/NCRWin7/NCRWin7-2016-06-27-disk1.vmdk" "/home/nickapos/VirtualBox VMs/NCRWin7/win7clone.vdi" --format vdi
  • VBoxManage modifyhd "/home/nickapos/VirtualBox VMs/NCRWin7/win7clone.vdi" --resize 100000



After that we are ready to boot. This will work with windows as well as linux. If you need to export your vm, there is a chance that Virtualbox will convert the image back to vmdk

Monday, August 1, 2016

Ubuntu ufw and docker

If you are using a system with ufw and at the same time are using docker, please keep in mind that docker manipulates the iptables rules in order to allow access to its services.

That means that it will open ports that you never intended to open to the world.
In order to disable this, you need to add the  --iptables=false in its arguments and restart it.