Showing posts with label GNOME. Show all posts
Showing posts with label GNOME. Show all posts

Sunday, October 31, 2010

Ubuntu 10.10: Problems with Firefox 3.6.12

I had newly installed Ubuntu 10.10, preserving my /home folder from Ubuntu 10.04.  I was having some problems with Firefox.  This post describes the steps I took to resolve those problems.

One error was that, when I was first starting Firefox, I kept getting a message saying, "Firefox is not currently set as your default browser.  Would you like to make it your default browser?"  I kept saying Yes, and the box was checked to say "Always perform this check when starting Firefox."  This message would come back up each time I started Firefox.  This seemed to indicate that it was not remembering the answer I provided.  Next, after I said Yes to that, I got another error message:

The application "firefox-bin" attempted to change an aspect of your configuration that your system administrator or operating system vendor does not allow you to change.  Some of the settings you have selected may not take effect, or may not be restored next time you use the application.
This seemed to explain the recurrence of the first message, about the default browser.  Apparently something was set to read-only or to root privileges, when it should have been accessible to me as user.  Clicking on the Details button on that error message gave me lots of additional information:
Can't overwrite existing read-only value: Can't overwrite existing read-only value: Value for `/desktop/gnome/url-handlers/http/command' set in a read-only source at the front of your configuration path
Can't overwrite existing read-only value: Can't overwrite existing read-only value: Value for `/desktop/gnome/url-handlers/https/command' set in a read-only source at the front of your configuration path
No database available to save your configuration: Unable to store a value at key '/desktop/gnome/url-handlers/ftp/command', as the configuration server has no writable databases. There are some common causes of this problem: 1) your configuration path file /etc/gconf/2/path doesn't contain any databases or wasn't found 2) somehow we mistakenly created two gconfd processes 3) your operating system is misconfigured so NFS file locking doesn't work in your home directory or 4) your NFS client machine crashed and didn't properly notify the server on reboot that file locks should be dropped. If you have two gconfd processes (or had two at the time the second was launched), logging out, killing all copies of gconfd, and logging back in may help. If you have stale locks, remove ~/.gconf*/*lock. Perhaps the problem is that you attempted to use GConf from two machines at once, and ORBit still has its default configuration that prevents remote CORBA connections - put "ORBIIOPIPv4=1" in /etc/orbitrc. As always, check the user.* syslog for details on problems gconfd encountered. There can only be one gconfd per home directory, and it must own a lockfile in ~/.gconfd and also lockfiles in individual storage locations such as ~/.gconf
No database available to save your configuration: Unable to store a value at key '/desktop/gnome/url-handlers/chrome/command', as the configuration server has no writable databases. There are some common causes of this problem: 1) your configuration path file /etc/gconf/2/path doesn't contain any databases or wasn't found 2) somehow we mistakenly created two gconfd processes 3) your operating system is misconfigured so NFS file locking doesn't work in your home directory or 4) your NFS client machine crashed and didn't properly notify the server on reboot that file locks should be dropped. If you have two gconfd processes (or had two at the time the second was launched), logging out, killing all copies of gconfd, and logging back in may help. If you have stale locks, remove ~/.gconf*/*lock. Perhaps the problem is that you attempted to use GConf from two machines at once, and ORBit still has its default configuration that prevents remote CORBA connections - put "ORBIIOPIPv4=1" in /etc/orbitrc. As always, check the user.* syslog for details on problems gconfd encountered. There can only be one gconfd per home directory, and it must own a lockfile in ~/.gconfd and also lockfiles in individual storage locations such as ~/.gconf
My first search, focusing on the first of those error messages, turned up very little at all and nothing conclusive.  A different search did slightly better.  I went back to the original Firefox message and tried a search on that.  Bingo!  Lots of hits.  One thread led me to close Firefox and then try these commands:
killall firefox-bin
sudo chown -R ray:ray /home/ray
The first command got "No process found," which told me that there was not a separate Firefox process somehow lurking in the shadows (even after a reboot) and causing problems.  After the second command, I restarted Firefox, but nothing had changed; the same errors came up.  A different post drew my attention to the question of where the "/desktop/gnome/url-handlers/https/command" was located.  The command they used to find such locations was "sudo find / | grep /desktop/gnome/url-handlers."  I tried that.  It led me to /home/ray/.gconf, but nothing there ended with "https" or "https/command."  I checked that location in Nautilus (making sure to set View > Show Hidden Files) and verified that I was the owner.  The %gconf.xml file in that location that had caused problems for one Firefox user did not even refer to Firefox in my case, so I was confused.

