Print Installed font list with preview for each font

If you wish to print (or see) a preview of your installed fonts under linux. I found this command myself:

Here is the All-in-One command, copy and paste all this in a terminal (Applications > Accessories > Terminal):

(echo '<html><body>' && (fc-list | sed 's/\(.*\):.*/<font face="\1">\1<\/font><br>/') && echo '</body></html>') > fonts.html
firefox fonts.html

Then Hit Enter.

This should open firefox and open fonts.html, by itself.

Otherwise, go to your user’s directory and open fonts.html yourself.

Find files very quickly using Locate with Linux

Tired of using the Find command? want something faster? Use locate!!! It’s easy to use.

locate myfile

Would give you all the files found since last indexing.

Locate uses a database containing file indexes. That’s why it is very fast to find files, that’s the good point of this system. The bad point is that the database is not updated everytime you create/move/delete a file. But it’s easy to force updating.
Continue reading “Find files very quickly using Locate with Linux”

How to remove grub error 22 using Windows XP CD

After removing linux or changing a few stuff about your disk partitions. Grub might become unhappy and give you an Error 22 when booting windows.

This is quite easy to fix if you have your windows XP CD.

  • Put your cd in, and reboot.
  • When asked, hit a key to boot from the cd-rom.
  • When you see the screen where it asks if you want to install, recover, or whatever, push R to recover/repair,
  • It should ask you what windows you want to recover/repair, usually hit 1 and Enter.
  • For the administrator password, if you don’t think you have one, just hit Enter
  • Then type “fixboot” and hit ENTER
  • Type “fixmbr” and hit ENTER
  • Type exit
  • Remove the CD