The Linux Page

disk

Thunderbird is so slow... it's nearly unusable!?

I have been using Thunderbird for a long time and yet I still did not know about the Compact feature.

A while back, i would use my Local Folders to save Junk, Draft, and Sent emails. This is really fast by default. But at some point I had a problem and reverted to using the remote folders which worked.

The problem was that Thunderbird would tell me that my Local Folders were full even though looking at them they were clearly empty.

The way this works is really annoyingly bad:

1. it accepts emails in a file, like the good old days, it uses one file for any number of emails

2. it adds new ...

Readonly content cannot be changed. Libreoffice preventing edits...

Today I opened a document where I had to make a few edits and LibreOffice decided to tell me:

Readonly content cannot be changed.
No modifications will be accepted.

There is a screenshot of that message:

Error message: Readonly content cannot be changed. No modifications will be accepted.

The error may be justified, I do not know, but apparently not too many people know how to unlock a document. I found pages and pages that tell people to check the read/write protection of the file, as if a read-only file on disk could not be updated in the editor... (yes! you cannot write it back, but you can edit it and do a Save As ...)

One person, though, had the correct answer to ...

Creating a drive mirror with LVM, including exact partition cloning

LVM today can create a mirror of your data without having the need for mdraid (or hardware raid).

Problem is, I did not find any documentation that makes sense and there doesn't seem to be a graphical interface that can help you with that (at least not under Ubuntu Gnome.)

So... I decided to spend the time because that's probably less time anyway than trying to create and maintain and md device.

The fact is, it is rather simple, but requires quite a bit of knowledge.

Copying the Partitions Exactly

First, I wanted the partitions to be exactly the same and using fdisk did not ...

QEMU tricks and reference

Today I tried to run WinXP on my newly upgraded Linux Ubuntu 12.04. It did not work... that's because the aqemu graphical interface tries to run qemu which was replaced with specially named emulators: qemu-i386, qemu-system-x86_64, etc. (try ls /usr/bin/qemu* to see a complete list on your system.)

So... I got the command line from the aqemu graphical interface, did a copy / paste and replaced the name with qemu-system-i386 and got the emulator started as expected. That worked fine, but then the window remained small (640x480) which I wouldn't care much if I weren't really using ...

Quickly saving an image to disk without extra library

Often, when I work with some form of graphics, I do not have a handy library to save the image buffer I'm working with in a file on disk. In most cases, when I want to do that, I make use of the Targa format. This is very easy to save since the header is very simple (18 bytes) and the data can be saved verbatim. Plus, many tools, such as the Gimp, can read the result at once.

Here is my C code to do so. It will work in C++ also. It should be easy to tweak for other languages such as C#.

{
  unsigned char hdr[18]; // the targa file header
  FILE *f;

  memset(hdr, 0, sizeof(hdr));  ...

Quintuple Boot

How to install your system to be able to boot from any Operating System

Problems

Problems with booting... numerous emails & posts about this one, that's for sure!!! Real solutions? Not really... In many cases people end up reinstalling their system from Scratch and once in a while even that doesn't work! But smart people have a way to fix their boot sectors without too much hurdle (instead of the hours it takes to install an OS.)

Yes! There ought to be a reason for things not to work so well once in while. In most cases, if you only have proper ...

GRUB error 16

[vtoc title=Boot Sector; minlevel=1; maxlevel=4;]

Error 16

Today I got an error 16 with GRUB on one of my machines. This had happened before so I did not worry too much. It is just quite annoying.

Ubuntu CD

A Ubuntu boot CD has a cool feature one can use to rescue such a system (i.e. re-install GRUB properly.) More or less, boot the CD, select the rescue mode, let it do its things for a moment (after you select options like keyboard, etc.)

Installing RAID under Ubuntu

Well, first... what is RAID?

Loads of very detailed info are available on Wikipedia. Just in case, it means: Redundant Array of Independent Disks.

The pivot_root error

The Error: pivot_root not found

Debian or Ubuntu and pivot_root and GRUB and hard drives... In general, I like Linux, but once in a while, it generates quite a few problems!

Fox Trot by Bill Amend

Long description of the Fox Trot story of Bill Amend:

Fox Trot by Bill Amend

Fox Trot and his friend are right next to Fox Trot's mom.

The mom looks at them, pausing from reading her magazine and says:

— I thought I told you to go play outside.

Fox Trot replied, making gestures with his hands:

— We tried! It's boring! There is nothing fun to do out there!

The mom goes back to her magazine and says:

— Use your imagination. I'm sure you can come up with something.

Fox Trot is stunned.

Having to comply, Fox Trot and his friend walk out. Sitting in the grass in the backyard, Fox Trot ...

Syndicate content Syndicate content

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

   

Terms of Site Index

Find the page/content you are looking for with our index.