Posts tagged with “firefox”

Synchronizing Firefox Through Dropbox

Having removed the Mozilla Weave extension from my Firefox install (at least for now), I was again left searching for a synchronization solution. This time I wanted one that really worked for me. I mentioned in yesterday’s post that I might try using Dropbox and, while I was speaking rather tongue-in-cheek at the time, I couldn’t think of any reason that it shouldn’t work so last night I tried it.

I used my Mac as the “master” machine, but given the way that Dropbox works, I don’t think that there’s any preference given to one machine over the other. In this case, “master” just means that it’s the machine whose profile I copied to create the shared profile that other machines will tie into. I’ve now referenced that profile on my Windows XP virtual machine at home and on my Linux machine at work and, though I haven’t thrown any hard tests at it, everything appears to be working fine so I thought I’d document the steps I took in case anyone else is interested in trying this.

Create a New Profile on the Master Machine

It would probably suffice to use an existing profile directly, but in the interest of having an escape plan, I’d recommend creating a new one. This is really the only set of instructions that may vary across operating systems, so I’ve tried to provide links for systems other than Mac where such a link was readily available.

  1. Quit Firefox (On Windows and Linux, close all open windows).
  2. Create a new directory in the Dropbox directory for the shared profile. I created mine as ~/Dropbox/Application Support/firefox/profiles/wg3×0vhj.dropbox. The unintelligible name of the last directory simply follows the typical profile naming convention. It may work just as well to name the last folder “foo”, but I wasn’t sure and it wasn’t worth the effort of attempting to deviate.
  3. Create a new Firefox profile (Windows instructions).
    1. Start the Firefox Profile Manager. There is probably a better way, but not knowing it, I dropped into iTerm:
      $ /Applications/Firefox.app/Contents/MacOS/firefox -profilemanager
    2. Click the Create Profile… button.
    3. Enjoy the wizard process, but be sure to Choose Folder… rather than accepting the default on the second panel.
    4. Select the profile folder created in ~/Dropbox.
    5. Click Finish.
  4. Set the new Dropbox profile as the default profile.
  5. Start Firefox to create “instantiate” the new profile.
  6. Quit Firefox.
  7. The new Dropbox profile directory should now have content. Delete that content (leave the profile directory itself).
  8. Navigate to the directory of the existing profile to be shared. My target profile was located in /Users/myusername/Library/Application Support/Firefox/Profiles/j3a1ovux.default
  9. Select all of the files and directories in this directory and copy them to the Dropbox profile directory.
  10. Wait until Dropbox finishes synchronizing those changes. It could take a few minutes, so be patient.
  11. Start Firefox. The new profile should be executed.

The good news is that the hard part is now over. All that’s left is to wire up the newly shared profile to other machines.

Use the Shared Profile on Windows

Once a profile has been created and shared (by creating it a Dropbox), other systems can tap into it pretty easily. All it takes is a simple edit to Firefox’s profiles.ini file, the profiles configuration file. The first computer I wired up was my Windows virtual machine.

On Windows, the profiles.ini file is located in APPDATA\Mozilla\Firefox. On my machine, that expands to C:\Documents and Settings\myusername\Application Data\Mozilla\Firefox.

  1. Close any open Firefox windows
  2. Make hidden files and folders visible if they’re not already
    1. Open Windows Explorer
    2. Select Tools > Folder Options
    3. Select the View tab
    4. In the Hidden files and folders group, click Show hidden files and folders
  3. Open profiles.ini in a text editor
  4. Add the following lines:
[Profile1]
Name=dropbox
IsRelative=0
Path=C:\Documents and Settings\myusername\My Documents\My Dropbox\Application Support\firefox\profiles\wg3x0vhj.dropbox
Default=1

A few changes will need to be made, of course. First, if there is already more than one profile, the numeric value in Profile1 will have to be changed to the next available integer. Second, the Path value will probably need to change.

That’s it. Windows is all wired up. Restart Firefox.

Use the Shared Profile on Linux

Rinse, repeat. As with Windows, all that needs to be done is a little wiring. On Linux, the profiles.ini file is located in /home/myusername/.mozilla/firefox. Just add the lines below and make the appropriate changes as outlined in the Windows instructions above.

[Profile1]
Name=dropbox
IsRelative=0
Path=/home/myusername/Dropbox/Application Support/firefox/profiles/wg3x0vhj.dropbox
Default=1

Caveats

One thing that I noticed right away is that syncing profiles keeps Dropbox pretty busy. That activity makes Dropbox very, very chatty if allowed to speak. Almost immediately, I turned off Dropbox’s Growl support on the Mac and will soon be doing the same for those annoying status tray balloon notifications on Windows. So far, Linux has been pretty quiet.

On the whole, everything seems to be working exactly as I’d expect with the added benefit (maybe) of retaining sessions across multiple systems. I haven’t yet decided whether I like that unexpected twist.

Interestingly (or not), with respect to Dropbox’s chattiness, the only platform on which I can’t disable notifications through a Dropbox preference is the on the one platform where notifications are the most intrusive and least simple to kill. That’s Windows, of course. Argh.

