Tag Archives: community

Restore Thunderbird Email

Recently I was forced to restore one of my email accounts that I use Thunderbird as my main client. But first a bit of background is in order. The domain that held the account was in a separate package for billing but also on the same provider, 1and1. I simply wanted all my domains to be on the same account but in order to do this a transfer was needed. I initiated all the steps and soon the transfer was under way. I really didn’t think the email would be disturbed since the transferee and the transferrer were one and the same. Me. Boy was I wrong. No sooner than the email that came in stating the transfer was completed, email to the other account stopped. And in addition to stopping, the action erased all of the current content from Thunderbird and all other clients. This was how the process of email recovery was needed. I thought the cloud was safe and probably is unless you transfer your domain.

So the recovery process had begun. I navigated to the folders where Thunderbird stores the email, and was very happy to see this directory listing.

johnny@computer ~/.thunderbird/ifswkzqc.default/ImapMail/imap.1and1.com $ ls -l
total 72240
drwxr-xr-x 2 johnny johnny     4096 Aug 17 05:30 Archives-1.sbd
-rw-r–r– 1 johnny johnny     1238 Aug 17 05:42 Archives.msf
-rw-r–r– 1 johnny johnny     1137 Jan 15  2014 Drafts.msf
-rw-r–r– 1 johnny johnny 58492214 Aug 20 16:01 INBOX
-rw-r–r– 1 johnny johnny     9260 Aug 20 16:10 INBOX.msf
-rw-r–r– 1 johnny johnny     1140 Jan 15  2014 Junk.msf
-rw-r–r– 1 johnny johnny       25 Jun 15 04:06 msgFilterRules.dat
-rw-r–r– 1 johnny johnny     2628 Aug 17 05:31 Sent Items.msf
-rw-r–r– 1 johnny johnny     1233 Aug 17 05:42 Sent.msf
-rw——- 1 johnny johnny   843873 Aug 18 01:27 Spam
-rw-r–r– 1 johnny johnny     3047 Aug 19 18:03 Spam.msf
-rw-r–r– 1 johnny johnny     1241 Jan 15  2014 Templates.msf
-rw——- 1 johnny johnny 14448469 Aug 20 16:00 Trash
-rw-r–r– 1 johnny johnny    24495 Aug 20 16:06 Trash.msf

I have highlighted the line for my INBOX file. Notice its size is almost 59 MB. This is the current state of my folders as I write, but there are only four messages accessible in the INBOX. When the account was switched, I can only guess a permission flag was set and that is why they are not accessible. They probably should have been deleted too. I was just glad to see the file size large enough to contain something. I opened the file in Writer and indeed the emails were there but if you’ve ever done this, you would know that they are not be in the friendliest of formats. So some work was in order.

Step one was to copy the originals to preserve anything of value. The next step was to try and use an extension for Thunderbird, ImportExportTools 3.01, to try and recover the email. The first try failed since importing of Imap email is unsupported. That brings us to step two. I copied the files again, but this time to the local folders.

johnny@computer ~/.thunderbird/ifswkzqc.default/Mail/Local Folders $ ls -l
total 56668
drwxr-xr-x 2 johnny johnny     4096 Aug 17 06:16 Inbox
-rwxrwxrwx 1 johnny johnny 58492214 Aug 17 05:30 INBOX    (After the chmod command.)
-rw-r–r– 1 johnny johnny     1806 Aug 20 00:08 Inbox.msf
drwxr-xr-x 2 johnny johnny     4096 Aug 20 00:05 Inbox.sbd
-rw-r–r– 1 johnny johnny        0 Jan 15  2014 Junk
-rw-r–r– 1 johnny johnny     2349 Aug 20 16:40 Junk.msf
-rw-r–r– 1 johnny johnny       25 Aug 19 23:34 msgFilterRules.dat
-rw——- 1 johnny johnny        0 Aug 20 00:06 Trash
-rw-r–r– 1 johnny johnny     2583 Aug 20 00:08 Trash.msf
-rw-r–r– 1 johnny johnny        0 Jan 15  2014 Unsent Messages
-rw-r–r– 1 johnny johnny     2866 Aug 19 23:44 Unsent Messages.msf

After the file copy I modified the file permissions giving it the easy global 777. I wanted the file to be completely unencumbered by any permission. Running the command below from the same directory changed the permissions on the file.

johnny@computer ~/.thunderbird/ifswkzqc.default/Mail/Local Folders $ chmod 777 INBOX

After I ran the command I re-opened Thunderbird. I was hoping to see the messages in the local folders. But no messages were there. I was a bit more than disappointed, but thought I would give the extension one more try. To access the tools, right clicking the account gives you this menu.

ImportExportTools 3.0.1 by Paolo "Kaosmos"

ImportExportTools 3.0.1
by Paolo “Kaosmos”

I chose the Import mbox file as shown above and this time the import was a success. A big thanks goes out to Paolo “Kaosmos” for making the extension available. I will be submitting a donation for this great extension. I am assuming it was the moving of the INBOX file to a local folder and out of the ImapMail folder structure that allowed this to work.

johnny@computer ~/.thunderbird/ifswkzqc.default/Mail/Local Folders $ ls -l

total 56668
drwxr-xr-x 2 johnny johnny     4096 Aug 17 06:16 Inbox
-rwxrwxrwx 1 johnny johnny 57937587 Aug 17 05:30 INBOX
-rw-r–r– 1 johnny johnny     1806 Aug 20 00:08 Inbox.msf
drwxr-xr-x 2 johnny johnny     4096 Aug 20 00:05 Inbox.sbd
-rw-r–r– 1 johnny johnny        0 Jan 15  2014 Junk
-rw-r–r– 1 johnny johnny     2434 Aug 20 17:10 Junk.msf
-rw-r–r– 1 johnny johnny       25 Aug 19 23:34 msgFilterRules.dat
-rw——- 1 johnny johnny        0 Aug 20 00:06 Trash
-rw-r–r– 1 johnny johnny     2583 Aug 20 00:08 Trash.msf
-rw-r–r– 1 johnny johnny        0 Jan 15  2014 Unsent Messages
-rw-r–r– 1 johnny johnny     2866 Aug 19 23:44 Unsent Messages.msf

You may notice the file size is almost the same as the current file. I have trimmed it down a bit but basically it is the same. So that was all there was to recovering my email and an almost tough lesson learned.

~Jraz

Upgraded to Linux Mint 17 Qiana

Last week I upgraded Mint to Qiana. I don’t like to upgrade my main laptop that often, but when I saw that version 17 would be supported to 2019, I had to do it. I downloaded the ISO and prepared a flash drive for the install. I was ready to take the plunge, but during my quick inventory of installed programs, I started thinking of all the little customizations I had done. Not to mention most of the software I use on a regular basis are not in the default Mint image.

I still wanted to upgrade, but not in the traditional method of installing clean and restoring backups. This upgrade was done in almost one command, apt-get dist-upgrade. But first there were a few commands to run in order to prep the system for Qiana. In order for this to be successful, you need to point apt to thee new repositories. This is done with the following commands running them under sudo. I pass thanks for this post for clean instructions. Another of the many reasons I love Linux; when you want to know something, almost every time someone else did it too and wrote about it. The Linux community is world-wide and really does share the wealth of knowledge. You just have to find it. Each command is ran as a single line as sudo or su.

sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list
sudo sed -i 's/petra/qiana/' /etc/apt/sources.list
sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list.d/official-package-repositories.list
sudo sed -i 's/petra/qiana/' /etc/apt/sources.list.d/official-package-repositories.list
Once this is completed, you can proceed with the upgrade. But first some words of caution.
  1. Ensure you have continuous power. This means for laptops to be plugged in.
  2. Set the computer to not sleep. Screen is okay but definitely not the main unit.
  3. Give yourself plenty of time for this to finish. I didn’t time it but it did take a couple of hours.
  4. Have backups ready just in case. You do this anyway, right? Are they tested?
  5. Knowing how to recover if something goes south will always help too.

Once you are ready, from a terminal enter these commands in order.

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get upgrade

This will start the upgrade process and once it is finished, I ran the last command again. You may be wondering just how did the upgrade perform for me? Somewhere in the process my upgrade failed on one item and stopped. I rebooted and was given a nice green screen but without the login section. I entered a terminal by pressing ctrl+alt+F2. I logged in and ran the command sudo apt-get clean. Followed by sudo apt-get dist-upgrade. At this point the upgrade re-started finishing in about a half hour. The next reboot brought me to Linux Mint 17 Qiana. I am glad I knew a few commands and especially the alternate method of logging in.

Mint 17 is running without any problems, but one. It is not a deal breaker nor is it interfering with anything I do, but it is there and I haven’t tackled removing it as if yet. On my panel I have two network indicators instead of the normal one. They both show identical information and if you stop one, it stops the other. Strange, yes. But like I mentioned not a big deal. If anyone knows of a solution, I am all ears.

Update: I was checking items in the Startup Applications menu under Preferences, and I noticed two networking items. And yes I removed one and when I rebooted the laptop, the extra network item on the panel was gone and networking still functions. That was easy. :)

That’s all there is to an upgrade of Linux Mint 16 Petra to Linux Mint 17 Qiana. The small problems were indeed small and I would not hesitate to go this route of upgrading once again as long as I am not experiencing any problems before the process, I don’t expect problems during the upgrade.

~Jraz

Have You Tried Parted Magic?

In my humble opinion, Parted Magic is simply the best multi-purpose tool-kit anywhere. I know there are competitors if you want to call them that. And they comprise some pretty good tools themselves. But Patrick Verner takes this project to a whole new level. Boot this tool one time and you will see what I mean. The interface is clean, simple and effective. The most used tools are on the desktop and the rest in a simple menu tree categorized by function. Parted Magic will boot on both 32-bit and 64-bit systems. One of my favourite features is its ability to run completely in RAM, but has several other boot options. The ISO can be burned to a CD or run from a USB drive. You will find instructions to do both on the website. One more item I like is that the Linux kernel will be very close to the most current release. This one fact should be a clue to anyone that some real work is behind this project and that the kernel will be providing the latest innovations available.

You might be wondering just how do I get this for myself? It is pretty simple actually, head over to the website and donate $5 and download. But wait, isn’t this open source and free? That is what usually will follow the visit to the download site. Yes it is ‘free’ according to the license under which it is released. I for one do not mind the small fee for such a quality set of tools. I carry Parted Magic everyday on a USB drive and a CD sits in my desk drawer too. Thankfully I don’t use it everyday because when I do it is usually rescuing someone’s computer or data. But when I do, I am glad it is there. Everything I could need to rescue data or a system, test a disk, benchmark a system, clone a disk, remove a virus or just move files and so much more is already there in a small footprint, organized and updated. What more can one ask for? I have thrown a few bucks towards this project in the past, but I could have done more and will from now on. If you still think $5 bucks is too much, then you need to read this from Phoronix.

I am behind Parted Magic 100% and encourage everyone who reads this to do the same. This is a project someone can feel really good about supporting and using.

~Jraz

 

 

 

 

Awesome Raspberry Pi Supercomputer Build

This is in my opinion the coolest project I have ever come across for the Raspberry Pi. You have to check this out if you are true geek. Also they include some of the best most detailed instructions on how to repeat this project. This is a must see and there is a video too.

Raspberry Pi at Southampton

penguin2sm3

New Laptop, Windows 8 Gone, Installed Linux Mint 14 Nadia

g580Well I finally took the plunge and purchased a new laptop. I got myself a Lenovo G580 with a B980 PDC CPU sporting 4GB of RAM, 500GB hard drive and more goodies. For the longest time, 10 years, I have either used a build it yourself desktop or a second hand laptop. It has been a long time since last buying new. While I did not go all out and get the latest i7 or i anything, the B980 compared rather well on Intel’s site with their newer and last years models. And as a bonus it sits atop the Sandy bridge giving it an extra punch in the graphics arena. All said and done I am happy with the purchase so far.

