Tibor's Musings

Building Vagrant Boxes with Veewee

Veewee is a useful tool helping to build Vagrant boxes for virtualised development. Here is how I build Debian, Scientific Linux, CentOS, and FreeBSD boxes.

Installing prerequisites

If you do not have Vagrant installed yet, you should start with that:

sudo apt-get install vagrant

You may also need to enable …

SSH Tunnelling

Imagine being at home and wanting to connect to a web site sitting behind the corporate firewall. The web site is not open to the outside world; one can only use it from within the corporate IP domain range. How to quickly set up an SSH tunnel to reach it …

USB 3G Modem Tips

Recently I got to use a T-Mobile SK USB 3G Mobile Broadband Modem device (ZTE MF190). Here are notes on how to make it work in GNU/Linux.


$ sudo aptitude install lsusb usb-modeswitch

Switching the device from USB storage mode to USB modem mode

When the given T-Mobile USB …


Have you ever tried to use echo with sudo to write some text to files owned by another user? Did not work? Tee, a handy tool that reads from standard input and writes to standard output and files, is here help.

Imagine the following directory permission situation:

$ ls -ld /var …


Sed, the stream editor, is a useful tool in one's command-line-fu. Here are some nifty one-liners.

Replace stuff in a file:

$ sed -i 's/oldstring/newstring/g' filename

Replace stuff in many files:

$ find modules -name "*.py" -exec sed -i 's,CFG_SOME_VARIABLE,CFG_OTHER_VARIABLE,g' {} \;

Print line number 123 and quit …