Looking again at the error message, I thought that perhaps I was not understanding it, so I tried a different search.  The half-dozen webpages I opened did not lead to a solution.  It occurred to me to try killing many birds with one stone by uninstalling and reinstalling Firefox.  I had already done that, but the option I had chosen when uninstalling, in Synaptic, was "Mark for Removal."  This time, I tried "Mark for Complete Removal."  I noticed that this would take firefox-gnome-support along with it, and that seemed on target; in fact, I was tempted to remove just that package by itself.  But I went ahead with the complete removal and reinstallation of Firefox in Synaptic.  Interestingly, reinstallation did not automatically include firefox-gnome-support.  Possibly that was the issue:  dependence upon firefox-gnome-support had perhaps been eliminated in Ubuntu 10.10, and when I brought forward my /home directory from Ubuntu 10.04 at the time of upgrading to 10.10, I also inadvertently brought along this problem.  I started Firefox, and this time it was able to download updates for its add-ons -- which means, obviously, that it remembered its add-ons, so "completely" uninstalling Firefox apparently did not mean uninstalling add-ons.  I still got the same error messages as before, so reinstallation seemed to be helpful but not the ultimate solution.  I killed Firefox, ran Update Manager (which had no updates of obvious relevance), and restarted, but the errors persisted.

Following ideas in another thread, I tried "sudo firefox."  This gave me only the first question, about making Firefox my default browser; the other error messages were no longer there.  I killed Firefox and ran "sudo firefox" again.  This time, it remembered the answer; there were no questions or errors at all.  I killed Firefox and started it again from the panel icon (i.e., as a regular user).  This gave me a new error:
Session Manager
The session/window data is corrupted:
syntax error
undefined
I assumed that meant that the Session Manager add-on in Firefox was having a problem that had either existed before I ran "sudo firefox" or had been created when I did so.  I clicked OK on that error, and wondered whether part of the problem was in one or more of my add-ons.  Next, I got the question about making Firefox my default browser, and the other errors as well.  Using Session Manager, I loaded a backup session that was a month old.  I then killed and restarted Firefox.  The errors recurred.  I decided to try wiping out Firefox and all add-ons.  Following another post, I was detoured into this option:
sudo rm -rf .mozilla
firefox &
This was reminiscent of a command that I recalled fixing some other problem once.  That is, there had been a problem traceable to the .mozilla folder.  Removing that folder may have been risky if I had been using Thunderbird or other Mozilla programs in Ubuntu, but I wasn't.  So now I tried those commands.  They did not change anything, so I went on with these commands:
sudo apt-get remove --purge firefox
sudo updatedb
locate firefox
I realized, too late, that this was possibly not the best approach, since the "firefox &" command (above) had given me unending messages that this command was deprecated and no longer functional.  The "locate firefox" command gave me hundreds of responses.  But then I noticed that many of them related to just a few folders, so I tried this:
sudo rm -r /home/ray/.mozilla/firefox
sudo rm -r /usr/lib/firefox
sudo rm -r /usr/lib/firefox-addons

There were more references to Firefox yet to remove, but at this point I noticed the post telling me that completely removing all references to Firefox would create problems for other programs.  So now I went into Synaptic and looked at its status bar for broken packages.  There weren't any.  So either that post was no longer applicable or they weren't broken *yet*.  In Synaptic, I reinstalled Firefox.  Then, still in Synaptic, I went to Edit > Fix Broken Packages.  Its status bar immediately said, "Successfully fixed dependency problems."  So maybe I got lucky.  I started Firefox.  No error messages.  This time, there were no add-ons, so I had to install and configure those from scratch.  But the problem appeared to be solved.

