Code

kpartx: mount partitions from raw disk images

Linux
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

 

Credits:

http://robert.penz.name/73/kpartx-a-tool-for-mounting-partitions-within-an-image-file/ 

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

Linux
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:

tudor@pandora / $ 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
tudor@pandora / $

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>

 

 tudor@pandora / $ dpkg -L libapache2-mod-php5
/.
/usr
/usr/share
/usr/share/doc
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libapache2-mod-php5
/usr/lib
/usr/lib/apache2
/usr/lib/apache2/modules
/usr/lib/apache2/modules/libphp5.so
/usr/lib/php5
/usr/lib/php5/20090626+lfs
/etc
/etc/apache2
/etc/apache2/mods-available
/etc/apache2/mods-available/php5.conf
/etc/apache2/mods-available/php5.load
/etc/php5
/etc/php5/apache2
/usr/share/doc/libapache2-mod-php5
/etc/php5/apache2/conf.d
tudor@pandora / $ 
 

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

PHP
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
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");

 

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 )
Read more...
 

Upgrading OpenBravo POS software

Misc
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 )
Read more...
 

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

Linux
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 )
Read more...
 

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

Linux
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 )
Read more...
 

Authentication without password with SSH and rsync

Misc
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 )
Read more...
 

Mysql: host not allowed to connect

Misc
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 )
Read more...
 

XP firewall: how to repair

Misc
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 )
Read more...
 

Pidgin not connecting? change pager host

Misc
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 )
Read more...
 
Web Hosting

Europe freelancer directory

Newsletter

Subscribe to TeachMeJoomla's newsletter
Name:
Email:


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

unicenta

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