Later that same night…I installed the latest version of the Dropbox application for Windows and the preference is there. No more balloon notifications.

Mozilla Weave is Very, Very Beta

With some degree of frequency, I use any number of computers and at least one of each platform. Mac, Windows and the occasional Linux at home, Windows and Linux at work. For the longest time, I’ve been looking for a reliable way of syncing up my Firefox installs across all of those machines that didn’t involve FTP‘ing my profile directory all over the Internet or doing anything similarly ham-fisted. When I first heard about Mozilla’s Weave project a few months ago, I jumped all over it. Even if the beta would only sync my bookmarks, that would get me about 80% of what I really wanted; the other 20% being fully sync’d extensions.

I’m no stranger to beta software; I understand that it’s not perfect and I wouldn’t expect it to be. Nonetheless, the fatal flaw with Weave as it exists right now is that bookmarks – the only thing I want sync’d other than extensions, which aren’t available in any form yet – aren’t actually sync’d. Bookmarks can be added, but not organized or deleted.

I love what Weave is after and am looking forward to that vision being realized, but it needs to be a bit more mature before it’s truly useful to me. After a few months of trying, I’m going to have to break it off with Weave, at least until it grows up a little more.

I think I’m going to try letting Dropbox do the work for me.

Firefox 3 Bookmarks in Launchy

Since upgrading to Firefox 3 oh these many months ago, my Launchy install has been woefully out of step. It’s been an annoyance, but I’m not on my Windows box all that much so it wasn’t exactly at the top of my hit parade. I finally had a free minute today, so I spent that minute understanding the problem and finding out how to fix it (and then another one writing this).

The problem, of course, is that Mozilla moved its bookmark “repository” to SQLite and the data is stored in a file named places.sqlite rather than the bookmarks.html file that has held this data since approximately the dawn of time. Fortunately, a simple change to about:config is all that’s needed to bring Launchy back up to speed.

To give Launchy access to your Firefox 3 bookmarks:

  1. Type about:config in your address bar.
  2. Type exporthtml in the filter textbox.
  3. Double-click the browser.bookmarks.autoExportHTML line item in the result set. This should be the only item that appears and double-clicking it should change the value from false to true.
  4. Restart Firefox.
  5. Access Launchy > Options > Catalog > Rescan Catalog to rebuild Launchy’s index.

Update 7/30/2008: Tweaking this configuration setting also sets Quicksilver back on the right track. I had to monkey around a bit with the Firefox module in the Quicksilver catalog to get it to index properly, but I managed to get it under control after a bit of wall-to-wall counseling.

Update 9/5/2008: On my Linux box, I use Gnome Do (a.k.a Do) for the same purpose that I use Launchy and Quicksilver and this trick works nicely for it as well. I should note that I don’t know whether it’s necessary for Do – I updated the config setting before trying it without – but Do works perfectly with this setting in place.

(Dis)Organizing Bookmarks

This is another call for help. In all my years of computing, browsing and generally keeping up with the times (or trying to), I’ve never – seriously, never – found a way of organizing and accessing my browser bookmarks that doesn’t quickly devolve into utter madness. Madness, I tell you.

I’ve tried the entry-level folder structuring, centralized solutions like Delicious and Google Bookmarks and am beginning down the path of a synchronized solution in Mozilla Weave (true, not a purely organizational metaphor, but synchronization will facilitate maintained organization). I’m also vaguely aware of new bookmarking features in Mozilla 3, but must confess my total ignorance of the details and to how to use those features effectively.

So to those of you out there who actually like how your bookmarks are organized, what the hell are you doing right that I’m doing so freakishly wrong?

Firefox 3 beta 4 Observations

I’ve been using Firefox 3 beta 4 on two different Macs – one at work and one at home – and have noticed a couple of things:

1. The Good

I really like the new Remember This Password implementation. I don’t know if this is new to beta 4, but I just noticed it a few days ago. Instead of the modal prompt that used to pause the form submission until the prompt was acknowledged, the new implementation uses the “activity bar” at the top of the page that’s become so familiar for other interactions.

What makes the new implementation so nice is that it doesn’t halt the submission process. That means that I can wait to find out whether my credentials actually worked before making a decision about whether to save them. If they don’t, I can click Not Now and try again.

It doesn’t sound like much, but it’s a very nice convenience feature.

2. The Curiously Bad

One of the Macs with beta 4 installed was upgraded from beta 3. The other is a new install of beta 4. What’s curious and unpleasant about this is that the chrome is different. The toolbar of the new beta 4 install includes the conspicuously IE7-inspired, Jurassic-sized Back button.

I’m not a fan. I much prefer the toolbar that was part of my beta 3 install (and was retained during the upgrade).

Update 4/3/2008: Bill Mill set me straight in his comment below. Although I still don’t like the tumescent Back button, it’s easily reversed. To do so, right click on the Firefox toolbar and select Customize…. Then just check the option to Use Small Icons and the Back button will return to a reasonable size.

Although beta 5 was released today, I haven’t upgraded. The response I’ve heard has been mixed (good UI, but crash prone) so I think I may sit out this release cycle.