As you might be guessing from the post’s title, Windows 8 did not last very long on this machine. :) First priority was to disable the secure boot in the BIOS. And I do not give Lenovo much credit in making this intuitive. Perhaps there is industry pressure not to? We’ll never know for sure. Once in the BIOS you have to enable the legacy boot option and other OS options. This disables the secure boot but does not tell you it does. But upon checking you will find it is disabled after doing this. Save the settings and boot normally. At this point you can boot Windows 8 or your favorite OS. I booted the former. I wanted to see it first hand and I knew there would be an app to register the computer.

After a rather lengthy install process and a video or slide to show you Windows 8, one slide and not helpful at all, you are finally logged in to the desktop. What surprised me right off was I was wired to the network and it would only choose wireless as an option. My second thoughts were how clunky the interface was. Once in an application, which was not an issue, getting out was. No instructions, no pop ups, nothing. I managed to get out eventually and did indeed register the laptop with Lenovo. That is as far as I wanted to go with Windows 8. I have had my experience now.

I replaced the 500GB hard drive with mine, Linux already installed, faster spindle speed (7200rpm) and booted. Linux roared to life as expected. But that is not to say there was not any issues to deal with. Apparently this laptop comes with a newer network chip that does not have a module in the kernel yet. My first thoughts were that I was running the Debian edition of Mint and that the drivers were in the non-free category. I had been planning on installing Mint 14 Nadia since its debut but had not yet given in to the task.After all nothing was broken or anything. I fired up my employers laptop and downloaded the ISO burning it to a thumb drive in short time. Once again the install went off without errors and I was running Nadia in no time.

But the wired network was not working nor was it detected. The command lspci did indeed show the chip set, Ather03:00.0 Ethernet controller: Atheros Communications Inc. AR8162 Fast Ethernet (rev 10), but nothing was happening network wise on it. Enter the best Linux trouble shooter Google and I found the answer here in the Ubuntu forums. There were other posts from Google but this one had the crucial step of installing build-essentials. Without it the fix does not work. I had Ethernet in short order once again. Wireless was functioning but where I live there are so many signals that it is degraded all the time for serious connections. So I prefer wired over wireless right now. It should also be mentioned that the wireless is the famous B43cutter and worked right off the bat. The non-free driver was also available if desired.

So far this setup is doing great and there are not any issues that are deal breakers. My only complaint and I do not yet know if it is the OS or the hardware, is when I go the click something the mouse pointer hides itself. Annoying to say the least. Oh well if that is the worst thing then I have done pretty well.

I should also mention that after setup sound was working, video was set to a good resolution and everything just worked as it should. Nice work to the Ubuntu teams and to Clem and the Mint team for putting this together.

Update: I noticed when changing themes the disappearing cursor is gone. I will have to pay attention to which one it was since I had been switching around on them. This is good to know and I will update again if I notice it.

penguin2sm3

A Solution to Secure Boot For Linux

One developer in the Linux community, Matthew Garrett, has released a bootloader as reported by the H here, that will allow any Linux or BSD distribution to use secure boot . I was very happy to read he had been in development for over a year on this project. This news is very welcome indeed to the Linux community. I am sure it is widely reported but I am not in tune with the developer news so seeing this was a welcome sight. The H also reported on this on November 1st but I must have missed that one. Read it here or follow the first link in the more recent posting.

Linux and secure boot now have a future thanks to Matthew Garrett’s work. This is one project we should all get behind and support one way or another.

 

Ubuntu and Amazon Search – Love or Hate

Well I am certainly not the only one out there that thinks Ubuntu is starting to take advantage of its user base. Ubuntu announced in beta 12.10 the now famous Amazon Search feature. I had a bad reaction in the gut when I read about this move. Apparently I am not the only one. I think this is tied together with Zeitgeist and the local search indexing. I am not a developer nor do I have inside information so take this as my 2 cents in this ever inflationary times. In other words it doesn’t mean a whole lot.

But whatever your opinion if you are using or considering Ubuntu, you owe it to yourself to investigate and be more informed and form your own opinion. Personally I don’t like the feature and have no plans on running Ubuntu. Were it ever to come to my distribution of choice, LMDE, I might leave that one too.

I can understand the need for revenue from any distribution but I think this method has been handled in a manner not conducive to the communities needs. My biggest gripe that I read about is that it was just inserted without regard and without the concern of the users. But like I said, it is just my opinion and apparently others too.

What do you think?