Welcome to the most active Linux Forum on the web.
Go Back > Blogs
User Name



Script to prepare a Thunderbird PAB export for gnokii to write to Nokia series 40

Posted 05-19-2011 at 04:47 AM by catkin
Updated 06-26-2011 at 10:40 AM by catkin (Version 0.2 of the script)


Here's a script to prepare a Thunderbird Address Book LDIF export for gnokii --writephonebook to write to a Nokia Series 40. The usage is something like:
cat /tmp/TB.PAB.ldif \
  | prepare_ldif_for_gnokii.awk \
  1>/tmp/ldif.prepared \
cat /tmp/ldif.prepared \
  | gnokii --writephonebook --overwrite --memory-type ME --ldif \
The script:
LQ 5k Club
Posted in Uncategorized
Views 1574 Comments 0 catkin is offline

DD Cloning

Posted 05-18-2011 at 02:01 PM by Alexoes

Hi I was wondering if there is a way to use dd to clone an image and show a progress bar because when I use this tool I don't know if is really working or not?
LQ Newbie
Posted in Uncategorized
Views 4963 Comments 2 Alexoes is offline

migrating a system to a new disk

Posted 05-18-2011 at 06:16 AM by neonsignal
Updated 05-18-2011 at 06:18 AM by neonsignal

This is a procedure for migrating a whole system to a new disk (such as when upgrading the primary disk in a machine). The new disk is installed alongside the old one (either in a spare ATA port, or using a USB adapter).

First partition the new disk (the examples here assume the original disk is sda and the new disk is sdb):
fdisk /dev/sdb
Assuming all of the system is to be in a single partition, make a primary partition 'n', 'p', taking most...
Senior Member
Posted in Uncategorized
Views 426 Comments 0 neonsignal is offline

Simulating the "Monty Hall Problem"

Posted 05-18-2011 at 05:43 AM by D1ver
Updated 05-26-2011 at 09:20 PM by D1ver

I was reading about the "Monty Hall Problem" this afternoon and in an attempt to simulate it I wrote some code. The following should run in Matlab / GNU Octave. Results agree with the theory.
%	Code to simulate the monty hall problem
%	The array 'doors' represent the 3 doors
%	Door States:
%	0 - uninitialized
%	1 - car
%	2 - goat
%	3 - revealed
%	Neil Dick

% clear everything..
Attached Images
File Type: jpg result.jpg (20.2 KB, 18 views)
Posted in Uncategorized
Views 3770 Comments 0 D1ver is offline

upgrading ext3 to ext4 filesystem

Posted 05-18-2011 at 05:40 AM by neonsignal
Updated 05-18-2011 at 05:44 AM by neonsignal

The following commands upgrade an existing umounted ext3 filesystem to ext4 without having to reformat:
tune2fs -O extents,uninit_bg,dir_index /dev/partition
e2fsck -fDC0 /dev/partition
To upgrade the root partition, change /etc/fstab so that it will be mounted as ext4 (since ext4 can mount an ext3 file system), then reboot as single user read-only (recovery mode). Then after setting the tune2fs parameters, reboot again before running e2fsck. Then reboot...
Senior Member
Posted in Uncategorized
Views 468 Comments 0 neonsignal is offline


All times are GMT -5. The time now is 07:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration