Use SSH to connect to Docker Machine created instance

When one of my docker machine created virtual machines got changed by my cloud provider I was left in the dark. Out of a sudden docker-machine ssh no longer worked which comes at no surprise as the initially assigned IP address to me got changed.

In such a situation the SSH command line client has a way to specify the certificate to use when connecting to the VM:

ssh -i /home/john/.docker/machine/machines/T2fiware-postgres/id_rsa ubuntu@130.206.115.143

Replace `T2fiware-postgres` with the name of your docker created machine, ubuntu with the user the certificate was issued to and obviously the IP address with the one of your VM.

Advertisements

Docker on FIWARE

The previous post talked about the FIWARE project in general. This post will describe how to setup a virtual machine using Docker.

The FIWARE technical ecosystems (consisting eg. of the FIWARE Lab and Cloud) has little to offer on backend storage facilities. Thankfully, as being based on OpenStack, a developer should be fairly free to to set up anything up to the hearts content, as long as it fits into a virtual machine. Given that FIWARE supports Docker, I choose to go that route.

Continue reading “Docker on FIWARE”

Enable Hibernation in K/L/X/Ubuntu 12.04

Hibernation is disabled in Ubuntu / Kubuntu / Xubuntu / Lubuntu 12.04 by default. You have to enable it by sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.desktop.pkla Add the following to the file and save: [Re-enable hibernate by de…

Hibernation is disabled in Ubuntu / Kubuntu / Xubuntu / Lubuntu 12.04 by default. You have to enable it by

sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.desktop.pkla

Add the following to the file and save:

[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

 

https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/882040

http://askubuntu.com/questions/94754/how-to-enable-hibernation-in-12-04

Enable Medibuntu, MP3 and various other codes & DVDCSS2

Medibuntu: sudo wget –output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list sudo apt-get –yes –quiet –allow-unauthenticated install medibuntu-keyring sudo apt-get –quiet update …

Medibuntu:

sudo wget –output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
sudo apt-get –yes –quiet –allow-unauthenticated install medibuntu-keyring
sudo apt-get –quiet update

 

Codes:

sudo apt-get install ubuntu-restricted-extras

DVDCSS2:

sudo apt-get install libdvdread4

  

  • Then open a terminal window and execute:

 

sudo /usr/share/doc/libdvdread4/install-css.sh

Make Windows always the first OS in Grub on a dual boot system

sudo su cd /etc/grub.d/ mv 30_os-prober 08_os-prober update-grub Seen from http://www.joewein.net/blog/2009/11/28/fix-windows-as-default-boot-on-ubuntu-9-10-with-grub2-loader/#comment-39404

sudo su
cd /etc/grub.d/
mv 30_os-prober 08_os-prober
update-grub

Seen from http://www.joewein.net/blog/2009/11/28/fix-windows-as-default-boot-on-ubuntu-9-10-with-grub2-loader/#comment-39404

Installing German language support for LibreOffice in Oneiric

If you prefere your LibreOffice to be in English but have additionional language support, the standard way http://packages.ubuntu.com/oneiric/libreoffice-l10n-de is not the best for you. You may switch back the LO interface language but — why in…

If you prefere your LibreOffice to be in English but have additionional language support, the standard way

http://packages.ubuntu.com/oneiric/libreoffice-l10n-de

is not the best for you. You may switch back the LO interface language but — why install the clutter, if you don’t need it? So

LO uses Hunspell for spell checking
sudo apt-get install hunspell-<TAB>

Hyphenation is provided by
sudo apt-get install hyphen-<TAB>

Thesaurus is supported by
sudo apt-get install mythes-<TAB>

For german (de-AT) this makes
sudo apt-get install hunspell-de-at-frami mythes-de hyphen-de

Set resolution for plymouth startup and terminal after upgrading to propriatary NVIDIA drivers

After installing the propriatary NVIDIA drivers on Kubuntu, you will notice, that plymouth resolution is very coarse and switching to a command line VT (by pressing CTRL-ALT-F* like CTRL-ALT-F1) is also in an unusal low resolution. There is a fix:…

After installing the propriatary NVIDIA drivers on Kubuntu, you will notice, that plymouth resolution is very coarse and switching to a command line VT (by pressing CTRL-ALT-F* like CTRL-ALT-F1) is also in an unusal low resolution.

There is a fix: The fast way:

 

$ cd$ wget http://www.webalice.it/bernardi82/software/fixplymouth-natty$ chmod +x fixplymouth-natty$ ./fixplymouth-natty

(As seen from http://paolobernardi.wordpress.com/2011/05/01/fix-plymouth-on-ubuntu-after-in…

The explanation: http://idyllictux.wordpress.com/2010/04/26/lucidubuntu-10-04-high-resolution-…