Sunday, May 16, 2010

Compiz in Ubuntu 10.04: Same As It Ever Was

Following Gizmo’s Freeware list of tweaks, I decided to try jazzing up the visual appearance of Ubuntu 10.04 (Lucid Lynx).  To do this, I went into Ubuntu's System > Preferences > CompizConfig Settings Manager > Desktop.  Enable Desktop Cube; disable Desktop Wall.  Unfortunately, I went on to play with Effects at the same time, and managed to halfway freeze my system.  Having wasted hours on fooling with Compiz in previous years, I rebooted and went back to System > Preferences > Appearance > Visual Effects > Normal.

Gizmo also described a Windows 7 Aero Snap tweak in which I could drag a window to the left or right side of the screen and it would automatically fill half of the screen.  To make this work, I installed wmctrl in Synaptic.  Then, in CompizConfig > General > Commands, I entered these commands:

  • Command line 0:  WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x'` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,0,0,$HALF,-1
  • Command line 1:  WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x'` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1
  • Command line 2:  wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
Then, in the “Edge Bindings” tab, I changed None to Left (for command 0), Right (for command 1), and Top (for command 2).  I opted to disable the Flip Left, Flip Right, and Flip Up actions of Desktop Wall.  I wasn’t sure what that would mean.  I clicked Back > General > General Options > General tab > Edge Trigger Delay = 500 > press Tab button > Back > Close.  The way this actually worked, as I quickly found, was that whatever window was highlighted at the moment would go to the edge of the screen where I put the cursor.  Nice, but it kept the left panel from coming up (since I had set it to Auto-Hide), and then it made the bottom panel go to the top.

It all felt pretty flaky.  Since I couldn’t get back into the left panel I had to restart the system again.  Or, correction, the only button that worked was the Shut Down, so I did that, and then rebooted.  When the system came back up, the bottom panel was back in place, but I still could not open the left panel to get into System > Preferences and make changes to Compiz etc.  Following howefield’s advice, I hit Alt-F2, typed “gconf-editor” (I could also have typed gnome-terminal if I’d wanted Terminal) and went to /apps/panel/toplevels/top_panel_screen0 and unchecked auto_hide.  I closed that, went back into Compiz Commands, and clicked the brush or broom icon at the left to remove each of those three commands.  I went into Synaptic and removed wmctrl.  I set the left panel back to Auto-Hide.  It would not come up again.  I restarted the system.

The restart option worked this time, at least to the point of taking me to the Ubuntu screen and then freezing.  Eventually, I punched the computer’s reset button.  I tried again with the left panel.  This time, I just turned off its Auto-Hide option and didn’t turn it back on.  I wondered if System > Administration > Update Manager would somehow fix this.  I ran a check for updates and got an indication that there were 21 of them.  I installed those and tried restarting the computer again.  This time, restart worked without having to punch the reset button.  I went back into Appearance > Visual Effects and set it to “None” rather than “Normal” or “Extra.”  I changed the properties of the left panel to Autohide again.  Now it would hide and unhide without a problem.  I went back into Visual Effects and tried the Normal setting.  It said, “Searching for available drivers.”  I opted to keep the settings.  I closed out of that and tried the panel again.  So, back in gconf-editor, I turned off Autohide again to make the panel visible; I went into Visual Effects and set it back to None; and now the panel was back.  So, OK, Compiz had screwed up the Normal setting so that I had to use the None option; but with the None option, everything seemed to be working acceptably.

That took care of this problem.  If the panel had still not worked, Howefield also offered the option of resetting the panels to the original default, which would have required me to reconstruct the way I had set them up.  Moral of the story, for me, on this work-oriented system, was to continue to avoid Compiz special effects.