kpartx: mount partitions from raw disk images

Wednesday, 12 June 2013

the kpartx tool allows mounting partitions from disk images (created with dd, for example )

Installing on Debian/Ubuntu

sudo apt-get install kpartx
You must be root to run this tool 
1)  Creating loop devices for a disk image :
kpartx -a /path/to/disk.img


2) Listing available loop devices :

kpartx -l /path/to/disk.img

loop0p1 : 0 15826881 /dev/loop0 63  

 Mounting  a device (you must create and list first, see #1 and #2):

mount /dev/mapper/loop0p1 /mnt/media/part1 -o loop,ro



Be first to comment this article

Last Updated ( Wednesday, 12 June 2013 )

Debian/Ubuntu: Using dpkg to find installed package by string and list its files

Saturday, 08 September 2012

This is a note to self, and I'm sure it will also benefit whoever always forgets what the right tool is: apt-get, aptitude, apt-cache or dpkg.

1. Listing packages from the command line

dpkg --get-selections |grep <your-search-string>

 For example, if you need to know what PHP5 related packages are installed the corresponding command is:

[email protected] / $ dpkg --get-selections | grep php5
libapache2-mod-php5        install
php5            install
php5-cli          install
php5-common          install
php5-curl          install
php5-gd            install
php5-memcached          install
php5-mysql          install
php5-sqlite          install
php5-xcache          install
[email protected] / $

2. Listing files for a given package  from the command line:

This provides a quick way to locate the ini files or data/cache directories for a given package

dpkg -L <package-name>


 [email protected] / $ dpkg -L libapache2-mod-php5
[email protected] / $ 

Credits go to this HowToGeek article.

Be first to comment this article

Last Updated ( Saturday, 08 September 2012 )

PHP and MySql: getting ready for multi language applications with utf8

Thursday, 08 December 2011

This explains how to write PHP applications ready for international use.

Utf-8 is a wide-used and well-suported character encoding which allows for special characters, like accented characters, characters with umlauts, cedillas and so on.

Here's a few steps to follow to ensure your data gets correctly stored in utf8 encoding:

place this at the very top of your 'entry' PHP script or your config PHP script(to make sure the code gets executed site-wide):

<?php //set INTL encoding for PHP sources and regexp


When outputting html, make sure you set document encoding by specifying a HTTP header with PHP

<?php header('Content-Type: text/html; charset=UTF-8');

or a meta tag in your HTML <head> 'section':

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Be first to comment this article

Last Updated ( Thursday, 08 December 2011 )

Upgrading OpenBravo POS software

Tuesday, 15 November 2011

An introduction to OpenBravo POS software and Unicenta OPOS

OpenBravo is a point of sales (POS) software. It can be successfully used as a restaurant software, for keeping track of tables, orders and customers. It can be handled  very well with a touchscreen or a mouse.

It can be configured for for multiple devices such as magnetic stripe reader(for quick cashier/operator login), POS ticket printers, ticket display screens and cash drawers.

It prints order tickets, it generates statistical reports on sales by product, by cashier, by date range, and it manages product stock.

 OpenBravo POS may be installed on several computers while sharing the same product and sales data.

 OpenBravo POS system is free software, licensed under the GPL, so you may use it and modify it freely.

 It is based on Java, so you can use it on any Mac, Linux and Windows PC.

 Unicenta OPOS , the succesor of OpenBravo POS, is an improved version of Openbravo. It features many bugfixes and enhancements, such as a clean and more intuitive interface, the ability to print food products from orders separately as kitchen tickets(when used as restaurant POS).


Comments (1)

Last Updated ( Tuesday, 15 November 2011 )

Installing Debian, Ubuntu or LMDE (Linux Mint Debian Edition) from HDD

Tuesday, 18 January 2011

First of all, you may ask yourself why would you want to do this. I did it because I did not want to waste a blank CD.

This Mint installation was performed using a Live Linux booted with PXE( I used plop linux , which is a lightweight Linux distribution.

Be first to comment this article

Last Updated ( Friday, 21 January 2011 )

Canon multifunction printer: getting the printer drivers and scanner to work in debian/ubuntu/mint

Thursday, 07 October 2010

I just installed a Canon multifunction printer(MP210) in Linux Mint (based on debian squeeze/sid, i.e 'debian testing' at this time) Here's how I got the printing and scanning to work.

Be first to comment this article

Last Updated ( Thursday, 07 October 2010 )

Authentication without password with SSH and rsync

Thursday, 12 August 2010

There are a lot of articles on this issue. I'm writing this as a note to self, as I often tend to forget how to setup SSH authentication without password upon reinstalling the OS or changing SSH keys.



Be first to comment this article

Last Updated ( Sunday, 15 August 2010 )

Mysql: host not allowed to connect

Saturday, 17 April 2010

The issue I was encountering was that MySQL 5.1.3 on Ubuntu 9.10 was not allowing external connections, i.e. connections from a host different from the host the server is running on.

Comments (6)

Last Updated ( Saturday, 17 April 2010 )

XP firewall: how to repair

Sunday, 25 October 2009

This article details a few steps you can take to repair your windows firewall and ICS(Internet connection sharing)

I had recently stumbled upon a problem with my XP machine, while trying to access advanced properties of a LAN(Local Area  Connection) network connection

Windows XP reported a problem when I attempted to access Local Area Connection 1->Properties->Advanced

Comments (9)

Last Updated ( Monday, 26 October 2009 )

Pidgin not connecting? change pager host

Friday, 19 June 2009
Here's how to fix Pidgin instant messenger if you experience Yahoo account connection problems.

Comments (12)

Last Updated ( Tuesday, 23 June 2009 )
Web Hosting

Europe freelancer directory


Subscribe to TeachMeJoomla's newsletter

Auto tags

kitchen order ticket format

remove Powered by Phoca Restaurant Menu

remove Powered by Phoca gallery

Online Food Ordering System joomla

restaurant kitchen background

restaurant pos php script

food icons products pos

phoca watermark

Connecting to Joomla 1.5 from an external PHP script

how to remove phoca gallery powered by

how to connect restaurant pos schedule


customer pager restaurant

"remove powered by phoca restaurant menu"

remove phoca gallery powered

pos apps kitchen display multi

phoca gallery remove

powered by phoca gallery entfernen

pos system software

phoca powered by entfernen

how to remove powered by phoca

phocagallery remove