Linux

Monday, August 31, 2009

Mail from linux prompt

Simple way to send an attachment over mail from the linux shell

uuencode surfing.jpeg surfing.jpeg | mail sylvia@home.com

mutt -s "Birthday celebration" -a citymap.jpg all@friends.org \< invitation.txt

To send without message
mutt -s "Birthday celebration" -a citymap.jpg all@friends.org \< /dev/null

Reference:
http://www.shelldorado.com/articles/mailattachments.html

Tuesday, August 04, 2009

History recovery from backup in Firefox3

Firefox stores the webpage browsing history in the following folder
%APPDATA%\Mozilla\Firefox\Profiles\

In my windows xp machine it was
C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\ycexgsuz.default

It will be in a file called places.sqlite. For restore I renamed the existing .sqlite with the old one and all the history is available in the new firefox

Labels:

Restoring bookmarks in firefox

I had to reinstall the OS on a different drive and had to reinstall firefox as well. Figured out a way to restore the bookmarks from the backup. This worked with firefox 3.5.2

  1. Browse and navigate to the location in hard disk where windows is installed
  2. Go to the location Then go to the following location C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\
  3. Inside the profiles folder there will be .default folder
  4. Inside this directory there will be a bookmarksbackup folder
  5. There will be a bunch of .JSON files stored as backups with the dates and times
  6. You can replace your current bookmarks with a backup copy by opening the Firefox 3 ("Bookmarks -> Organize Bookmarks -> Import and Backup -> Restore..." ). You can select one of the five dated backups that Firefox automatically creates or you can use the "Choose File..." option to select another bookmark backup file.
  7. Choose the JSON file then restart firefox this will restore your bookmarks
References:
[1] http://www.clazh.com/how-to-restore-and-recover-your-firefox-bookmarks/
[2] http://kb.mozillazine.org/Lost_bookmarks

Labels: