Monthly Archives: November 2006

HowTo Disable Session Restore in Firefox 2.0

Firefox 2.0 has a new feature called Session Restore; I find it annoying on my laptop as I’m always shutting down without closing Firefox correctly. Here’s how to disable it:

  1. Go to about:config
  2. Right click the list of items, go New -> Boolean
  3. preference name should be: browser.sessionstore.enabled
  4. value False

On more recent versions of Firefox 2, the preference is already included; just search for it and toggle it to false.

More information at: http://wiki.mozilla.org/Session_Restore

(Thanks to Scott, SLUG list)

Rebuild a .deb package

To rebuild a package, I usually:

  • apt-get source package
  • cd package
  • dch -i

This will open debian/changelog , then you can increment the package version/release/etc, put in changelog info, etc

  • dpkg-buildpackage -rfakeroot -uc -b

This will only build the binary packages, no source stuff will be spat out. before you run this, make sure that package-name/debian/control is executable.

At step 4, it might complain about unsatisfied build dependancies. I’m pretty sure there’s a nice apt/dpkg automatic way of doing this, but I can’t remember what is it. It’ll tell you anyhow and you can then do the usual apt-get install blah

I suspect you mean package-name/debian/rules here. debian/control contains the information for the source and binary packages built from and contained in the package, whereas debian/rules contains instructions on how to build them.

(David Gillies & Steve Kowalik, SLUG list)