Azitech

Azimout's Linux weblog

Archive for the ‘Reference’ Category

case in email addresses

leave a comment »

The domain part (the part after @) is case-INSENSITIVE; the local mailbox part (the part before @) is case-SENSITIVE.

Written by azimout

07/04/2010 at 09:18

Posted in Reference

ext3 to ext4

leave a comment »

To convert a partition from ext3 to ext4, do the following:

  • enable ext4 features by running tune2fs -O extents,uninit_bg,dir_index /dev/DEV
  • have fsck repair some inconsistencies that are created by the previous command e2fsck -fDC0 /dev/DEV
  • (optional) mount the partition and force the kernel to rewrite all files by a command like this find /home -xdev -type f -print0 | xargs -0 chattr +e

Reminder: grub (v1) doesn’t support ext4, so if you upgrade your root (or /boot) partition, you need to chroot into your system and upgrade to grub2

Reminder2: if you can’t chroot (you get the error “cannot execute /bin/bash: exec format error”), it’s because you’re using a 32-bit livecd and are trying to chroot into a 64-bit system

References:

Written by azimout

02/04/2010 at 21:20

Posted in Reference

OO.o performance project

leave a comment »

There’s a project trying to improve the performance of OpenOffice.org: http://wiki.services.openoffice.org/wiki/Performance

I found this while trying to find the cause of an issue I have: with OpenOffice 3.2, everytime I open a spreadsheet, after the splash screen completes, it waits for approx. 20 seconds doing nothing (no cpu or disk activity) and then opens the file. That happens even after closing and reopening the same file.

Opening just Calc (w/o a file) is very fast (~1 sec). If I then tell it to open a file, it hangs for 20 seconds like before. Removing the ~/.openoffice.org folder doesn’t help. Disabling Java in OO.o doesn’t help. Whether the file is .xls or .ods makes no difference. The same issue is present for .doc files

Using strace I found that it seems the call that make OO.o hang is the call to /bin/domainname

Written by azimout

02/04/2010 at 12:07

Posted in Reference

GeoIP

leave a comment »

Had some fun today locating myself on various GeoIP sites:

Most are correct, only one thinks I’m in Berlin (hostip.info)

Written by azimout

15/03/2010 at 19:37

Posted in Reference

Fonts

leave a comment »

https://wiki.ubuntu.com/Fonts (not of much help)

Three types of fonts:

  1. http://en.wikipedia.org/wiki/OpenType (.otf) (Microsoft, Adobe) (ISO/IEC 14496-22)
  2. http://en.wikipedia.org/wiki/TrueType (.ttf) (Apple)
  3. http://en.wikipedia.org/wiki/PostScript_fonts (a.k.a Type1 fonts) (.afm/.pfb/.pfm) (Adobe)

x11 fonts???

http://www.openoffice.org/FAQs/fontguide.html

your fonts are under /usr/share/fonts

Written by azimout

12/03/2010 at 11:29

Posted in Reference

Backup

leave a comment »

Written by azimout

12/03/2010 at 11:21

Posted in Reference

AptProxy

leave a comment »

If you have a gateway and multiple Ubuntu machines, it might make sense to save bandwidth by using it (also) as an proxy server for apt. Here’s some useful links:

Written by azimout

12/03/2010 at 11:18

Posted in Reference

openoffice bibliography database

with one comment

Every OpenOffice.org user has a bibliography database, located under ~/.openoffice.org/3/user/database/biblio.odb

There’s a bug where if you don’t have OO.o Base installed and click on Tools->Bibliography Database, OpenOffice will crash (didn’t anyone test this before release?).

Another issue could be that the “Title” field has a max. length of 75 characters, which is too short for some papers.

Written by azimout

05/03/2010 at 23:03

Posted in Reference

chroot

leave a comment »

To install/remove packages (or modify in general) on a Linux system that is unbootable, you can boot with a LiveCD, mount the underlying system’s root partition and then chroot to that mount point. After that, any commands will be run on the underlying system, rather than on the LiveCD…

Some actions (e.g. installing grub) require also the devfs, procfs and sysfs filesystems, so before chrooting, remember to also:

  • sudo mount -o bind /dev /mnt/dev
  • sudo mount -t proc none /mnt/proc
  • sudo mount -t sysfs none /mnt/sys

(I assume here that the root partition was mounted under /mnt)

Update 01.10.2010: if you’re using dhcp, networking will not work because /etc/resolv.conf will be empty. Add “nameserver 8.8.8.8″ to that file

Written by azimout

23/02/2010 at 11:21

Posted in Reference

EC document formats

leave a comment »

The document formats supported by the European Commission for “information providers”:

http://ec.europa.eu/ipg/standards/document/index_en.htm

Written by azimout

14/02/2010 at 17:29

Posted in Reference

Follow

Get every new post delivered to your Inbox.