Monthly Archives: April 2013

How to install the VirtualBox Extension Pack from the Command Line on Ubuntu

The following command was needed after upgrading the VirtualBox version to install the new version of the extension pack and replace the old one: sudo VBoxManage extpack install –replace Oracle_VM_VirtualBox_Extension_Pack-4.2.12-84980.vbox-extpack Advertisements

Posted in Uncategorized | Tagged , , , , | Leave a comment

How to manually install a Gnome Shell extension

This is a must-know for those who love some old extensions that are no longer compatible with their new upgrade of gnome shell, since many extensions are already compatible with the new versions of the gnome-shell, but all what differs … Continue reading

Posted in Uncategorized | Tagged , , , , , | 5 Comments

How to extract a number from a string (not a file) in Bash

export hobba=ksjdjf123ksks export nokka=`sed “s/[^0-9]//g” <<< $hobba` echo $nokka 123 Sources: http://stackoverflow.com/questions/13055889/sed-with-a-literal-string-not-input-file, http://stackoverflow.com/questions/6388046/extract-integer-from-string-using-bash

Posted in Uncategorized | Tagged , , , , , | Leave a comment

How to debug your bash script

Simply supply the -x parameter, e.g. bash -x myscript.sh

Posted in Uncategorized | Tagged , , , | Leave a comment